configure 895 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. bin_prefix_relpath
  605. cmake_prefix_relpath
  606. INSTALL_SDL2_CONFIG
  607. LIBUSB_LIBS
  608. LIBUSB_CFLAGS
  609. IBUS_LIBS
  610. IBUS_CFLAGS
  611. DBUS_LIBS
  612. DBUS_CFLAGS
  613. LIBGBM_LIBS
  614. LIBGBM_CFLAGS
  615. LIBDRM_LIBS
  616. LIBDRM_CFLAGS
  617. DIRECTFB_LIBS
  618. DIRECTFB_CFLAGS
  619. X_EXTRA_LIBS
  620. X_LIBS
  621. X_PRE_LIBS
  622. X_CFLAGS
  623. XMKMF
  624. RPI_LIBS
  625. RPI_CFLAGS
  626. DECOR_LIBS
  627. DECOR_CFLAGS
  628. FUSIONSOUND_LIBS
  629. FUSIONSOUND_CFLAGS
  630. ARTSCONFIG
  631. PULSEAUDIO_LIBS
  632. PULSEAUDIO_CFLAGS
  633. PIPEWIRE_LIBS
  634. PIPEWIRE_CFLAGS
  635. ESD_LIBS
  636. ESD_CFLAGS
  637. ESD_CONFIG
  638. JACK_LIBS
  639. JACK_CFLAGS
  640. ALSA_LIBS
  641. ALSA_CFLAGS
  642. POW_LIB
  643. LIBOBJS
  644. ALLOCA
  645. LIBTOOLLINKERTAG
  646. LINKER
  647. PKG_CONFIG_LIBDIR
  648. PKG_CONFIG_PATH
  649. PKG_CONFIG
  650. SET_MAKE
  651. INSTALL_DATA
  652. INSTALL_SCRIPT
  653. INSTALL_PROGRAM
  654. CXXCPP
  655. ac_ct_CXX
  656. CXXFLAGS
  657. CXX
  658. LT_AGE
  659. LT_REVISION
  660. LT_CURRENT
  661. LT_RELEASE
  662. RC
  663. CPP
  664. LT_SYS_LIBRARY_PATH
  665. OTOOL64
  666. OTOOL
  667. LIPO
  668. NMEDIT
  669. DSYMUTIL
  670. MANIFEST_TOOL
  671. AWK
  672. RANLIB
  673. STRIP
  674. ac_ct_AR
  675. AR
  676. LN_S
  677. NM
  678. ac_ct_DUMPBIN
  679. DUMPBIN
  680. LD
  681. FGREP
  682. EGREP
  683. GREP
  684. SED
  685. OBJEXT
  686. EXEEXT
  687. ac_ct_CC
  688. CPPFLAGS
  689. LDFLAGS
  690. CFLAGS
  691. CC
  692. host_os
  693. host_vendor
  694. host_cpu
  695. host
  696. build_os
  697. build_vendor
  698. build_cpu
  699. build
  700. LIBTOOL
  701. OBJDUMP
  702. DLLTOOL
  703. AS
  704. SDL_VERSION
  705. SDL_BINARY_AGE
  706. SDL_INTERFACE_AGE
  707. SDL_MICRO_VERSION
  708. SDL_MINOR_VERSION
  709. SDL_MAJOR_VERSION
  710. target_alias
  711. host_alias
  712. build_alias
  713. LIBS
  714. ECHO_T
  715. ECHO_N
  716. ECHO_C
  717. DEFS
  718. mandir
  719. localedir
  720. libdir
  721. psdir
  722. pdfdir
  723. dvidir
  724. htmldir
  725. infodir
  726. docdir
  727. oldincludedir
  728. includedir
  729. localstatedir
  730. sharedstatedir
  731. sysconfdir
  732. datadir
  733. datarootdir
  734. libexecdir
  735. sbindir
  736. bindir
  737. program_transform_name
  738. prefix
  739. exec_prefix
  740. PACKAGE_URL
  741. PACKAGE_BUGREPORT
  742. PACKAGE_STRING
  743. PACKAGE_VERSION
  744. PACKAGE_TARNAME
  745. PACKAGE_NAME
  746. PATH_SEPARATOR
  747. SHELL'
  748. ac_subst_files=''
  749. ac_user_opts='
  750. enable_option_checking
  751. enable_shared
  752. enable_static
  753. with_pic
  754. enable_fast_install
  755. with_aix_soname
  756. with_gnu_ld
  757. with_sysroot
  758. enable_libtool_lock
  759. enable_largefile
  760. enable_assertions
  761. enable_dependency_tracking
  762. enable_libc
  763. enable_gcc_atomics
  764. enable_atomic
  765. enable_audio
  766. enable_video
  767. enable_render
  768. enable_events
  769. enable_joystick
  770. enable_haptic
  771. enable_hidapi
  772. enable_sensor
  773. enable_power
  774. enable_filesystem
  775. enable_threads
  776. enable_timers
  777. enable_file
  778. enable_misc
  779. enable_locale
  780. enable_loadso
  781. enable_cpuinfo
  782. enable_assembly
  783. enable_ssemath
  784. enable_mmx
  785. enable_3dnow
  786. enable_sse
  787. enable_sse2
  788. enable_sse3
  789. enable_altivec
  790. enable_lsx
  791. enable_lasx
  792. enable_oss
  793. enable_alsa
  794. with_alsa_prefix
  795. with_alsa_inc_prefix
  796. enable_alsatest
  797. enable_alsa_shared
  798. enable_jack
  799. enable_jack_shared
  800. enable_esd
  801. with_esd_prefix
  802. with_esd_exec_prefix
  803. enable_esdtest
  804. enable_esd_shared
  805. enable_pipewire
  806. enable_pipewire_shared
  807. enable_pulseaudio
  808. enable_pulseaudio_shared
  809. enable_arts
  810. enable_arts_shared
  811. enable_nas
  812. enable_nas_shared
  813. enable_sndio
  814. enable_sndio_shared
  815. enable_fusionsound
  816. enable_fusionsound_shared
  817. enable_diskaudio
  818. enable_dummyaudio
  819. enable_libsamplerate
  820. enable_libsamplerate_shared
  821. enable_arm_simd
  822. enable_arm_neon
  823. enable_video_wayland
  824. enable_video_wayland_qt_touch
  825. enable_wayland_shared
  826. enable_libdecor
  827. enable_libdecor_shared
  828. enable_video_rpi
  829. enable_video_x11
  830. with_x
  831. enable_x11_shared
  832. enable_video_x11_xcursor
  833. enable_video_x11_xdbe
  834. enable_video_x11_xinput
  835. enable_video_x11_xfixes
  836. enable_video_x11_xrandr
  837. enable_video_x11_scrnsaver
  838. enable_video_x11_xshape
  839. enable_video_vivante
  840. enable_video_cocoa
  841. enable_video_metal
  842. enable_render_metal
  843. enable_video_directfb
  844. enable_directfb_shared
  845. enable_video_kmsdrm
  846. enable_kmsdrm_shared
  847. enable_video_dummy
  848. enable_video_offscreen
  849. enable_video_opengl
  850. enable_video_opengles
  851. enable_video_opengles1
  852. enable_video_opengles2
  853. enable_video_vulkan
  854. enable_libudev
  855. enable_dbus
  856. enable_ime
  857. enable_ibus
  858. enable_fcitx
  859. enable_joystick_mfi
  860. enable_pthreads
  861. enable_pthread_sem
  862. enable_directx
  863. enable_xinput
  864. enable_wasapi
  865. enable_hidapi_joystick
  866. enable_hidapi_libusb
  867. enable_clock_gettime
  868. enable_rpath
  869. enable_backgrounding_signal
  870. enable_foregrounding_signal
  871. enable_joystick_virtual
  872. enable_render_d3d
  873. enable_sdl2_config
  874. '
  875. ac_precious_vars='build_alias
  876. host_alias
  877. target_alias
  878. CC
  879. CFLAGS
  880. LDFLAGS
  881. LIBS
  882. CPPFLAGS
  883. LT_SYS_LIBRARY_PATH
  884. CPP
  885. CXX
  886. CXXFLAGS
  887. CCC
  888. CXXCPP
  889. PKG_CONFIG
  890. PKG_CONFIG_PATH
  891. PKG_CONFIG_LIBDIR
  892. JACK_CFLAGS
  893. JACK_LIBS
  894. PIPEWIRE_CFLAGS
  895. PIPEWIRE_LIBS
  896. PULSEAUDIO_CFLAGS
  897. PULSEAUDIO_LIBS
  898. FUSIONSOUND_CFLAGS
  899. FUSIONSOUND_LIBS
  900. DECOR_CFLAGS
  901. DECOR_LIBS
  902. RPI_CFLAGS
  903. RPI_LIBS
  904. XMKMF
  905. DIRECTFB_CFLAGS
  906. DIRECTFB_LIBS
  907. LIBDRM_CFLAGS
  908. LIBDRM_LIBS
  909. LIBGBM_CFLAGS
  910. LIBGBM_LIBS
  911. DBUS_CFLAGS
  912. DBUS_LIBS
  913. IBUS_CFLAGS
  914. IBUS_LIBS
  915. LIBUSB_CFLAGS
  916. LIBUSB_LIBS'
  917. # Initialize some variables set by options.
  918. ac_init_help=
  919. ac_init_version=false
  920. ac_unrecognized_opts=
  921. ac_unrecognized_sep=
  922. # The variables have the same names as the options, with
  923. # dashes changed to underlines.
  924. cache_file=/dev/null
  925. exec_prefix=NONE
  926. no_create=
  927. no_recursion=
  928. prefix=NONE
  929. program_prefix=NONE
  930. program_suffix=NONE
  931. program_transform_name=s,x,x,
  932. silent=
  933. site=
  934. srcdir=
  935. verbose=
  936. x_includes=NONE
  937. x_libraries=NONE
  938. # Installation directory options.
  939. # These are left unexpanded so users can "make install exec_prefix=/foo"
  940. # and all the variables that are supposed to be based on exec_prefix
  941. # by default will actually change.
  942. # Use braces instead of parens because sh, perl, etc. also accept them.
  943. # (The list follows the same order as the GNU Coding Standards.)
  944. bindir='${exec_prefix}/bin'
  945. sbindir='${exec_prefix}/sbin'
  946. libexecdir='${exec_prefix}/libexec'
  947. datarootdir='${prefix}/share'
  948. datadir='${datarootdir}'
  949. sysconfdir='${prefix}/etc'
  950. sharedstatedir='${prefix}/com'
  951. localstatedir='${prefix}/var'
  952. includedir='${prefix}/include'
  953. oldincludedir='/usr/include'
  954. docdir='${datarootdir}/doc/${PACKAGE}'
  955. infodir='${datarootdir}/info'
  956. htmldir='${docdir}'
  957. dvidir='${docdir}'
  958. pdfdir='${docdir}'
  959. psdir='${docdir}'
  960. libdir='${exec_prefix}/lib'
  961. localedir='${datarootdir}/locale'
  962. mandir='${datarootdir}/man'
  963. ac_prev=
  964. ac_dashdash=
  965. for ac_option
  966. do
  967. # If the previous option needs an argument, assign it.
  968. if test -n "$ac_prev"; then
  969. eval $ac_prev=\$ac_option
  970. ac_prev=
  971. continue
  972. fi
  973. case $ac_option in
  974. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  975. *=) ac_optarg= ;;
  976. *) ac_optarg=yes ;;
  977. esac
  978. # Accept the important Cygnus configure options, so we can diagnose typos.
  979. case $ac_dashdash$ac_option in
  980. --)
  981. ac_dashdash=yes ;;
  982. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  983. ac_prev=bindir ;;
  984. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  985. bindir=$ac_optarg ;;
  986. -build | --build | --buil | --bui | --bu)
  987. ac_prev=build_alias ;;
  988. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  989. build_alias=$ac_optarg ;;
  990. -cache-file | --cache-file | --cache-fil | --cache-fi \
  991. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  992. ac_prev=cache_file ;;
  993. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  994. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  995. cache_file=$ac_optarg ;;
  996. --config-cache | -C)
  997. cache_file=config.cache ;;
  998. -datadir | --datadir | --datadi | --datad)
  999. ac_prev=datadir ;;
  1000. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1001. datadir=$ac_optarg ;;
  1002. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1003. | --dataroo | --dataro | --datar)
  1004. ac_prev=datarootdir ;;
  1005. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1006. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1007. datarootdir=$ac_optarg ;;
  1008. -disable-* | --disable-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid feature name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "enable_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval enable_$ac_useropt=no ;;
  1023. -docdir | --docdir | --docdi | --doc | --do)
  1024. ac_prev=docdir ;;
  1025. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1026. docdir=$ac_optarg ;;
  1027. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1028. ac_prev=dvidir ;;
  1029. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1030. dvidir=$ac_optarg ;;
  1031. -enable-* | --enable-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid feature name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "enable_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval enable_$ac_useropt=\$ac_optarg ;;
  1046. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1047. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1048. | --exec | --exe | --ex)
  1049. ac_prev=exec_prefix ;;
  1050. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1051. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1052. | --exec=* | --exe=* | --ex=*)
  1053. exec_prefix=$ac_optarg ;;
  1054. -gas | --gas | --ga | --g)
  1055. # Obsolete; use --with-gas.
  1056. with_gas=yes ;;
  1057. -help | --help | --hel | --he | -h)
  1058. ac_init_help=long ;;
  1059. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1060. ac_init_help=recursive ;;
  1061. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1062. ac_init_help=short ;;
  1063. -host | --host | --hos | --ho)
  1064. ac_prev=host_alias ;;
  1065. -host=* | --host=* | --hos=* | --ho=*)
  1066. host_alias=$ac_optarg ;;
  1067. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1068. ac_prev=htmldir ;;
  1069. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1070. | --ht=*)
  1071. htmldir=$ac_optarg ;;
  1072. -includedir | --includedir | --includedi | --included | --include \
  1073. | --includ | --inclu | --incl | --inc)
  1074. ac_prev=includedir ;;
  1075. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1076. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1077. includedir=$ac_optarg ;;
  1078. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1079. ac_prev=infodir ;;
  1080. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1081. infodir=$ac_optarg ;;
  1082. -libdir | --libdir | --libdi | --libd)
  1083. ac_prev=libdir ;;
  1084. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1085. libdir=$ac_optarg ;;
  1086. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1087. | --libexe | --libex | --libe)
  1088. ac_prev=libexecdir ;;
  1089. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1090. | --libexe=* | --libex=* | --libe=*)
  1091. libexecdir=$ac_optarg ;;
  1092. -localedir | --localedir | --localedi | --localed | --locale)
  1093. ac_prev=localedir ;;
  1094. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1095. localedir=$ac_optarg ;;
  1096. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1097. | --localstate | --localstat | --localsta | --localst | --locals)
  1098. ac_prev=localstatedir ;;
  1099. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1100. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1101. localstatedir=$ac_optarg ;;
  1102. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1103. ac_prev=mandir ;;
  1104. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1105. mandir=$ac_optarg ;;
  1106. -nfp | --nfp | --nf)
  1107. # Obsolete; use --without-fp.
  1108. with_fp=no ;;
  1109. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1110. | --no-cr | --no-c | -n)
  1111. no_create=yes ;;
  1112. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1113. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1114. no_recursion=yes ;;
  1115. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1116. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1117. | --oldin | --oldi | --old | --ol | --o)
  1118. ac_prev=oldincludedir ;;
  1119. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1120. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1121. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1122. oldincludedir=$ac_optarg ;;
  1123. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1124. ac_prev=prefix ;;
  1125. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1126. prefix=$ac_optarg ;;
  1127. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1128. | --program-pre | --program-pr | --program-p)
  1129. ac_prev=program_prefix ;;
  1130. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1131. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1132. program_prefix=$ac_optarg ;;
  1133. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1134. | --program-suf | --program-su | --program-s)
  1135. ac_prev=program_suffix ;;
  1136. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1137. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1138. program_suffix=$ac_optarg ;;
  1139. -program-transform-name | --program-transform-name \
  1140. | --program-transform-nam | --program-transform-na \
  1141. | --program-transform-n | --program-transform- \
  1142. | --program-transform | --program-transfor \
  1143. | --program-transfo | --program-transf \
  1144. | --program-trans | --program-tran \
  1145. | --progr-tra | --program-tr | --program-t)
  1146. ac_prev=program_transform_name ;;
  1147. -program-transform-name=* | --program-transform-name=* \
  1148. | --program-transform-nam=* | --program-transform-na=* \
  1149. | --program-transform-n=* | --program-transform-=* \
  1150. | --program-transform=* | --program-transfor=* \
  1151. | --program-transfo=* | --program-transf=* \
  1152. | --program-trans=* | --program-tran=* \
  1153. | --progr-tra=* | --program-tr=* | --program-t=*)
  1154. program_transform_name=$ac_optarg ;;
  1155. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1156. ac_prev=pdfdir ;;
  1157. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1158. pdfdir=$ac_optarg ;;
  1159. -psdir | --psdir | --psdi | --psd | --ps)
  1160. ac_prev=psdir ;;
  1161. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1162. psdir=$ac_optarg ;;
  1163. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1164. | -silent | --silent | --silen | --sile | --sil)
  1165. silent=yes ;;
  1166. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1167. ac_prev=sbindir ;;
  1168. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1169. | --sbi=* | --sb=*)
  1170. sbindir=$ac_optarg ;;
  1171. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1172. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1173. | --sharedst | --shareds | --shared | --share | --shar \
  1174. | --sha | --sh)
  1175. ac_prev=sharedstatedir ;;
  1176. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1177. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1178. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1179. | --sha=* | --sh=*)
  1180. sharedstatedir=$ac_optarg ;;
  1181. -site | --site | --sit)
  1182. ac_prev=site ;;
  1183. -site=* | --site=* | --sit=*)
  1184. site=$ac_optarg ;;
  1185. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1186. ac_prev=srcdir ;;
  1187. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1188. srcdir=$ac_optarg ;;
  1189. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1190. | --syscon | --sysco | --sysc | --sys | --sy)
  1191. ac_prev=sysconfdir ;;
  1192. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1193. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1194. sysconfdir=$ac_optarg ;;
  1195. -target | --target | --targe | --targ | --tar | --ta | --t)
  1196. ac_prev=target_alias ;;
  1197. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1198. target_alias=$ac_optarg ;;
  1199. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1200. verbose=yes ;;
  1201. -version | --version | --versio | --versi | --vers | -V)
  1202. ac_init_version=: ;;
  1203. -with-* | --with-*)
  1204. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1205. # Reject names that are not valid shell variable names.
  1206. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207. as_fn_error $? "invalid package name: $ac_useropt"
  1208. ac_useropt_orig=$ac_useropt
  1209. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1210. case $ac_user_opts in
  1211. *"
  1212. "with_$ac_useropt"
  1213. "*) ;;
  1214. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1215. ac_unrecognized_sep=', ';;
  1216. esac
  1217. eval with_$ac_useropt=\$ac_optarg ;;
  1218. -without-* | --without-*)
  1219. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1220. # Reject names that are not valid shell variable names.
  1221. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1222. as_fn_error $? "invalid package name: $ac_useropt"
  1223. ac_useropt_orig=$ac_useropt
  1224. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1225. case $ac_user_opts in
  1226. *"
  1227. "with_$ac_useropt"
  1228. "*) ;;
  1229. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1230. ac_unrecognized_sep=', ';;
  1231. esac
  1232. eval with_$ac_useropt=no ;;
  1233. --x)
  1234. # Obsolete; use --with-x.
  1235. with_x=yes ;;
  1236. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1237. | --x-incl | --x-inc | --x-in | --x-i)
  1238. ac_prev=x_includes ;;
  1239. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1240. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1241. x_includes=$ac_optarg ;;
  1242. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1243. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1244. ac_prev=x_libraries ;;
  1245. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1246. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1247. x_libraries=$ac_optarg ;;
  1248. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1249. Try \`$0 --help' for more information"
  1250. ;;
  1251. *=*)
  1252. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1253. # Reject names that are not valid shell variable names.
  1254. case $ac_envvar in #(
  1255. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1256. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1257. esac
  1258. eval $ac_envvar=\$ac_optarg
  1259. export $ac_envvar ;;
  1260. *)
  1261. # FIXME: should be removed in autoconf 3.0.
  1262. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1263. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1264. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1265. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1266. ;;
  1267. esac
  1268. done
  1269. if test -n "$ac_prev"; then
  1270. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1271. as_fn_error $? "missing argument to $ac_option"
  1272. fi
  1273. if test -n "$ac_unrecognized_opts"; then
  1274. case $enable_option_checking in
  1275. no) ;;
  1276. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1277. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1278. esac
  1279. fi
  1280. # Check all directory arguments for consistency.
  1281. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1282. datadir sysconfdir sharedstatedir localstatedir includedir \
  1283. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1284. libdir localedir mandir
  1285. do
  1286. eval ac_val=\$$ac_var
  1287. # Remove trailing slashes.
  1288. case $ac_val in
  1289. */ )
  1290. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1291. eval $ac_var=\$ac_val;;
  1292. esac
  1293. # Be sure to have absolute directory names.
  1294. case $ac_val in
  1295. [\\/$]* | ?:[\\/]* ) continue;;
  1296. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1297. esac
  1298. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1299. done
  1300. # There might be people who depend on the old broken behavior: `$host'
  1301. # used to hold the argument of --host etc.
  1302. # FIXME: To remove some day.
  1303. build=$build_alias
  1304. host=$host_alias
  1305. target=$target_alias
  1306. # FIXME: To remove some day.
  1307. if test "x$host_alias" != x; then
  1308. if test "x$build_alias" = x; then
  1309. cross_compiling=maybe
  1310. elif test "x$build_alias" != "x$host_alias"; then
  1311. cross_compiling=yes
  1312. fi
  1313. fi
  1314. ac_tool_prefix=
  1315. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1316. test "$silent" = yes && exec 6>/dev/null
  1317. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1318. ac_ls_di=`ls -di .` &&
  1319. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1320. as_fn_error $? "working directory cannot be determined"
  1321. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1322. as_fn_error $? "pwd does not report name of working directory"
  1323. # Find the source files, if location was not specified.
  1324. if test -z "$srcdir"; then
  1325. ac_srcdir_defaulted=yes
  1326. # Try the directory containing this script, then the parent directory.
  1327. ac_confdir=`$as_dirname -- "$as_myself" ||
  1328. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1329. X"$as_myself" : 'X\(//\)[^/]' \| \
  1330. X"$as_myself" : 'X\(//\)$' \| \
  1331. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1332. $as_echo X"$as_myself" |
  1333. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\/\)[^/].*/{
  1338. s//\1/
  1339. q
  1340. }
  1341. /^X\(\/\/\)$/{
  1342. s//\1/
  1343. q
  1344. }
  1345. /^X\(\/\).*/{
  1346. s//\1/
  1347. q
  1348. }
  1349. s/.*/./; q'`
  1350. srcdir=$ac_confdir
  1351. if test ! -r "$srcdir/$ac_unique_file"; then
  1352. srcdir=..
  1353. fi
  1354. else
  1355. ac_srcdir_defaulted=no
  1356. fi
  1357. if test ! -r "$srcdir/$ac_unique_file"; then
  1358. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1359. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1360. fi
  1361. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1362. ac_abs_confdir=`(
  1363. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1364. pwd)`
  1365. # When building in place, set srcdir=.
  1366. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1367. srcdir=.
  1368. fi
  1369. # Remove unnecessary trailing slashes from srcdir.
  1370. # Double slashes in file names in object file debugging info
  1371. # mess up M-x gdb in Emacs.
  1372. case $srcdir in
  1373. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1374. esac
  1375. for ac_var in $ac_precious_vars; do
  1376. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1377. eval ac_env_${ac_var}_value=\$${ac_var}
  1378. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1379. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1380. done
  1381. #
  1382. # Report the --help message.
  1383. #
  1384. if test "$ac_init_help" = "long"; then
  1385. # Omit some internal or obsolete options to make the list less imposing.
  1386. # This message is too long to be a string in the A/UX 3.1 sh.
  1387. cat <<_ACEOF
  1388. \`configure' configures this package to adapt to many kinds of systems.
  1389. Usage: $0 [OPTION]... [VAR=VALUE]...
  1390. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1391. VAR=VALUE. See below for descriptions of some of the useful variables.
  1392. Defaults for the options are specified in brackets.
  1393. Configuration:
  1394. -h, --help display this help and exit
  1395. --help=short display options specific to this package
  1396. --help=recursive display the short help of all the included packages
  1397. -V, --version display version information and exit
  1398. -q, --quiet, --silent do not print \`checking ...' messages
  1399. --cache-file=FILE cache test results in FILE [disabled]
  1400. -C, --config-cache alias for \`--cache-file=config.cache'
  1401. -n, --no-create do not create output files
  1402. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1403. Installation directories:
  1404. --prefix=PREFIX install architecture-independent files in PREFIX
  1405. [$ac_default_prefix]
  1406. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1407. [PREFIX]
  1408. By default, \`make install' will install all the files in
  1409. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1410. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1411. for instance \`--prefix=\$HOME'.
  1412. For better control, use the options below.
  1413. Fine tuning of the installation directories:
  1414. --bindir=DIR user executables [EPREFIX/bin]
  1415. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1416. --libexecdir=DIR program executables [EPREFIX/libexec]
  1417. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1418. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1419. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1420. --libdir=DIR object code libraries [EPREFIX/lib]
  1421. --includedir=DIR C header files [PREFIX/include]
  1422. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1423. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1424. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1425. --infodir=DIR info documentation [DATAROOTDIR/info]
  1426. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1427. --mandir=DIR man documentation [DATAROOTDIR/man]
  1428. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1429. --htmldir=DIR html documentation [DOCDIR]
  1430. --dvidir=DIR dvi documentation [DOCDIR]
  1431. --pdfdir=DIR pdf documentation [DOCDIR]
  1432. --psdir=DIR ps documentation [DOCDIR]
  1433. _ACEOF
  1434. cat <<\_ACEOF
  1435. X features:
  1436. --x-includes=DIR X include files are in DIR
  1437. --x-libraries=DIR X library files are in DIR
  1438. System types:
  1439. --build=BUILD configure for building on BUILD [guessed]
  1440. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1441. _ACEOF
  1442. fi
  1443. if test -n "$ac_init_help"; then
  1444. cat <<\_ACEOF
  1445. Optional Features:
  1446. --disable-option-checking ignore unrecognized --enable/--with options
  1447. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1448. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1449. --enable-shared[=PKGS] build shared libraries [default=yes]
  1450. --enable-static[=PKGS] build static libraries [default=yes]
  1451. --enable-fast-install[=PKGS]
  1452. optimize for fast installation [default=yes]
  1453. --disable-libtool-lock avoid locking (might break parallel builds)
  1454. --disable-largefile omit support for large files
  1455. --enable-assertions Enable internal sanity checks
  1456. (auto/disabled/release/enabled/paranoid)
  1457. [default=auto]
  1458. --enable-dependency-tracking
  1459. Use gcc -MMD -MT dependency tracking [default=yes]
  1460. --enable-libc Use the system C library [default=yes]
  1461. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1462. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1463. --enable-audio Enable the audio subsystem [default=yes]
  1464. --enable-video Enable the video subsystem [default=yes]
  1465. --enable-render Enable the render subsystem [default=yes]
  1466. --enable-events Enable the events subsystem [default=yes]
  1467. --enable-joystick Enable the joystick subsystem [default=yes]
  1468. --enable-haptic Enable the haptic (force feedback) subsystem
  1469. [default=yes]
  1470. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1471. --enable-sensor Enable the sensor subsystem [default=yes]
  1472. --enable-power Enable the power subsystem [default=yes]
  1473. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1474. --enable-threads Enable the threading subsystem [default=yes]
  1475. --enable-timers Enable the timer subsystem [default=yes]
  1476. --enable-file Enable the file subsystem [default=yes]
  1477. --enable-misc Enable the misc subsystem [default=yes]
  1478. --enable-locale Enable the locale subsystem [default=yes]
  1479. --enable-loadso Enable the shared object loading subsystem
  1480. [default=yes]
  1481. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1482. --enable-assembly Enable assembly routines [default=yes]
  1483. --enable-ssemath Allow GCC to use SSE floating point math
  1484. [default=maybe]
  1485. --enable-mmx use MMX assembly routines [default=yes]
  1486. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1487. --enable-sse use SSE assembly routines [default=yes]
  1488. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1489. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1490. --enable-altivec use Altivec assembly routines [default=yes]
  1491. --enable-lsx use LSX assembly routines [default=yes]
  1492. --enable-lasx use LASX assembly routines [default=yes]
  1493. --enable-oss support the OSS audio API [default=maybe]
  1494. --enable-alsa support the ALSA audio API [default=yes]
  1495. --disable-alsatest Do not try to compile and run a test Alsa program
  1496. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1497. --enable-jack use JACK audio [default=yes]
  1498. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1499. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1500. --disable-esdtest Do not try to compile and run a test ESD program
  1501. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1502. --enable-pipewire use Pipewire audio [default=yes]
  1503. --enable-pipewire-shared
  1504. dynamically load Pipewire support [default=yes]
  1505. --enable-pulseaudio use PulseAudio [default=yes]
  1506. --enable-pulseaudio-shared
  1507. dynamically load PulseAudio support [default=yes]
  1508. --enable-arts support the Analog Real Time Synthesizer
  1509. [default=yes]
  1510. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1511. --enable-nas support the NAS audio API [default=yes]
  1512. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1513. --enable-sndio support the sndio audio API [default=yes]
  1514. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1515. --enable-fusionsound use FusionSound audio driver [default=no]
  1516. --enable-fusionsound-shared
  1517. dynamically load fusionsound audio support
  1518. [default=yes]
  1519. --enable-diskaudio support the disk writer audio driver [default=yes]
  1520. --enable-dummyaudio support the dummy audio driver [default=yes]
  1521. --enable-libsamplerate use libsamplerate for audio rate conversion
  1522. [default=yes]
  1523. --enable-libsamplerate-shared
  1524. dynamically load libsamplerate [default=yes]
  1525. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1526. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1527. --enable-video-wayland use Wayland video driver [default=yes]
  1528. --enable-video-wayland-qt-touch
  1529. QtWayland server support for Wayland video driver
  1530. [default=yes]
  1531. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1532. --enable-libdecor use libdecor for Wayland client-side decorations
  1533. [default=yes]
  1534. --enable-libdecor-shared
  1535. dynamically load libdecor [default=yes]
  1536. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1537. --enable-video-x11 use X11 video driver [default=yes]
  1538. --enable-x11-shared dynamically load X11 support [default=maybe]
  1539. --enable-video-x11-xcursor
  1540. enable X11 Xcursor support [default=yes]
  1541. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1542. --enable-video-x11-xinput
  1543. enable X11 XInput extension for manymouse, tablets,
  1544. etc [default=yes]
  1545. --enable-video-x11-xfixes
  1546. enable X11 Xfixes support [default=yes]
  1547. --enable-video-x11-xrandr
  1548. enable X11 Xrandr extension for fullscreen
  1549. [default=yes]
  1550. --enable-video-x11-scrnsaver
  1551. enable X11 screensaver extension [default=yes]
  1552. --enable-video-x11-xshape
  1553. enable X11 XShape support [default=yes]
  1554. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1555. --enable-video-cocoa use Cocoa video driver [default=yes]
  1556. --enable-video-metal include Metal support [default=yes]
  1557. --enable-render-metal enable the Metal render driver [default=yes]
  1558. --enable-video-directfb use DirectFB video driver [default=no]
  1559. --enable-directfb-shared
  1560. dynamically load directfb support [default=yes]
  1561. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1562. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1563. --enable-video-dummy use dummy video driver [default=yes]
  1564. --enable-video-offscreen
  1565. use offscreen video driver [default=no]
  1566. --enable-video-opengl include OpenGL support [default=yes]
  1567. --enable-video-opengles include OpenGL ES support [default=yes]
  1568. --enable-video-opengles1
  1569. include OpenGL ES 1.1 support [default=yes]
  1570. --enable-video-opengles2
  1571. include OpenGL ES 2.0 support [default=yes]
  1572. --enable-video-vulkan include Vulkan support [default=yes]
  1573. --enable-libudev enable libudev support [default=yes]
  1574. --enable-dbus enable D-Bus support [default=yes]
  1575. --enable-ime enable IME support [default=yes]
  1576. --enable-ibus enable IBus support [default=yes]
  1577. --enable-fcitx enable fcitx support [default=yes]
  1578. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1579. --enable-pthreads use POSIX threads for multi-threading
  1580. [default=maybe]
  1581. --enable-pthread-sem use pthread semaphores [default=maybe]
  1582. --enable-directx use DirectX for Windows audio/video [default=yes]
  1583. --enable-xinput use Xinput for Windows [default=yes]
  1584. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1585. --enable-hidapi-joystick
  1586. use HIDAPI for low level joystick drivers
  1587. [default=yes]
  1588. --enable-hidapi-libusb use libusb for low level joystick drivers
  1589. [default=maybe]
  1590. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1591. UNIX [default=yes]
  1592. --enable-rpath use an rpath when linking SDL [default=yes]
  1593. --enable-backgrounding-signal
  1594. number to use for magic backgrounding signal or 'no'
  1595. [default=no]
  1596. --enable-foregrounding-signal
  1597. number to use for magic foregrounding signal or 'no'
  1598. [default=no]
  1599. --enable-joystick-virtual
  1600. enable virtual joystick APIs [default=yes]
  1601. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1602. --enable-sdl2-config Install sdl2-config [default=yes]
  1603. Optional Packages:
  1604. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1605. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1606. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1607. both]
  1608. --with-aix-soname=aix|svr4|both
  1609. shared library versioning (aka "SONAME") variant to
  1610. provide on AIX, [default=aix].
  1611. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1612. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1613. compiler's sysroot if not specified).
  1614. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1615. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1616. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1617. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1618. --with-x use the X Window System
  1619. Some influential environment variables:
  1620. CC C compiler command
  1621. CFLAGS C compiler flags
  1622. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1623. nonstandard directory <lib dir>
  1624. LIBS libraries to pass to the linker, e.g. -l<library>
  1625. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1626. you have headers in a nonstandard directory <include dir>
  1627. LT_SYS_LIBRARY_PATH
  1628. User-defined run-time library search path.
  1629. CPP C preprocessor
  1630. CXX C++ compiler command
  1631. CXXFLAGS C++ compiler flags
  1632. CXXCPP C++ preprocessor
  1633. PKG_CONFIG path to pkg-config utility
  1634. PKG_CONFIG_PATH
  1635. directories to add to pkg-config's search path
  1636. PKG_CONFIG_LIBDIR
  1637. path overriding pkg-config's built-in search path
  1638. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1639. JACK_LIBS linker flags for JACK, overriding pkg-config
  1640. PIPEWIRE_CFLAGS
  1641. C compiler flags for PIPEWIRE, overriding pkg-config
  1642. PIPEWIRE_LIBS
  1643. linker flags for PIPEWIRE, overriding pkg-config
  1644. PULSEAUDIO_CFLAGS
  1645. C compiler flags for PULSEAUDIO, overriding pkg-config
  1646. PULSEAUDIO_LIBS
  1647. linker flags for PULSEAUDIO, overriding pkg-config
  1648. FUSIONSOUND_CFLAGS
  1649. C compiler flags for FUSIONSOUND, overriding pkg-config
  1650. FUSIONSOUND_LIBS
  1651. linker flags for FUSIONSOUND, overriding pkg-config
  1652. DECOR_CFLAGS
  1653. C compiler flags for DECOR, overriding pkg-config
  1654. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1655. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1656. RPI_LIBS linker flags for RPI, overriding pkg-config
  1657. XMKMF Path to xmkmf, Makefile generator for X Window System
  1658. DIRECTFB_CFLAGS
  1659. C compiler flags for DIRECTFB, overriding pkg-config
  1660. DIRECTFB_LIBS
  1661. linker flags for DIRECTFB, overriding pkg-config
  1662. LIBDRM_CFLAGS
  1663. C compiler flags for LIBDRM, overriding pkg-config
  1664. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1665. LIBGBM_CFLAGS
  1666. C compiler flags for LIBGBM, overriding pkg-config
  1667. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1668. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1669. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1670. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1671. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1672. LIBUSB_CFLAGS
  1673. C compiler flags for LIBUSB, overriding pkg-config
  1674. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1675. Use these variables to override the choices made by `configure' or to help
  1676. it to find libraries and programs with nonstandard names/locations.
  1677. Report bugs to the package provider.
  1678. _ACEOF
  1679. ac_status=$?
  1680. fi
  1681. if test "$ac_init_help" = "recursive"; then
  1682. # If there are subdirs, report their specific --help.
  1683. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1684. test -d "$ac_dir" ||
  1685. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1686. continue
  1687. ac_builddir=.
  1688. case "$ac_dir" in
  1689. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1690. *)
  1691. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1692. # A ".." for each directory in $ac_dir_suffix.
  1693. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1694. case $ac_top_builddir_sub in
  1695. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1696. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1697. esac ;;
  1698. esac
  1699. ac_abs_top_builddir=$ac_pwd
  1700. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1701. # for backward compatibility:
  1702. ac_top_builddir=$ac_top_build_prefix
  1703. case $srcdir in
  1704. .) # We are building in place.
  1705. ac_srcdir=.
  1706. ac_top_srcdir=$ac_top_builddir_sub
  1707. ac_abs_top_srcdir=$ac_pwd ;;
  1708. [\\/]* | ?:[\\/]* ) # Absolute name.
  1709. ac_srcdir=$srcdir$ac_dir_suffix;
  1710. ac_top_srcdir=$srcdir
  1711. ac_abs_top_srcdir=$srcdir ;;
  1712. *) # Relative name.
  1713. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1714. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1715. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1716. esac
  1717. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1718. cd "$ac_dir" || { ac_status=$?; continue; }
  1719. # Check for guested configure.
  1720. if test -f "$ac_srcdir/configure.gnu"; then
  1721. echo &&
  1722. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1723. elif test -f "$ac_srcdir/configure"; then
  1724. echo &&
  1725. $SHELL "$ac_srcdir/configure" --help=recursive
  1726. else
  1727. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1728. fi || ac_status=$?
  1729. cd "$ac_pwd" || { ac_status=$?; break; }
  1730. done
  1731. fi
  1732. test -n "$ac_init_help" && exit $ac_status
  1733. if $ac_init_version; then
  1734. cat <<\_ACEOF
  1735. configure
  1736. generated by GNU Autoconf 2.69
  1737. Copyright (C) 2012 Free Software Foundation, Inc.
  1738. This configure script is free software; the Free Software Foundation
  1739. gives unlimited permission to copy, distribute and modify it.
  1740. _ACEOF
  1741. exit
  1742. fi
  1743. ## ------------------------ ##
  1744. ## Autoconf initialization. ##
  1745. ## ------------------------ ##
  1746. # ac_fn_c_try_compile LINENO
  1747. # --------------------------
  1748. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1749. ac_fn_c_try_compile ()
  1750. {
  1751. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1752. rm -f conftest.$ac_objext
  1753. if { { ac_try="$ac_compile"
  1754. case "(($ac_try" in
  1755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1756. *) ac_try_echo=$ac_try;;
  1757. esac
  1758. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1759. $as_echo "$ac_try_echo"; } >&5
  1760. (eval "$ac_compile") 2>conftest.err
  1761. ac_status=$?
  1762. if test -s conftest.err; then
  1763. grep -v '^ *+' conftest.err >conftest.er1
  1764. cat conftest.er1 >&5
  1765. mv -f conftest.er1 conftest.err
  1766. fi
  1767. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1768. test $ac_status = 0; } && {
  1769. test -z "$ac_c_werror_flag" ||
  1770. test ! -s conftest.err
  1771. } && test -s conftest.$ac_objext; then :
  1772. ac_retval=0
  1773. else
  1774. $as_echo "$as_me: failed program was:" >&5
  1775. sed 's/^/| /' conftest.$ac_ext >&5
  1776. ac_retval=1
  1777. fi
  1778. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1779. as_fn_set_status $ac_retval
  1780. } # ac_fn_c_try_compile
  1781. # ac_fn_c_try_link LINENO
  1782. # -----------------------
  1783. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1784. ac_fn_c_try_link ()
  1785. {
  1786. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1787. rm -f conftest.$ac_objext conftest$ac_exeext
  1788. if { { ac_try="$ac_link"
  1789. case "(($ac_try" in
  1790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1791. *) ac_try_echo=$ac_try;;
  1792. esac
  1793. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1794. $as_echo "$ac_try_echo"; } >&5
  1795. (eval "$ac_link") 2>conftest.err
  1796. ac_status=$?
  1797. if test -s conftest.err; then
  1798. grep -v '^ *+' conftest.err >conftest.er1
  1799. cat conftest.er1 >&5
  1800. mv -f conftest.er1 conftest.err
  1801. fi
  1802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1803. test $ac_status = 0; } && {
  1804. test -z "$ac_c_werror_flag" ||
  1805. test ! -s conftest.err
  1806. } && test -s conftest$ac_exeext && {
  1807. test "$cross_compiling" = yes ||
  1808. test -x conftest$ac_exeext
  1809. }; then :
  1810. ac_retval=0
  1811. else
  1812. $as_echo "$as_me: failed program was:" >&5
  1813. sed 's/^/| /' conftest.$ac_ext >&5
  1814. ac_retval=1
  1815. fi
  1816. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1817. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1818. # interfere with the next link command; also delete a directory that is
  1819. # left behind by Apple's compiler. We do this before executing the actions.
  1820. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1821. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1822. as_fn_set_status $ac_retval
  1823. } # ac_fn_c_try_link
  1824. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1825. # -------------------------------------------------------
  1826. # Tests whether HEADER exists and can be compiled using the include files in
  1827. # INCLUDES, setting the cache variable VAR accordingly.
  1828. ac_fn_c_check_header_compile ()
  1829. {
  1830. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1832. $as_echo_n "checking for $2... " >&6; }
  1833. if eval \${$3+:} false; then :
  1834. $as_echo_n "(cached) " >&6
  1835. else
  1836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1837. /* end confdefs.h. */
  1838. $4
  1839. #include <$2>
  1840. _ACEOF
  1841. if ac_fn_c_try_compile "$LINENO"; then :
  1842. eval "$3=yes"
  1843. else
  1844. eval "$3=no"
  1845. fi
  1846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1847. fi
  1848. eval ac_res=\$$3
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1850. $as_echo "$ac_res" >&6; }
  1851. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852. } # ac_fn_c_check_header_compile
  1853. # ac_fn_c_try_cpp LINENO
  1854. # ----------------------
  1855. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1856. ac_fn_c_try_cpp ()
  1857. {
  1858. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1859. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1860. case "(($ac_try" in
  1861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1862. *) ac_try_echo=$ac_try;;
  1863. esac
  1864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1865. $as_echo "$ac_try_echo"; } >&5
  1866. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1867. ac_status=$?
  1868. if test -s conftest.err; then
  1869. grep -v '^ *+' conftest.err >conftest.er1
  1870. cat conftest.er1 >&5
  1871. mv -f conftest.er1 conftest.err
  1872. fi
  1873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1874. test $ac_status = 0; } > conftest.i && {
  1875. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1876. test ! -s conftest.err
  1877. }; then :
  1878. ac_retval=0
  1879. else
  1880. $as_echo "$as_me: failed program was:" >&5
  1881. sed 's/^/| /' conftest.$ac_ext >&5
  1882. ac_retval=1
  1883. fi
  1884. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1885. as_fn_set_status $ac_retval
  1886. } # ac_fn_c_try_cpp
  1887. # ac_fn_c_try_run LINENO
  1888. # ----------------------
  1889. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1890. # that executables *can* be run.
  1891. ac_fn_c_try_run ()
  1892. {
  1893. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1894. if { { ac_try="$ac_link"
  1895. case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo"; } >&5
  1901. (eval "$ac_link") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1904. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1905. { { case "(($ac_try" in
  1906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1907. *) ac_try_echo=$ac_try;;
  1908. esac
  1909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1910. $as_echo "$ac_try_echo"; } >&5
  1911. (eval "$ac_try") 2>&5
  1912. ac_status=$?
  1913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1914. test $ac_status = 0; }; }; then :
  1915. ac_retval=0
  1916. else
  1917. $as_echo "$as_me: program exited with status $ac_status" >&5
  1918. $as_echo "$as_me: failed program was:" >&5
  1919. sed 's/^/| /' conftest.$ac_ext >&5
  1920. ac_retval=$ac_status
  1921. fi
  1922. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1923. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1924. as_fn_set_status $ac_retval
  1925. } # ac_fn_c_try_run
  1926. # ac_fn_c_check_func LINENO FUNC VAR
  1927. # ----------------------------------
  1928. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1929. ac_fn_c_check_func ()
  1930. {
  1931. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1933. $as_echo_n "checking for $2... " >&6; }
  1934. if eval \${$3+:} false; then :
  1935. $as_echo_n "(cached) " >&6
  1936. else
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1940. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1941. #define $2 innocuous_$2
  1942. /* System header to define __stub macros and hopefully few prototypes,
  1943. which can conflict with char $2 (); below.
  1944. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1945. <limits.h> exists even on freestanding compilers. */
  1946. #ifdef __STDC__
  1947. # include <limits.h>
  1948. #else
  1949. # include <assert.h>
  1950. #endif
  1951. #undef $2
  1952. /* Override any GCC internal prototype to avoid an error.
  1953. Use char because int might match the return type of a GCC
  1954. builtin and then its argument prototype would still apply. */
  1955. #ifdef __cplusplus
  1956. extern "C"
  1957. #endif
  1958. char $2 ();
  1959. /* The GNU C library defines this for functions which it implements
  1960. to always fail with ENOSYS. Some functions are actually named
  1961. something starting with __ and the normal name is an alias. */
  1962. #if defined __stub_$2 || defined __stub___$2
  1963. choke me
  1964. #endif
  1965. int
  1966. main ()
  1967. {
  1968. return $2 ();
  1969. ;
  1970. return 0;
  1971. }
  1972. _ACEOF
  1973. if ac_fn_c_try_link "$LINENO"; then :
  1974. eval "$3=yes"
  1975. else
  1976. eval "$3=no"
  1977. fi
  1978. rm -f core conftest.err conftest.$ac_objext \
  1979. conftest$ac_exeext conftest.$ac_ext
  1980. fi
  1981. eval ac_res=\$$3
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1983. $as_echo "$ac_res" >&6; }
  1984. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1985. } # ac_fn_c_check_func
  1986. # ac_fn_cxx_try_compile LINENO
  1987. # ----------------------------
  1988. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1989. ac_fn_cxx_try_compile ()
  1990. {
  1991. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1992. rm -f conftest.$ac_objext
  1993. if { { ac_try="$ac_compile"
  1994. case "(($ac_try" in
  1995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1996. *) ac_try_echo=$ac_try;;
  1997. esac
  1998. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1999. $as_echo "$ac_try_echo"; } >&5
  2000. (eval "$ac_compile") 2>conftest.err
  2001. ac_status=$?
  2002. if test -s conftest.err; then
  2003. grep -v '^ *+' conftest.err >conftest.er1
  2004. cat conftest.er1 >&5
  2005. mv -f conftest.er1 conftest.err
  2006. fi
  2007. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2008. test $ac_status = 0; } && {
  2009. test -z "$ac_cxx_werror_flag" ||
  2010. test ! -s conftest.err
  2011. } && test -s conftest.$ac_objext; then :
  2012. ac_retval=0
  2013. else
  2014. $as_echo "$as_me: failed program was:" >&5
  2015. sed 's/^/| /' conftest.$ac_ext >&5
  2016. ac_retval=1
  2017. fi
  2018. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2019. as_fn_set_status $ac_retval
  2020. } # ac_fn_cxx_try_compile
  2021. # ac_fn_cxx_try_cpp LINENO
  2022. # ------------------------
  2023. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2024. ac_fn_cxx_try_cpp ()
  2025. {
  2026. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2027. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2028. case "(($ac_try" in
  2029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2030. *) ac_try_echo=$ac_try;;
  2031. esac
  2032. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2033. $as_echo "$ac_try_echo"; } >&5
  2034. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2035. ac_status=$?
  2036. if test -s conftest.err; then
  2037. grep -v '^ *+' conftest.err >conftest.er1
  2038. cat conftest.er1 >&5
  2039. mv -f conftest.er1 conftest.err
  2040. fi
  2041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2042. test $ac_status = 0; } > conftest.i && {
  2043. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2044. test ! -s conftest.err
  2045. }; then :
  2046. ac_retval=0
  2047. else
  2048. $as_echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. ac_retval=1
  2051. fi
  2052. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2053. as_fn_set_status $ac_retval
  2054. } # ac_fn_cxx_try_cpp
  2055. # ac_fn_cxx_try_link LINENO
  2056. # -------------------------
  2057. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2058. ac_fn_cxx_try_link ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. rm -f conftest.$ac_objext conftest$ac_exeext
  2062. if { { ac_try="$ac_link"
  2063. case "(($ac_try" in
  2064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2065. *) ac_try_echo=$ac_try;;
  2066. esac
  2067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2068. $as_echo "$ac_try_echo"; } >&5
  2069. (eval "$ac_link") 2>conftest.err
  2070. ac_status=$?
  2071. if test -s conftest.err; then
  2072. grep -v '^ *+' conftest.err >conftest.er1
  2073. cat conftest.er1 >&5
  2074. mv -f conftest.er1 conftest.err
  2075. fi
  2076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2077. test $ac_status = 0; } && {
  2078. test -z "$ac_cxx_werror_flag" ||
  2079. test ! -s conftest.err
  2080. } && test -s conftest$ac_exeext && {
  2081. test "$cross_compiling" = yes ||
  2082. test -x conftest$ac_exeext
  2083. }; then :
  2084. ac_retval=0
  2085. else
  2086. $as_echo "$as_me: failed program was:" >&5
  2087. sed 's/^/| /' conftest.$ac_ext >&5
  2088. ac_retval=1
  2089. fi
  2090. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2091. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2092. # interfere with the next link command; also delete a directory that is
  2093. # left behind by Apple's compiler. We do this before executing the actions.
  2094. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2095. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2096. as_fn_set_status $ac_retval
  2097. } # ac_fn_cxx_try_link
  2098. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2099. # -------------------------------------------------------
  2100. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2101. # the include files in INCLUDES and setting the cache variable VAR
  2102. # accordingly.
  2103. ac_fn_c_check_header_mongrel ()
  2104. {
  2105. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2106. if eval \${$3+:} false; then :
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2108. $as_echo_n "checking for $2... " >&6; }
  2109. if eval \${$3+:} false; then :
  2110. $as_echo_n "(cached) " >&6
  2111. fi
  2112. eval ac_res=\$$3
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2114. $as_echo "$ac_res" >&6; }
  2115. else
  2116. # Is the header compilable?
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2118. $as_echo_n "checking $2 usability... " >&6; }
  2119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2120. /* end confdefs.h. */
  2121. $4
  2122. #include <$2>
  2123. _ACEOF
  2124. if ac_fn_c_try_compile "$LINENO"; then :
  2125. ac_header_compiler=yes
  2126. else
  2127. ac_header_compiler=no
  2128. fi
  2129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2131. $as_echo "$ac_header_compiler" >&6; }
  2132. # Is the header present?
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2134. $as_echo_n "checking $2 presence... " >&6; }
  2135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2136. /* end confdefs.h. */
  2137. #include <$2>
  2138. _ACEOF
  2139. if ac_fn_c_try_cpp "$LINENO"; then :
  2140. ac_header_preproc=yes
  2141. else
  2142. ac_header_preproc=no
  2143. fi
  2144. rm -f conftest.err conftest.i conftest.$ac_ext
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2146. $as_echo "$ac_header_preproc" >&6; }
  2147. # So? What about this header?
  2148. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2149. yes:no: )
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2151. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2153. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2154. ;;
  2155. no:yes:* )
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2157. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2159. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2161. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2163. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2165. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2166. ;;
  2167. esac
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2169. $as_echo_n "checking for $2... " >&6; }
  2170. if eval \${$3+:} false; then :
  2171. $as_echo_n "(cached) " >&6
  2172. else
  2173. eval "$3=\$ac_header_compiler"
  2174. fi
  2175. eval ac_res=\$$3
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2177. $as_echo "$ac_res" >&6; }
  2178. fi
  2179. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2180. } # ac_fn_c_check_header_mongrel
  2181. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2182. # -------------------------------------------
  2183. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2184. # variable VAR accordingly.
  2185. ac_fn_c_check_type ()
  2186. {
  2187. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2189. $as_echo_n "checking for $2... " >&6; }
  2190. if eval \${$3+:} false; then :
  2191. $as_echo_n "(cached) " >&6
  2192. else
  2193. eval "$3=no"
  2194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2195. /* end confdefs.h. */
  2196. $4
  2197. int
  2198. main ()
  2199. {
  2200. if (sizeof ($2))
  2201. return 0;
  2202. ;
  2203. return 0;
  2204. }
  2205. _ACEOF
  2206. if ac_fn_c_try_compile "$LINENO"; then :
  2207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2208. /* end confdefs.h. */
  2209. $4
  2210. int
  2211. main ()
  2212. {
  2213. if (sizeof (($2)))
  2214. return 0;
  2215. ;
  2216. return 0;
  2217. }
  2218. _ACEOF
  2219. if ac_fn_c_try_compile "$LINENO"; then :
  2220. else
  2221. eval "$3=yes"
  2222. fi
  2223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2224. fi
  2225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2226. fi
  2227. eval ac_res=\$$3
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2229. $as_echo "$ac_res" >&6; }
  2230. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2231. } # ac_fn_c_check_type
  2232. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2233. # ----------------------------------------------------
  2234. # Tries to find if the field MEMBER exists in type AGGR, after including
  2235. # INCLUDES, setting cache variable VAR accordingly.
  2236. ac_fn_c_check_member ()
  2237. {
  2238. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2240. $as_echo_n "checking for $2.$3... " >&6; }
  2241. if eval \${$4+:} false; then :
  2242. $as_echo_n "(cached) " >&6
  2243. else
  2244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2245. /* end confdefs.h. */
  2246. $5
  2247. int
  2248. main ()
  2249. {
  2250. static $2 ac_aggr;
  2251. if (ac_aggr.$3)
  2252. return 0;
  2253. ;
  2254. return 0;
  2255. }
  2256. _ACEOF
  2257. if ac_fn_c_try_compile "$LINENO"; then :
  2258. eval "$4=yes"
  2259. else
  2260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2261. /* end confdefs.h. */
  2262. $5
  2263. int
  2264. main ()
  2265. {
  2266. static $2 ac_aggr;
  2267. if (sizeof ac_aggr.$3)
  2268. return 0;
  2269. ;
  2270. return 0;
  2271. }
  2272. _ACEOF
  2273. if ac_fn_c_try_compile "$LINENO"; then :
  2274. eval "$4=yes"
  2275. else
  2276. eval "$4=no"
  2277. fi
  2278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2279. fi
  2280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2281. fi
  2282. eval ac_res=\$$4
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2284. $as_echo "$ac_res" >&6; }
  2285. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2286. } # ac_fn_c_check_member
  2287. cat >config.log <<_ACEOF
  2288. This file contains any messages produced by compilers while
  2289. running configure, to aid debugging if configure makes a mistake.
  2290. It was created by $as_me, which was
  2291. generated by GNU Autoconf 2.69. Invocation command line was
  2292. $ $0 $@
  2293. _ACEOF
  2294. exec 5>>config.log
  2295. {
  2296. cat <<_ASUNAME
  2297. ## --------- ##
  2298. ## Platform. ##
  2299. ## --------- ##
  2300. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2301. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2302. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2303. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2304. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2305. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2306. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2307. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2308. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2309. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2310. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2311. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2312. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2313. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2314. _ASUNAME
  2315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2316. for as_dir in $PATH
  2317. do
  2318. IFS=$as_save_IFS
  2319. test -z "$as_dir" && as_dir=.
  2320. $as_echo "PATH: $as_dir"
  2321. done
  2322. IFS=$as_save_IFS
  2323. } >&5
  2324. cat >&5 <<_ACEOF
  2325. ## ----------- ##
  2326. ## Core tests. ##
  2327. ## ----------- ##
  2328. _ACEOF
  2329. # Keep a trace of the command line.
  2330. # Strip out --no-create and --no-recursion so they do not pile up.
  2331. # Strip out --silent because we don't want to record it for future runs.
  2332. # Also quote any args containing shell meta-characters.
  2333. # Make two passes to allow for proper duplicate-argument suppression.
  2334. ac_configure_args=
  2335. ac_configure_args0=
  2336. ac_configure_args1=
  2337. ac_must_keep_next=false
  2338. for ac_pass in 1 2
  2339. do
  2340. for ac_arg
  2341. do
  2342. case $ac_arg in
  2343. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2344. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2345. | -silent | --silent | --silen | --sile | --sil)
  2346. continue ;;
  2347. *\'*)
  2348. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2349. esac
  2350. case $ac_pass in
  2351. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2352. 2)
  2353. as_fn_append ac_configure_args1 " '$ac_arg'"
  2354. if test $ac_must_keep_next = true; then
  2355. ac_must_keep_next=false # Got value, back to normal.
  2356. else
  2357. case $ac_arg in
  2358. *=* | --config-cache | -C | -disable-* | --disable-* \
  2359. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2360. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2361. | -with-* | --with-* | -without-* | --without-* | --x)
  2362. case "$ac_configure_args0 " in
  2363. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2364. esac
  2365. ;;
  2366. -* ) ac_must_keep_next=true ;;
  2367. esac
  2368. fi
  2369. as_fn_append ac_configure_args " '$ac_arg'"
  2370. ;;
  2371. esac
  2372. done
  2373. done
  2374. { ac_configure_args0=; unset ac_configure_args0;}
  2375. { ac_configure_args1=; unset ac_configure_args1;}
  2376. # When interrupted or exit'd, cleanup temporary files, and complete
  2377. # config.log. We remove comments because anyway the quotes in there
  2378. # would cause problems or look ugly.
  2379. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2380. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2381. trap 'exit_status=$?
  2382. # Save into config.log some information that might help in debugging.
  2383. {
  2384. echo
  2385. $as_echo "## ---------------- ##
  2386. ## Cache variables. ##
  2387. ## ---------------- ##"
  2388. echo
  2389. # The following way of writing the cache mishandles newlines in values,
  2390. (
  2391. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in #(
  2394. *${as_nl}*)
  2395. case $ac_var in #(
  2396. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2397. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2398. esac
  2399. case $ac_var in #(
  2400. _ | IFS | as_nl) ;; #(
  2401. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2402. *) { eval $ac_var=; unset $ac_var;} ;;
  2403. esac ;;
  2404. esac
  2405. done
  2406. (set) 2>&1 |
  2407. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2408. *${as_nl}ac_space=\ *)
  2409. sed -n \
  2410. "s/'\''/'\''\\\\'\'''\''/g;
  2411. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2412. ;; #(
  2413. *)
  2414. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2415. ;;
  2416. esac |
  2417. sort
  2418. )
  2419. echo
  2420. $as_echo "## ----------------- ##
  2421. ## Output variables. ##
  2422. ## ----------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_vars
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. $as_echo "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. if test -n "$ac_subst_files"; then
  2434. $as_echo "## ------------------- ##
  2435. ## File substitutions. ##
  2436. ## ------------------- ##"
  2437. echo
  2438. for ac_var in $ac_subst_files
  2439. do
  2440. eval ac_val=\$$ac_var
  2441. case $ac_val in
  2442. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2443. esac
  2444. $as_echo "$ac_var='\''$ac_val'\''"
  2445. done | sort
  2446. echo
  2447. fi
  2448. if test -s confdefs.h; then
  2449. $as_echo "## ----------- ##
  2450. ## confdefs.h. ##
  2451. ## ----------- ##"
  2452. echo
  2453. cat confdefs.h
  2454. echo
  2455. fi
  2456. test "$ac_signal" != 0 &&
  2457. $as_echo "$as_me: caught signal $ac_signal"
  2458. $as_echo "$as_me: exit $exit_status"
  2459. } >&5
  2460. rm -f core *.core core.conftest.* &&
  2461. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2462. exit $exit_status
  2463. ' 0
  2464. for ac_signal in 1 2 13 15; do
  2465. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2466. done
  2467. ac_signal=0
  2468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2469. rm -f -r conftest* confdefs.h
  2470. $as_echo "/* confdefs.h */" > confdefs.h
  2471. # Predefined preprocessor variables.
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_NAME "$PACKAGE_NAME"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_STRING "$PACKAGE_STRING"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2486. _ACEOF
  2487. cat >>confdefs.h <<_ACEOF
  2488. #define PACKAGE_URL "$PACKAGE_URL"
  2489. _ACEOF
  2490. # Let the site file select an alternate cache file if it wants to.
  2491. # Prefer an explicitly selected file to automatically selected ones.
  2492. ac_site_file1=NONE
  2493. ac_site_file2=NONE
  2494. if test -n "$CONFIG_SITE"; then
  2495. # We do not want a PATH search for config.site.
  2496. case $CONFIG_SITE in #((
  2497. -*) ac_site_file1=./$CONFIG_SITE;;
  2498. */*) ac_site_file1=$CONFIG_SITE;;
  2499. *) ac_site_file1=./$CONFIG_SITE;;
  2500. esac
  2501. elif test "x$prefix" != xNONE; then
  2502. ac_site_file1=$prefix/share/config.site
  2503. ac_site_file2=$prefix/etc/config.site
  2504. else
  2505. ac_site_file1=$ac_default_prefix/share/config.site
  2506. ac_site_file2=$ac_default_prefix/etc/config.site
  2507. fi
  2508. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2509. do
  2510. test "x$ac_site_file" = xNONE && continue
  2511. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2513. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2514. sed 's/^/| /' "$ac_site_file" >&5
  2515. . "$ac_site_file" \
  2516. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2518. as_fn_error $? "failed to load site script $ac_site_file
  2519. See \`config.log' for more details" "$LINENO" 5; }
  2520. fi
  2521. done
  2522. if test -r "$cache_file"; then
  2523. # Some versions of bash will fail to source /dev/null (special files
  2524. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2525. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2527. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2528. case $cache_file in
  2529. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2530. *) . "./$cache_file";;
  2531. esac
  2532. fi
  2533. else
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2535. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2536. >$cache_file
  2537. fi
  2538. # Check that the precious variables saved in the cache have kept the same
  2539. # value.
  2540. ac_cache_corrupted=false
  2541. for ac_var in $ac_precious_vars; do
  2542. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2543. eval ac_new_set=\$ac_env_${ac_var}_set
  2544. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2545. eval ac_new_val=\$ac_env_${ac_var}_value
  2546. case $ac_old_set,$ac_new_set in
  2547. set,)
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2549. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2550. ac_cache_corrupted=: ;;
  2551. ,set)
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2554. ac_cache_corrupted=: ;;
  2555. ,);;
  2556. *)
  2557. if test "x$ac_old_val" != "x$ac_new_val"; then
  2558. # differences in whitespace do not lead to failure.
  2559. ac_old_val_w=`echo x $ac_old_val`
  2560. ac_new_val_w=`echo x $ac_new_val`
  2561. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2563. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2564. ac_cache_corrupted=:
  2565. else
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2567. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2568. eval $ac_var=\$ac_old_val
  2569. fi
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2571. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2573. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2574. fi;;
  2575. esac
  2576. # Pass precious variables to config.status.
  2577. if test "$ac_new_set" = set; then
  2578. case $ac_new_val in
  2579. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2580. *) ac_arg=$ac_var=$ac_new_val ;;
  2581. esac
  2582. case " $ac_configure_args " in
  2583. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2584. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2585. esac
  2586. fi
  2587. done
  2588. if $ac_cache_corrupted; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2592. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2593. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2594. fi
  2595. ## -------------------- ##
  2596. ## Main body of script. ##
  2597. ## -------------------- ##
  2598. ac_ext=c
  2599. ac_cpp='$CPP $CPPFLAGS'
  2600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2603. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2604. ac_aux_dir=
  2605. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2606. if test -f "$ac_dir/install-sh"; then
  2607. ac_aux_dir=$ac_dir
  2608. ac_install_sh="$ac_aux_dir/install-sh -c"
  2609. break
  2610. elif test -f "$ac_dir/install.sh"; then
  2611. ac_aux_dir=$ac_dir
  2612. ac_install_sh="$ac_aux_dir/install.sh -c"
  2613. break
  2614. elif test -f "$ac_dir/shtool"; then
  2615. ac_aux_dir=$ac_dir
  2616. ac_install_sh="$ac_aux_dir/shtool install -c"
  2617. break
  2618. fi
  2619. done
  2620. if test -z "$ac_aux_dir"; then
  2621. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2622. fi
  2623. # These three variables are undocumented and unsupported,
  2624. # and are intended to be withdrawn in a future Autoconf release.
  2625. # They can cause serious problems if a builder's source tree is in a directory
  2626. # whose full name contains unusual characters.
  2627. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2628. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2629. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2630. orig_CFLAGS="$CFLAGS"
  2631. # See docs/release_checklist.md
  2632. SDL_MAJOR_VERSION=2
  2633. SDL_MINOR_VERSION=23
  2634. SDL_MICRO_VERSION=0
  2635. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2636. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  2637. case "$SDL_MINOR_VERSION" in #(
  2638. *[02468]) :
  2639. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  2640. *) :
  2641. SDL_INTERFACE_AGE=0 ;; #(
  2642. *) :
  2643. ;;
  2644. esac
  2645. # libtool versioning
  2646. case `pwd` in
  2647. *\ * | *\ *)
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2649. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2650. esac
  2651. macro_version='2.4.6'
  2652. macro_revision='2.4.6'
  2653. ltmain=$ac_aux_dir/ltmain.sh
  2654. # Make sure we can run config.sub.
  2655. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2656. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2658. $as_echo_n "checking build system type... " >&6; }
  2659. if ${ac_cv_build+:} false; then :
  2660. $as_echo_n "(cached) " >&6
  2661. else
  2662. ac_build_alias=$build_alias
  2663. test "x$ac_build_alias" = x &&
  2664. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2665. test "x$ac_build_alias" = x &&
  2666. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2667. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2668. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2669. fi
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2671. $as_echo "$ac_cv_build" >&6; }
  2672. case $ac_cv_build in
  2673. *-*-*) ;;
  2674. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2675. esac
  2676. build=$ac_cv_build
  2677. ac_save_IFS=$IFS; IFS='-'
  2678. set x $ac_cv_build
  2679. shift
  2680. build_cpu=$1
  2681. build_vendor=$2
  2682. shift; shift
  2683. # Remember, the first character of IFS is used to create $*,
  2684. # except with old shells:
  2685. build_os=$*
  2686. IFS=$ac_save_IFS
  2687. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2689. $as_echo_n "checking host system type... " >&6; }
  2690. if ${ac_cv_host+:} false; then :
  2691. $as_echo_n "(cached) " >&6
  2692. else
  2693. if test "x$host_alias" = x; then
  2694. ac_cv_host=$ac_cv_build
  2695. else
  2696. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2697. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2698. fi
  2699. fi
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2701. $as_echo "$ac_cv_host" >&6; }
  2702. case $ac_cv_host in
  2703. *-*-*) ;;
  2704. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2705. esac
  2706. host=$ac_cv_host
  2707. ac_save_IFS=$IFS; IFS='-'
  2708. set x $ac_cv_host
  2709. shift
  2710. host_cpu=$1
  2711. host_vendor=$2
  2712. shift; shift
  2713. # Remember, the first character of IFS is used to create $*,
  2714. # except with old shells:
  2715. host_os=$*
  2716. IFS=$ac_save_IFS
  2717. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2718. # Backslashify metacharacters that are still active within
  2719. # double-quoted strings.
  2720. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2721. # Same as above, but do not quote variable references.
  2722. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2723. # Sed substitution to delay expansion of an escaped shell variable in a
  2724. # double_quote_subst'ed string.
  2725. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2726. # Sed substitution to delay expansion of an escaped single quote.
  2727. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2728. # Sed substitution to avoid accidental globbing in evaled expressions
  2729. no_glob_subst='s/\*/\\\*/g'
  2730. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2731. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2732. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2734. $as_echo_n "checking how to print strings... " >&6; }
  2735. # Test print first, because it will be a builtin if present.
  2736. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2737. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2738. ECHO='print -r --'
  2739. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2740. ECHO='printf %s\n'
  2741. else
  2742. # Use this function as a fallback that always works.
  2743. func_fallback_echo ()
  2744. {
  2745. eval 'cat <<_LTECHO_EOF
  2746. $1
  2747. _LTECHO_EOF'
  2748. }
  2749. ECHO='func_fallback_echo'
  2750. fi
  2751. # func_echo_all arg...
  2752. # Invoke $ECHO with all args, space-separated.
  2753. func_echo_all ()
  2754. {
  2755. $ECHO ""
  2756. }
  2757. case $ECHO in
  2758. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2759. $as_echo "printf" >&6; } ;;
  2760. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2761. $as_echo "print -r" >&6; } ;;
  2762. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2763. $as_echo "cat" >&6; } ;;
  2764. esac
  2765. ac_ext=c
  2766. ac_cpp='$CPP $CPPFLAGS'
  2767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2770. if test -n "$ac_tool_prefix"; then
  2771. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2772. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2774. $as_echo_n "checking for $ac_word... " >&6; }
  2775. if ${ac_cv_prog_CC+:} false; then :
  2776. $as_echo_n "(cached) " >&6
  2777. else
  2778. if test -n "$CC"; then
  2779. ac_cv_prog_CC="$CC" # Let the user override the test.
  2780. else
  2781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2782. for as_dir in $PATH
  2783. do
  2784. IFS=$as_save_IFS
  2785. test -z "$as_dir" && as_dir=.
  2786. for ac_exec_ext in '' $ac_executable_extensions; do
  2787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2788. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2790. break 2
  2791. fi
  2792. done
  2793. done
  2794. IFS=$as_save_IFS
  2795. fi
  2796. fi
  2797. CC=$ac_cv_prog_CC
  2798. if test -n "$CC"; then
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2800. $as_echo "$CC" >&6; }
  2801. else
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2803. $as_echo "no" >&6; }
  2804. fi
  2805. fi
  2806. if test -z "$ac_cv_prog_CC"; then
  2807. ac_ct_CC=$CC
  2808. # Extract the first word of "gcc", so it can be a program name with args.
  2809. set dummy gcc; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$ac_ct_CC"; then
  2816. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2825. ac_cv_prog_ac_ct_CC="gcc"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2835. if test -n "$ac_ct_CC"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2837. $as_echo "$ac_ct_CC" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. if test "x$ac_ct_CC" = x; then
  2843. CC=""
  2844. else
  2845. case $cross_compiling:$ac_tool_warned in
  2846. yes:)
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2849. ac_tool_warned=yes ;;
  2850. esac
  2851. CC=$ac_ct_CC
  2852. fi
  2853. else
  2854. CC="$ac_cv_prog_CC"
  2855. fi
  2856. if test -z "$CC"; then
  2857. if test -n "$ac_tool_prefix"; then
  2858. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2859. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2861. $as_echo_n "checking for $ac_word... " >&6; }
  2862. if ${ac_cv_prog_CC+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. if test -n "$CC"; then
  2866. ac_cv_prog_CC="$CC" # Let the user override the test.
  2867. else
  2868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2869. for as_dir in $PATH
  2870. do
  2871. IFS=$as_save_IFS
  2872. test -z "$as_dir" && as_dir=.
  2873. for ac_exec_ext in '' $ac_executable_extensions; do
  2874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2875. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2877. break 2
  2878. fi
  2879. done
  2880. done
  2881. IFS=$as_save_IFS
  2882. fi
  2883. fi
  2884. CC=$ac_cv_prog_CC
  2885. if test -n "$CC"; then
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2887. $as_echo "$CC" >&6; }
  2888. else
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2890. $as_echo "no" >&6; }
  2891. fi
  2892. fi
  2893. fi
  2894. if test -z "$CC"; then
  2895. # Extract the first word of "cc", so it can be a program name with args.
  2896. set dummy cc; ac_word=$2
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2898. $as_echo_n "checking for $ac_word... " >&6; }
  2899. if ${ac_cv_prog_CC+:} false; then :
  2900. $as_echo_n "(cached) " >&6
  2901. else
  2902. if test -n "$CC"; then
  2903. ac_cv_prog_CC="$CC" # Let the user override the test.
  2904. else
  2905. ac_prog_rejected=no
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2913. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2914. ac_prog_rejected=yes
  2915. continue
  2916. fi
  2917. ac_cv_prog_CC="cc"
  2918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2919. break 2
  2920. fi
  2921. done
  2922. done
  2923. IFS=$as_save_IFS
  2924. if test $ac_prog_rejected = yes; then
  2925. # We found a bogon in the path, so make sure we never use it.
  2926. set dummy $ac_cv_prog_CC
  2927. shift
  2928. if test $# != 0; then
  2929. # We chose a different compiler from the bogus one.
  2930. # However, it has the same basename, so the bogon will be chosen
  2931. # first if we set CC to just the basename; use the full file name.
  2932. shift
  2933. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2934. fi
  2935. fi
  2936. fi
  2937. fi
  2938. CC=$ac_cv_prog_CC
  2939. if test -n "$CC"; then
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2941. $as_echo "$CC" >&6; }
  2942. else
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2944. $as_echo "no" >&6; }
  2945. fi
  2946. fi
  2947. if test -z "$CC"; then
  2948. if test -n "$ac_tool_prefix"; then
  2949. for ac_prog in cl.exe
  2950. do
  2951. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2952. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2954. $as_echo_n "checking for $ac_word... " >&6; }
  2955. if ${ac_cv_prog_CC+:} false; then :
  2956. $as_echo_n "(cached) " >&6
  2957. else
  2958. if test -n "$CC"; then
  2959. ac_cv_prog_CC="$CC" # Let the user override the test.
  2960. else
  2961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2962. for as_dir in $PATH
  2963. do
  2964. IFS=$as_save_IFS
  2965. test -z "$as_dir" && as_dir=.
  2966. for ac_exec_ext in '' $ac_executable_extensions; do
  2967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2968. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2970. break 2
  2971. fi
  2972. done
  2973. done
  2974. IFS=$as_save_IFS
  2975. fi
  2976. fi
  2977. CC=$ac_cv_prog_CC
  2978. if test -n "$CC"; then
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2980. $as_echo "$CC" >&6; }
  2981. else
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2983. $as_echo "no" >&6; }
  2984. fi
  2985. test -n "$CC" && break
  2986. done
  2987. fi
  2988. if test -z "$CC"; then
  2989. ac_ct_CC=$CC
  2990. for ac_prog in cl.exe
  2991. do
  2992. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2993. set dummy $ac_prog; ac_word=$2
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2995. $as_echo_n "checking for $ac_word... " >&6; }
  2996. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2997. $as_echo_n "(cached) " >&6
  2998. else
  2999. if test -n "$ac_ct_CC"; then
  3000. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3001. else
  3002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3003. for as_dir in $PATH
  3004. do
  3005. IFS=$as_save_IFS
  3006. test -z "$as_dir" && as_dir=.
  3007. for ac_exec_ext in '' $ac_executable_extensions; do
  3008. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3009. ac_cv_prog_ac_ct_CC="$ac_prog"
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3011. break 2
  3012. fi
  3013. done
  3014. done
  3015. IFS=$as_save_IFS
  3016. fi
  3017. fi
  3018. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3019. if test -n "$ac_ct_CC"; then
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3021. $as_echo "$ac_ct_CC" >&6; }
  3022. else
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3024. $as_echo "no" >&6; }
  3025. fi
  3026. test -n "$ac_ct_CC" && break
  3027. done
  3028. if test "x$ac_ct_CC" = x; then
  3029. CC=""
  3030. else
  3031. case $cross_compiling:$ac_tool_warned in
  3032. yes:)
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3034. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3035. ac_tool_warned=yes ;;
  3036. esac
  3037. CC=$ac_ct_CC
  3038. fi
  3039. fi
  3040. fi
  3041. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3042. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3043. as_fn_error $? "no acceptable C compiler found in \$PATH
  3044. See \`config.log' for more details" "$LINENO" 5; }
  3045. # Provide some information about the compiler.
  3046. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3047. set X $ac_compile
  3048. ac_compiler=$2
  3049. for ac_option in --version -v -V -qversion; do
  3050. { { ac_try="$ac_compiler $ac_option >&5"
  3051. case "(($ac_try" in
  3052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053. *) ac_try_echo=$ac_try;;
  3054. esac
  3055. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3056. $as_echo "$ac_try_echo"; } >&5
  3057. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3058. ac_status=$?
  3059. if test -s conftest.err; then
  3060. sed '10a\
  3061. ... rest of stderr output deleted ...
  3062. 10q' conftest.err >conftest.er1
  3063. cat conftest.er1 >&5
  3064. fi
  3065. rm -f conftest.er1 conftest.err
  3066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3067. test $ac_status = 0; }
  3068. done
  3069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3070. /* end confdefs.h. */
  3071. int
  3072. main ()
  3073. {
  3074. ;
  3075. return 0;
  3076. }
  3077. _ACEOF
  3078. ac_clean_files_save=$ac_clean_files
  3079. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3080. # Try to create an executable without -o first, disregard a.out.
  3081. # It will help us diagnose broken compilers, and finding out an intuition
  3082. # of exeext.
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3084. $as_echo_n "checking whether the C compiler works... " >&6; }
  3085. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3086. # The possible output files:
  3087. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3088. ac_rmfiles=
  3089. for ac_file in $ac_files
  3090. do
  3091. case $ac_file in
  3092. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3093. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3094. esac
  3095. done
  3096. rm -f $ac_rmfiles
  3097. if { { ac_try="$ac_link_default"
  3098. case "(($ac_try" in
  3099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3100. *) ac_try_echo=$ac_try;;
  3101. esac
  3102. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3103. $as_echo "$ac_try_echo"; } >&5
  3104. (eval "$ac_link_default") 2>&5
  3105. ac_status=$?
  3106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3107. test $ac_status = 0; }; then :
  3108. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3109. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3110. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3111. # so that the user can short-circuit this test for compilers unknown to
  3112. # Autoconf.
  3113. for ac_file in $ac_files ''
  3114. do
  3115. test -f "$ac_file" || continue
  3116. case $ac_file in
  3117. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3118. ;;
  3119. [ab].out )
  3120. # We found the default executable, but exeext='' is most
  3121. # certainly right.
  3122. break;;
  3123. *.* )
  3124. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3125. then :; else
  3126. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3127. fi
  3128. # We set ac_cv_exeext here because the later test for it is not
  3129. # safe: cross compilers may not add the suffix if given an `-o'
  3130. # argument, so we may need to know it at that point already.
  3131. # Even if this section looks crufty: it has the advantage of
  3132. # actually working.
  3133. break;;
  3134. * )
  3135. break;;
  3136. esac
  3137. done
  3138. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3139. else
  3140. ac_file=''
  3141. fi
  3142. if test -z "$ac_file"; then :
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3144. $as_echo "no" >&6; }
  3145. $as_echo "$as_me: failed program was:" >&5
  3146. sed 's/^/| /' conftest.$ac_ext >&5
  3147. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3149. as_fn_error 77 "C compiler cannot create executables
  3150. See \`config.log' for more details" "$LINENO" 5; }
  3151. else
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3153. $as_echo "yes" >&6; }
  3154. fi
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3156. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3158. $as_echo "$ac_file" >&6; }
  3159. ac_exeext=$ac_cv_exeext
  3160. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3161. ac_clean_files=$ac_clean_files_save
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3163. $as_echo_n "checking for suffix of executables... " >&6; }
  3164. if { { ac_try="$ac_link"
  3165. case "(($ac_try" in
  3166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3167. *) ac_try_echo=$ac_try;;
  3168. esac
  3169. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3170. $as_echo "$ac_try_echo"; } >&5
  3171. (eval "$ac_link") 2>&5
  3172. ac_status=$?
  3173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3174. test $ac_status = 0; }; then :
  3175. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3176. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3177. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3178. # `rm'.
  3179. for ac_file in conftest.exe conftest conftest.*; do
  3180. test -f "$ac_file" || continue
  3181. case $ac_file in
  3182. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3183. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3184. break;;
  3185. * ) break;;
  3186. esac
  3187. done
  3188. else
  3189. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3190. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3191. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3192. See \`config.log' for more details" "$LINENO" 5; }
  3193. fi
  3194. rm -f conftest conftest$ac_cv_exeext
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3196. $as_echo "$ac_cv_exeext" >&6; }
  3197. rm -f conftest.$ac_ext
  3198. EXEEXT=$ac_cv_exeext
  3199. ac_exeext=$EXEEXT
  3200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3201. /* end confdefs.h. */
  3202. #include <stdio.h>
  3203. int
  3204. main ()
  3205. {
  3206. FILE *f = fopen ("conftest.out", "w");
  3207. return ferror (f) || fclose (f) != 0;
  3208. ;
  3209. return 0;
  3210. }
  3211. _ACEOF
  3212. ac_clean_files="$ac_clean_files conftest.out"
  3213. # Check that the compiler produces executables we can run. If not, either
  3214. # the compiler is broken, or we cross compile.
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3216. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3217. if test "$cross_compiling" != yes; then
  3218. { { ac_try="$ac_link"
  3219. case "(($ac_try" in
  3220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3221. *) ac_try_echo=$ac_try;;
  3222. esac
  3223. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3224. $as_echo "$ac_try_echo"; } >&5
  3225. (eval "$ac_link") 2>&5
  3226. ac_status=$?
  3227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3228. test $ac_status = 0; }
  3229. if { ac_try='./conftest$ac_cv_exeext'
  3230. { { case "(($ac_try" in
  3231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3232. *) ac_try_echo=$ac_try;;
  3233. esac
  3234. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3235. $as_echo "$ac_try_echo"; } >&5
  3236. (eval "$ac_try") 2>&5
  3237. ac_status=$?
  3238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3239. test $ac_status = 0; }; }; then
  3240. cross_compiling=no
  3241. else
  3242. if test "$cross_compiling" = maybe; then
  3243. cross_compiling=yes
  3244. else
  3245. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3246. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3247. as_fn_error $? "cannot run C compiled programs.
  3248. If you meant to cross compile, use \`--host'.
  3249. See \`config.log' for more details" "$LINENO" 5; }
  3250. fi
  3251. fi
  3252. fi
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3254. $as_echo "$cross_compiling" >&6; }
  3255. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3256. ac_clean_files=$ac_clean_files_save
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3258. $as_echo_n "checking for suffix of object files... " >&6; }
  3259. if ${ac_cv_objext+:} false; then :
  3260. $as_echo_n "(cached) " >&6
  3261. else
  3262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3263. /* end confdefs.h. */
  3264. int
  3265. main ()
  3266. {
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. rm -f conftest.o conftest.obj
  3272. if { { ac_try="$ac_compile"
  3273. case "(($ac_try" in
  3274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3275. *) ac_try_echo=$ac_try;;
  3276. esac
  3277. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3278. $as_echo "$ac_try_echo"; } >&5
  3279. (eval "$ac_compile") 2>&5
  3280. ac_status=$?
  3281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3282. test $ac_status = 0; }; then :
  3283. for ac_file in conftest.o conftest.obj conftest.*; do
  3284. test -f "$ac_file" || continue;
  3285. case $ac_file in
  3286. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3287. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3288. break;;
  3289. esac
  3290. done
  3291. else
  3292. $as_echo "$as_me: failed program was:" >&5
  3293. sed 's/^/| /' conftest.$ac_ext >&5
  3294. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3295. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3296. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3297. See \`config.log' for more details" "$LINENO" 5; }
  3298. fi
  3299. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3300. fi
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3302. $as_echo "$ac_cv_objext" >&6; }
  3303. OBJEXT=$ac_cv_objext
  3304. ac_objext=$OBJEXT
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3306. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3307. if ${ac_cv_c_compiler_gnu+:} false; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3311. /* end confdefs.h. */
  3312. int
  3313. main ()
  3314. {
  3315. #ifndef __GNUC__
  3316. choke me
  3317. #endif
  3318. ;
  3319. return 0;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_c_try_compile "$LINENO"; then :
  3323. ac_compiler_gnu=yes
  3324. else
  3325. ac_compiler_gnu=no
  3326. fi
  3327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3328. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3329. fi
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3331. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3332. if test $ac_compiler_gnu = yes; then
  3333. GCC=yes
  3334. else
  3335. GCC=
  3336. fi
  3337. ac_test_CFLAGS=${CFLAGS+set}
  3338. ac_save_CFLAGS=$CFLAGS
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3340. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3341. if ${ac_cv_prog_cc_g+:} false; then :
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. ac_save_c_werror_flag=$ac_c_werror_flag
  3345. ac_c_werror_flag=yes
  3346. ac_cv_prog_cc_g=no
  3347. CFLAGS="-g"
  3348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3349. /* end confdefs.h. */
  3350. int
  3351. main ()
  3352. {
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. if ac_fn_c_try_compile "$LINENO"; then :
  3358. ac_cv_prog_cc_g=yes
  3359. else
  3360. CFLAGS=""
  3361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3362. /* end confdefs.h. */
  3363. int
  3364. main ()
  3365. {
  3366. ;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. if ac_fn_c_try_compile "$LINENO"; then :
  3371. else
  3372. ac_c_werror_flag=$ac_save_c_werror_flag
  3373. CFLAGS="-g"
  3374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3375. /* end confdefs.h. */
  3376. int
  3377. main ()
  3378. {
  3379. ;
  3380. return 0;
  3381. }
  3382. _ACEOF
  3383. if ac_fn_c_try_compile "$LINENO"; then :
  3384. ac_cv_prog_cc_g=yes
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3387. fi
  3388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3389. fi
  3390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3391. ac_c_werror_flag=$ac_save_c_werror_flag
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3394. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3395. if test "$ac_test_CFLAGS" = set; then
  3396. CFLAGS=$ac_save_CFLAGS
  3397. elif test $ac_cv_prog_cc_g = yes; then
  3398. if test "$GCC" = yes; then
  3399. CFLAGS="-g -O2"
  3400. else
  3401. CFLAGS="-g"
  3402. fi
  3403. else
  3404. if test "$GCC" = yes; then
  3405. CFLAGS="-O2"
  3406. else
  3407. CFLAGS=
  3408. fi
  3409. fi
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3411. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3412. if ${ac_cv_prog_cc_c89+:} false; then :
  3413. $as_echo_n "(cached) " >&6
  3414. else
  3415. ac_cv_prog_cc_c89=no
  3416. ac_save_CC=$CC
  3417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3418. /* end confdefs.h. */
  3419. #include <stdarg.h>
  3420. #include <stdio.h>
  3421. struct stat;
  3422. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3423. struct buf { int x; };
  3424. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3425. static char *e (p, i)
  3426. char **p;
  3427. int i;
  3428. {
  3429. return p[i];
  3430. }
  3431. static char *f (char * (*g) (char **, int), char **p, ...)
  3432. {
  3433. char *s;
  3434. va_list v;
  3435. va_start (v,p);
  3436. s = g (p, va_arg (v,int));
  3437. va_end (v);
  3438. return s;
  3439. }
  3440. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3441. function prototypes and stuff, but not '\xHH' hex character constants.
  3442. These don't provoke an error unfortunately, instead are silently treated
  3443. as 'x'. The following induces an error, until -std is added to get
  3444. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3445. array size at least. It's necessary to write '\x00'==0 to get something
  3446. that's true only with -std. */
  3447. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3448. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3449. inside strings and character constants. */
  3450. #define FOO(x) 'x'
  3451. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3452. int test (int i, double x);
  3453. struct s1 {int (*f) (int a);};
  3454. struct s2 {int (*f) (double a);};
  3455. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3456. int argc;
  3457. char **argv;
  3458. int
  3459. main ()
  3460. {
  3461. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3462. ;
  3463. return 0;
  3464. }
  3465. _ACEOF
  3466. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3467. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3468. do
  3469. CC="$ac_save_CC $ac_arg"
  3470. if ac_fn_c_try_compile "$LINENO"; then :
  3471. ac_cv_prog_cc_c89=$ac_arg
  3472. fi
  3473. rm -f core conftest.err conftest.$ac_objext
  3474. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3475. done
  3476. rm -f conftest.$ac_ext
  3477. CC=$ac_save_CC
  3478. fi
  3479. # AC_CACHE_VAL
  3480. case "x$ac_cv_prog_cc_c89" in
  3481. x)
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3483. $as_echo "none needed" >&6; } ;;
  3484. xno)
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3486. $as_echo "unsupported" >&6; } ;;
  3487. *)
  3488. CC="$CC $ac_cv_prog_cc_c89"
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3490. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3491. esac
  3492. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3493. fi
  3494. ac_ext=c
  3495. ac_cpp='$CPP $CPPFLAGS'
  3496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3500. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3501. if ${ac_cv_path_SED+:} false; then :
  3502. $as_echo_n "(cached) " >&6
  3503. else
  3504. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3505. for ac_i in 1 2 3 4 5 6 7; do
  3506. ac_script="$ac_script$as_nl$ac_script"
  3507. done
  3508. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3509. { ac_script=; unset ac_script;}
  3510. if test -z "$SED"; then
  3511. ac_path_SED_found=false
  3512. # Loop through the user's path and test for each of PROGNAME-LIST
  3513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3514. for as_dir in $PATH
  3515. do
  3516. IFS=$as_save_IFS
  3517. test -z "$as_dir" && as_dir=.
  3518. for ac_prog in sed gsed; do
  3519. for ac_exec_ext in '' $ac_executable_extensions; do
  3520. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3521. as_fn_executable_p "$ac_path_SED" || continue
  3522. # Check for GNU ac_path_SED and select it if it is found.
  3523. # Check for GNU $ac_path_SED
  3524. case `"$ac_path_SED" --version 2>&1` in
  3525. *GNU*)
  3526. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3527. *)
  3528. ac_count=0
  3529. $as_echo_n 0123456789 >"conftest.in"
  3530. while :
  3531. do
  3532. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3533. mv "conftest.tmp" "conftest.in"
  3534. cp "conftest.in" "conftest.nl"
  3535. $as_echo '' >> "conftest.nl"
  3536. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3537. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3538. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3539. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3540. # Best one so far, save it but keep looking for a better one
  3541. ac_cv_path_SED="$ac_path_SED"
  3542. ac_path_SED_max=$ac_count
  3543. fi
  3544. # 10*(2^10) chars as input seems more than enough
  3545. test $ac_count -gt 10 && break
  3546. done
  3547. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3548. esac
  3549. $ac_path_SED_found && break 3
  3550. done
  3551. done
  3552. done
  3553. IFS=$as_save_IFS
  3554. if test -z "$ac_cv_path_SED"; then
  3555. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3556. fi
  3557. else
  3558. ac_cv_path_SED=$SED
  3559. fi
  3560. fi
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3562. $as_echo "$ac_cv_path_SED" >&6; }
  3563. SED="$ac_cv_path_SED"
  3564. rm -f conftest.sed
  3565. test -z "$SED" && SED=sed
  3566. Xsed="$SED -e 1s/^X//"
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3568. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3569. if ${ac_cv_path_GREP+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. if test -z "$GREP"; then
  3573. ac_path_GREP_found=false
  3574. # Loop through the user's path and test for each of PROGNAME-LIST
  3575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3576. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3577. do
  3578. IFS=$as_save_IFS
  3579. test -z "$as_dir" && as_dir=.
  3580. for ac_prog in grep ggrep; do
  3581. for ac_exec_ext in '' $ac_executable_extensions; do
  3582. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3583. as_fn_executable_p "$ac_path_GREP" || continue
  3584. # Check for GNU ac_path_GREP and select it if it is found.
  3585. # Check for GNU $ac_path_GREP
  3586. case `"$ac_path_GREP" --version 2>&1` in
  3587. *GNU*)
  3588. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3589. *)
  3590. ac_count=0
  3591. $as_echo_n 0123456789 >"conftest.in"
  3592. while :
  3593. do
  3594. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3595. mv "conftest.tmp" "conftest.in"
  3596. cp "conftest.in" "conftest.nl"
  3597. $as_echo 'GREP' >> "conftest.nl"
  3598. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3599. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3600. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3601. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3602. # Best one so far, save it but keep looking for a better one
  3603. ac_cv_path_GREP="$ac_path_GREP"
  3604. ac_path_GREP_max=$ac_count
  3605. fi
  3606. # 10*(2^10) chars as input seems more than enough
  3607. test $ac_count -gt 10 && break
  3608. done
  3609. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3610. esac
  3611. $ac_path_GREP_found && break 3
  3612. done
  3613. done
  3614. done
  3615. IFS=$as_save_IFS
  3616. if test -z "$ac_cv_path_GREP"; then
  3617. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3618. fi
  3619. else
  3620. ac_cv_path_GREP=$GREP
  3621. fi
  3622. fi
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3624. $as_echo "$ac_cv_path_GREP" >&6; }
  3625. GREP="$ac_cv_path_GREP"
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3627. $as_echo_n "checking for egrep... " >&6; }
  3628. if ${ac_cv_path_EGREP+:} false; then :
  3629. $as_echo_n "(cached) " >&6
  3630. else
  3631. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3632. then ac_cv_path_EGREP="$GREP -E"
  3633. else
  3634. if test -z "$EGREP"; then
  3635. ac_path_EGREP_found=false
  3636. # Loop through the user's path and test for each of PROGNAME-LIST
  3637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3638. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3639. do
  3640. IFS=$as_save_IFS
  3641. test -z "$as_dir" && as_dir=.
  3642. for ac_prog in egrep; do
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3645. as_fn_executable_p "$ac_path_EGREP" || continue
  3646. # Check for GNU ac_path_EGREP and select it if it is found.
  3647. # Check for GNU $ac_path_EGREP
  3648. case `"$ac_path_EGREP" --version 2>&1` in
  3649. *GNU*)
  3650. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3651. *)
  3652. ac_count=0
  3653. $as_echo_n 0123456789 >"conftest.in"
  3654. while :
  3655. do
  3656. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3657. mv "conftest.tmp" "conftest.in"
  3658. cp "conftest.in" "conftest.nl"
  3659. $as_echo 'EGREP' >> "conftest.nl"
  3660. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3661. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3662. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3663. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3664. # Best one so far, save it but keep looking for a better one
  3665. ac_cv_path_EGREP="$ac_path_EGREP"
  3666. ac_path_EGREP_max=$ac_count
  3667. fi
  3668. # 10*(2^10) chars as input seems more than enough
  3669. test $ac_count -gt 10 && break
  3670. done
  3671. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3672. esac
  3673. $ac_path_EGREP_found && break 3
  3674. done
  3675. done
  3676. done
  3677. IFS=$as_save_IFS
  3678. if test -z "$ac_cv_path_EGREP"; then
  3679. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3680. fi
  3681. else
  3682. ac_cv_path_EGREP=$EGREP
  3683. fi
  3684. fi
  3685. fi
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3687. $as_echo "$ac_cv_path_EGREP" >&6; }
  3688. EGREP="$ac_cv_path_EGREP"
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3690. $as_echo_n "checking for fgrep... " >&6; }
  3691. if ${ac_cv_path_FGREP+:} false; then :
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3695. then ac_cv_path_FGREP="$GREP -F"
  3696. else
  3697. if test -z "$FGREP"; then
  3698. ac_path_FGREP_found=false
  3699. # Loop through the user's path and test for each of PROGNAME-LIST
  3700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3701. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3702. do
  3703. IFS=$as_save_IFS
  3704. test -z "$as_dir" && as_dir=.
  3705. for ac_prog in fgrep; do
  3706. for ac_exec_ext in '' $ac_executable_extensions; do
  3707. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3708. as_fn_executable_p "$ac_path_FGREP" || continue
  3709. # Check for GNU ac_path_FGREP and select it if it is found.
  3710. # Check for GNU $ac_path_FGREP
  3711. case `"$ac_path_FGREP" --version 2>&1` in
  3712. *GNU*)
  3713. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3714. *)
  3715. ac_count=0
  3716. $as_echo_n 0123456789 >"conftest.in"
  3717. while :
  3718. do
  3719. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3720. mv "conftest.tmp" "conftest.in"
  3721. cp "conftest.in" "conftest.nl"
  3722. $as_echo 'FGREP' >> "conftest.nl"
  3723. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3724. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3725. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3726. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3727. # Best one so far, save it but keep looking for a better one
  3728. ac_cv_path_FGREP="$ac_path_FGREP"
  3729. ac_path_FGREP_max=$ac_count
  3730. fi
  3731. # 10*(2^10) chars as input seems more than enough
  3732. test $ac_count -gt 10 && break
  3733. done
  3734. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3735. esac
  3736. $ac_path_FGREP_found && break 3
  3737. done
  3738. done
  3739. done
  3740. IFS=$as_save_IFS
  3741. if test -z "$ac_cv_path_FGREP"; then
  3742. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3743. fi
  3744. else
  3745. ac_cv_path_FGREP=$FGREP
  3746. fi
  3747. fi
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3750. $as_echo "$ac_cv_path_FGREP" >&6; }
  3751. FGREP="$ac_cv_path_FGREP"
  3752. test -z "$GREP" && GREP=grep
  3753. # Check whether --with-gnu-ld was given.
  3754. if test "${with_gnu_ld+set}" = set; then :
  3755. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3756. else
  3757. with_gnu_ld=no
  3758. fi
  3759. ac_prog=ld
  3760. if test yes = "$GCC"; then
  3761. # Check if gcc -print-prog-name=ld gives a path.
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3763. $as_echo_n "checking for ld used by $CC... " >&6; }
  3764. case $host in
  3765. *-*-mingw*)
  3766. # gcc leaves a trailing carriage return, which upsets mingw
  3767. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3768. *)
  3769. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3770. esac
  3771. case $ac_prog in
  3772. # Accept absolute paths.
  3773. [\\/]* | ?:[\\/]*)
  3774. re_direlt='/[^/][^/]*/\.\./'
  3775. # Canonicalize the pathname of ld
  3776. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3777. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3778. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3779. done
  3780. test -z "$LD" && LD=$ac_prog
  3781. ;;
  3782. "")
  3783. # If it fails, then pretend we aren't using GCC.
  3784. ac_prog=ld
  3785. ;;
  3786. *)
  3787. # If it is relative, then search for the first ld in PATH.
  3788. with_gnu_ld=unknown
  3789. ;;
  3790. esac
  3791. elif test yes = "$with_gnu_ld"; then
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3793. $as_echo_n "checking for GNU ld... " >&6; }
  3794. else
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3796. $as_echo_n "checking for non-GNU ld... " >&6; }
  3797. fi
  3798. if ${lt_cv_path_LD+:} false; then :
  3799. $as_echo_n "(cached) " >&6
  3800. else
  3801. if test -z "$LD"; then
  3802. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3803. for ac_dir in $PATH; do
  3804. IFS=$lt_save_ifs
  3805. test -z "$ac_dir" && ac_dir=.
  3806. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3807. lt_cv_path_LD=$ac_dir/$ac_prog
  3808. # Check to see if the program is GNU ld. I'd rather use --version,
  3809. # but apparently some variants of GNU ld only accept -v.
  3810. # Break only if it was the GNU/non-GNU ld that we prefer.
  3811. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3812. *GNU* | *'with BFD'*)
  3813. test no != "$with_gnu_ld" && break
  3814. ;;
  3815. *)
  3816. test yes != "$with_gnu_ld" && break
  3817. ;;
  3818. esac
  3819. fi
  3820. done
  3821. IFS=$lt_save_ifs
  3822. else
  3823. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3824. fi
  3825. fi
  3826. LD=$lt_cv_path_LD
  3827. if test -n "$LD"; then
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3829. $as_echo "$LD" >&6; }
  3830. else
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3832. $as_echo "no" >&6; }
  3833. fi
  3834. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3836. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3837. if ${lt_cv_prog_gnu_ld+:} false; then :
  3838. $as_echo_n "(cached) " >&6
  3839. else
  3840. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3841. case `$LD -v 2>&1 </dev/null` in
  3842. *GNU* | *'with BFD'*)
  3843. lt_cv_prog_gnu_ld=yes
  3844. ;;
  3845. *)
  3846. lt_cv_prog_gnu_ld=no
  3847. ;;
  3848. esac
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3851. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3852. with_gnu_ld=$lt_cv_prog_gnu_ld
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3854. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3855. if ${lt_cv_path_NM+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -n "$NM"; then
  3859. # Let the user override the test.
  3860. lt_cv_path_NM=$NM
  3861. else
  3862. lt_nm_to_check=${ac_tool_prefix}nm
  3863. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3864. lt_nm_to_check="$lt_nm_to_check nm"
  3865. fi
  3866. for lt_tmp_nm in $lt_nm_to_check; do
  3867. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3868. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3869. IFS=$lt_save_ifs
  3870. test -z "$ac_dir" && ac_dir=.
  3871. tmp_nm=$ac_dir/$lt_tmp_nm
  3872. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3873. # Check to see if the nm accepts a BSD-compat flag.
  3874. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3875. # nm: unknown option "B" ignored
  3876. # Tru64's nm complains that /dev/null is an invalid object file
  3877. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3878. case $build_os in
  3879. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3880. *) lt_bad_file=/dev/null ;;
  3881. esac
  3882. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3883. *$lt_bad_file* | *'Invalid file or object type'*)
  3884. lt_cv_path_NM="$tmp_nm -B"
  3885. break 2
  3886. ;;
  3887. *)
  3888. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3889. */dev/null*)
  3890. lt_cv_path_NM="$tmp_nm -p"
  3891. break 2
  3892. ;;
  3893. *)
  3894. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3895. continue # so that we can try to find one that supports BSD flags
  3896. ;;
  3897. esac
  3898. ;;
  3899. esac
  3900. fi
  3901. done
  3902. IFS=$lt_save_ifs
  3903. done
  3904. : ${lt_cv_path_NM=no}
  3905. fi
  3906. fi
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3908. $as_echo "$lt_cv_path_NM" >&6; }
  3909. if test no != "$lt_cv_path_NM"; then
  3910. NM=$lt_cv_path_NM
  3911. else
  3912. # Didn't find any BSD compatible name lister, look for dumpbin.
  3913. if test -n "$DUMPBIN"; then :
  3914. # Let the user override the test.
  3915. else
  3916. if test -n "$ac_tool_prefix"; then
  3917. for ac_prog in dumpbin "link -dump"
  3918. do
  3919. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3920. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3922. $as_echo_n "checking for $ac_word... " >&6; }
  3923. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. if test -n "$DUMPBIN"; then
  3927. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3928. else
  3929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. for as_dir in $PATH
  3931. do
  3932. IFS=$as_save_IFS
  3933. test -z "$as_dir" && as_dir=.
  3934. for ac_exec_ext in '' $ac_executable_extensions; do
  3935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3936. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3938. break 2
  3939. fi
  3940. done
  3941. done
  3942. IFS=$as_save_IFS
  3943. fi
  3944. fi
  3945. DUMPBIN=$ac_cv_prog_DUMPBIN
  3946. if test -n "$DUMPBIN"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3948. $as_echo "$DUMPBIN" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. test -n "$DUMPBIN" && break
  3954. done
  3955. fi
  3956. if test -z "$DUMPBIN"; then
  3957. ac_ct_DUMPBIN=$DUMPBIN
  3958. for ac_prog in dumpbin "link -dump"
  3959. do
  3960. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3961. set dummy $ac_prog; ac_word=$2
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3963. $as_echo_n "checking for $ac_word... " >&6; }
  3964. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. if test -n "$ac_ct_DUMPBIN"; then
  3968. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3969. else
  3970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971. for as_dir in $PATH
  3972. do
  3973. IFS=$as_save_IFS
  3974. test -z "$as_dir" && as_dir=.
  3975. for ac_exec_ext in '' $ac_executable_extensions; do
  3976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3977. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979. break 2
  3980. fi
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. fi
  3985. fi
  3986. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3987. if test -n "$ac_ct_DUMPBIN"; then
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3989. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3990. else
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3992. $as_echo "no" >&6; }
  3993. fi
  3994. test -n "$ac_ct_DUMPBIN" && break
  3995. done
  3996. if test "x$ac_ct_DUMPBIN" = x; then
  3997. DUMPBIN=":"
  3998. else
  3999. case $cross_compiling:$ac_tool_warned in
  4000. yes:)
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4003. ac_tool_warned=yes ;;
  4004. esac
  4005. DUMPBIN=$ac_ct_DUMPBIN
  4006. fi
  4007. fi
  4008. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4009. *COFF*)
  4010. DUMPBIN="$DUMPBIN -symbols -headers"
  4011. ;;
  4012. *)
  4013. DUMPBIN=:
  4014. ;;
  4015. esac
  4016. fi
  4017. if test : != "$DUMPBIN"; then
  4018. NM=$DUMPBIN
  4019. fi
  4020. fi
  4021. test -z "$NM" && NM=nm
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4023. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4024. if ${lt_cv_nm_interface+:} false; then :
  4025. $as_echo_n "(cached) " >&6
  4026. else
  4027. lt_cv_nm_interface="BSD nm"
  4028. echo "int some_variable = 0;" > conftest.$ac_ext
  4029. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4030. (eval "$ac_compile" 2>conftest.err)
  4031. cat conftest.err >&5
  4032. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4033. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4034. cat conftest.err >&5
  4035. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4036. cat conftest.out >&5
  4037. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4038. lt_cv_nm_interface="MS dumpbin"
  4039. fi
  4040. rm -f conftest*
  4041. fi
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4043. $as_echo "$lt_cv_nm_interface" >&6; }
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4045. $as_echo_n "checking whether ln -s works... " >&6; }
  4046. LN_S=$as_ln_s
  4047. if test "$LN_S" = "ln -s"; then
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4049. $as_echo "yes" >&6; }
  4050. else
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4052. $as_echo "no, using $LN_S" >&6; }
  4053. fi
  4054. # find the maximum length of command line arguments
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4056. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4057. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. i=0
  4061. teststring=ABCD
  4062. case $build_os in
  4063. msdosdjgpp*)
  4064. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4065. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4066. # during glob expansion). Even if it were fixed, the result of this
  4067. # check would be larger than it should be.
  4068. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4069. ;;
  4070. gnu*)
  4071. # Under GNU Hurd, this test is not required because there is
  4072. # no limit to the length of command line arguments.
  4073. # Libtool will interpret -1 as no limit whatsoever
  4074. lt_cv_sys_max_cmd_len=-1;
  4075. ;;
  4076. cygwin* | mingw* | cegcc*)
  4077. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4078. # about 5 minutes as the teststring grows exponentially.
  4079. # Worse, since 9x/ME are not pre-emptively multitasking,
  4080. # you end up with a "frozen" computer, even though with patience
  4081. # the test eventually succeeds (with a max line length of 256k).
  4082. # Instead, let's just punt: use the minimum linelength reported by
  4083. # all of the supported platforms: 8192 (on NT/2K/XP).
  4084. lt_cv_sys_max_cmd_len=8192;
  4085. ;;
  4086. mint*)
  4087. # On MiNT this can take a long time and run out of memory.
  4088. lt_cv_sys_max_cmd_len=8192;
  4089. ;;
  4090. amigaos*)
  4091. # On AmigaOS with pdksh, this test takes hours, literally.
  4092. # So we just punt and use a minimum line length of 8192.
  4093. lt_cv_sys_max_cmd_len=8192;
  4094. ;;
  4095. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4096. # This has been around since 386BSD, at least. Likely further.
  4097. if test -x /sbin/sysctl; then
  4098. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4099. elif test -x /usr/sbin/sysctl; then
  4100. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4101. else
  4102. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4103. fi
  4104. # And add a safety zone
  4105. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4106. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4107. ;;
  4108. interix*)
  4109. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4110. lt_cv_sys_max_cmd_len=196608
  4111. ;;
  4112. os2*)
  4113. # The test takes a long time on OS/2.
  4114. lt_cv_sys_max_cmd_len=8192
  4115. ;;
  4116. osf*)
  4117. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4118. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4119. # nice to cause kernel panics so lets avoid the loop below.
  4120. # First set a reasonable default.
  4121. lt_cv_sys_max_cmd_len=16384
  4122. #
  4123. if test -x /sbin/sysconfig; then
  4124. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4125. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4126. esac
  4127. fi
  4128. ;;
  4129. sco3.2v5*)
  4130. lt_cv_sys_max_cmd_len=102400
  4131. ;;
  4132. sysv5* | sco5v6* | sysv4.2uw2*)
  4133. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4134. if test -n "$kargmax"; then
  4135. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4136. else
  4137. lt_cv_sys_max_cmd_len=32768
  4138. fi
  4139. ;;
  4140. *)
  4141. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4142. if test -n "$lt_cv_sys_max_cmd_len" && \
  4143. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4144. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4145. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4146. else
  4147. # Make teststring a little bigger before we do anything with it.
  4148. # a 1K string should be a reasonable start.
  4149. for i in 1 2 3 4 5 6 7 8; do
  4150. teststring=$teststring$teststring
  4151. done
  4152. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4153. # If test is not a shell built-in, we'll probably end up computing a
  4154. # maximum length that is only half of the actual maximum length, but
  4155. # we can't tell.
  4156. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4157. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4158. test 17 != "$i" # 1/2 MB should be enough
  4159. do
  4160. i=`expr $i + 1`
  4161. teststring=$teststring$teststring
  4162. done
  4163. # Only check the string length outside the loop.
  4164. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4165. teststring=
  4166. # Add a significant safety factor because C++ compilers can tack on
  4167. # massive amounts of additional arguments before passing them to the
  4168. # linker. It appears as though 1/2 is a usable value.
  4169. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4170. fi
  4171. ;;
  4172. esac
  4173. fi
  4174. if test -n "$lt_cv_sys_max_cmd_len"; then
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4176. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4177. else
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4179. $as_echo "none" >&6; }
  4180. fi
  4181. max_cmd_len=$lt_cv_sys_max_cmd_len
  4182. : ${CP="cp -f"}
  4183. : ${MV="mv -f"}
  4184. : ${RM="rm -f"}
  4185. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4186. lt_unset=unset
  4187. else
  4188. lt_unset=false
  4189. fi
  4190. # test EBCDIC or ASCII
  4191. case `echo X|tr X '\101'` in
  4192. A) # ASCII based system
  4193. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4194. lt_SP2NL='tr \040 \012'
  4195. lt_NL2SP='tr \015\012 \040\040'
  4196. ;;
  4197. *) # EBCDIC based system
  4198. lt_SP2NL='tr \100 \n'
  4199. lt_NL2SP='tr \r\n \100\100'
  4200. ;;
  4201. esac
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4203. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4204. if ${lt_cv_to_host_file_cmd+:} false; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. case $host in
  4208. *-*-mingw* )
  4209. case $build in
  4210. *-*-mingw* ) # actually msys
  4211. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4212. ;;
  4213. *-*-cygwin* )
  4214. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4215. ;;
  4216. * ) # otherwise, assume *nix
  4217. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4218. ;;
  4219. esac
  4220. ;;
  4221. *-*-cygwin* )
  4222. case $build in
  4223. *-*-mingw* ) # actually msys
  4224. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4225. ;;
  4226. *-*-cygwin* )
  4227. lt_cv_to_host_file_cmd=func_convert_file_noop
  4228. ;;
  4229. * ) # otherwise, assume *nix
  4230. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4231. ;;
  4232. esac
  4233. ;;
  4234. * ) # unhandled hosts (and "normal" native builds)
  4235. lt_cv_to_host_file_cmd=func_convert_file_noop
  4236. ;;
  4237. esac
  4238. fi
  4239. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4241. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4243. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4244. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4245. $as_echo_n "(cached) " >&6
  4246. else
  4247. #assume ordinary cross tools, or native build.
  4248. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4249. case $host in
  4250. *-*-mingw* )
  4251. case $build in
  4252. *-*-mingw* ) # actually msys
  4253. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4254. ;;
  4255. esac
  4256. ;;
  4257. esac
  4258. fi
  4259. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4261. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4263. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4264. if ${lt_cv_ld_reload_flag+:} false; then :
  4265. $as_echo_n "(cached) " >&6
  4266. else
  4267. lt_cv_ld_reload_flag='-r'
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4270. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4271. reload_flag=$lt_cv_ld_reload_flag
  4272. case $reload_flag in
  4273. "" | " "*) ;;
  4274. *) reload_flag=" $reload_flag" ;;
  4275. esac
  4276. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4277. case $host_os in
  4278. cygwin* | mingw* | pw32* | cegcc*)
  4279. if test yes != "$GCC"; then
  4280. reload_cmds=false
  4281. fi
  4282. ;;
  4283. darwin*)
  4284. if test yes = "$GCC"; then
  4285. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4286. else
  4287. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4288. fi
  4289. ;;
  4290. esac
  4291. if test -n "$ac_tool_prefix"; then
  4292. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4293. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4295. $as_echo_n "checking for $ac_word... " >&6; }
  4296. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4297. $as_echo_n "(cached) " >&6
  4298. else
  4299. if test -n "$OBJDUMP"; then
  4300. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4301. else
  4302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4303. for as_dir in $PATH
  4304. do
  4305. IFS=$as_save_IFS
  4306. test -z "$as_dir" && as_dir=.
  4307. for ac_exec_ext in '' $ac_executable_extensions; do
  4308. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4309. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4311. break 2
  4312. fi
  4313. done
  4314. done
  4315. IFS=$as_save_IFS
  4316. fi
  4317. fi
  4318. OBJDUMP=$ac_cv_prog_OBJDUMP
  4319. if test -n "$OBJDUMP"; then
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4321. $as_echo "$OBJDUMP" >&6; }
  4322. else
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4324. $as_echo "no" >&6; }
  4325. fi
  4326. fi
  4327. if test -z "$ac_cv_prog_OBJDUMP"; then
  4328. ac_ct_OBJDUMP=$OBJDUMP
  4329. # Extract the first word of "objdump", so it can be a program name with args.
  4330. set dummy objdump; ac_word=$2
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4332. $as_echo_n "checking for $ac_word... " >&6; }
  4333. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4334. $as_echo_n "(cached) " >&6
  4335. else
  4336. if test -n "$ac_ct_OBJDUMP"; then
  4337. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4338. else
  4339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4340. for as_dir in $PATH
  4341. do
  4342. IFS=$as_save_IFS
  4343. test -z "$as_dir" && as_dir=.
  4344. for ac_exec_ext in '' $ac_executable_extensions; do
  4345. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4346. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4348. break 2
  4349. fi
  4350. done
  4351. done
  4352. IFS=$as_save_IFS
  4353. fi
  4354. fi
  4355. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4356. if test -n "$ac_ct_OBJDUMP"; then
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4358. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4359. else
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4361. $as_echo "no" >&6; }
  4362. fi
  4363. if test "x$ac_ct_OBJDUMP" = x; then
  4364. OBJDUMP="false"
  4365. else
  4366. case $cross_compiling:$ac_tool_warned in
  4367. yes:)
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4369. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4370. ac_tool_warned=yes ;;
  4371. esac
  4372. OBJDUMP=$ac_ct_OBJDUMP
  4373. fi
  4374. else
  4375. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4376. fi
  4377. test -z "$OBJDUMP" && OBJDUMP=objdump
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4379. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4380. if ${lt_cv_deplibs_check_method+:} false; then :
  4381. $as_echo_n "(cached) " >&6
  4382. else
  4383. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4384. lt_cv_file_magic_test_file=
  4385. lt_cv_deplibs_check_method='unknown'
  4386. # Need to set the preceding variable on all platforms that support
  4387. # interlibrary dependencies.
  4388. # 'none' -- dependencies not supported.
  4389. # 'unknown' -- same as none, but documents that we really don't know.
  4390. # 'pass_all' -- all dependencies passed with no checks.
  4391. # 'test_compile' -- check by making test program.
  4392. # 'file_magic [[regex]]' -- check by looking for files in library path
  4393. # that responds to the $file_magic_cmd with a given extended regex.
  4394. # If you have 'file' or equivalent on your system and you're not sure
  4395. # whether 'pass_all' will *always* work, you probably want this one.
  4396. case $host_os in
  4397. aix[4-9]*)
  4398. lt_cv_deplibs_check_method=pass_all
  4399. ;;
  4400. beos*)
  4401. lt_cv_deplibs_check_method=pass_all
  4402. ;;
  4403. bsdi[45]*)
  4404. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4405. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4406. lt_cv_file_magic_test_file=/shlib/libc.so
  4407. ;;
  4408. cygwin*)
  4409. # func_win32_libid is a shell function defined in ltmain.sh
  4410. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4411. lt_cv_file_magic_cmd='func_win32_libid'
  4412. lt_cv_deplibs_check_method=pass_all # SDL customization
  4413. ;;
  4414. mingw* | pw32*)
  4415. # Base MSYS/MinGW do not provide the 'file' command needed by
  4416. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4417. # unless we find 'file', for example because we are cross-compiling.
  4418. if ( file / ) >/dev/null 2>&1; then
  4419. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4420. lt_cv_file_magic_cmd='func_win32_libid'
  4421. else
  4422. # Keep this pattern in sync with the one in func_win32_libid.
  4423. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4424. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4425. fi
  4426. lt_cv_deplibs_check_method=pass_all # SDL customization
  4427. ;;
  4428. cegcc*)
  4429. # use the weaker test based on 'objdump'. See mingw*.
  4430. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4431. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4432. ;;
  4433. darwin* | rhapsody*)
  4434. lt_cv_deplibs_check_method=pass_all
  4435. ;;
  4436. freebsd* | dragonfly* | midnightbsd*)
  4437. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4438. case $host_cpu in
  4439. i*86 )
  4440. # Not sure whether the presence of OpenBSD here was a mistake.
  4441. # Let's accept both of them until this is cleared up.
  4442. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4443. lt_cv_file_magic_cmd=/usr/bin/file
  4444. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4445. ;;
  4446. esac
  4447. else
  4448. lt_cv_deplibs_check_method=pass_all
  4449. fi
  4450. ;;
  4451. haiku*)
  4452. lt_cv_deplibs_check_method=pass_all
  4453. ;;
  4454. hpux10.20* | hpux11*)
  4455. lt_cv_file_magic_cmd=/usr/bin/file
  4456. case $host_cpu in
  4457. ia64*)
  4458. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4459. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4460. ;;
  4461. hppa*64*)
  4462. 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]'
  4463. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4464. ;;
  4465. *)
  4466. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4467. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4468. ;;
  4469. esac
  4470. ;;
  4471. interix[3-9]*)
  4472. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4473. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4474. ;;
  4475. irix5* | irix6* | nonstopux*)
  4476. case $LD in
  4477. *-32|*"-32 ") libmagic=32-bit;;
  4478. *-n32|*"-n32 ") libmagic=N32;;
  4479. *-64|*"-64 ") libmagic=64-bit;;
  4480. *) libmagic=never-match;;
  4481. esac
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. # This must be glibc/ELF.
  4485. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4486. lt_cv_deplibs_check_method=pass_all
  4487. ;;
  4488. netbsd*)
  4489. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4490. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4491. else
  4492. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4493. fi
  4494. ;;
  4495. newos6*)
  4496. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4497. lt_cv_file_magic_cmd=/usr/bin/file
  4498. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4499. ;;
  4500. *nto* | *qnx*)
  4501. lt_cv_deplibs_check_method=pass_all
  4502. ;;
  4503. openbsd* | bitrig*)
  4504. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4505. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4506. else
  4507. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4508. fi
  4509. ;;
  4510. osf3* | osf4* | osf5*)
  4511. lt_cv_deplibs_check_method=pass_all
  4512. ;;
  4513. rdos*)
  4514. lt_cv_deplibs_check_method=pass_all
  4515. ;;
  4516. solaris*)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4520. lt_cv_deplibs_check_method=pass_all
  4521. ;;
  4522. sysv4 | sysv4.3*)
  4523. case $host_vendor in
  4524. motorola)
  4525. 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]'
  4526. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4527. ;;
  4528. ncr)
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. sequent)
  4532. lt_cv_file_magic_cmd='/bin/file'
  4533. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4534. ;;
  4535. sni)
  4536. lt_cv_file_magic_cmd='/bin/file'
  4537. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4538. lt_cv_file_magic_test_file=/lib/libc.so
  4539. ;;
  4540. siemens)
  4541. lt_cv_deplibs_check_method=pass_all
  4542. ;;
  4543. pc)
  4544. lt_cv_deplibs_check_method=pass_all
  4545. ;;
  4546. esac
  4547. ;;
  4548. tpf*)
  4549. lt_cv_deplibs_check_method=pass_all
  4550. ;;
  4551. os2*)
  4552. lt_cv_deplibs_check_method=pass_all
  4553. ;;
  4554. esac
  4555. fi
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4557. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4558. file_magic_glob=
  4559. want_nocaseglob=no
  4560. if test "$build" = "$host"; then
  4561. case $host_os in
  4562. mingw* | pw32*)
  4563. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4564. want_nocaseglob=yes
  4565. else
  4566. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4567. fi
  4568. ;;
  4569. esac
  4570. fi
  4571. file_magic_cmd=$lt_cv_file_magic_cmd
  4572. deplibs_check_method=$lt_cv_deplibs_check_method
  4573. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4574. if test -n "$ac_tool_prefix"; then
  4575. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4576. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4578. $as_echo_n "checking for $ac_word... " >&6; }
  4579. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4580. $as_echo_n "(cached) " >&6
  4581. else
  4582. if test -n "$DLLTOOL"; then
  4583. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4584. else
  4585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4586. for as_dir in $PATH
  4587. do
  4588. IFS=$as_save_IFS
  4589. test -z "$as_dir" && as_dir=.
  4590. for ac_exec_ext in '' $ac_executable_extensions; do
  4591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4592. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4594. break 2
  4595. fi
  4596. done
  4597. done
  4598. IFS=$as_save_IFS
  4599. fi
  4600. fi
  4601. DLLTOOL=$ac_cv_prog_DLLTOOL
  4602. if test -n "$DLLTOOL"; then
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4604. $as_echo "$DLLTOOL" >&6; }
  4605. else
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4607. $as_echo "no" >&6; }
  4608. fi
  4609. fi
  4610. if test -z "$ac_cv_prog_DLLTOOL"; then
  4611. ac_ct_DLLTOOL=$DLLTOOL
  4612. # Extract the first word of "dlltool", so it can be a program name with args.
  4613. set dummy dlltool; ac_word=$2
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4615. $as_echo_n "checking for $ac_word... " >&6; }
  4616. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. if test -n "$ac_ct_DLLTOOL"; then
  4620. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4621. else
  4622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4623. for as_dir in $PATH
  4624. do
  4625. IFS=$as_save_IFS
  4626. test -z "$as_dir" && as_dir=.
  4627. for ac_exec_ext in '' $ac_executable_extensions; do
  4628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4629. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4631. break 2
  4632. fi
  4633. done
  4634. done
  4635. IFS=$as_save_IFS
  4636. fi
  4637. fi
  4638. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4639. if test -n "$ac_ct_DLLTOOL"; then
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4641. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4642. else
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4644. $as_echo "no" >&6; }
  4645. fi
  4646. if test "x$ac_ct_DLLTOOL" = x; then
  4647. DLLTOOL="false"
  4648. else
  4649. case $cross_compiling:$ac_tool_warned in
  4650. yes:)
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4652. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4653. ac_tool_warned=yes ;;
  4654. esac
  4655. DLLTOOL=$ac_ct_DLLTOOL
  4656. fi
  4657. else
  4658. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4659. fi
  4660. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4662. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4663. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4667. case $host_os in
  4668. cygwin* | mingw* | pw32* | cegcc*)
  4669. # two different shell functions defined in ltmain.sh;
  4670. # decide which one to use based on capabilities of $DLLTOOL
  4671. case `$DLLTOOL --help 2>&1` in
  4672. *--identify-strict*)
  4673. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4674. ;;
  4675. *)
  4676. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4677. ;;
  4678. esac
  4679. ;;
  4680. *)
  4681. # fallback: assume linklib IS sharedlib
  4682. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4683. ;;
  4684. esac
  4685. fi
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4687. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4688. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4689. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4690. if test -n "$ac_tool_prefix"; then
  4691. for ac_prog in ar
  4692. do
  4693. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4694. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4696. $as_echo_n "checking for $ac_word... " >&6; }
  4697. if ${ac_cv_prog_AR+:} false; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. if test -n "$AR"; then
  4701. ac_cv_prog_AR="$AR" # Let the user override the test.
  4702. else
  4703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4704. for as_dir in $PATH
  4705. do
  4706. IFS=$as_save_IFS
  4707. test -z "$as_dir" && as_dir=.
  4708. for ac_exec_ext in '' $ac_executable_extensions; do
  4709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4710. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4712. break 2
  4713. fi
  4714. done
  4715. done
  4716. IFS=$as_save_IFS
  4717. fi
  4718. fi
  4719. AR=$ac_cv_prog_AR
  4720. if test -n "$AR"; then
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4722. $as_echo "$AR" >&6; }
  4723. else
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4725. $as_echo "no" >&6; }
  4726. fi
  4727. test -n "$AR" && break
  4728. done
  4729. fi
  4730. if test -z "$AR"; then
  4731. ac_ct_AR=$AR
  4732. for ac_prog in ar
  4733. do
  4734. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4735. set dummy $ac_prog; ac_word=$2
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4737. $as_echo_n "checking for $ac_word... " >&6; }
  4738. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -n "$ac_ct_AR"; then
  4742. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4743. else
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_exec_ext in '' $ac_executable_extensions; do
  4750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4751. ac_cv_prog_ac_ct_AR="$ac_prog"
  4752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4753. break 2
  4754. fi
  4755. done
  4756. done
  4757. IFS=$as_save_IFS
  4758. fi
  4759. fi
  4760. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4761. if test -n "$ac_ct_AR"; then
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4763. $as_echo "$ac_ct_AR" >&6; }
  4764. else
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4766. $as_echo "no" >&6; }
  4767. fi
  4768. test -n "$ac_ct_AR" && break
  4769. done
  4770. if test "x$ac_ct_AR" = x; then
  4771. AR="false"
  4772. else
  4773. case $cross_compiling:$ac_tool_warned in
  4774. yes:)
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4777. ac_tool_warned=yes ;;
  4778. esac
  4779. AR=$ac_ct_AR
  4780. fi
  4781. fi
  4782. : ${AR=ar}
  4783. : ${AR_FLAGS=cru}
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4785. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4786. if ${lt_cv_ar_at_file+:} false; then :
  4787. $as_echo_n "(cached) " >&6
  4788. else
  4789. lt_cv_ar_at_file=no
  4790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4791. /* end confdefs.h. */
  4792. int
  4793. main ()
  4794. {
  4795. ;
  4796. return 0;
  4797. }
  4798. _ACEOF
  4799. if ac_fn_c_try_compile "$LINENO"; then :
  4800. echo conftest.$ac_objext > conftest.lst
  4801. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4802. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4803. (eval $lt_ar_try) 2>&5
  4804. ac_status=$?
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4806. test $ac_status = 0; }
  4807. if test 0 -eq "$ac_status"; then
  4808. # Ensure the archiver fails upon bogus file names.
  4809. rm -f conftest.$ac_objext libconftest.a
  4810. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4811. (eval $lt_ar_try) 2>&5
  4812. ac_status=$?
  4813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4814. test $ac_status = 0; }
  4815. if test 0 -ne "$ac_status"; then
  4816. lt_cv_ar_at_file=@
  4817. fi
  4818. fi
  4819. rm -f conftest.* libconftest.a
  4820. fi
  4821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4822. fi
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4824. $as_echo "$lt_cv_ar_at_file" >&6; }
  4825. if test no = "$lt_cv_ar_at_file"; then
  4826. archiver_list_spec=
  4827. else
  4828. archiver_list_spec=$lt_cv_ar_at_file
  4829. fi
  4830. if test -n "$ac_tool_prefix"; then
  4831. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4832. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4834. $as_echo_n "checking for $ac_word... " >&6; }
  4835. if ${ac_cv_prog_STRIP+:} false; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. if test -n "$STRIP"; then
  4839. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4840. else
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4848. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. fi
  4856. fi
  4857. STRIP=$ac_cv_prog_STRIP
  4858. if test -n "$STRIP"; then
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4860. $as_echo "$STRIP" >&6; }
  4861. else
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4863. $as_echo "no" >&6; }
  4864. fi
  4865. fi
  4866. if test -z "$ac_cv_prog_STRIP"; then
  4867. ac_ct_STRIP=$STRIP
  4868. # Extract the first word of "strip", so it can be a program name with args.
  4869. set dummy strip; ac_word=$2
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4871. $as_echo_n "checking for $ac_word... " >&6; }
  4872. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if test -n "$ac_ct_STRIP"; then
  4876. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4877. else
  4878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4879. for as_dir in $PATH
  4880. do
  4881. IFS=$as_save_IFS
  4882. test -z "$as_dir" && as_dir=.
  4883. for ac_exec_ext in '' $ac_executable_extensions; do
  4884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4885. ac_cv_prog_ac_ct_STRIP="strip"
  4886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4887. break 2
  4888. fi
  4889. done
  4890. done
  4891. IFS=$as_save_IFS
  4892. fi
  4893. fi
  4894. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4895. if test -n "$ac_ct_STRIP"; then
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4897. $as_echo "$ac_ct_STRIP" >&6; }
  4898. else
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4900. $as_echo "no" >&6; }
  4901. fi
  4902. if test "x$ac_ct_STRIP" = x; then
  4903. STRIP=":"
  4904. else
  4905. case $cross_compiling:$ac_tool_warned in
  4906. yes:)
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4909. ac_tool_warned=yes ;;
  4910. esac
  4911. STRIP=$ac_ct_STRIP
  4912. fi
  4913. else
  4914. STRIP="$ac_cv_prog_STRIP"
  4915. fi
  4916. test -z "$STRIP" && STRIP=:
  4917. if test -n "$ac_tool_prefix"; then
  4918. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4919. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4921. $as_echo_n "checking for $ac_word... " >&6; }
  4922. if ${ac_cv_prog_RANLIB+:} false; then :
  4923. $as_echo_n "(cached) " >&6
  4924. else
  4925. if test -n "$RANLIB"; then
  4926. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4927. else
  4928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4929. for as_dir in $PATH
  4930. do
  4931. IFS=$as_save_IFS
  4932. test -z "$as_dir" && as_dir=.
  4933. for ac_exec_ext in '' $ac_executable_extensions; do
  4934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4935. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4937. break 2
  4938. fi
  4939. done
  4940. done
  4941. IFS=$as_save_IFS
  4942. fi
  4943. fi
  4944. RANLIB=$ac_cv_prog_RANLIB
  4945. if test -n "$RANLIB"; then
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4947. $as_echo "$RANLIB" >&6; }
  4948. else
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4950. $as_echo "no" >&6; }
  4951. fi
  4952. fi
  4953. if test -z "$ac_cv_prog_RANLIB"; then
  4954. ac_ct_RANLIB=$RANLIB
  4955. # Extract the first word of "ranlib", so it can be a program name with args.
  4956. set dummy ranlib; ac_word=$2
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4958. $as_echo_n "checking for $ac_word... " >&6; }
  4959. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. if test -n "$ac_ct_RANLIB"; then
  4963. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4964. else
  4965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4966. for as_dir in $PATH
  4967. do
  4968. IFS=$as_save_IFS
  4969. test -z "$as_dir" && as_dir=.
  4970. for ac_exec_ext in '' $ac_executable_extensions; do
  4971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4972. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4974. break 2
  4975. fi
  4976. done
  4977. done
  4978. IFS=$as_save_IFS
  4979. fi
  4980. fi
  4981. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4982. if test -n "$ac_ct_RANLIB"; then
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4984. $as_echo "$ac_ct_RANLIB" >&6; }
  4985. else
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4987. $as_echo "no" >&6; }
  4988. fi
  4989. if test "x$ac_ct_RANLIB" = x; then
  4990. RANLIB=":"
  4991. else
  4992. case $cross_compiling:$ac_tool_warned in
  4993. yes:)
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4995. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4996. ac_tool_warned=yes ;;
  4997. esac
  4998. RANLIB=$ac_ct_RANLIB
  4999. fi
  5000. else
  5001. RANLIB="$ac_cv_prog_RANLIB"
  5002. fi
  5003. test -z "$RANLIB" && RANLIB=:
  5004. # Determine commands to create old-style static archives.
  5005. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5006. old_postinstall_cmds='chmod 644 $oldlib'
  5007. old_postuninstall_cmds=
  5008. if test -n "$RANLIB"; then
  5009. case $host_os in
  5010. bitrig* | openbsd*)
  5011. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5012. ;;
  5013. *)
  5014. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5015. ;;
  5016. esac
  5017. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5018. fi
  5019. case $host_os in
  5020. darwin*)
  5021. lock_old_archive_extraction=yes ;;
  5022. *)
  5023. lock_old_archive_extraction=no ;;
  5024. esac
  5025. for ac_prog in gawk mawk nawk awk
  5026. do
  5027. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5028. set dummy $ac_prog; ac_word=$2
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5030. $as_echo_n "checking for $ac_word... " >&6; }
  5031. if ${ac_cv_prog_AWK+:} false; then :
  5032. $as_echo_n "(cached) " >&6
  5033. else
  5034. if test -n "$AWK"; then
  5035. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5036. else
  5037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5038. for as_dir in $PATH
  5039. do
  5040. IFS=$as_save_IFS
  5041. test -z "$as_dir" && as_dir=.
  5042. for ac_exec_ext in '' $ac_executable_extensions; do
  5043. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5044. ac_cv_prog_AWK="$ac_prog"
  5045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5046. break 2
  5047. fi
  5048. done
  5049. done
  5050. IFS=$as_save_IFS
  5051. fi
  5052. fi
  5053. AWK=$ac_cv_prog_AWK
  5054. if test -n "$AWK"; then
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5056. $as_echo "$AWK" >&6; }
  5057. else
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5059. $as_echo "no" >&6; }
  5060. fi
  5061. test -n "$AWK" && break
  5062. done
  5063. # If no C compiler was specified, use CC.
  5064. LTCC=${LTCC-"$CC"}
  5065. # If no C compiler flags were specified, use CFLAGS.
  5066. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5067. # Allow CC to be a program name with arguments.
  5068. compiler=$CC
  5069. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5071. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5072. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5073. $as_echo_n "(cached) " >&6
  5074. else
  5075. # These are sane defaults that work on at least a few old systems.
  5076. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5077. # Character class describing NM global symbol codes.
  5078. symcode='[BCDEGRST]'
  5079. # Regexp to match symbols that can be accessed directly from C.
  5080. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5081. # Define system-specific variables.
  5082. case $host_os in
  5083. aix*)
  5084. symcode='[BCDT]'
  5085. ;;
  5086. cygwin* | mingw* | pw32* | cegcc*)
  5087. symcode='[ABCDGISTW]'
  5088. ;;
  5089. hpux*)
  5090. if test ia64 = "$host_cpu"; then
  5091. symcode='[ABCDEGRST]'
  5092. fi
  5093. ;;
  5094. irix* | nonstopux*)
  5095. symcode='[BCDEGRST]'
  5096. ;;
  5097. osf*)
  5098. symcode='[BCDEGQRST]'
  5099. ;;
  5100. solaris*)
  5101. symcode='[BCDRT]'
  5102. ;;
  5103. sco3.2v5*)
  5104. symcode='[DT]'
  5105. ;;
  5106. sysv4.2uw2*)
  5107. symcode='[DT]'
  5108. ;;
  5109. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5110. symcode='[ABDT]'
  5111. ;;
  5112. sysv4)
  5113. symcode='[DFNSTU]'
  5114. ;;
  5115. esac
  5116. # If we're using GNU nm, then use its standard symbol codes.
  5117. case `$NM -V 2>&1` in
  5118. *GNU* | *'with BFD'*)
  5119. symcode='[ABCDGIRSTW]' ;;
  5120. esac
  5121. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5122. # Gets list of data symbols to import.
  5123. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5124. # Adjust the below global symbol transforms to fixup imported variables.
  5125. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5126. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5127. lt_c_name_lib_hook="\
  5128. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5129. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5130. else
  5131. # Disable hooks by default.
  5132. lt_cv_sys_global_symbol_to_import=
  5133. lt_cdecl_hook=
  5134. lt_c_name_hook=
  5135. lt_c_name_lib_hook=
  5136. fi
  5137. # Transform an extracted symbol line into a proper C declaration.
  5138. # Some systems (esp. on ia64) link data and code symbols differently,
  5139. # so use this general approach.
  5140. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5141. $lt_cdecl_hook\
  5142. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5143. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5144. # Transform an extracted symbol line into symbol name and symbol address
  5145. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5146. $lt_c_name_hook\
  5147. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5148. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5149. # Transform an extracted symbol line into symbol name with lib prefix and
  5150. # symbol address.
  5151. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5152. $lt_c_name_lib_hook\
  5153. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5154. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5155. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5156. # Handle CRLF in mingw tool chain
  5157. opt_cr=
  5158. case $build_os in
  5159. mingw*)
  5160. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5161. ;;
  5162. esac
  5163. # Try without a prefix underscore, then with it.
  5164. for ac_symprfx in "" "_"; do
  5165. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5166. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5167. # Write the raw and C identifiers.
  5168. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5169. # Fake it for dumpbin and say T for any non-static function,
  5170. # D for any global variable and I for any imported variable.
  5171. # Also find C++ and __fastcall symbols from MSVC++,
  5172. # which start with @ or ?.
  5173. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5174. " {last_section=section; section=\$ 3};"\
  5175. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5176. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5177. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5178. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5179. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5180. " \$ 0!~/External *\|/{next};"\
  5181. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5182. " {if(hide[section]) next};"\
  5183. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5184. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5185. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5186. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5187. " ' prfx=^$ac_symprfx"
  5188. else
  5189. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5190. fi
  5191. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5192. # Check to see that the pipe works correctly.
  5193. pipe_works=no
  5194. rm -f conftest*
  5195. cat > conftest.$ac_ext <<_LT_EOF
  5196. #ifdef __cplusplus
  5197. extern "C" {
  5198. #endif
  5199. char nm_test_var;
  5200. void nm_test_func(void);
  5201. void nm_test_func(void){}
  5202. #ifdef __cplusplus
  5203. }
  5204. #endif
  5205. int main(){nm_test_var='a';nm_test_func();return(0);}
  5206. _LT_EOF
  5207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5208. (eval $ac_compile) 2>&5
  5209. ac_status=$?
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5211. test $ac_status = 0; }; then
  5212. # Now try to grab the symbols.
  5213. nlist=conftest.nm
  5214. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5215. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5216. ac_status=$?
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5218. test $ac_status = 0; } && test -s "$nlist"; then
  5219. # Try sorting and uniquifying the output.
  5220. if sort "$nlist" | uniq > "$nlist"T; then
  5221. mv -f "$nlist"T "$nlist"
  5222. else
  5223. rm -f "$nlist"T
  5224. fi
  5225. # Make sure that we snagged all the symbols we need.
  5226. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5227. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5228. cat <<_LT_EOF > conftest.$ac_ext
  5229. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5230. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5231. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5232. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5233. # define LT_DLSYM_CONST
  5234. #elif defined __osf__
  5235. /* This system does not cope well with relocations in const data. */
  5236. # define LT_DLSYM_CONST
  5237. #else
  5238. # define LT_DLSYM_CONST const
  5239. #endif
  5240. #ifdef __cplusplus
  5241. extern "C" {
  5242. #endif
  5243. _LT_EOF
  5244. # Now generate the symbol file.
  5245. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5246. cat <<_LT_EOF >> conftest.$ac_ext
  5247. /* The mapping between symbol names and symbols. */
  5248. LT_DLSYM_CONST struct {
  5249. const char *name;
  5250. void *address;
  5251. }
  5252. lt__PROGRAM__LTX_preloaded_symbols[] =
  5253. {
  5254. { "@PROGRAM@", (void *) 0 },
  5255. _LT_EOF
  5256. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5257. cat <<\_LT_EOF >> conftest.$ac_ext
  5258. {0, (void *) 0}
  5259. };
  5260. /* This works around a problem in FreeBSD linker */
  5261. #ifdef FREEBSD_WORKAROUND
  5262. static const void *lt_preloaded_setup() {
  5263. return lt__PROGRAM__LTX_preloaded_symbols;
  5264. }
  5265. #endif
  5266. #ifdef __cplusplus
  5267. }
  5268. #endif
  5269. _LT_EOF
  5270. # Now try linking the two files.
  5271. mv conftest.$ac_objext conftstm.$ac_objext
  5272. lt_globsym_save_LIBS=$LIBS
  5273. lt_globsym_save_CFLAGS=$CFLAGS
  5274. LIBS=conftstm.$ac_objext
  5275. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5277. (eval $ac_link) 2>&5
  5278. ac_status=$?
  5279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5280. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5281. pipe_works=yes
  5282. fi
  5283. LIBS=$lt_globsym_save_LIBS
  5284. CFLAGS=$lt_globsym_save_CFLAGS
  5285. else
  5286. echo "cannot find nm_test_func in $nlist" >&5
  5287. fi
  5288. else
  5289. echo "cannot find nm_test_var in $nlist" >&5
  5290. fi
  5291. else
  5292. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5293. fi
  5294. else
  5295. echo "$progname: failed program was:" >&5
  5296. cat conftest.$ac_ext >&5
  5297. fi
  5298. rm -rf conftest* conftst*
  5299. # Do not use the global_symbol_pipe unless it works.
  5300. if test yes = "$pipe_works"; then
  5301. break
  5302. else
  5303. lt_cv_sys_global_symbol_pipe=
  5304. fi
  5305. done
  5306. fi
  5307. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5308. lt_cv_sys_global_symbol_to_cdecl=
  5309. fi
  5310. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5312. $as_echo "failed" >&6; }
  5313. else
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5315. $as_echo "ok" >&6; }
  5316. fi
  5317. # Response file support.
  5318. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5319. nm_file_list_spec='@'
  5320. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5321. nm_file_list_spec='@'
  5322. fi
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5324. $as_echo_n "checking for sysroot... " >&6; }
  5325. # Check whether --with-sysroot was given.
  5326. if test "${with_sysroot+set}" = set; then :
  5327. withval=$with_sysroot;
  5328. else
  5329. with_sysroot=no
  5330. fi
  5331. lt_sysroot=
  5332. case $with_sysroot in #(
  5333. yes)
  5334. if test yes = "$GCC"; then
  5335. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5336. fi
  5337. ;; #(
  5338. /*)
  5339. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5340. ;; #(
  5341. no|'')
  5342. ;; #(
  5343. *)
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5345. $as_echo "$with_sysroot" >&6; }
  5346. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5347. ;;
  5348. esac
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5350. $as_echo "${lt_sysroot:-no}" >&6; }
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5352. $as_echo_n "checking for a working dd... " >&6; }
  5353. if ${ac_cv_path_lt_DD+:} false; then :
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. printf 0123456789abcdef0123456789abcdef >conftest.i
  5357. cat conftest.i conftest.i >conftest2.i
  5358. : ${lt_DD:=$DD}
  5359. if test -z "$lt_DD"; then
  5360. ac_path_lt_DD_found=false
  5361. # Loop through the user's path and test for each of PROGNAME-LIST
  5362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5363. for as_dir in $PATH
  5364. do
  5365. IFS=$as_save_IFS
  5366. test -z "$as_dir" && as_dir=.
  5367. for ac_prog in dd; do
  5368. for ac_exec_ext in '' $ac_executable_extensions; do
  5369. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5370. as_fn_executable_p "$ac_path_lt_DD" || continue
  5371. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5372. cmp -s conftest.i conftest.out \
  5373. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5374. fi
  5375. $ac_path_lt_DD_found && break 3
  5376. done
  5377. done
  5378. done
  5379. IFS=$as_save_IFS
  5380. if test -z "$ac_cv_path_lt_DD"; then
  5381. :
  5382. fi
  5383. else
  5384. ac_cv_path_lt_DD=$lt_DD
  5385. fi
  5386. rm -f conftest.i conftest2.i conftest.out
  5387. fi
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5389. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5391. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5392. if ${lt_cv_truncate_bin+:} false; then :
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. printf 0123456789abcdef0123456789abcdef >conftest.i
  5396. cat conftest.i conftest.i >conftest2.i
  5397. lt_cv_truncate_bin=
  5398. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5399. cmp -s conftest.i conftest.out \
  5400. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5401. fi
  5402. rm -f conftest.i conftest2.i conftest.out
  5403. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5404. fi
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5406. $as_echo "$lt_cv_truncate_bin" >&6; }
  5407. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5408. func_cc_basename ()
  5409. {
  5410. for cc_temp in $*""; do
  5411. case $cc_temp in
  5412. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5413. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5414. \-*) ;;
  5415. *) break;;
  5416. esac
  5417. done
  5418. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5419. }
  5420. # Check whether --enable-libtool-lock was given.
  5421. if test "${enable_libtool_lock+set}" = set; then :
  5422. enableval=$enable_libtool_lock;
  5423. fi
  5424. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5425. # Some flags need to be propagated to the compiler or linker for good
  5426. # libtool support.
  5427. case $host in
  5428. ia64-*-hpux*)
  5429. # Find out what ABI is being produced by ac_compile, and set mode
  5430. # options accordingly.
  5431. echo 'int i;' > conftest.$ac_ext
  5432. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5433. (eval $ac_compile) 2>&5
  5434. ac_status=$?
  5435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5436. test $ac_status = 0; }; then
  5437. case `/usr/bin/file conftest.$ac_objext` in
  5438. *ELF-32*)
  5439. HPUX_IA64_MODE=32
  5440. ;;
  5441. *ELF-64*)
  5442. HPUX_IA64_MODE=64
  5443. ;;
  5444. esac
  5445. fi
  5446. rm -rf conftest*
  5447. ;;
  5448. *-*-irix6*)
  5449. # Find out what ABI is being produced by ac_compile, and set linker
  5450. # options accordingly.
  5451. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5452. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5453. (eval $ac_compile) 2>&5
  5454. ac_status=$?
  5455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5456. test $ac_status = 0; }; then
  5457. if test yes = "$lt_cv_prog_gnu_ld"; then
  5458. case `/usr/bin/file conftest.$ac_objext` in
  5459. *32-bit*)
  5460. LD="${LD-ld} -melf32bsmip"
  5461. ;;
  5462. *N32*)
  5463. LD="${LD-ld} -melf32bmipn32"
  5464. ;;
  5465. *64-bit*)
  5466. LD="${LD-ld} -melf64bmip"
  5467. ;;
  5468. esac
  5469. else
  5470. case `/usr/bin/file conftest.$ac_objext` in
  5471. *32-bit*)
  5472. LD="${LD-ld} -32"
  5473. ;;
  5474. *N32*)
  5475. LD="${LD-ld} -n32"
  5476. ;;
  5477. *64-bit*)
  5478. LD="${LD-ld} -64"
  5479. ;;
  5480. esac
  5481. fi
  5482. fi
  5483. rm -rf conftest*
  5484. ;;
  5485. mips64*-*linux*)
  5486. # Find out what ABI is being produced by ac_compile, and set linker
  5487. # options accordingly.
  5488. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5489. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5490. (eval $ac_compile) 2>&5
  5491. ac_status=$?
  5492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5493. test $ac_status = 0; }; then
  5494. emul=elf
  5495. case `/usr/bin/file conftest.$ac_objext` in
  5496. *32-bit*)
  5497. emul="${emul}32"
  5498. ;;
  5499. *64-bit*)
  5500. emul="${emul}64"
  5501. ;;
  5502. esac
  5503. case `/usr/bin/file conftest.$ac_objext` in
  5504. *MSB*)
  5505. emul="${emul}btsmip"
  5506. ;;
  5507. *LSB*)
  5508. emul="${emul}ltsmip"
  5509. ;;
  5510. esac
  5511. case `/usr/bin/file conftest.$ac_objext` in
  5512. *N32*)
  5513. emul="${emul}n32"
  5514. ;;
  5515. esac
  5516. LD="${LD-ld} -m $emul"
  5517. fi
  5518. rm -rf conftest*
  5519. ;;
  5520. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5521. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5522. # Find out what ABI is being produced by ac_compile, and set linker
  5523. # options accordingly. Note that the listed cases only cover the
  5524. # situations where additional linker options are needed (such as when
  5525. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5526. # vice versa); the common cases where no linker options are needed do
  5527. # not appear in the list.
  5528. echo 'int i;' > conftest.$ac_ext
  5529. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5530. (eval $ac_compile) 2>&5
  5531. ac_status=$?
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5533. test $ac_status = 0; }; then
  5534. case `/usr/bin/file conftest.o` in
  5535. *32-bit*)
  5536. case $host in
  5537. x86_64-*kfreebsd*-gnu)
  5538. LD="${LD-ld} -m elf_i386_fbsd"
  5539. ;;
  5540. x86_64-*linux*)
  5541. case `/usr/bin/file conftest.o` in
  5542. *x86-64*)
  5543. LD="${LD-ld} -m elf32_x86_64"
  5544. ;;
  5545. *)
  5546. LD="${LD-ld} -m elf_i386"
  5547. ;;
  5548. esac
  5549. ;;
  5550. powerpc64le-*linux*)
  5551. LD="${LD-ld} -m elf32lppclinux"
  5552. ;;
  5553. powerpc64-*linux*)
  5554. LD="${LD-ld} -m elf32ppclinux"
  5555. ;;
  5556. s390x-*linux*)
  5557. LD="${LD-ld} -m elf_s390"
  5558. ;;
  5559. sparc64-*linux*)
  5560. LD="${LD-ld} -m elf32_sparc"
  5561. ;;
  5562. esac
  5563. ;;
  5564. *64-bit*)
  5565. case $host in
  5566. x86_64-*kfreebsd*-gnu)
  5567. LD="${LD-ld} -m elf_x86_64_fbsd"
  5568. ;;
  5569. x86_64-*linux*)
  5570. LD="${LD-ld} -m elf_x86_64"
  5571. ;;
  5572. powerpcle-*linux*|powerpc64le-*linux*)
  5573. LD="${LD-ld} -m elf64lppc"
  5574. ;;
  5575. powerpc-*linux*|powerpc64-*linux*)
  5576. LD="${LD-ld} -m elf64ppc"
  5577. ;;
  5578. s390*-*linux*|s390*-*tpf*)
  5579. LD="${LD-ld} -m elf64_s390"
  5580. ;;
  5581. sparc*-*linux*)
  5582. LD="${LD-ld} -m elf64_sparc"
  5583. ;;
  5584. esac
  5585. ;;
  5586. esac
  5587. fi
  5588. rm -rf conftest*
  5589. ;;
  5590. *-*-sco3.2v5*)
  5591. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5592. SAVE_CFLAGS=$CFLAGS
  5593. CFLAGS="$CFLAGS -belf"
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5595. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5596. if ${lt_cv_cc_needs_belf+:} false; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. ac_ext=c
  5600. ac_cpp='$CPP $CPPFLAGS'
  5601. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5602. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5603. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5605. /* end confdefs.h. */
  5606. int
  5607. main ()
  5608. {
  5609. ;
  5610. return 0;
  5611. }
  5612. _ACEOF
  5613. if ac_fn_c_try_link "$LINENO"; then :
  5614. lt_cv_cc_needs_belf=yes
  5615. else
  5616. lt_cv_cc_needs_belf=no
  5617. fi
  5618. rm -f core conftest.err conftest.$ac_objext \
  5619. conftest$ac_exeext conftest.$ac_ext
  5620. ac_ext=c
  5621. ac_cpp='$CPP $CPPFLAGS'
  5622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5625. fi
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5627. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5628. if test yes != "$lt_cv_cc_needs_belf"; then
  5629. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5630. CFLAGS=$SAVE_CFLAGS
  5631. fi
  5632. ;;
  5633. *-*solaris*)
  5634. # Find out what ABI is being produced by ac_compile, and set linker
  5635. # options accordingly.
  5636. echo 'int i;' > conftest.$ac_ext
  5637. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5638. (eval $ac_compile) 2>&5
  5639. ac_status=$?
  5640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5641. test $ac_status = 0; }; then
  5642. case `/usr/bin/file conftest.o` in
  5643. *64-bit*)
  5644. case $lt_cv_prog_gnu_ld in
  5645. yes*)
  5646. case $host in
  5647. i?86-*-solaris*|x86_64-*-solaris*)
  5648. LD="${LD-ld} -m elf_x86_64"
  5649. ;;
  5650. sparc*-*-solaris*)
  5651. LD="${LD-ld} -m elf64_sparc"
  5652. ;;
  5653. esac
  5654. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5655. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5656. LD=${LD-ld}_sol2
  5657. fi
  5658. ;;
  5659. *)
  5660. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5661. LD="${LD-ld} -64"
  5662. fi
  5663. ;;
  5664. esac
  5665. ;;
  5666. esac
  5667. fi
  5668. rm -rf conftest*
  5669. ;;
  5670. esac
  5671. need_locks=$enable_libtool_lock
  5672. if test -n "$ac_tool_prefix"; then
  5673. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5674. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5676. $as_echo_n "checking for $ac_word... " >&6; }
  5677. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. if test -n "$MANIFEST_TOOL"; then
  5681. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5682. else
  5683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5690. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. IFS=$as_save_IFS
  5697. fi
  5698. fi
  5699. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5700. if test -n "$MANIFEST_TOOL"; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5702. $as_echo "$MANIFEST_TOOL" >&6; }
  5703. else
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5705. $as_echo "no" >&6; }
  5706. fi
  5707. fi
  5708. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5709. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5710. # Extract the first word of "mt", so it can be a program name with args.
  5711. set dummy mt; ac_word=$2
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5713. $as_echo_n "checking for $ac_word... " >&6; }
  5714. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5718. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5719. else
  5720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5721. for as_dir in $PATH
  5722. do
  5723. IFS=$as_save_IFS
  5724. test -z "$as_dir" && as_dir=.
  5725. for ac_exec_ext in '' $ac_executable_extensions; do
  5726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5727. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5729. break 2
  5730. fi
  5731. done
  5732. done
  5733. IFS=$as_save_IFS
  5734. fi
  5735. fi
  5736. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5737. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5739. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5740. else
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5742. $as_echo "no" >&6; }
  5743. fi
  5744. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5745. MANIFEST_TOOL=":"
  5746. else
  5747. case $cross_compiling:$ac_tool_warned in
  5748. yes:)
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5751. ac_tool_warned=yes ;;
  5752. esac
  5753. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5754. fi
  5755. else
  5756. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5757. fi
  5758. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5760. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5761. if ${lt_cv_path_mainfest_tool+:} false; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. lt_cv_path_mainfest_tool=no
  5765. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5766. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5767. cat conftest.err >&5
  5768. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5769. lt_cv_path_mainfest_tool=yes
  5770. fi
  5771. rm -f conftest*
  5772. fi
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5774. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5775. if test yes != "$lt_cv_path_mainfest_tool"; then
  5776. MANIFEST_TOOL=:
  5777. fi
  5778. case $host_os in
  5779. rhapsody* | darwin*)
  5780. if test -n "$ac_tool_prefix"; then
  5781. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5782. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5784. $as_echo_n "checking for $ac_word... " >&6; }
  5785. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5786. $as_echo_n "(cached) " >&6
  5787. else
  5788. if test -n "$DSYMUTIL"; then
  5789. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5790. else
  5791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5792. for as_dir in $PATH
  5793. do
  5794. IFS=$as_save_IFS
  5795. test -z "$as_dir" && as_dir=.
  5796. for ac_exec_ext in '' $ac_executable_extensions; do
  5797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5798. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5800. break 2
  5801. fi
  5802. done
  5803. done
  5804. IFS=$as_save_IFS
  5805. fi
  5806. fi
  5807. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5808. if test -n "$DSYMUTIL"; then
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5810. $as_echo "$DSYMUTIL" >&6; }
  5811. else
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5813. $as_echo "no" >&6; }
  5814. fi
  5815. fi
  5816. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5817. ac_ct_DSYMUTIL=$DSYMUTIL
  5818. # Extract the first word of "dsymutil", so it can be a program name with args.
  5819. set dummy dsymutil; ac_word=$2
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5821. $as_echo_n "checking for $ac_word... " >&6; }
  5822. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$ac_ct_DSYMUTIL"; then
  5826. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5835. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5845. if test -n "$ac_ct_DSYMUTIL"; then
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5847. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5848. else
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. $as_echo "no" >&6; }
  5851. fi
  5852. if test "x$ac_ct_DSYMUTIL" = x; then
  5853. DSYMUTIL=":"
  5854. else
  5855. case $cross_compiling:$ac_tool_warned in
  5856. yes:)
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5858. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5859. ac_tool_warned=yes ;;
  5860. esac
  5861. DSYMUTIL=$ac_ct_DSYMUTIL
  5862. fi
  5863. else
  5864. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5865. fi
  5866. if test -n "$ac_tool_prefix"; then
  5867. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5868. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5870. $as_echo_n "checking for $ac_word... " >&6; }
  5871. if ${ac_cv_prog_NMEDIT+:} false; then :
  5872. $as_echo_n "(cached) " >&6
  5873. else
  5874. if test -n "$NMEDIT"; then
  5875. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5876. else
  5877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5878. for as_dir in $PATH
  5879. do
  5880. IFS=$as_save_IFS
  5881. test -z "$as_dir" && as_dir=.
  5882. for ac_exec_ext in '' $ac_executable_extensions; do
  5883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5884. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5886. break 2
  5887. fi
  5888. done
  5889. done
  5890. IFS=$as_save_IFS
  5891. fi
  5892. fi
  5893. NMEDIT=$ac_cv_prog_NMEDIT
  5894. if test -n "$NMEDIT"; then
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5896. $as_echo "$NMEDIT" >&6; }
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5899. $as_echo "no" >&6; }
  5900. fi
  5901. fi
  5902. if test -z "$ac_cv_prog_NMEDIT"; then
  5903. ac_ct_NMEDIT=$NMEDIT
  5904. # Extract the first word of "nmedit", so it can be a program name with args.
  5905. set dummy nmedit; ac_word=$2
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5907. $as_echo_n "checking for $ac_word... " >&6; }
  5908. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. if test -n "$ac_ct_NMEDIT"; then
  5912. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5913. else
  5914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5915. for as_dir in $PATH
  5916. do
  5917. IFS=$as_save_IFS
  5918. test -z "$as_dir" && as_dir=.
  5919. for ac_exec_ext in '' $ac_executable_extensions; do
  5920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5921. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5923. break 2
  5924. fi
  5925. done
  5926. done
  5927. IFS=$as_save_IFS
  5928. fi
  5929. fi
  5930. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5931. if test -n "$ac_ct_NMEDIT"; then
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5933. $as_echo "$ac_ct_NMEDIT" >&6; }
  5934. else
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5936. $as_echo "no" >&6; }
  5937. fi
  5938. if test "x$ac_ct_NMEDIT" = x; then
  5939. NMEDIT=":"
  5940. else
  5941. case $cross_compiling:$ac_tool_warned in
  5942. yes:)
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5945. ac_tool_warned=yes ;;
  5946. esac
  5947. NMEDIT=$ac_ct_NMEDIT
  5948. fi
  5949. else
  5950. NMEDIT="$ac_cv_prog_NMEDIT"
  5951. fi
  5952. if test -n "$ac_tool_prefix"; then
  5953. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5954. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5956. $as_echo_n "checking for $ac_word... " >&6; }
  5957. if ${ac_cv_prog_LIPO+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. if test -n "$LIPO"; then
  5961. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5962. else
  5963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5964. for as_dir in $PATH
  5965. do
  5966. IFS=$as_save_IFS
  5967. test -z "$as_dir" && as_dir=.
  5968. for ac_exec_ext in '' $ac_executable_extensions; do
  5969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5970. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5972. break 2
  5973. fi
  5974. done
  5975. done
  5976. IFS=$as_save_IFS
  5977. fi
  5978. fi
  5979. LIPO=$ac_cv_prog_LIPO
  5980. if test -n "$LIPO"; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5982. $as_echo "$LIPO" >&6; }
  5983. else
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5985. $as_echo "no" >&6; }
  5986. fi
  5987. fi
  5988. if test -z "$ac_cv_prog_LIPO"; then
  5989. ac_ct_LIPO=$LIPO
  5990. # Extract the first word of "lipo", so it can be a program name with args.
  5991. set dummy lipo; ac_word=$2
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5993. $as_echo_n "checking for $ac_word... " >&6; }
  5994. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. if test -n "$ac_ct_LIPO"; then
  5998. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5999. else
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. test -z "$as_dir" && as_dir=.
  6005. for ac_exec_ext in '' $ac_executable_extensions; do
  6006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6007. ac_cv_prog_ac_ct_LIPO="lipo"
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6009. break 2
  6010. fi
  6011. done
  6012. done
  6013. IFS=$as_save_IFS
  6014. fi
  6015. fi
  6016. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6017. if test -n "$ac_ct_LIPO"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6019. $as_echo "$ac_ct_LIPO" >&6; }
  6020. else
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6022. $as_echo "no" >&6; }
  6023. fi
  6024. if test "x$ac_ct_LIPO" = x; then
  6025. LIPO=":"
  6026. else
  6027. case $cross_compiling:$ac_tool_warned in
  6028. yes:)
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6031. ac_tool_warned=yes ;;
  6032. esac
  6033. LIPO=$ac_ct_LIPO
  6034. fi
  6035. else
  6036. LIPO="$ac_cv_prog_LIPO"
  6037. fi
  6038. if test -n "$ac_tool_prefix"; then
  6039. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6040. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6042. $as_echo_n "checking for $ac_word... " >&6; }
  6043. if ${ac_cv_prog_OTOOL+:} false; then :
  6044. $as_echo_n "(cached) " >&6
  6045. else
  6046. if test -n "$OTOOL"; then
  6047. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6048. else
  6049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6050. for as_dir in $PATH
  6051. do
  6052. IFS=$as_save_IFS
  6053. test -z "$as_dir" && as_dir=.
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6056. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. fi
  6064. fi
  6065. OTOOL=$ac_cv_prog_OTOOL
  6066. if test -n "$OTOOL"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6068. $as_echo "$OTOOL" >&6; }
  6069. else
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6071. $as_echo "no" >&6; }
  6072. fi
  6073. fi
  6074. if test -z "$ac_cv_prog_OTOOL"; then
  6075. ac_ct_OTOOL=$OTOOL
  6076. # Extract the first word of "otool", so it can be a program name with args.
  6077. set dummy otool; ac_word=$2
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6079. $as_echo_n "checking for $ac_word... " >&6; }
  6080. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. if test -n "$ac_ct_OTOOL"; then
  6084. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6085. else
  6086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6087. for as_dir in $PATH
  6088. do
  6089. IFS=$as_save_IFS
  6090. test -z "$as_dir" && as_dir=.
  6091. for ac_exec_ext in '' $ac_executable_extensions; do
  6092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6093. ac_cv_prog_ac_ct_OTOOL="otool"
  6094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6095. break 2
  6096. fi
  6097. done
  6098. done
  6099. IFS=$as_save_IFS
  6100. fi
  6101. fi
  6102. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6103. if test -n "$ac_ct_OTOOL"; then
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6105. $as_echo "$ac_ct_OTOOL" >&6; }
  6106. else
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6108. $as_echo "no" >&6; }
  6109. fi
  6110. if test "x$ac_ct_OTOOL" = x; then
  6111. OTOOL=":"
  6112. else
  6113. case $cross_compiling:$ac_tool_warned in
  6114. yes:)
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6117. ac_tool_warned=yes ;;
  6118. esac
  6119. OTOOL=$ac_ct_OTOOL
  6120. fi
  6121. else
  6122. OTOOL="$ac_cv_prog_OTOOL"
  6123. fi
  6124. if test -n "$ac_tool_prefix"; then
  6125. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6126. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6128. $as_echo_n "checking for $ac_word... " >&6; }
  6129. if ${ac_cv_prog_OTOOL64+:} false; then :
  6130. $as_echo_n "(cached) " >&6
  6131. else
  6132. if test -n "$OTOOL64"; then
  6133. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6134. else
  6135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6136. for as_dir in $PATH
  6137. do
  6138. IFS=$as_save_IFS
  6139. test -z "$as_dir" && as_dir=.
  6140. for ac_exec_ext in '' $ac_executable_extensions; do
  6141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6142. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6144. break 2
  6145. fi
  6146. done
  6147. done
  6148. IFS=$as_save_IFS
  6149. fi
  6150. fi
  6151. OTOOL64=$ac_cv_prog_OTOOL64
  6152. if test -n "$OTOOL64"; then
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6154. $as_echo "$OTOOL64" >&6; }
  6155. else
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6157. $as_echo "no" >&6; }
  6158. fi
  6159. fi
  6160. if test -z "$ac_cv_prog_OTOOL64"; then
  6161. ac_ct_OTOOL64=$OTOOL64
  6162. # Extract the first word of "otool64", so it can be a program name with args.
  6163. set dummy otool64; ac_word=$2
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6165. $as_echo_n "checking for $ac_word... " >&6; }
  6166. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6167. $as_echo_n "(cached) " >&6
  6168. else
  6169. if test -n "$ac_ct_OTOOL64"; then
  6170. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6171. else
  6172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6173. for as_dir in $PATH
  6174. do
  6175. IFS=$as_save_IFS
  6176. test -z "$as_dir" && as_dir=.
  6177. for ac_exec_ext in '' $ac_executable_extensions; do
  6178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6179. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6181. break 2
  6182. fi
  6183. done
  6184. done
  6185. IFS=$as_save_IFS
  6186. fi
  6187. fi
  6188. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6189. if test -n "$ac_ct_OTOOL64"; then
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6191. $as_echo "$ac_ct_OTOOL64" >&6; }
  6192. else
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6194. $as_echo "no" >&6; }
  6195. fi
  6196. if test "x$ac_ct_OTOOL64" = x; then
  6197. OTOOL64=":"
  6198. else
  6199. case $cross_compiling:$ac_tool_warned in
  6200. yes:)
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6202. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6203. ac_tool_warned=yes ;;
  6204. esac
  6205. OTOOL64=$ac_ct_OTOOL64
  6206. fi
  6207. else
  6208. OTOOL64="$ac_cv_prog_OTOOL64"
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6211. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6212. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. lt_cv_apple_cc_single_mod=no
  6216. if test -z "$LT_MULTI_MODULE"; then
  6217. # By default we will add the -single_module flag. You can override
  6218. # by either setting the environment variable LT_MULTI_MODULE
  6219. # non-empty at configure time, or by adding -multi_module to the
  6220. # link flags.
  6221. rm -rf libconftest.dylib*
  6222. echo "int foo(void){return 1;}" > conftest.c
  6223. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6224. -dynamiclib -Wl,-single_module conftest.c" >&5
  6225. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6226. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6227. _lt_result=$?
  6228. # If there is a non-empty error log, and "single_module"
  6229. # appears in it, assume the flag caused a linker warning
  6230. if test -s conftest.err && $GREP single_module conftest.err; then
  6231. cat conftest.err >&5
  6232. # Otherwise, if the output was created with a 0 exit code from
  6233. # the compiler, it worked.
  6234. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6235. lt_cv_apple_cc_single_mod=yes
  6236. else
  6237. cat conftest.err >&5
  6238. fi
  6239. rm -rf libconftest.dylib*
  6240. rm -f conftest.*
  6241. fi
  6242. fi
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6244. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6246. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6247. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6248. $as_echo_n "(cached) " >&6
  6249. else
  6250. lt_cv_ld_exported_symbols_list=no
  6251. save_LDFLAGS=$LDFLAGS
  6252. echo "_main" > conftest.sym
  6253. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6255. /* end confdefs.h. */
  6256. int
  6257. main ()
  6258. {
  6259. ;
  6260. return 0;
  6261. }
  6262. _ACEOF
  6263. if ac_fn_c_try_link "$LINENO"; then :
  6264. lt_cv_ld_exported_symbols_list=yes
  6265. else
  6266. lt_cv_ld_exported_symbols_list=no
  6267. fi
  6268. rm -f core conftest.err conftest.$ac_objext \
  6269. conftest$ac_exeext conftest.$ac_ext
  6270. LDFLAGS=$save_LDFLAGS
  6271. fi
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6273. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6275. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6276. if ${lt_cv_ld_force_load+:} false; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. lt_cv_ld_force_load=no
  6280. cat > conftest.c << _LT_EOF
  6281. int forced_loaded() { return 2;}
  6282. _LT_EOF
  6283. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6284. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6285. echo "$AR cru libconftest.a conftest.o" >&5
  6286. $AR cru libconftest.a conftest.o 2>&5
  6287. echo "$RANLIB libconftest.a" >&5
  6288. $RANLIB libconftest.a 2>&5
  6289. cat > conftest.c << _LT_EOF
  6290. int main() { return 0;}
  6291. _LT_EOF
  6292. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6293. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6294. _lt_result=$?
  6295. if test -s conftest.err && $GREP force_load conftest.err; then
  6296. cat conftest.err >&5
  6297. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6298. lt_cv_ld_force_load=yes
  6299. else
  6300. cat conftest.err >&5
  6301. fi
  6302. rm -f conftest.err libconftest.a conftest conftest.c
  6303. rm -rf conftest.dSYM
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6306. $as_echo "$lt_cv_ld_force_load" >&6; }
  6307. case $host_os in
  6308. rhapsody* | darwin1.[012])
  6309. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6310. darwin1.*)
  6311. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6312. darwin*)
  6313. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6314. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6315. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6316. *)
  6317. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6318. esac
  6319. ;;
  6320. esac
  6321. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6322. _lt_dar_single_mod='$single_module'
  6323. fi
  6324. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6325. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6326. else
  6327. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6328. fi
  6329. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6330. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6331. else
  6332. _lt_dsymutil=
  6333. fi
  6334. ;;
  6335. esac
  6336. # func_munge_path_list VARIABLE PATH
  6337. # -----------------------------------
  6338. # VARIABLE is name of variable containing _space_ separated list of
  6339. # directories to be munged by the contents of PATH, which is string
  6340. # having a format:
  6341. # "DIR[:DIR]:"
  6342. # string "DIR[ DIR]" will be prepended to VARIABLE
  6343. # ":DIR[:DIR]"
  6344. # string "DIR[ DIR]" will be appended to VARIABLE
  6345. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6346. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6347. # "DIRA[ DIRA]" will be appended to VARIABLE
  6348. # "DIR[:DIR]"
  6349. # VARIABLE will be replaced by "DIR[ DIR]"
  6350. func_munge_path_list ()
  6351. {
  6352. case x$2 in
  6353. x)
  6354. ;;
  6355. *:)
  6356. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6357. ;;
  6358. x:*)
  6359. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6360. ;;
  6361. *::*)
  6362. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6363. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6364. ;;
  6365. *)
  6366. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6367. ;;
  6368. esac
  6369. }
  6370. ac_ext=c
  6371. ac_cpp='$CPP $CPPFLAGS'
  6372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6376. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6377. # On Suns, sometimes $CPP names a directory.
  6378. if test -n "$CPP" && test -d "$CPP"; then
  6379. CPP=
  6380. fi
  6381. if test -z "$CPP"; then
  6382. if ${ac_cv_prog_CPP+:} false; then :
  6383. $as_echo_n "(cached) " >&6
  6384. else
  6385. # Double quotes because CPP needs to be expanded
  6386. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6387. do
  6388. ac_preproc_ok=false
  6389. for ac_c_preproc_warn_flag in '' yes
  6390. do
  6391. # Use a header file that comes with gcc, so configuring glibc
  6392. # with a fresh cross-compiler works.
  6393. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6394. # <limits.h> exists even on freestanding compilers.
  6395. # On the NeXT, cc -E runs the code through the compiler's parser,
  6396. # not just through cpp. "Syntax error" is here to catch this case.
  6397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6398. /* end confdefs.h. */
  6399. #ifdef __STDC__
  6400. # include <limits.h>
  6401. #else
  6402. # include <assert.h>
  6403. #endif
  6404. Syntax error
  6405. _ACEOF
  6406. if ac_fn_c_try_cpp "$LINENO"; then :
  6407. else
  6408. # Broken: fails on valid input.
  6409. continue
  6410. fi
  6411. rm -f conftest.err conftest.i conftest.$ac_ext
  6412. # OK, works on sane cases. Now check whether nonexistent headers
  6413. # can be detected and how.
  6414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6415. /* end confdefs.h. */
  6416. #include <ac_nonexistent.h>
  6417. _ACEOF
  6418. if ac_fn_c_try_cpp "$LINENO"; then :
  6419. # Broken: success on invalid input.
  6420. continue
  6421. else
  6422. # Passes both tests.
  6423. ac_preproc_ok=:
  6424. break
  6425. fi
  6426. rm -f conftest.err conftest.i conftest.$ac_ext
  6427. done
  6428. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6429. rm -f conftest.i conftest.err conftest.$ac_ext
  6430. if $ac_preproc_ok; then :
  6431. break
  6432. fi
  6433. done
  6434. ac_cv_prog_CPP=$CPP
  6435. fi
  6436. CPP=$ac_cv_prog_CPP
  6437. else
  6438. ac_cv_prog_CPP=$CPP
  6439. fi
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6441. $as_echo "$CPP" >&6; }
  6442. ac_preproc_ok=false
  6443. for ac_c_preproc_warn_flag in '' yes
  6444. do
  6445. # Use a header file that comes with gcc, so configuring glibc
  6446. # with a fresh cross-compiler works.
  6447. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6448. # <limits.h> exists even on freestanding compilers.
  6449. # On the NeXT, cc -E runs the code through the compiler's parser,
  6450. # not just through cpp. "Syntax error" is here to catch this case.
  6451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6452. /* end confdefs.h. */
  6453. #ifdef __STDC__
  6454. # include <limits.h>
  6455. #else
  6456. # include <assert.h>
  6457. #endif
  6458. Syntax error
  6459. _ACEOF
  6460. if ac_fn_c_try_cpp "$LINENO"; then :
  6461. else
  6462. # Broken: fails on valid input.
  6463. continue
  6464. fi
  6465. rm -f conftest.err conftest.i conftest.$ac_ext
  6466. # OK, works on sane cases. Now check whether nonexistent headers
  6467. # can be detected and how.
  6468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6469. /* end confdefs.h. */
  6470. #include <ac_nonexistent.h>
  6471. _ACEOF
  6472. if ac_fn_c_try_cpp "$LINENO"; then :
  6473. # Broken: success on invalid input.
  6474. continue
  6475. else
  6476. # Passes both tests.
  6477. ac_preproc_ok=:
  6478. break
  6479. fi
  6480. rm -f conftest.err conftest.i conftest.$ac_ext
  6481. done
  6482. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6483. rm -f conftest.i conftest.err conftest.$ac_ext
  6484. if $ac_preproc_ok; then :
  6485. else
  6486. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6488. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6489. See \`config.log' for more details" "$LINENO" 5; }
  6490. fi
  6491. ac_ext=c
  6492. ac_cpp='$CPP $CPPFLAGS'
  6493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6497. $as_echo_n "checking for ANSI C header files... " >&6; }
  6498. if ${ac_cv_header_stdc+:} false; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6502. /* end confdefs.h. */
  6503. #include <stdlib.h>
  6504. #include <stdarg.h>
  6505. #include <string.h>
  6506. #include <float.h>
  6507. int
  6508. main ()
  6509. {
  6510. ;
  6511. return 0;
  6512. }
  6513. _ACEOF
  6514. if ac_fn_c_try_compile "$LINENO"; then :
  6515. ac_cv_header_stdc=yes
  6516. else
  6517. ac_cv_header_stdc=no
  6518. fi
  6519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6520. if test $ac_cv_header_stdc = yes; then
  6521. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6523. /* end confdefs.h. */
  6524. #include <string.h>
  6525. _ACEOF
  6526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6527. $EGREP "memchr" >/dev/null 2>&1; then :
  6528. else
  6529. ac_cv_header_stdc=no
  6530. fi
  6531. rm -f conftest*
  6532. fi
  6533. if test $ac_cv_header_stdc = yes; then
  6534. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6536. /* end confdefs.h. */
  6537. #include <stdlib.h>
  6538. _ACEOF
  6539. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6540. $EGREP "free" >/dev/null 2>&1; then :
  6541. else
  6542. ac_cv_header_stdc=no
  6543. fi
  6544. rm -f conftest*
  6545. fi
  6546. if test $ac_cv_header_stdc = yes; then
  6547. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6548. if test "$cross_compiling" = yes; then :
  6549. :
  6550. else
  6551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6552. /* end confdefs.h. */
  6553. #include <ctype.h>
  6554. #include <stdlib.h>
  6555. #if ((' ' & 0x0FF) == 0x020)
  6556. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6557. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6558. #else
  6559. # define ISLOWER(c) \
  6560. (('a' <= (c) && (c) <= 'i') \
  6561. || ('j' <= (c) && (c) <= 'r') \
  6562. || ('s' <= (c) && (c) <= 'z'))
  6563. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6564. #endif
  6565. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6566. int
  6567. main ()
  6568. {
  6569. int i;
  6570. for (i = 0; i < 256; i++)
  6571. if (XOR (islower (i), ISLOWER (i))
  6572. || toupper (i) != TOUPPER (i))
  6573. return 2;
  6574. return 0;
  6575. }
  6576. _ACEOF
  6577. if ac_fn_c_try_run "$LINENO"; then :
  6578. else
  6579. ac_cv_header_stdc=no
  6580. fi
  6581. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6582. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6583. fi
  6584. fi
  6585. fi
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6587. $as_echo "$ac_cv_header_stdc" >&6; }
  6588. if test $ac_cv_header_stdc = yes; then
  6589. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6590. fi
  6591. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6592. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6593. inttypes.h stdint.h unistd.h
  6594. do :
  6595. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6596. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6597. "
  6598. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6599. cat >>confdefs.h <<_ACEOF
  6600. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6601. _ACEOF
  6602. fi
  6603. done
  6604. for ac_header in dlfcn.h
  6605. do :
  6606. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6607. "
  6608. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6609. cat >>confdefs.h <<_ACEOF
  6610. #define HAVE_DLFCN_H 1
  6611. _ACEOF
  6612. fi
  6613. done
  6614. # Set options
  6615. enable_win32_dll=yes
  6616. case $host in
  6617. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6618. if test -n "$ac_tool_prefix"; then
  6619. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6620. set dummy ${ac_tool_prefix}as; ac_word=$2
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6622. $as_echo_n "checking for $ac_word... " >&6; }
  6623. if ${ac_cv_prog_AS+:} false; then :
  6624. $as_echo_n "(cached) " >&6
  6625. else
  6626. if test -n "$AS"; then
  6627. ac_cv_prog_AS="$AS" # Let the user override the test.
  6628. else
  6629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6630. for as_dir in $PATH
  6631. do
  6632. IFS=$as_save_IFS
  6633. test -z "$as_dir" && as_dir=.
  6634. for ac_exec_ext in '' $ac_executable_extensions; do
  6635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6636. ac_cv_prog_AS="${ac_tool_prefix}as"
  6637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6638. break 2
  6639. fi
  6640. done
  6641. done
  6642. IFS=$as_save_IFS
  6643. fi
  6644. fi
  6645. AS=$ac_cv_prog_AS
  6646. if test -n "$AS"; then
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6648. $as_echo "$AS" >&6; }
  6649. else
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6651. $as_echo "no" >&6; }
  6652. fi
  6653. fi
  6654. if test -z "$ac_cv_prog_AS"; then
  6655. ac_ct_AS=$AS
  6656. # Extract the first word of "as", so it can be a program name with args.
  6657. set dummy as; ac_word=$2
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6659. $as_echo_n "checking for $ac_word... " >&6; }
  6660. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6661. $as_echo_n "(cached) " >&6
  6662. else
  6663. if test -n "$ac_ct_AS"; then
  6664. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6665. else
  6666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6667. for as_dir in $PATH
  6668. do
  6669. IFS=$as_save_IFS
  6670. test -z "$as_dir" && as_dir=.
  6671. for ac_exec_ext in '' $ac_executable_extensions; do
  6672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6673. ac_cv_prog_ac_ct_AS="as"
  6674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6675. break 2
  6676. fi
  6677. done
  6678. done
  6679. IFS=$as_save_IFS
  6680. fi
  6681. fi
  6682. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6683. if test -n "$ac_ct_AS"; then
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6685. $as_echo "$ac_ct_AS" >&6; }
  6686. else
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6688. $as_echo "no" >&6; }
  6689. fi
  6690. if test "x$ac_ct_AS" = x; then
  6691. AS="false"
  6692. else
  6693. case $cross_compiling:$ac_tool_warned in
  6694. yes:)
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6696. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6697. ac_tool_warned=yes ;;
  6698. esac
  6699. AS=$ac_ct_AS
  6700. fi
  6701. else
  6702. AS="$ac_cv_prog_AS"
  6703. fi
  6704. if test -n "$ac_tool_prefix"; then
  6705. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6706. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6708. $as_echo_n "checking for $ac_word... " >&6; }
  6709. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6710. $as_echo_n "(cached) " >&6
  6711. else
  6712. if test -n "$DLLTOOL"; then
  6713. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6714. else
  6715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6716. for as_dir in $PATH
  6717. do
  6718. IFS=$as_save_IFS
  6719. test -z "$as_dir" && as_dir=.
  6720. for ac_exec_ext in '' $ac_executable_extensions; do
  6721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6722. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6724. break 2
  6725. fi
  6726. done
  6727. done
  6728. IFS=$as_save_IFS
  6729. fi
  6730. fi
  6731. DLLTOOL=$ac_cv_prog_DLLTOOL
  6732. if test -n "$DLLTOOL"; then
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6734. $as_echo "$DLLTOOL" >&6; }
  6735. else
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6737. $as_echo "no" >&6; }
  6738. fi
  6739. fi
  6740. if test -z "$ac_cv_prog_DLLTOOL"; then
  6741. ac_ct_DLLTOOL=$DLLTOOL
  6742. # Extract the first word of "dlltool", so it can be a program name with args.
  6743. set dummy dlltool; ac_word=$2
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6745. $as_echo_n "checking for $ac_word... " >&6; }
  6746. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6747. $as_echo_n "(cached) " >&6
  6748. else
  6749. if test -n "$ac_ct_DLLTOOL"; then
  6750. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6751. else
  6752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6753. for as_dir in $PATH
  6754. do
  6755. IFS=$as_save_IFS
  6756. test -z "$as_dir" && as_dir=.
  6757. for ac_exec_ext in '' $ac_executable_extensions; do
  6758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6759. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6761. break 2
  6762. fi
  6763. done
  6764. done
  6765. IFS=$as_save_IFS
  6766. fi
  6767. fi
  6768. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6769. if test -n "$ac_ct_DLLTOOL"; then
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6771. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6772. else
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6774. $as_echo "no" >&6; }
  6775. fi
  6776. if test "x$ac_ct_DLLTOOL" = x; then
  6777. DLLTOOL="false"
  6778. else
  6779. case $cross_compiling:$ac_tool_warned in
  6780. yes:)
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6782. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6783. ac_tool_warned=yes ;;
  6784. esac
  6785. DLLTOOL=$ac_ct_DLLTOOL
  6786. fi
  6787. else
  6788. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6789. fi
  6790. if test -n "$ac_tool_prefix"; then
  6791. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6792. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6794. $as_echo_n "checking for $ac_word... " >&6; }
  6795. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6796. $as_echo_n "(cached) " >&6
  6797. else
  6798. if test -n "$OBJDUMP"; then
  6799. ac_cv_prog_OBJDUMP="$OBJDUMP" # 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. test -z "$as_dir" && as_dir=.
  6806. for ac_exec_ext in '' $ac_executable_extensions; do
  6807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6808. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6810. break 2
  6811. fi
  6812. done
  6813. done
  6814. IFS=$as_save_IFS
  6815. fi
  6816. fi
  6817. OBJDUMP=$ac_cv_prog_OBJDUMP
  6818. if test -n "$OBJDUMP"; then
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6820. $as_echo "$OBJDUMP" >&6; }
  6821. else
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6823. $as_echo "no" >&6; }
  6824. fi
  6825. fi
  6826. if test -z "$ac_cv_prog_OBJDUMP"; then
  6827. ac_ct_OBJDUMP=$OBJDUMP
  6828. # Extract the first word of "objdump", so it can be a program name with args.
  6829. set dummy objdump; ac_word=$2
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6831. $as_echo_n "checking for $ac_word... " >&6; }
  6832. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6833. $as_echo_n "(cached) " >&6
  6834. else
  6835. if test -n "$ac_ct_OBJDUMP"; then
  6836. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6837. else
  6838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6839. for as_dir in $PATH
  6840. do
  6841. IFS=$as_save_IFS
  6842. test -z "$as_dir" && as_dir=.
  6843. for ac_exec_ext in '' $ac_executable_extensions; do
  6844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6845. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6847. break 2
  6848. fi
  6849. done
  6850. done
  6851. IFS=$as_save_IFS
  6852. fi
  6853. fi
  6854. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6855. if test -n "$ac_ct_OBJDUMP"; then
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6857. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6858. else
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6860. $as_echo "no" >&6; }
  6861. fi
  6862. if test "x$ac_ct_OBJDUMP" = x; then
  6863. OBJDUMP="false"
  6864. else
  6865. case $cross_compiling:$ac_tool_warned in
  6866. yes:)
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6869. ac_tool_warned=yes ;;
  6870. esac
  6871. OBJDUMP=$ac_ct_OBJDUMP
  6872. fi
  6873. else
  6874. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6875. fi
  6876. ;;
  6877. esac
  6878. test -z "$AS" && AS=as
  6879. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6880. test -z "$OBJDUMP" && OBJDUMP=objdump
  6881. enable_dlopen=no
  6882. # Check whether --enable-shared was given.
  6883. if test "${enable_shared+set}" = set; then :
  6884. enableval=$enable_shared; p=${PACKAGE-default}
  6885. case $enableval in
  6886. yes) enable_shared=yes ;;
  6887. no) enable_shared=no ;;
  6888. *)
  6889. enable_shared=no
  6890. # Look at the argument we got. We use all the common list separators.
  6891. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6892. for pkg in $enableval; do
  6893. IFS=$lt_save_ifs
  6894. if test "X$pkg" = "X$p"; then
  6895. enable_shared=yes
  6896. fi
  6897. done
  6898. IFS=$lt_save_ifs
  6899. ;;
  6900. esac
  6901. else
  6902. enable_shared=yes
  6903. fi
  6904. # Check whether --enable-static was given.
  6905. if test "${enable_static+set}" = set; then :
  6906. enableval=$enable_static; p=${PACKAGE-default}
  6907. case $enableval in
  6908. yes) enable_static=yes ;;
  6909. no) enable_static=no ;;
  6910. *)
  6911. enable_static=no
  6912. # Look at the argument we got. We use all the common list separators.
  6913. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6914. for pkg in $enableval; do
  6915. IFS=$lt_save_ifs
  6916. if test "X$pkg" = "X$p"; then
  6917. enable_static=yes
  6918. fi
  6919. done
  6920. IFS=$lt_save_ifs
  6921. ;;
  6922. esac
  6923. else
  6924. enable_static=yes
  6925. fi
  6926. # Check whether --with-pic was given.
  6927. if test "${with_pic+set}" = set; then :
  6928. withval=$with_pic; lt_p=${PACKAGE-default}
  6929. case $withval in
  6930. yes|no) pic_mode=$withval ;;
  6931. *)
  6932. pic_mode=default
  6933. # Look at the argument we got. We use all the common list separators.
  6934. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6935. for lt_pkg in $withval; do
  6936. IFS=$lt_save_ifs
  6937. if test "X$lt_pkg" = "X$lt_p"; then
  6938. pic_mode=yes
  6939. fi
  6940. done
  6941. IFS=$lt_save_ifs
  6942. ;;
  6943. esac
  6944. else
  6945. pic_mode=default
  6946. fi
  6947. # Check whether --enable-fast-install was given.
  6948. if test "${enable_fast_install+set}" = set; then :
  6949. enableval=$enable_fast_install; p=${PACKAGE-default}
  6950. case $enableval in
  6951. yes) enable_fast_install=yes ;;
  6952. no) enable_fast_install=no ;;
  6953. *)
  6954. enable_fast_install=no
  6955. # Look at the argument we got. We use all the common list separators.
  6956. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6957. for pkg in $enableval; do
  6958. IFS=$lt_save_ifs
  6959. if test "X$pkg" = "X$p"; then
  6960. enable_fast_install=yes
  6961. fi
  6962. done
  6963. IFS=$lt_save_ifs
  6964. ;;
  6965. esac
  6966. else
  6967. enable_fast_install=yes
  6968. fi
  6969. shared_archive_member_spec=
  6970. case $host,$enable_shared in
  6971. power*-*-aix[5-9]*,yes)
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6973. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6974. # Check whether --with-aix-soname was given.
  6975. if test "${with_aix_soname+set}" = set; then :
  6976. withval=$with_aix_soname; case $withval in
  6977. aix|svr4|both)
  6978. ;;
  6979. *)
  6980. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6981. ;;
  6982. esac
  6983. lt_cv_with_aix_soname=$with_aix_soname
  6984. else
  6985. if ${lt_cv_with_aix_soname+:} false; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. lt_cv_with_aix_soname=aix
  6989. fi
  6990. with_aix_soname=$lt_cv_with_aix_soname
  6991. fi
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6993. $as_echo "$with_aix_soname" >&6; }
  6994. if test aix != "$with_aix_soname"; then
  6995. # For the AIX way of multilib, we name the shared archive member
  6996. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6997. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6998. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6999. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7000. if test 64 = "${OBJECT_MODE-32}"; then
  7001. shared_archive_member_spec=shr_64
  7002. else
  7003. shared_archive_member_spec=shr
  7004. fi
  7005. fi
  7006. ;;
  7007. *)
  7008. with_aix_soname=aix
  7009. ;;
  7010. esac
  7011. # This can be used to rebuild libtool when needed
  7012. LIBTOOL_DEPS=$ltmain
  7013. # Always use our own libtool.
  7014. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7015. test -z "$LN_S" && LN_S="ln -s"
  7016. if test -n "${ZSH_VERSION+set}"; then
  7017. setopt NO_GLOB_SUBST
  7018. fi
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7020. $as_echo_n "checking for objdir... " >&6; }
  7021. if ${lt_cv_objdir+:} false; then :
  7022. $as_echo_n "(cached) " >&6
  7023. else
  7024. rm -f .libs 2>/dev/null
  7025. mkdir .libs 2>/dev/null
  7026. if test -d .libs; then
  7027. lt_cv_objdir=.libs
  7028. else
  7029. # MS-DOS does not allow filenames that begin with a dot.
  7030. lt_cv_objdir=_libs
  7031. fi
  7032. rmdir .libs 2>/dev/null
  7033. fi
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7035. $as_echo "$lt_cv_objdir" >&6; }
  7036. objdir=$lt_cv_objdir
  7037. cat >>confdefs.h <<_ACEOF
  7038. #define LT_OBJDIR "$lt_cv_objdir/"
  7039. _ACEOF
  7040. case $host_os in
  7041. aix3*)
  7042. # AIX sometimes has problems with the GCC collect2 program. For some
  7043. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7044. # vanish in a puff of smoke.
  7045. if test set != "${COLLECT_NAMES+set}"; then
  7046. COLLECT_NAMES=
  7047. export COLLECT_NAMES
  7048. fi
  7049. ;;
  7050. esac
  7051. # Global variables:
  7052. ofile=libtool
  7053. can_build_shared=yes
  7054. # All known linkers require a '.a' archive for static linking (except MSVC,
  7055. # which needs '.lib').
  7056. libext=a
  7057. with_gnu_ld=$lt_cv_prog_gnu_ld
  7058. old_CC=$CC
  7059. old_CFLAGS=$CFLAGS
  7060. # Set sane defaults for various variables
  7061. test -z "$CC" && CC=cc
  7062. test -z "$LTCC" && LTCC=$CC
  7063. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7064. test -z "$LD" && LD=ld
  7065. test -z "$ac_objext" && ac_objext=o
  7066. func_cc_basename $compiler
  7067. cc_basename=$func_cc_basename_result
  7068. # Only perform the check for file, if the check method requires it
  7069. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7070. case $deplibs_check_method in
  7071. file_magic*)
  7072. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7074. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7075. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7076. $as_echo_n "(cached) " >&6
  7077. else
  7078. case $MAGIC_CMD in
  7079. [\\/*] | ?:[\\/]*)
  7080. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7081. ;;
  7082. *)
  7083. lt_save_MAGIC_CMD=$MAGIC_CMD
  7084. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7085. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7086. for ac_dir in $ac_dummy; do
  7087. IFS=$lt_save_ifs
  7088. test -z "$ac_dir" && ac_dir=.
  7089. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7090. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7091. if test -n "$file_magic_test_file"; then
  7092. case $deplibs_check_method in
  7093. "file_magic "*)
  7094. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7095. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7096. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7097. $EGREP "$file_magic_regex" > /dev/null; then
  7098. :
  7099. else
  7100. cat <<_LT_EOF 1>&2
  7101. *** Warning: the command libtool uses to detect shared libraries,
  7102. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7103. *** The result is that libtool may fail to recognize shared libraries
  7104. *** as such. This will affect the creation of libtool libraries that
  7105. *** depend on shared libraries, but programs linked with such libtool
  7106. *** libraries will work regardless of this problem. Nevertheless, you
  7107. *** may want to report the problem to your system manager and/or to
  7108. *** bug-libtool@gnu.org
  7109. _LT_EOF
  7110. fi ;;
  7111. esac
  7112. fi
  7113. break
  7114. fi
  7115. done
  7116. IFS=$lt_save_ifs
  7117. MAGIC_CMD=$lt_save_MAGIC_CMD
  7118. ;;
  7119. esac
  7120. fi
  7121. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7122. if test -n "$MAGIC_CMD"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7124. $as_echo "$MAGIC_CMD" >&6; }
  7125. else
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7127. $as_echo "no" >&6; }
  7128. fi
  7129. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7130. if test -n "$ac_tool_prefix"; then
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7132. $as_echo_n "checking for file... " >&6; }
  7133. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. case $MAGIC_CMD in
  7137. [\\/*] | ?:[\\/]*)
  7138. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7139. ;;
  7140. *)
  7141. lt_save_MAGIC_CMD=$MAGIC_CMD
  7142. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7143. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7144. for ac_dir in $ac_dummy; do
  7145. IFS=$lt_save_ifs
  7146. test -z "$ac_dir" && ac_dir=.
  7147. if test -f "$ac_dir/file"; then
  7148. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7149. if test -n "$file_magic_test_file"; then
  7150. case $deplibs_check_method in
  7151. "file_magic "*)
  7152. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7153. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7154. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7155. $EGREP "$file_magic_regex" > /dev/null; then
  7156. :
  7157. else
  7158. cat <<_LT_EOF 1>&2
  7159. *** Warning: the command libtool uses to detect shared libraries,
  7160. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7161. *** The result is that libtool may fail to recognize shared libraries
  7162. *** as such. This will affect the creation of libtool libraries that
  7163. *** depend on shared libraries, but programs linked with such libtool
  7164. *** libraries will work regardless of this problem. Nevertheless, you
  7165. *** may want to report the problem to your system manager and/or to
  7166. *** bug-libtool@gnu.org
  7167. _LT_EOF
  7168. fi ;;
  7169. esac
  7170. fi
  7171. break
  7172. fi
  7173. done
  7174. IFS=$lt_save_ifs
  7175. MAGIC_CMD=$lt_save_MAGIC_CMD
  7176. ;;
  7177. esac
  7178. fi
  7179. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7180. if test -n "$MAGIC_CMD"; then
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7182. $as_echo "$MAGIC_CMD" >&6; }
  7183. else
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7185. $as_echo "no" >&6; }
  7186. fi
  7187. else
  7188. MAGIC_CMD=:
  7189. fi
  7190. fi
  7191. fi
  7192. ;;
  7193. esac
  7194. # Use C for the default configuration in the libtool script
  7195. lt_save_CC=$CC
  7196. ac_ext=c
  7197. ac_cpp='$CPP $CPPFLAGS'
  7198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7201. # Source file extension for C test sources.
  7202. ac_ext=c
  7203. # Object file extension for compiled C test sources.
  7204. objext=o
  7205. objext=$objext
  7206. # Code to be used in simple compile tests
  7207. lt_simple_compile_test_code="int some_variable = 0;"
  7208. # Code to be used in simple link tests
  7209. lt_simple_link_test_code='int main(){return(0);}'
  7210. # If no C compiler was specified, use CC.
  7211. LTCC=${LTCC-"$CC"}
  7212. # If no C compiler flags were specified, use CFLAGS.
  7213. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7214. # Allow CC to be a program name with arguments.
  7215. compiler=$CC
  7216. # Save the default compiler, since it gets overwritten when the other
  7217. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7218. compiler_DEFAULT=$CC
  7219. # save warnings/boilerplate of simple test code
  7220. ac_outfile=conftest.$ac_objext
  7221. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7222. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7223. _lt_compiler_boilerplate=`cat conftest.err`
  7224. $RM conftest*
  7225. ac_outfile=conftest.$ac_objext
  7226. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7227. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7228. _lt_linker_boilerplate=`cat conftest.err`
  7229. $RM -r conftest*
  7230. ## CAVEAT EMPTOR:
  7231. ## There is no encapsulation within the following macros, do not change
  7232. ## the running order or otherwise move them around unless you know exactly
  7233. ## what you are doing...
  7234. if test -n "$compiler"; then
  7235. lt_prog_compiler_no_builtin_flag=
  7236. if test yes = "$GCC"; then
  7237. case $cc_basename in
  7238. nvcc*)
  7239. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7240. *)
  7241. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7242. esac
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7244. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7245. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7246. $as_echo_n "(cached) " >&6
  7247. else
  7248. lt_cv_prog_compiler_rtti_exceptions=no
  7249. ac_outfile=conftest.$ac_objext
  7250. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7251. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7252. # Insert the option either (1) after the last *FLAGS variable, or
  7253. # (2) before a word containing "conftest.", or (3) at the end.
  7254. # Note that $ac_compile itself does not contain backslashes and begins
  7255. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7256. # The option is referenced via a variable to avoid confusing sed.
  7257. lt_compile=`echo "$ac_compile" | $SED \
  7258. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7259. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7260. -e 's:$: $lt_compiler_flag:'`
  7261. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7262. (eval "$lt_compile" 2>conftest.err)
  7263. ac_status=$?
  7264. cat conftest.err >&5
  7265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7266. if (exit $ac_status) && test -s "$ac_outfile"; then
  7267. # The compiler can only warn and ignore the option if not recognized
  7268. # So say no if there are warnings other than the usual output.
  7269. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7270. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7271. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7272. lt_cv_prog_compiler_rtti_exceptions=yes
  7273. fi
  7274. fi
  7275. $RM conftest*
  7276. fi
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7278. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7279. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7280. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7281. else
  7282. :
  7283. fi
  7284. fi
  7285. lt_prog_compiler_wl=
  7286. lt_prog_compiler_pic=
  7287. lt_prog_compiler_static=
  7288. if test yes = "$GCC"; then
  7289. lt_prog_compiler_wl='-Wl,'
  7290. lt_prog_compiler_static='-static'
  7291. case $host_os in
  7292. aix*)
  7293. # All AIX code is PIC.
  7294. if test ia64 = "$host_cpu"; then
  7295. # AIX 5 now supports IA64 processor
  7296. lt_prog_compiler_static='-Bstatic'
  7297. fi
  7298. lt_prog_compiler_pic='-fPIC'
  7299. ;;
  7300. amigaos*)
  7301. case $host_cpu in
  7302. powerpc)
  7303. # see comment about AmigaOS4 .so support
  7304. lt_prog_compiler_pic='-fPIC'
  7305. ;;
  7306. m68k)
  7307. # FIXME: we need at least 68020 code to build shared libraries, but
  7308. # adding the '-m68020' flag to GCC prevents building anything better,
  7309. # like '-m68040'.
  7310. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7311. ;;
  7312. esac
  7313. ;;
  7314. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7315. # PIC is the default for these OSes.
  7316. ;;
  7317. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7318. # This hack is so that the source file can tell whether it is being
  7319. # built for inclusion in a dll (and should export symbols for example).
  7320. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7321. # (--disable-auto-import) libraries
  7322. lt_prog_compiler_pic='-DDLL_EXPORT'
  7323. case $host_os in
  7324. os2*)
  7325. lt_prog_compiler_static='$wl-static'
  7326. ;;
  7327. esac
  7328. ;;
  7329. darwin* | rhapsody*)
  7330. # PIC is the default on this platform
  7331. # Common symbols not allowed in MH_DYLIB files
  7332. lt_prog_compiler_pic='-fno-common'
  7333. ;;
  7334. haiku*)
  7335. # PIC is the default for Haiku.
  7336. # The "-static" flag exists, but is broken.
  7337. lt_prog_compiler_static=
  7338. ;;
  7339. hpux*)
  7340. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7341. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7342. # sets the default TLS model and affects inlining.
  7343. case $host_cpu in
  7344. hppa*64*)
  7345. # +Z the default
  7346. ;;
  7347. *)
  7348. lt_prog_compiler_pic='-fPIC'
  7349. ;;
  7350. esac
  7351. ;;
  7352. interix[3-9]*)
  7353. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7354. # Instead, we relocate shared libraries at runtime.
  7355. ;;
  7356. msdosdjgpp*)
  7357. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7358. # on systems that don't support them.
  7359. lt_prog_compiler_can_build_shared=no
  7360. enable_shared=no
  7361. ;;
  7362. *nto* | *qnx*)
  7363. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7364. # it will coredump.
  7365. lt_prog_compiler_pic='-fPIC -shared'
  7366. ;;
  7367. sysv4*MP*)
  7368. if test -d /usr/nec; then
  7369. lt_prog_compiler_pic=-Kconform_pic
  7370. fi
  7371. ;;
  7372. *)
  7373. lt_prog_compiler_pic='-fPIC'
  7374. ;;
  7375. esac
  7376. case $cc_basename in
  7377. nvcc*) # Cuda Compiler Driver 2.2
  7378. lt_prog_compiler_wl='-Xlinker '
  7379. if test -n "$lt_prog_compiler_pic"; then
  7380. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7381. fi
  7382. ;;
  7383. esac
  7384. else
  7385. # PORTME Check for flag to pass linker flags through the system compiler.
  7386. case $host_os in
  7387. aix*)
  7388. lt_prog_compiler_wl='-Wl,'
  7389. if test ia64 = "$host_cpu"; then
  7390. # AIX 5 now supports IA64 processor
  7391. lt_prog_compiler_static='-Bstatic'
  7392. else
  7393. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7394. fi
  7395. ;;
  7396. darwin* | rhapsody*)
  7397. # PIC is the default on this platform
  7398. # Common symbols not allowed in MH_DYLIB files
  7399. lt_prog_compiler_pic='-fno-common'
  7400. case $cc_basename in
  7401. nagfor*)
  7402. # NAG Fortran compiler
  7403. lt_prog_compiler_wl='-Wl,-Wl,,'
  7404. lt_prog_compiler_pic='-PIC'
  7405. lt_prog_compiler_static='-Bstatic'
  7406. ;;
  7407. esac
  7408. ;;
  7409. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7410. # This hack is so that the source file can tell whether it is being
  7411. # built for inclusion in a dll (and should export symbols for example).
  7412. lt_prog_compiler_pic='-DDLL_EXPORT'
  7413. case $host_os in
  7414. os2*)
  7415. lt_prog_compiler_static='$wl-static'
  7416. ;;
  7417. esac
  7418. ;;
  7419. hpux9* | hpux10* | hpux11*)
  7420. lt_prog_compiler_wl='-Wl,'
  7421. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7422. # not for PA HP-UX.
  7423. case $host_cpu in
  7424. hppa*64*|ia64*)
  7425. # +Z the default
  7426. ;;
  7427. *)
  7428. lt_prog_compiler_pic='+Z'
  7429. ;;
  7430. esac
  7431. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7432. lt_prog_compiler_static='$wl-a ${wl}archive'
  7433. ;;
  7434. irix5* | irix6* | nonstopux*)
  7435. lt_prog_compiler_wl='-Wl,'
  7436. # PIC (with -KPIC) is the default.
  7437. lt_prog_compiler_static='-non_shared'
  7438. ;;
  7439. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7440. case $cc_basename in
  7441. # old Intel for x86_64, which still supported -KPIC.
  7442. ecc*)
  7443. lt_prog_compiler_wl='-Wl,'
  7444. lt_prog_compiler_pic='-KPIC'
  7445. lt_prog_compiler_static='-static'
  7446. ;;
  7447. # icc used to be incompatible with GCC.
  7448. # ICC 10 doesn't accept -KPIC any more.
  7449. icc* | ifort*)
  7450. lt_prog_compiler_wl='-Wl,'
  7451. lt_prog_compiler_pic='-fPIC'
  7452. lt_prog_compiler_static='-static'
  7453. ;;
  7454. # Lahey Fortran 8.1.
  7455. lf95*)
  7456. lt_prog_compiler_wl='-Wl,'
  7457. lt_prog_compiler_pic='--shared'
  7458. lt_prog_compiler_static='--static'
  7459. ;;
  7460. nagfor*)
  7461. # NAG Fortran compiler
  7462. lt_prog_compiler_wl='-Wl,-Wl,,'
  7463. lt_prog_compiler_pic='-PIC'
  7464. lt_prog_compiler_static='-Bstatic'
  7465. ;;
  7466. tcc*)
  7467. # Fabrice Bellard et al's Tiny C Compiler
  7468. lt_prog_compiler_wl='-Wl,'
  7469. lt_prog_compiler_pic='-fPIC'
  7470. lt_prog_compiler_static='-static'
  7471. ;;
  7472. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7473. # Portland Group compilers (*not* the Pentium gcc compiler,
  7474. # which looks to be a dead project)
  7475. lt_prog_compiler_wl='-Wl,'
  7476. lt_prog_compiler_pic='-fpic'
  7477. lt_prog_compiler_static='-Bstatic'
  7478. ;;
  7479. ccc*)
  7480. lt_prog_compiler_wl='-Wl,'
  7481. # All Alpha code is PIC.
  7482. lt_prog_compiler_static='-non_shared'
  7483. ;;
  7484. xl* | bgxl* | bgf* | mpixl*)
  7485. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7486. lt_prog_compiler_wl='-Wl,'
  7487. lt_prog_compiler_pic='-qpic'
  7488. lt_prog_compiler_static='-qstaticlink'
  7489. ;;
  7490. *)
  7491. case `$CC -V 2>&1 | sed 5q` in
  7492. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7493. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7494. lt_prog_compiler_pic='-KPIC'
  7495. lt_prog_compiler_static='-Bstatic'
  7496. lt_prog_compiler_wl=''
  7497. ;;
  7498. *Sun\ F* | *Sun*Fortran*)
  7499. lt_prog_compiler_pic='-KPIC'
  7500. lt_prog_compiler_static='-Bstatic'
  7501. lt_prog_compiler_wl='-Qoption ld '
  7502. ;;
  7503. *Sun\ C*)
  7504. # Sun C 5.9
  7505. lt_prog_compiler_pic='-KPIC'
  7506. lt_prog_compiler_static='-Bstatic'
  7507. lt_prog_compiler_wl='-Wl,'
  7508. ;;
  7509. *Intel*\ [CF]*Compiler*)
  7510. lt_prog_compiler_wl='-Wl,'
  7511. lt_prog_compiler_pic='-fPIC'
  7512. lt_prog_compiler_static='-static'
  7513. ;;
  7514. *Portland\ Group*)
  7515. lt_prog_compiler_wl='-Wl,'
  7516. lt_prog_compiler_pic='-fpic'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. esac
  7520. ;;
  7521. esac
  7522. ;;
  7523. newsos6)
  7524. lt_prog_compiler_pic='-KPIC'
  7525. lt_prog_compiler_static='-Bstatic'
  7526. ;;
  7527. *nto* | *qnx*)
  7528. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7529. # it will coredump.
  7530. lt_prog_compiler_pic='-fPIC -shared'
  7531. ;;
  7532. osf3* | osf4* | osf5*)
  7533. lt_prog_compiler_wl='-Wl,'
  7534. # All OSF/1 code is PIC.
  7535. lt_prog_compiler_static='-non_shared'
  7536. ;;
  7537. rdos*)
  7538. lt_prog_compiler_static='-non_shared'
  7539. ;;
  7540. solaris*)
  7541. lt_prog_compiler_pic='-KPIC'
  7542. lt_prog_compiler_static='-Bstatic'
  7543. case $cc_basename in
  7544. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7545. lt_prog_compiler_wl='-Qoption ld ';;
  7546. *)
  7547. lt_prog_compiler_wl='-Wl,';;
  7548. esac
  7549. ;;
  7550. sunos4*)
  7551. lt_prog_compiler_wl='-Qoption ld '
  7552. lt_prog_compiler_pic='-PIC'
  7553. lt_prog_compiler_static='-Bstatic'
  7554. ;;
  7555. sysv4 | sysv4.2uw2* | sysv4.3*)
  7556. lt_prog_compiler_wl='-Wl,'
  7557. lt_prog_compiler_pic='-KPIC'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. ;;
  7560. sysv4*MP*)
  7561. if test -d /usr/nec; then
  7562. lt_prog_compiler_pic='-Kconform_pic'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. fi
  7565. ;;
  7566. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7567. lt_prog_compiler_wl='-Wl,'
  7568. lt_prog_compiler_pic='-KPIC'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. unicos*)
  7572. lt_prog_compiler_wl='-Wl,'
  7573. lt_prog_compiler_can_build_shared=no
  7574. ;;
  7575. uts4*)
  7576. lt_prog_compiler_pic='-pic'
  7577. lt_prog_compiler_static='-Bstatic'
  7578. ;;
  7579. *)
  7580. lt_prog_compiler_can_build_shared=no
  7581. ;;
  7582. esac
  7583. fi
  7584. case $host_os in
  7585. # For platforms that do not support PIC, -DPIC is meaningless:
  7586. *djgpp*)
  7587. lt_prog_compiler_pic=
  7588. ;;
  7589. *)
  7590. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7591. ;;
  7592. esac
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7594. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7595. if ${lt_cv_prog_compiler_pic+:} false; then :
  7596. $as_echo_n "(cached) " >&6
  7597. else
  7598. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7599. fi
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7601. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7602. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7603. #
  7604. # Check to make sure the PIC flag actually works.
  7605. #
  7606. if test -n "$lt_prog_compiler_pic"; then
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7608. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7609. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7610. $as_echo_n "(cached) " >&6
  7611. else
  7612. lt_cv_prog_compiler_pic_works=no
  7613. ac_outfile=conftest.$ac_objext
  7614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7615. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7616. # Insert the option either (1) after the last *FLAGS variable, or
  7617. # (2) before a word containing "conftest.", or (3) at the end.
  7618. # Note that $ac_compile itself does not contain backslashes and begins
  7619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7620. # The option is referenced via a variable to avoid confusing sed.
  7621. lt_compile=`echo "$ac_compile" | $SED \
  7622. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7623. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7624. -e 's:$: $lt_compiler_flag:'`
  7625. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7626. (eval "$lt_compile" 2>conftest.err)
  7627. ac_status=$?
  7628. cat conftest.err >&5
  7629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. if (exit $ac_status) && test -s "$ac_outfile"; then
  7631. # The compiler can only warn and ignore the option if not recognized
  7632. # So say no if there are warnings other than the usual output.
  7633. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7634. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7635. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7636. lt_cv_prog_compiler_pic_works=yes
  7637. fi
  7638. fi
  7639. $RM conftest*
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7642. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7643. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7644. case $lt_prog_compiler_pic in
  7645. "" | " "*) ;;
  7646. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7647. esac
  7648. else
  7649. lt_prog_compiler_pic=
  7650. lt_prog_compiler_can_build_shared=no
  7651. fi
  7652. fi
  7653. #
  7654. # Check to make sure the static flag actually works.
  7655. #
  7656. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7658. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7659. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7660. $as_echo_n "(cached) " >&6
  7661. else
  7662. lt_cv_prog_compiler_static_works=no
  7663. save_LDFLAGS=$LDFLAGS
  7664. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7665. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7666. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7667. # The linker can only warn and ignore the option if not recognized
  7668. # So say no if there are warnings
  7669. if test -s conftest.err; then
  7670. # Append any errors to the config.log.
  7671. cat conftest.err 1>&5
  7672. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7673. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7674. if diff conftest.exp conftest.er2 >/dev/null; then
  7675. lt_cv_prog_compiler_static_works=yes
  7676. fi
  7677. else
  7678. lt_cv_prog_compiler_static_works=yes
  7679. fi
  7680. fi
  7681. $RM -r conftest*
  7682. LDFLAGS=$save_LDFLAGS
  7683. fi
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7685. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7686. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7687. :
  7688. else
  7689. lt_prog_compiler_static=
  7690. fi
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7692. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7693. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7694. $as_echo_n "(cached) " >&6
  7695. else
  7696. lt_cv_prog_compiler_c_o=no
  7697. $RM -r conftest 2>/dev/null
  7698. mkdir conftest
  7699. cd conftest
  7700. mkdir out
  7701. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7702. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7703. # Insert the option either (1) after the last *FLAGS variable, or
  7704. # (2) before a word containing "conftest.", or (3) at the end.
  7705. # Note that $ac_compile itself does not contain backslashes and begins
  7706. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7707. lt_compile=`echo "$ac_compile" | $SED \
  7708. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7709. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7710. -e 's:$: $lt_compiler_flag:'`
  7711. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7712. (eval "$lt_compile" 2>out/conftest.err)
  7713. ac_status=$?
  7714. cat out/conftest.err >&5
  7715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7717. then
  7718. # The compiler can only warn and ignore the option if not recognized
  7719. # So say no if there are warnings
  7720. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7721. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7722. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7723. lt_cv_prog_compiler_c_o=yes
  7724. fi
  7725. fi
  7726. chmod u+w . 2>&5
  7727. $RM conftest*
  7728. # SGI C++ compiler will create directory out/ii_files/ for
  7729. # template instantiation
  7730. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7731. $RM out/* && rmdir out
  7732. cd ..
  7733. $RM -r conftest
  7734. $RM conftest*
  7735. fi
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7737. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7739. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7740. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7741. $as_echo_n "(cached) " >&6
  7742. else
  7743. lt_cv_prog_compiler_c_o=no
  7744. $RM -r conftest 2>/dev/null
  7745. mkdir conftest
  7746. cd conftest
  7747. mkdir out
  7748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7749. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7750. # Insert the option either (1) after the last *FLAGS variable, or
  7751. # (2) before a word containing "conftest.", or (3) at the end.
  7752. # Note that $ac_compile itself does not contain backslashes and begins
  7753. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7754. lt_compile=`echo "$ac_compile" | $SED \
  7755. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7756. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7757. -e 's:$: $lt_compiler_flag:'`
  7758. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7759. (eval "$lt_compile" 2>out/conftest.err)
  7760. ac_status=$?
  7761. cat out/conftest.err >&5
  7762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7763. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7764. then
  7765. # The compiler can only warn and ignore the option if not recognized
  7766. # So say no if there are warnings
  7767. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7768. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7769. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7770. lt_cv_prog_compiler_c_o=yes
  7771. fi
  7772. fi
  7773. chmod u+w . 2>&5
  7774. $RM conftest*
  7775. # SGI C++ compiler will create directory out/ii_files/ for
  7776. # template instantiation
  7777. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7778. $RM out/* && rmdir out
  7779. cd ..
  7780. $RM -r conftest
  7781. $RM conftest*
  7782. fi
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7784. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7785. hard_links=nottested
  7786. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7787. # do not overwrite the value of need_locks provided by the user
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7789. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7790. hard_links=yes
  7791. $RM conftest*
  7792. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7793. touch conftest.a
  7794. ln conftest.a conftest.b 2>&5 || hard_links=no
  7795. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7797. $as_echo "$hard_links" >&6; }
  7798. if test no = "$hard_links"; then
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7800. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7801. need_locks=warn
  7802. fi
  7803. else
  7804. need_locks=no
  7805. fi
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7807. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7808. runpath_var=
  7809. allow_undefined_flag=
  7810. always_export_symbols=no
  7811. archive_cmds=
  7812. archive_expsym_cmds=
  7813. compiler_needs_object=no
  7814. enable_shared_with_static_runtimes=no
  7815. export_dynamic_flag_spec=
  7816. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7817. hardcode_automatic=no
  7818. hardcode_direct=no
  7819. hardcode_direct_absolute=no
  7820. hardcode_libdir_flag_spec=
  7821. hardcode_libdir_separator=
  7822. hardcode_minus_L=no
  7823. hardcode_shlibpath_var=unsupported
  7824. inherit_rpath=no
  7825. link_all_deplibs=unknown
  7826. module_cmds=
  7827. module_expsym_cmds=
  7828. old_archive_from_new_cmds=
  7829. old_archive_from_expsyms_cmds=
  7830. thread_safe_flag_spec=
  7831. whole_archive_flag_spec=
  7832. # include_expsyms should be a list of space-separated symbols to be *always*
  7833. # included in the symbol list
  7834. include_expsyms=
  7835. # exclude_expsyms can be an extended regexp of symbols to exclude
  7836. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7837. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7838. # as well as any symbol that contains 'd'.
  7839. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7840. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7841. # platforms (ab)use it in PIC code, but their linkers get confused if
  7842. # the symbol is explicitly referenced. Since portable code cannot
  7843. # rely on this symbol name, it's probably fine to never include it in
  7844. # preloaded symbol tables.
  7845. # Exclude shared library initialization/finalization symbols.
  7846. extract_expsyms_cmds=
  7847. case $host_os in
  7848. cygwin* | mingw* | pw32* | cegcc*)
  7849. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7850. # When not using gcc, we currently assume that we are using
  7851. # Microsoft Visual C++.
  7852. if test yes != "$GCC"; then
  7853. with_gnu_ld=no
  7854. fi
  7855. ;;
  7856. interix*)
  7857. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7858. with_gnu_ld=yes
  7859. ;;
  7860. openbsd* | bitrig*)
  7861. with_gnu_ld=no
  7862. ;;
  7863. esac
  7864. ld_shlibs=yes
  7865. # On some targets, GNU ld is compatible enough with the native linker
  7866. # that we're better off using the native interface for both.
  7867. lt_use_gnu_ld_interface=no
  7868. if test yes = "$with_gnu_ld"; then
  7869. case $host_os in
  7870. aix*)
  7871. # The AIX port of GNU ld has always aspired to compatibility
  7872. # with the native linker. However, as the warning in the GNU ld
  7873. # block says, versions before 2.19.5* couldn't really create working
  7874. # shared libraries, regardless of the interface used.
  7875. case `$LD -v 2>&1` in
  7876. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7877. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7878. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7879. *)
  7880. lt_use_gnu_ld_interface=yes
  7881. ;;
  7882. esac
  7883. ;;
  7884. *)
  7885. lt_use_gnu_ld_interface=yes
  7886. ;;
  7887. esac
  7888. fi
  7889. if test yes = "$lt_use_gnu_ld_interface"; then
  7890. # If archive_cmds runs LD, not CC, wlarc should be empty
  7891. wlarc='$wl'
  7892. # Set some defaults for GNU ld with shared library support. These
  7893. # are reset later if shared libraries are not supported. Putting them
  7894. # here allows them to be overridden if necessary.
  7895. runpath_var=LD_RUN_PATH
  7896. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7897. export_dynamic_flag_spec='$wl--export-dynamic'
  7898. # ancient GNU ld didn't support --whole-archive et. al.
  7899. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7900. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7901. else
  7902. whole_archive_flag_spec=
  7903. fi
  7904. supports_anon_versioning=no
  7905. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7906. *GNU\ gold*) supports_anon_versioning=yes ;;
  7907. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7908. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7909. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7910. *\ 2.11.*) ;; # other 2.11 versions
  7911. *) supports_anon_versioning=yes ;;
  7912. esac
  7913. # See if GNU ld supports shared libraries.
  7914. case $host_os in
  7915. aix[3-9]*)
  7916. # On AIX/PPC, the GNU linker is very broken
  7917. if test ia64 != "$host_cpu"; then
  7918. ld_shlibs=no
  7919. cat <<_LT_EOF 1>&2
  7920. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7921. *** to be unable to reliably create shared libraries on AIX.
  7922. *** Therefore, libtool is disabling shared libraries support. If you
  7923. *** really care for shared libraries, you may want to install binutils
  7924. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7925. *** You will then need to restart the configuration process.
  7926. _LT_EOF
  7927. fi
  7928. ;;
  7929. amigaos*)
  7930. case $host_cpu in
  7931. powerpc)
  7932. # see comment about AmigaOS4 .so support
  7933. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7934. archive_expsym_cmds=''
  7935. ;;
  7936. m68k)
  7937. 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)'
  7938. hardcode_libdir_flag_spec='-L$libdir'
  7939. hardcode_minus_L=yes
  7940. ;;
  7941. esac
  7942. ;;
  7943. beos*)
  7944. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7945. allow_undefined_flag=unsupported
  7946. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7947. # support --undefined. This deserves some investigation. FIXME
  7948. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7949. else
  7950. ld_shlibs=no
  7951. fi
  7952. ;;
  7953. cygwin* | mingw* | pw32* | cegcc*)
  7954. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7955. # as there is no search path for DLLs.
  7956. hardcode_libdir_flag_spec='-L$libdir'
  7957. export_dynamic_flag_spec='$wl--export-all-symbols'
  7958. allow_undefined_flag=unsupported
  7959. always_export_symbols=no
  7960. enable_shared_with_static_runtimes=yes
  7961. 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'
  7962. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7963. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7964. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7965. # If the export-symbols file already is a .def file, use it as
  7966. # is; otherwise, prepend EXPORTS...
  7967. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7968. cp $export_symbols $output_objdir/$soname.def;
  7969. else
  7970. echo EXPORTS > $output_objdir/$soname.def;
  7971. cat $export_symbols >> $output_objdir/$soname.def;
  7972. fi~
  7973. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7974. else
  7975. ld_shlibs=no
  7976. fi
  7977. ;;
  7978. haiku*)
  7979. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7980. link_all_deplibs=yes
  7981. ;;
  7982. os2*)
  7983. hardcode_libdir_flag_spec='-L$libdir'
  7984. hardcode_minus_L=yes
  7985. allow_undefined_flag=unsupported
  7986. shrext_cmds=.dll
  7987. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7988. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7989. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7990. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7991. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7992. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7993. emximp -o $lib $output_objdir/$libname.def'
  7994. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7995. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7996. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7997. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7998. prefix_cmds="$SED"~
  7999. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8000. prefix_cmds="$prefix_cmds -e 1d";
  8001. fi~
  8002. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8003. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8004. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8005. emximp -o $lib $output_objdir/$libname.def'
  8006. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8007. enable_shared_with_static_runtimes=yes
  8008. file_list_spec='@'
  8009. ;;
  8010. interix[3-9]*)
  8011. hardcode_direct=no
  8012. hardcode_shlibpath_var=no
  8013. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8014. export_dynamic_flag_spec='$wl-E'
  8015. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8016. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8017. # default) and relocated if they conflict, which is a slow very memory
  8018. # consuming and fragmenting process. To avoid this, we pick a random,
  8019. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8020. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8021. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8022. 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'
  8023. ;;
  8024. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8025. tmp_diet=no
  8026. if test linux-dietlibc = "$host_os"; then
  8027. case $cc_basename in
  8028. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8029. esac
  8030. fi
  8031. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8032. && test no = "$tmp_diet"
  8033. then
  8034. tmp_addflag=' $pic_flag'
  8035. tmp_sharedflag='-shared'
  8036. case $cc_basename,$host_cpu in
  8037. pgcc*) # Portland Group C compiler
  8038. 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'
  8039. tmp_addflag=' $pic_flag'
  8040. ;;
  8041. pgf77* | pgf90* | pgf95* | pgfortran*)
  8042. # Portland Group f77 and f90 compilers
  8043. 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'
  8044. tmp_addflag=' $pic_flag -Mnomain' ;;
  8045. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8046. tmp_addflag=' -i_dynamic' ;;
  8047. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8048. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8049. ifc* | ifort*) # Intel Fortran compiler
  8050. tmp_addflag=' -nofor_main' ;;
  8051. lf95*) # Lahey Fortran 8.1
  8052. whole_archive_flag_spec=
  8053. tmp_sharedflag='--shared' ;;
  8054. nagfor*) # NAGFOR 5.3
  8055. tmp_sharedflag='-Wl,-shared' ;;
  8056. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8057. tmp_sharedflag='-qmkshrobj'
  8058. tmp_addflag= ;;
  8059. nvcc*) # Cuda Compiler Driver 2.2
  8060. 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'
  8061. compiler_needs_object=yes
  8062. ;;
  8063. esac
  8064. case `$CC -V 2>&1 | sed 5q` in
  8065. *Sun\ C*) # Sun C 5.9
  8066. 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'
  8067. compiler_needs_object=yes
  8068. tmp_sharedflag='-G' ;;
  8069. *Sun\ F*) # Sun Fortran 8.3
  8070. tmp_sharedflag='-G' ;;
  8071. esac
  8072. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8073. if test yes = "$supports_anon_versioning"; then
  8074. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8075. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8076. echo "local: *; };" >> $output_objdir/$libname.ver~
  8077. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8078. fi
  8079. case $cc_basename in
  8080. tcc*)
  8081. export_dynamic_flag_spec='-rdynamic'
  8082. ;;
  8083. xlf* | bgf* | bgxlf* | mpixlf*)
  8084. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8085. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8086. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8087. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8088. if test yes = "$supports_anon_versioning"; then
  8089. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8090. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8091. echo "local: *; };" >> $output_objdir/$libname.ver~
  8092. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8093. fi
  8094. ;;
  8095. esac
  8096. else
  8097. ld_shlibs=no
  8098. fi
  8099. ;;
  8100. netbsd*)
  8101. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8102. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8103. wlarc=
  8104. else
  8105. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8106. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8107. fi
  8108. ;;
  8109. solaris*)
  8110. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8111. ld_shlibs=no
  8112. cat <<_LT_EOF 1>&2
  8113. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8114. *** create shared libraries on Solaris systems. Therefore, libtool
  8115. *** is disabling shared libraries support. We urge you to upgrade GNU
  8116. *** binutils to release 2.9.1 or newer. Another option is to modify
  8117. *** your PATH or compiler configuration so that the native linker is
  8118. *** used, and then restart.
  8119. _LT_EOF
  8120. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8121. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8122. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8123. else
  8124. ld_shlibs=no
  8125. fi
  8126. ;;
  8127. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8128. case `$LD -v 2>&1` in
  8129. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8130. ld_shlibs=no
  8131. cat <<_LT_EOF 1>&2
  8132. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8133. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8134. *** is disabling shared libraries support. We urge you to upgrade GNU
  8135. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8136. *** your PATH or compiler configuration so that the native linker is
  8137. *** used, and then restart.
  8138. _LT_EOF
  8139. ;;
  8140. *)
  8141. # For security reasons, it is highly recommended that you always
  8142. # use absolute paths for naming shared libraries, and exclude the
  8143. # DT_RUNPATH tag from executables and libraries. But doing so
  8144. # requires that you compile everything twice, which is a pain.
  8145. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8146. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8147. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8148. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8149. else
  8150. ld_shlibs=no
  8151. fi
  8152. ;;
  8153. esac
  8154. ;;
  8155. sunos4*)
  8156. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8157. wlarc=
  8158. hardcode_direct=yes
  8159. hardcode_shlibpath_var=no
  8160. ;;
  8161. *)
  8162. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8163. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8164. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8165. else
  8166. ld_shlibs=no
  8167. fi
  8168. ;;
  8169. esac
  8170. if test no = "$ld_shlibs"; then
  8171. runpath_var=
  8172. hardcode_libdir_flag_spec=
  8173. export_dynamic_flag_spec=
  8174. whole_archive_flag_spec=
  8175. fi
  8176. else
  8177. # PORTME fill in a description of your system's linker (not GNU ld)
  8178. case $host_os in
  8179. aix3*)
  8180. allow_undefined_flag=unsupported
  8181. always_export_symbols=yes
  8182. 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'
  8183. # Note: this linker hardcodes the directories in LIBPATH if there
  8184. # are no directories specified by -L.
  8185. hardcode_minus_L=yes
  8186. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8187. # Neither direct hardcoding nor static linking is supported with a
  8188. # broken collect2.
  8189. hardcode_direct=unsupported
  8190. fi
  8191. ;;
  8192. aix[4-9]*)
  8193. if test ia64 = "$host_cpu"; then
  8194. # On IA64, the linker does run time linking by default, so we don't
  8195. # have to do anything special.
  8196. aix_use_runtimelinking=no
  8197. exp_sym_flag='-Bexport'
  8198. no_entry_flag=
  8199. else
  8200. # If we're using GNU nm, then we don't want the "-C" option.
  8201. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8202. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8203. # weak defined symbols like other global defined symbols, whereas
  8204. # GNU nm marks them as "W".
  8205. # While the 'weak' keyword is ignored in the Export File, we need
  8206. # it in the Import File for the 'aix-soname' feature, so we have
  8207. # to replace the "-B" option with "-P" for AIX nm.
  8208. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8209. 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'
  8210. else
  8211. 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'
  8212. fi
  8213. aix_use_runtimelinking=no
  8214. # Test if we are trying to use run time linking or normal
  8215. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8216. # have runtime linking enabled, and use it for executables.
  8217. # For shared libraries, we enable/disable runtime linking
  8218. # depending on the kind of the shared library created -
  8219. # when "with_aix_soname,aix_use_runtimelinking" is:
  8220. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8221. # "aix,yes" lib.so shared, rtl:yes, for executables
  8222. # lib.a static archive
  8223. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8224. # lib.a(lib.so.V) shared, rtl:no, for executables
  8225. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8226. # lib.a(lib.so.V) shared, rtl:no
  8227. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8228. # lib.a static archive
  8229. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8230. for ld_flag in $LDFLAGS; do
  8231. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8232. aix_use_runtimelinking=yes
  8233. break
  8234. fi
  8235. done
  8236. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8237. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8238. # so we don't have lib.a shared libs to link our executables.
  8239. # We have to force runtime linking in this case.
  8240. aix_use_runtimelinking=yes
  8241. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8242. fi
  8243. ;;
  8244. esac
  8245. exp_sym_flag='-bexport'
  8246. no_entry_flag='-bnoentry'
  8247. fi
  8248. # When large executables or shared objects are built, AIX ld can
  8249. # have problems creating the table of contents. If linking a library
  8250. # or program results in "error TOC overflow" add -mminimal-toc to
  8251. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8252. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8253. archive_cmds=''
  8254. hardcode_direct=yes
  8255. hardcode_direct_absolute=yes
  8256. hardcode_libdir_separator=':'
  8257. link_all_deplibs=yes
  8258. file_list_spec='$wl-f,'
  8259. case $with_aix_soname,$aix_use_runtimelinking in
  8260. aix,*) ;; # traditional, no import file
  8261. svr4,* | *,yes) # use import file
  8262. # The Import File defines what to hardcode.
  8263. hardcode_direct=no
  8264. hardcode_direct_absolute=no
  8265. ;;
  8266. esac
  8267. if test yes = "$GCC"; then
  8268. case $host_os in aix4.[012]|aix4.[012].*)
  8269. # We only want to do this on AIX 4.2 and lower, the check
  8270. # below for broken collect2 doesn't work under 4.3+
  8271. collect2name=`$CC -print-prog-name=collect2`
  8272. if test -f "$collect2name" &&
  8273. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8274. then
  8275. # We have reworked collect2
  8276. :
  8277. else
  8278. # We have old collect2
  8279. hardcode_direct=unsupported
  8280. # It fails to find uninstalled libraries when the uninstalled
  8281. # path is not listed in the libpath. Setting hardcode_minus_L
  8282. # to unsupported forces relinking
  8283. hardcode_minus_L=yes
  8284. hardcode_libdir_flag_spec='-L$libdir'
  8285. hardcode_libdir_separator=
  8286. fi
  8287. ;;
  8288. esac
  8289. shared_flag='-shared'
  8290. if test yes = "$aix_use_runtimelinking"; then
  8291. shared_flag="$shared_flag "'$wl-G'
  8292. fi
  8293. # Need to ensure runtime linking is disabled for the traditional
  8294. # shared library, or the linker may eventually find shared libraries
  8295. # /with/ Import File - we do not want to mix them.
  8296. shared_flag_aix='-shared'
  8297. shared_flag_svr4='-shared $wl-G'
  8298. else
  8299. # not using gcc
  8300. if test ia64 = "$host_cpu"; then
  8301. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8302. # chokes on -Wl,-G. The following line is correct:
  8303. shared_flag='-G'
  8304. else
  8305. if test yes = "$aix_use_runtimelinking"; then
  8306. shared_flag='$wl-G'
  8307. else
  8308. shared_flag='$wl-bM:SRE'
  8309. fi
  8310. shared_flag_aix='$wl-bM:SRE'
  8311. shared_flag_svr4='$wl-G'
  8312. fi
  8313. fi
  8314. export_dynamic_flag_spec='$wl-bexpall'
  8315. # It seems that -bexpall does not export symbols beginning with
  8316. # underscore (_), so it is better to generate a list of symbols to export.
  8317. always_export_symbols=yes
  8318. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8319. # Warning - without using the other runtime loading flags (-brtl),
  8320. # -berok will link without error, but may produce a broken library.
  8321. allow_undefined_flag='-berok'
  8322. # Determine the default libpath from the value encoded in an
  8323. # empty executable.
  8324. if test set = "${lt_cv_aix_libpath+set}"; then
  8325. aix_libpath=$lt_cv_aix_libpath
  8326. else
  8327. if ${lt_cv_aix_libpath_+:} false; then :
  8328. $as_echo_n "(cached) " >&6
  8329. else
  8330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8331. /* end confdefs.h. */
  8332. int
  8333. main ()
  8334. {
  8335. ;
  8336. return 0;
  8337. }
  8338. _ACEOF
  8339. if ac_fn_c_try_link "$LINENO"; then :
  8340. lt_aix_libpath_sed='
  8341. /Import File Strings/,/^$/ {
  8342. /^0/ {
  8343. s/^0 *\([^ ]*\) *$/\1/
  8344. p
  8345. }
  8346. }'
  8347. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8348. # Check for a 64-bit object if we didn't find anything.
  8349. if test -z "$lt_cv_aix_libpath_"; then
  8350. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8351. fi
  8352. fi
  8353. rm -f core conftest.err conftest.$ac_objext \
  8354. conftest$ac_exeext conftest.$ac_ext
  8355. if test -z "$lt_cv_aix_libpath_"; then
  8356. lt_cv_aix_libpath_=/usr/lib:/lib
  8357. fi
  8358. fi
  8359. aix_libpath=$lt_cv_aix_libpath_
  8360. fi
  8361. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8362. 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
  8363. else
  8364. if test ia64 = "$host_cpu"; then
  8365. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8366. allow_undefined_flag="-z nodefs"
  8367. 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"
  8368. else
  8369. # Determine the default libpath from the value encoded in an
  8370. # empty executable.
  8371. if test set = "${lt_cv_aix_libpath+set}"; then
  8372. aix_libpath=$lt_cv_aix_libpath
  8373. else
  8374. if ${lt_cv_aix_libpath_+:} false; then :
  8375. $as_echo_n "(cached) " >&6
  8376. else
  8377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8378. /* end confdefs.h. */
  8379. int
  8380. main ()
  8381. {
  8382. ;
  8383. return 0;
  8384. }
  8385. _ACEOF
  8386. if ac_fn_c_try_link "$LINENO"; then :
  8387. lt_aix_libpath_sed='
  8388. /Import File Strings/,/^$/ {
  8389. /^0/ {
  8390. s/^0 *\([^ ]*\) *$/\1/
  8391. p
  8392. }
  8393. }'
  8394. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8395. # Check for a 64-bit object if we didn't find anything.
  8396. if test -z "$lt_cv_aix_libpath_"; then
  8397. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8398. fi
  8399. fi
  8400. rm -f core conftest.err conftest.$ac_objext \
  8401. conftest$ac_exeext conftest.$ac_ext
  8402. if test -z "$lt_cv_aix_libpath_"; then
  8403. lt_cv_aix_libpath_=/usr/lib:/lib
  8404. fi
  8405. fi
  8406. aix_libpath=$lt_cv_aix_libpath_
  8407. fi
  8408. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8409. # Warning - without using the other run time loading flags,
  8410. # -berok will link without error, but may produce a broken library.
  8411. no_undefined_flag=' $wl-bernotok'
  8412. allow_undefined_flag=' $wl-berok'
  8413. if test yes = "$with_gnu_ld"; then
  8414. # We only use this code for GNU lds that support --whole-archive.
  8415. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8416. else
  8417. # Exported symbols can be pulled into shared objects from archives
  8418. whole_archive_flag_spec='$convenience'
  8419. fi
  8420. archive_cmds_need_lc=yes
  8421. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8422. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8423. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8424. if test svr4 != "$with_aix_soname"; then
  8425. # This is similar to how AIX traditionally builds its shared libraries.
  8426. 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'
  8427. fi
  8428. if test aix != "$with_aix_soname"; then
  8429. 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'
  8430. else
  8431. # used by -dlpreopen to get the symbols
  8432. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8433. fi
  8434. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8435. fi
  8436. fi
  8437. ;;
  8438. amigaos*)
  8439. case $host_cpu in
  8440. powerpc)
  8441. # see comment about AmigaOS4 .so support
  8442. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8443. archive_expsym_cmds=''
  8444. ;;
  8445. m68k)
  8446. 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)'
  8447. hardcode_libdir_flag_spec='-L$libdir'
  8448. hardcode_minus_L=yes
  8449. ;;
  8450. esac
  8451. ;;
  8452. bsdi[45]*)
  8453. export_dynamic_flag_spec=-rdynamic
  8454. ;;
  8455. cygwin* | mingw* | pw32* | cegcc*)
  8456. # When not using gcc, we currently assume that we are using
  8457. # Microsoft Visual C++.
  8458. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8459. # no search path for DLLs.
  8460. case $cc_basename in
  8461. cl*)
  8462. # Native MSVC
  8463. hardcode_libdir_flag_spec=' '
  8464. allow_undefined_flag=unsupported
  8465. always_export_symbols=yes
  8466. file_list_spec='@'
  8467. # Tell ltmain to make .lib files, not .a files.
  8468. libext=lib
  8469. # Tell ltmain to make .dll files, not .so files.
  8470. shrext_cmds=.dll
  8471. # FIXME: Setting linknames here is a bad hack.
  8472. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8473. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8474. cp "$export_symbols" "$output_objdir/$soname.def";
  8475. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8476. else
  8477. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8478. fi~
  8479. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8480. linknames='
  8481. # The linker will not automatically build a static lib if we build a DLL.
  8482. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8483. enable_shared_with_static_runtimes=yes
  8484. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8485. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8486. # Don't use ranlib
  8487. old_postinstall_cmds='chmod 644 $oldlib'
  8488. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8489. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8490. case $lt_outputfile in
  8491. *.exe|*.EXE) ;;
  8492. *)
  8493. lt_outputfile=$lt_outputfile.exe
  8494. lt_tool_outputfile=$lt_tool_outputfile.exe
  8495. ;;
  8496. esac~
  8497. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8498. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8499. $RM "$lt_outputfile.manifest";
  8500. fi'
  8501. ;;
  8502. *)
  8503. # Assume MSVC wrapper
  8504. hardcode_libdir_flag_spec=' '
  8505. allow_undefined_flag=unsupported
  8506. # Tell ltmain to make .lib files, not .a files.
  8507. libext=lib
  8508. # Tell ltmain to make .dll files, not .so files.
  8509. shrext_cmds=.dll
  8510. # FIXME: Setting linknames here is a bad hack.
  8511. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8512. # The linker will automatically build a .lib file if we build a DLL.
  8513. old_archive_from_new_cmds='true'
  8514. # FIXME: Should let the user specify the lib program.
  8515. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8516. enable_shared_with_static_runtimes=yes
  8517. ;;
  8518. esac
  8519. ;;
  8520. darwin* | rhapsody*)
  8521. archive_cmds_need_lc=no
  8522. hardcode_direct=no
  8523. hardcode_automatic=yes
  8524. hardcode_shlibpath_var=unsupported
  8525. if test yes = "$lt_cv_ld_force_load"; then
  8526. 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\"`'
  8527. else
  8528. whole_archive_flag_spec=''
  8529. fi
  8530. link_all_deplibs=yes
  8531. allow_undefined_flag=$_lt_dar_allow_undefined
  8532. case $cc_basename in
  8533. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8534. *) _lt_dar_can_shared=$GCC ;;
  8535. esac
  8536. if test yes = "$_lt_dar_can_shared"; then
  8537. output_verbose_link_cmd=func_echo_all
  8538. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8539. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8540. 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"
  8541. 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"
  8542. else
  8543. ld_shlibs=no
  8544. fi
  8545. ;;
  8546. dgux*)
  8547. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8548. hardcode_libdir_flag_spec='-L$libdir'
  8549. hardcode_shlibpath_var=no
  8550. ;;
  8551. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8552. # support. Future versions do this automatically, but an explicit c++rt0.o
  8553. # does not break anything, and helps significantly (at the cost of a little
  8554. # extra space).
  8555. freebsd2.2*)
  8556. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8557. hardcode_libdir_flag_spec='-R$libdir'
  8558. hardcode_direct=yes
  8559. hardcode_shlibpath_var=no
  8560. ;;
  8561. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8562. freebsd2.*)
  8563. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8564. hardcode_direct=yes
  8565. hardcode_minus_L=yes
  8566. hardcode_shlibpath_var=no
  8567. ;;
  8568. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8569. freebsd* | dragonfly* | midnightbsd*)
  8570. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8571. hardcode_libdir_flag_spec='-R$libdir'
  8572. hardcode_direct=yes
  8573. hardcode_shlibpath_var=no
  8574. ;;
  8575. hpux9*)
  8576. if test yes = "$GCC"; then
  8577. 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'
  8578. else
  8579. 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'
  8580. fi
  8581. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8582. hardcode_libdir_separator=:
  8583. hardcode_direct=yes
  8584. # hardcode_minus_L: Not really in the search PATH,
  8585. # but as the default location of the library.
  8586. hardcode_minus_L=yes
  8587. export_dynamic_flag_spec='$wl-E'
  8588. ;;
  8589. hpux10*)
  8590. if test yes,no = "$GCC,$with_gnu_ld"; then
  8591. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8592. else
  8593. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8594. fi
  8595. if test no = "$with_gnu_ld"; then
  8596. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8597. hardcode_libdir_separator=:
  8598. hardcode_direct=yes
  8599. hardcode_direct_absolute=yes
  8600. export_dynamic_flag_spec='$wl-E'
  8601. # hardcode_minus_L: Not really in the search PATH,
  8602. # but as the default location of the library.
  8603. hardcode_minus_L=yes
  8604. fi
  8605. ;;
  8606. hpux11*)
  8607. if test yes,no = "$GCC,$with_gnu_ld"; then
  8608. case $host_cpu in
  8609. hppa*64*)
  8610. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. ia64*)
  8613. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8614. ;;
  8615. *)
  8616. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8617. ;;
  8618. esac
  8619. else
  8620. case $host_cpu in
  8621. hppa*64*)
  8622. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8623. ;;
  8624. ia64*)
  8625. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8626. ;;
  8627. *)
  8628. # Older versions of the 11.00 compiler do not understand -b yet
  8629. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8631. $as_echo_n "checking if $CC understands -b... " >&6; }
  8632. if ${lt_cv_prog_compiler__b+:} false; then :
  8633. $as_echo_n "(cached) " >&6
  8634. else
  8635. lt_cv_prog_compiler__b=no
  8636. save_LDFLAGS=$LDFLAGS
  8637. LDFLAGS="$LDFLAGS -b"
  8638. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8639. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8640. # The linker can only warn and ignore the option if not recognized
  8641. # So say no if there are warnings
  8642. if test -s conftest.err; then
  8643. # Append any errors to the config.log.
  8644. cat conftest.err 1>&5
  8645. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8646. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8647. if diff conftest.exp conftest.er2 >/dev/null; then
  8648. lt_cv_prog_compiler__b=yes
  8649. fi
  8650. else
  8651. lt_cv_prog_compiler__b=yes
  8652. fi
  8653. fi
  8654. $RM -r conftest*
  8655. LDFLAGS=$save_LDFLAGS
  8656. fi
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8658. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8659. if test yes = "$lt_cv_prog_compiler__b"; then
  8660. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8661. else
  8662. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8663. fi
  8664. ;;
  8665. esac
  8666. fi
  8667. if test no = "$with_gnu_ld"; then
  8668. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8669. hardcode_libdir_separator=:
  8670. case $host_cpu in
  8671. hppa*64*|ia64*)
  8672. hardcode_direct=no
  8673. hardcode_shlibpath_var=no
  8674. ;;
  8675. *)
  8676. hardcode_direct=yes
  8677. hardcode_direct_absolute=yes
  8678. export_dynamic_flag_spec='$wl-E'
  8679. # hardcode_minus_L: Not really in the search PATH,
  8680. # but as the default location of the library.
  8681. hardcode_minus_L=yes
  8682. ;;
  8683. esac
  8684. fi
  8685. ;;
  8686. irix5* | irix6* | nonstopux*)
  8687. if test yes = "$GCC"; then
  8688. 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'
  8689. # Try to use the -exported_symbol ld option, if it does not
  8690. # work, assume that -exports_file does not work either and
  8691. # implicitly export all symbols.
  8692. # This should be the same for all languages, so no per-tag cache variable.
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8694. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8695. if ${lt_cv_irix_exported_symbol+:} false; then :
  8696. $as_echo_n "(cached) " >&6
  8697. else
  8698. save_LDFLAGS=$LDFLAGS
  8699. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8701. /* end confdefs.h. */
  8702. int foo (void) { return 0; }
  8703. _ACEOF
  8704. if ac_fn_c_try_link "$LINENO"; then :
  8705. lt_cv_irix_exported_symbol=yes
  8706. else
  8707. lt_cv_irix_exported_symbol=no
  8708. fi
  8709. rm -f core conftest.err conftest.$ac_objext \
  8710. conftest$ac_exeext conftest.$ac_ext
  8711. LDFLAGS=$save_LDFLAGS
  8712. fi
  8713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8714. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8715. if test yes = "$lt_cv_irix_exported_symbol"; then
  8716. 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'
  8717. fi
  8718. else
  8719. 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'
  8720. 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'
  8721. fi
  8722. archive_cmds_need_lc='no'
  8723. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8724. hardcode_libdir_separator=:
  8725. inherit_rpath=yes
  8726. link_all_deplibs=yes
  8727. ;;
  8728. linux*)
  8729. case $cc_basename in
  8730. tcc*)
  8731. # Fabrice Bellard et al's Tiny C Compiler
  8732. ld_shlibs=yes
  8733. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8734. ;;
  8735. esac
  8736. ;;
  8737. netbsd*)
  8738. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8739. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8740. else
  8741. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8742. fi
  8743. hardcode_libdir_flag_spec='-R$libdir'
  8744. hardcode_direct=yes
  8745. hardcode_shlibpath_var=no
  8746. ;;
  8747. newsos6)
  8748. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8749. hardcode_direct=yes
  8750. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8751. hardcode_libdir_separator=:
  8752. hardcode_shlibpath_var=no
  8753. ;;
  8754. *nto* | *qnx*)
  8755. ;;
  8756. openbsd* | bitrig*)
  8757. if test -f /usr/libexec/ld.so; then
  8758. hardcode_direct=yes
  8759. hardcode_shlibpath_var=no
  8760. hardcode_direct_absolute=yes
  8761. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8762. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8763. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8764. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8765. export_dynamic_flag_spec='$wl-E'
  8766. else
  8767. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8768. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8769. fi
  8770. else
  8771. ld_shlibs=no
  8772. fi
  8773. ;;
  8774. os2*)
  8775. hardcode_libdir_flag_spec='-L$libdir'
  8776. hardcode_minus_L=yes
  8777. allow_undefined_flag=unsupported
  8778. shrext_cmds=.dll
  8779. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8780. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8781. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8782. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8783. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8784. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8785. emximp -o $lib $output_objdir/$libname.def'
  8786. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8787. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8788. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8789. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8790. prefix_cmds="$SED"~
  8791. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8792. prefix_cmds="$prefix_cmds -e 1d";
  8793. fi~
  8794. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8795. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8796. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8797. emximp -o $lib $output_objdir/$libname.def'
  8798. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8799. enable_shared_with_static_runtimes=yes
  8800. file_list_spec='@'
  8801. ;;
  8802. osf3*)
  8803. if test yes = "$GCC"; then
  8804. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8805. 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'
  8806. else
  8807. allow_undefined_flag=' -expect_unresolved \*'
  8808. 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'
  8809. fi
  8810. archive_cmds_need_lc='no'
  8811. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8812. hardcode_libdir_separator=:
  8813. ;;
  8814. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8815. if test yes = "$GCC"; then
  8816. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8817. 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'
  8818. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8819. else
  8820. allow_undefined_flag=' -expect_unresolved \*'
  8821. 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'
  8822. 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~
  8823. $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'
  8824. # Both c and cxx compiler support -rpath directly
  8825. hardcode_libdir_flag_spec='-rpath $libdir'
  8826. fi
  8827. archive_cmds_need_lc='no'
  8828. hardcode_libdir_separator=:
  8829. ;;
  8830. solaris*)
  8831. no_undefined_flag=' -z defs'
  8832. if test yes = "$GCC"; then
  8833. wlarc='$wl'
  8834. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8835. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8836. $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'
  8837. else
  8838. case `$CC -V 2>&1` in
  8839. *"Compilers 5.0"*)
  8840. wlarc=''
  8841. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8842. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8843. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8844. ;;
  8845. *)
  8846. wlarc='$wl'
  8847. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8848. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8849. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8850. ;;
  8851. esac
  8852. fi
  8853. hardcode_libdir_flag_spec='-R$libdir'
  8854. hardcode_shlibpath_var=no
  8855. case $host_os in
  8856. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8857. *)
  8858. # The compiler driver will combine and reorder linker options,
  8859. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8860. # but is careful enough not to reorder.
  8861. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8862. if test yes = "$GCC"; then
  8863. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8864. else
  8865. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8866. fi
  8867. ;;
  8868. esac
  8869. link_all_deplibs=yes
  8870. ;;
  8871. sunos4*)
  8872. if test sequent = "$host_vendor"; then
  8873. # Use $CC to link under sequent, because it throws in some extra .o
  8874. # files that make .init and .fini sections work.
  8875. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8876. else
  8877. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8878. fi
  8879. hardcode_libdir_flag_spec='-L$libdir'
  8880. hardcode_direct=yes
  8881. hardcode_minus_L=yes
  8882. hardcode_shlibpath_var=no
  8883. ;;
  8884. sysv4)
  8885. case $host_vendor in
  8886. sni)
  8887. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8888. hardcode_direct=yes # is this really true???
  8889. ;;
  8890. siemens)
  8891. ## LD is ld it makes a PLAMLIB
  8892. ## CC just makes a GrossModule.
  8893. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8894. reload_cmds='$CC -r -o $output$reload_objs'
  8895. hardcode_direct=no
  8896. ;;
  8897. motorola)
  8898. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8899. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8900. ;;
  8901. esac
  8902. runpath_var='LD_RUN_PATH'
  8903. hardcode_shlibpath_var=no
  8904. ;;
  8905. sysv4.3*)
  8906. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8907. hardcode_shlibpath_var=no
  8908. export_dynamic_flag_spec='-Bexport'
  8909. ;;
  8910. sysv4*MP*)
  8911. if test -d /usr/nec; then
  8912. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8913. hardcode_shlibpath_var=no
  8914. runpath_var=LD_RUN_PATH
  8915. hardcode_runpath_var=yes
  8916. ld_shlibs=yes
  8917. fi
  8918. ;;
  8919. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8920. no_undefined_flag='$wl-z,text'
  8921. archive_cmds_need_lc=no
  8922. hardcode_shlibpath_var=no
  8923. runpath_var='LD_RUN_PATH'
  8924. if test yes = "$GCC"; then
  8925. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8926. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8927. else
  8928. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8929. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8930. fi
  8931. ;;
  8932. sysv5* | sco3.2v5* | sco5v6*)
  8933. # Note: We CANNOT use -z defs as we might desire, because we do not
  8934. # link with -lc, and that would cause any symbols used from libc to
  8935. # always be unresolved, which means just about no library would
  8936. # ever link correctly. If we're not using GNU ld we use -z text
  8937. # though, which does catch some bad symbols but isn't as heavy-handed
  8938. # as -z defs.
  8939. no_undefined_flag='$wl-z,text'
  8940. allow_undefined_flag='$wl-z,nodefs'
  8941. archive_cmds_need_lc=no
  8942. hardcode_shlibpath_var=no
  8943. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8944. hardcode_libdir_separator=':'
  8945. link_all_deplibs=yes
  8946. export_dynamic_flag_spec='$wl-Bexport'
  8947. runpath_var='LD_RUN_PATH'
  8948. if test yes = "$GCC"; then
  8949. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8950. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8951. else
  8952. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8953. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8954. fi
  8955. ;;
  8956. uts4*)
  8957. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8958. hardcode_libdir_flag_spec='-L$libdir'
  8959. hardcode_shlibpath_var=no
  8960. ;;
  8961. *)
  8962. ld_shlibs=no
  8963. ;;
  8964. esac
  8965. if test sni = "$host_vendor"; then
  8966. case $host in
  8967. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8968. export_dynamic_flag_spec='$wl-Blargedynsym'
  8969. ;;
  8970. esac
  8971. fi
  8972. fi
  8973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8974. $as_echo "$ld_shlibs" >&6; }
  8975. test no = "$ld_shlibs" && can_build_shared=no
  8976. with_gnu_ld=$with_gnu_ld
  8977. #
  8978. # Do we need to explicitly link libc?
  8979. #
  8980. case "x$archive_cmds_need_lc" in
  8981. x|xyes)
  8982. # Assume -lc should be added
  8983. archive_cmds_need_lc=yes
  8984. if test yes,yes = "$GCC,$enable_shared"; then
  8985. case $archive_cmds in
  8986. *'~'*)
  8987. # FIXME: we may have to deal with multi-command sequences.
  8988. ;;
  8989. '$CC '*)
  8990. # Test whether the compiler implicitly links with -lc since on some
  8991. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8992. # to ld, don't add -lc before -lgcc.
  8993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8994. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8995. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8996. $as_echo_n "(cached) " >&6
  8997. else
  8998. $RM conftest*
  8999. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9000. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9001. (eval $ac_compile) 2>&5
  9002. ac_status=$?
  9003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9004. test $ac_status = 0; } 2>conftest.err; then
  9005. soname=conftest
  9006. lib=conftest
  9007. libobjs=conftest.$ac_objext
  9008. deplibs=
  9009. wl=$lt_prog_compiler_wl
  9010. pic_flag=$lt_prog_compiler_pic
  9011. compiler_flags=-v
  9012. linker_flags=-v
  9013. verstring=
  9014. output_objdir=.
  9015. libname=conftest
  9016. lt_save_allow_undefined_flag=$allow_undefined_flag
  9017. allow_undefined_flag=
  9018. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9019. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9020. ac_status=$?
  9021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9022. test $ac_status = 0; }
  9023. then
  9024. lt_cv_archive_cmds_need_lc=no
  9025. else
  9026. lt_cv_archive_cmds_need_lc=yes
  9027. fi
  9028. allow_undefined_flag=$lt_save_allow_undefined_flag
  9029. else
  9030. cat conftest.err 1>&5
  9031. fi
  9032. $RM conftest*
  9033. fi
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9035. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9036. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9037. ;;
  9038. esac
  9039. fi
  9040. ;;
  9041. esac
  9042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9043. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9044. if test yes = "$GCC"; then
  9045. case $host_os in
  9046. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9047. *) lt_awk_arg='/^libraries:/' ;;
  9048. esac
  9049. case $host_os in
  9050. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9051. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9052. esac
  9053. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9054. case $lt_search_path_spec in
  9055. *\;*)
  9056. # if the path contains ";" then we assume it to be the separator
  9057. # otherwise default to the standard path separator (i.e. ":") - it is
  9058. # assumed that no part of a normal pathname contains ";" but that should
  9059. # okay in the real world where ";" in dirpaths is itself problematic.
  9060. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9061. ;;
  9062. *)
  9063. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9064. ;;
  9065. esac
  9066. # Ok, now we have the path, separated by spaces, we can step through it
  9067. # and add multilib dir if necessary...
  9068. lt_tmp_lt_search_path_spec=
  9069. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9070. # ...but if some path component already ends with the multilib dir we assume
  9071. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9072. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9073. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9074. lt_multi_os_dir=
  9075. ;;
  9076. esac
  9077. for lt_sys_path in $lt_search_path_spec; do
  9078. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9079. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9080. elif test -n "$lt_multi_os_dir"; then
  9081. test -d "$lt_sys_path" && \
  9082. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9083. fi
  9084. done
  9085. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9086. BEGIN {RS = " "; FS = "/|\n";} {
  9087. lt_foo = "";
  9088. lt_count = 0;
  9089. for (lt_i = NF; lt_i > 0; lt_i--) {
  9090. if ($lt_i != "" && $lt_i != ".") {
  9091. if ($lt_i == "..") {
  9092. lt_count++;
  9093. } else {
  9094. if (lt_count == 0) {
  9095. lt_foo = "/" $lt_i lt_foo;
  9096. } else {
  9097. lt_count--;
  9098. }
  9099. }
  9100. }
  9101. }
  9102. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9103. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9104. }'`
  9105. # AWK program above erroneously prepends '/' to C:/dos/paths
  9106. # for these hosts.
  9107. case $host_os in
  9108. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9109. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9110. esac
  9111. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9112. else
  9113. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9114. fi
  9115. library_names_spec=
  9116. libname_spec='lib$name'
  9117. soname_spec=
  9118. shrext_cmds=.so
  9119. postinstall_cmds=
  9120. postuninstall_cmds=
  9121. finish_cmds=
  9122. finish_eval=
  9123. shlibpath_var=
  9124. shlibpath_overrides_runpath=unknown
  9125. version_type=none
  9126. dynamic_linker="$host_os ld.so"
  9127. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9128. need_lib_prefix=unknown
  9129. hardcode_into_libs=no
  9130. # when you set need_version to no, make sure it does not cause -set_version
  9131. # flags to be left without arguments
  9132. need_version=unknown
  9133. case $host_os in
  9134. aix3*)
  9135. version_type=linux # correct to gnu/linux during the next big refactor
  9136. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9137. shlibpath_var=LIBPATH
  9138. # AIX 3 has no versioning support, so we append a major version to the name.
  9139. soname_spec='$libname$release$shared_ext$major'
  9140. ;;
  9141. aix[4-9]*)
  9142. version_type=linux # correct to gnu/linux during the next big refactor
  9143. need_lib_prefix=no
  9144. need_version=no
  9145. hardcode_into_libs=yes
  9146. if test ia64 = "$host_cpu"; then
  9147. # AIX 5 supports IA64
  9148. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. else
  9151. # With GCC up to 2.95.x, collect2 would create an import file
  9152. # for dependence libraries. The import file would start with
  9153. # the line '#! .'. This would cause the generated library to
  9154. # depend on '.', always an invalid library. This was fixed in
  9155. # development snapshots of GCC prior to 3.0.
  9156. case $host_os in
  9157. aix4 | aix4.[01] | aix4.[01].*)
  9158. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9159. echo ' yes '
  9160. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9161. :
  9162. else
  9163. can_build_shared=no
  9164. fi
  9165. ;;
  9166. esac
  9167. # Using Import Files as archive members, it is possible to support
  9168. # filename-based versioning of shared library archives on AIX. While
  9169. # this would work for both with and without runtime linking, it will
  9170. # prevent static linking of such archives. So we do filename-based
  9171. # shared library versioning with .so extension only, which is used
  9172. # when both runtime linking and shared linking is enabled.
  9173. # Unfortunately, runtime linking may impact performance, so we do
  9174. # not want this to be the default eventually. Also, we use the
  9175. # versioned .so libs for executables only if there is the -brtl
  9176. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9177. # To allow for filename-based versioning support, we need to create
  9178. # libNAME.so.V as an archive file, containing:
  9179. # *) an Import File, referring to the versioned filename of the
  9180. # archive as well as the shared archive member, telling the
  9181. # bitwidth (32 or 64) of that shared object, and providing the
  9182. # list of exported symbols of that shared object, eventually
  9183. # decorated with the 'weak' keyword
  9184. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9185. # it being seen by the linker.
  9186. # At run time we better use the real file rather than another symlink,
  9187. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9188. case $with_aix_soname,$aix_use_runtimelinking in
  9189. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9190. # soname into executable. Probably we can add versioning support to
  9191. # collect2, so additional links can be useful in future.
  9192. aix,yes) # traditional libtool
  9193. dynamic_linker='AIX unversionable lib.so'
  9194. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9195. # instead of lib<name>.a to let people know that these are not
  9196. # typical AIX shared libraries.
  9197. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9198. ;;
  9199. aix,no) # traditional AIX only
  9200. dynamic_linker='AIX lib.a(lib.so.V)'
  9201. # We preserve .a as extension for shared libraries through AIX4.2
  9202. # and later when we are not doing run time linking.
  9203. library_names_spec='$libname$release.a $libname.a'
  9204. soname_spec='$libname$release$shared_ext$major'
  9205. ;;
  9206. svr4,*) # full svr4 only
  9207. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9208. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9209. # We do not specify a path in Import Files, so LIBPATH fires.
  9210. shlibpath_overrides_runpath=yes
  9211. ;;
  9212. *,yes) # both, prefer svr4
  9213. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9214. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9215. # unpreferred sharedlib libNAME.a needs extra handling
  9216. 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"'
  9217. 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"'
  9218. # We do not specify a path in Import Files, so LIBPATH fires.
  9219. shlibpath_overrides_runpath=yes
  9220. ;;
  9221. *,no) # both, prefer aix
  9222. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9223. library_names_spec='$libname$release.a $libname.a'
  9224. soname_spec='$libname$release$shared_ext$major'
  9225. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9226. 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)'
  9227. 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"'
  9228. ;;
  9229. esac
  9230. shlibpath_var=LIBPATH
  9231. fi
  9232. ;;
  9233. amigaos*)
  9234. case $host_cpu in
  9235. powerpc)
  9236. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9237. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9238. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9239. ;;
  9240. m68k)
  9241. library_names_spec='$libname.ixlibrary $libname.a'
  9242. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9243. 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'
  9244. ;;
  9245. esac
  9246. ;;
  9247. beos*)
  9248. library_names_spec='$libname$shared_ext'
  9249. dynamic_linker="$host_os ld.so"
  9250. shlibpath_var=LIBRARY_PATH
  9251. ;;
  9252. bsdi[45]*)
  9253. version_type=linux # correct to gnu/linux during the next big refactor
  9254. need_version=no
  9255. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9256. soname_spec='$libname$release$shared_ext$major'
  9257. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9258. shlibpath_var=LD_LIBRARY_PATH
  9259. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9260. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9261. # the default ld.so.conf also contains /usr/contrib/lib and
  9262. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9263. # libtool to hard-code these into programs
  9264. ;;
  9265. cygwin* | mingw* | pw32* | cegcc*)
  9266. version_type=windows
  9267. shrext_cmds=.dll
  9268. need_version=no
  9269. need_lib_prefix=no
  9270. case $GCC,$cc_basename in
  9271. yes,*)
  9272. # gcc
  9273. library_names_spec='$libname.dll.a'
  9274. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9275. postinstall_cmds='base_file=`basename \$file`~
  9276. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9277. dldir=$destdir/`dirname \$dlpath`~
  9278. test -d \$dldir || mkdir -p \$dldir~
  9279. $install_prog $dir/$dlname \$dldir/$dlname~
  9280. chmod a+x \$dldir/$dlname~
  9281. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9282. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9283. fi'
  9284. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9285. dlpath=$dir/\$dldll~
  9286. $RM \$dlpath'
  9287. shlibpath_overrides_runpath=yes
  9288. case $host_os in
  9289. cygwin*)
  9290. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9291. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9292. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9293. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9294. ;;
  9295. mingw* | cegcc*)
  9296. # MinGW DLLs use traditional 'lib' prefix
  9297. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9298. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9299. ;;
  9300. pw32*)
  9301. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9302. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9303. ;;
  9304. esac
  9305. dynamic_linker='Win32 ld.exe'
  9306. ;;
  9307. *,cl*)
  9308. # Native MSVC
  9309. libname_spec='$name'
  9310. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9311. library_names_spec='$libname.dll.lib'
  9312. case $build_os in
  9313. mingw*)
  9314. sys_lib_search_path_spec=
  9315. lt_save_ifs=$IFS
  9316. IFS=';'
  9317. for lt_path in $LIB
  9318. do
  9319. IFS=$lt_save_ifs
  9320. # Let DOS variable expansion print the short 8.3 style file name.
  9321. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9322. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9323. done
  9324. IFS=$lt_save_ifs
  9325. # Convert to MSYS style.
  9326. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9327. ;;
  9328. cygwin*)
  9329. # Convert to unix form, then to dos form, then back to unix form
  9330. # but this time dos style (no spaces!) so that the unix form looks
  9331. # like /cygdrive/c/PROGRA~1:/cygdr...
  9332. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9333. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9334. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9335. ;;
  9336. *)
  9337. sys_lib_search_path_spec=$LIB
  9338. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9339. # It is most probably a Windows format PATH.
  9340. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9341. else
  9342. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9343. fi
  9344. # FIXME: find the short name or the path components, as spaces are
  9345. # common. (e.g. "Program Files" -> "PROGRA~1")
  9346. ;;
  9347. esac
  9348. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9349. postinstall_cmds='base_file=`basename \$file`~
  9350. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9351. dldir=$destdir/`dirname \$dlpath`~
  9352. test -d \$dldir || mkdir -p \$dldir~
  9353. $install_prog $dir/$dlname \$dldir/$dlname'
  9354. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9355. dlpath=$dir/\$dldll~
  9356. $RM \$dlpath'
  9357. shlibpath_overrides_runpath=yes
  9358. dynamic_linker='Win32 link.exe'
  9359. ;;
  9360. *)
  9361. # Assume MSVC wrapper
  9362. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9363. dynamic_linker='Win32 ld.exe'
  9364. ;;
  9365. esac
  9366. # FIXME: first we should search . and the directory the executable is in
  9367. shlibpath_var=PATH
  9368. ;;
  9369. darwin* | rhapsody*)
  9370. dynamic_linker="$host_os dyld"
  9371. version_type=darwin
  9372. need_lib_prefix=no
  9373. need_version=no
  9374. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9375. soname_spec='$libname$release$major$shared_ext'
  9376. shlibpath_overrides_runpath=yes
  9377. shlibpath_var=DYLD_LIBRARY_PATH
  9378. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9379. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9380. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9381. ;;
  9382. dgux*)
  9383. version_type=linux # correct to gnu/linux during the next big refactor
  9384. need_lib_prefix=no
  9385. need_version=no
  9386. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9387. soname_spec='$libname$release$shared_ext$major'
  9388. shlibpath_var=LD_LIBRARY_PATH
  9389. ;;
  9390. freebsd* | dragonfly* | midnightbsd*)
  9391. # DragonFly does not have aout. When/if they implement a new
  9392. # versioning mechanism, adjust this.
  9393. if test -x /usr/bin/objformat; then
  9394. objformat=`/usr/bin/objformat`
  9395. else
  9396. case $host_os in
  9397. freebsd[23].*) objformat=aout ;;
  9398. *) objformat=elf ;;
  9399. esac
  9400. fi
  9401. version_type=freebsd-$objformat
  9402. case $version_type in
  9403. freebsd-elf*)
  9404. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9405. soname_spec='$libname$release$shared_ext$major'
  9406. need_version=no
  9407. need_lib_prefix=no
  9408. ;;
  9409. freebsd-*)
  9410. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9411. need_version=yes
  9412. ;;
  9413. esac
  9414. shlibpath_var=LD_LIBRARY_PATH
  9415. case $host_os in
  9416. freebsd2.*)
  9417. shlibpath_overrides_runpath=yes
  9418. ;;
  9419. freebsd3.[01]* | freebsdelf3.[01]*)
  9420. shlibpath_overrides_runpath=yes
  9421. hardcode_into_libs=yes
  9422. ;;
  9423. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9424. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9425. shlibpath_overrides_runpath=no
  9426. hardcode_into_libs=yes
  9427. ;;
  9428. *) # from 4.6 on, and DragonFly
  9429. shlibpath_overrides_runpath=yes
  9430. hardcode_into_libs=yes
  9431. ;;
  9432. esac
  9433. ;;
  9434. haiku*)
  9435. version_type=linux # correct to gnu/linux during the next big refactor
  9436. need_lib_prefix=no
  9437. need_version=no
  9438. dynamic_linker="$host_os runtime_loader"
  9439. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9440. soname_spec='$libname$release$shared_ext$major'
  9441. shlibpath_var=LIBRARY_PATH
  9442. shlibpath_overrides_runpath=no
  9443. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9444. hardcode_into_libs=yes
  9445. ;;
  9446. hpux9* | hpux10* | hpux11*)
  9447. # Give a soname corresponding to the major version so that dld.sl refuses to
  9448. # link against other versions.
  9449. version_type=sunos
  9450. need_lib_prefix=no
  9451. need_version=no
  9452. case $host_cpu in
  9453. ia64*)
  9454. shrext_cmds='.so'
  9455. hardcode_into_libs=yes
  9456. dynamic_linker="$host_os dld.so"
  9457. shlibpath_var=LD_LIBRARY_PATH
  9458. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9459. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9460. soname_spec='$libname$release$shared_ext$major'
  9461. if test 32 = "$HPUX_IA64_MODE"; then
  9462. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9463. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9464. else
  9465. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9466. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9467. fi
  9468. ;;
  9469. hppa*64*)
  9470. shrext_cmds='.sl'
  9471. hardcode_into_libs=yes
  9472. dynamic_linker="$host_os dld.sl"
  9473. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9474. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9475. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9476. soname_spec='$libname$release$shared_ext$major'
  9477. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9478. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9479. ;;
  9480. *)
  9481. shrext_cmds='.sl'
  9482. dynamic_linker="$host_os dld.sl"
  9483. shlibpath_var=SHLIB_PATH
  9484. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9486. soname_spec='$libname$release$shared_ext$major'
  9487. ;;
  9488. esac
  9489. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9490. postinstall_cmds='chmod 555 $lib'
  9491. # or fails outright, so override atomically:
  9492. install_override_mode=555
  9493. ;;
  9494. interix[3-9]*)
  9495. version_type=linux # correct to gnu/linux during the next big refactor
  9496. need_lib_prefix=no
  9497. need_version=no
  9498. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9499. soname_spec='$libname$release$shared_ext$major'
  9500. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9501. shlibpath_var=LD_LIBRARY_PATH
  9502. shlibpath_overrides_runpath=no
  9503. hardcode_into_libs=yes
  9504. ;;
  9505. irix5* | irix6* | nonstopux*)
  9506. case $host_os in
  9507. nonstopux*) version_type=nonstopux ;;
  9508. *)
  9509. if test yes = "$lt_cv_prog_gnu_ld"; then
  9510. version_type=linux # correct to gnu/linux during the next big refactor
  9511. else
  9512. version_type=irix
  9513. fi ;;
  9514. esac
  9515. need_lib_prefix=no
  9516. need_version=no
  9517. soname_spec='$libname$release$shared_ext$major'
  9518. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9519. case $host_os in
  9520. irix5* | nonstopux*)
  9521. libsuff= shlibsuff=
  9522. ;;
  9523. *)
  9524. case $LD in # libtool.m4 will add one of these switches to LD
  9525. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9526. libsuff= shlibsuff= libmagic=32-bit;;
  9527. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9528. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9529. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9530. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9531. *) libsuff= shlibsuff= libmagic=never-match;;
  9532. esac
  9533. ;;
  9534. esac
  9535. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9536. shlibpath_overrides_runpath=no
  9537. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9538. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9539. hardcode_into_libs=yes
  9540. ;;
  9541. # No shared lib support for Linux oldld, aout, or coff.
  9542. linux*oldld* | linux*aout* | linux*coff*)
  9543. dynamic_linker=no
  9544. ;;
  9545. linux*android*)
  9546. version_type=none # Android doesn't support versioned libraries.
  9547. need_lib_prefix=no
  9548. need_version=no
  9549. library_names_spec='$libname$release$shared_ext'
  9550. soname_spec='$libname$release$shared_ext'
  9551. finish_cmds=
  9552. shlibpath_var=LD_LIBRARY_PATH
  9553. shlibpath_overrides_runpath=yes
  9554. # This implies no fast_install, which is unacceptable.
  9555. # Some rework will be needed to allow for fast_install
  9556. # before this can be enabled.
  9557. hardcode_into_libs=yes
  9558. dynamic_linker='Android linker'
  9559. # Don't embed -rpath directories since the linker doesn't support them.
  9560. hardcode_libdir_flag_spec='-L$libdir'
  9561. ;;
  9562. # This must be glibc/ELF.
  9563. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9564. version_type=linux # correct to gnu/linux during the next big refactor
  9565. need_lib_prefix=no
  9566. need_version=no
  9567. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9568. soname_spec='$libname$release$shared_ext$major'
  9569. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9570. shlibpath_var=LD_LIBRARY_PATH
  9571. shlibpath_overrides_runpath=no
  9572. # Some binutils ld are patched to set DT_RUNPATH
  9573. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9574. $as_echo_n "(cached) " >&6
  9575. else
  9576. lt_cv_shlibpath_overrides_runpath=no
  9577. save_LDFLAGS=$LDFLAGS
  9578. save_libdir=$libdir
  9579. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9580. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9582. /* end confdefs.h. */
  9583. int
  9584. main ()
  9585. {
  9586. ;
  9587. return 0;
  9588. }
  9589. _ACEOF
  9590. if ac_fn_c_try_link "$LINENO"; then :
  9591. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9592. lt_cv_shlibpath_overrides_runpath=yes
  9593. fi
  9594. fi
  9595. rm -f core conftest.err conftest.$ac_objext \
  9596. conftest$ac_exeext conftest.$ac_ext
  9597. LDFLAGS=$save_LDFLAGS
  9598. libdir=$save_libdir
  9599. fi
  9600. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9601. # This implies no fast_install, which is unacceptable.
  9602. # Some rework will be needed to allow for fast_install
  9603. # before this can be enabled.
  9604. hardcode_into_libs=yes
  9605. # Add ABI-specific directories to the system library path.
  9606. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9607. # Ideally, we could use ldconfig to report *all* directores which are
  9608. # searched for libraries, however this is still not possible. Aside from not
  9609. # being certain /sbin/ldconfig is available, command
  9610. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9611. # even though it is searched at run-time. Try to do the best guess by
  9612. # appending ld.so.conf contents (and includes) to the search path.
  9613. if test -f /etc/ld.so.conf; then
  9614. 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' ' '`
  9615. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9616. fi
  9617. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9618. # powerpc, because MkLinux only supported shared libraries with the
  9619. # GNU dynamic linker. Since this was broken with cross compilers,
  9620. # most powerpc-linux boxes support dynamic linking these days and
  9621. # people can always --disable-shared, the test was removed, and we
  9622. # assume the GNU/Linux dynamic linker is in use.
  9623. dynamic_linker='GNU/Linux ld.so'
  9624. ;;
  9625. netbsd*)
  9626. version_type=sunos
  9627. need_lib_prefix=no
  9628. need_version=no
  9629. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9630. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9631. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9632. dynamic_linker='NetBSD (a.out) ld.so'
  9633. else
  9634. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9635. soname_spec='$libname$release$shared_ext$major'
  9636. dynamic_linker='NetBSD ld.elf_so'
  9637. fi
  9638. shlibpath_var=LD_LIBRARY_PATH
  9639. shlibpath_overrides_runpath=yes
  9640. hardcode_into_libs=yes
  9641. ;;
  9642. newsos6)
  9643. version_type=linux # correct to gnu/linux during the next big refactor
  9644. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9645. shlibpath_var=LD_LIBRARY_PATH
  9646. shlibpath_overrides_runpath=yes
  9647. ;;
  9648. *nto* | *qnx*)
  9649. version_type=qnx
  9650. need_lib_prefix=no
  9651. need_version=no
  9652. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9653. soname_spec='$libname$release$shared_ext$major'
  9654. shlibpath_var=LD_LIBRARY_PATH
  9655. shlibpath_overrides_runpath=no
  9656. hardcode_into_libs=yes
  9657. dynamic_linker='ldqnx.so'
  9658. ;;
  9659. openbsd* | bitrig*)
  9660. version_type=sunos
  9661. sys_lib_dlsearch_path_spec=/usr/lib
  9662. need_lib_prefix=no
  9663. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9664. need_version=no
  9665. else
  9666. need_version=yes
  9667. fi
  9668. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9669. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9670. shlibpath_var=LD_LIBRARY_PATH
  9671. shlibpath_overrides_runpath=yes
  9672. ;;
  9673. os2*)
  9674. libname_spec='$name'
  9675. shrext_cmds=.dll
  9676. need_lib_prefix=no
  9677. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9678. # SDL customization: removed versioning support.
  9679. # version_type=windows
  9680. # need_version=no
  9681. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9682. # v=$($ECHO $release$versuffix | tr -d .-);
  9683. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9684. # $ECHO $n$v`$shared_ext'
  9685. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9686. library_names_spec='${libname}_dll.$libext'
  9687. dynamic_linker='OS/2 ld.exe'
  9688. shlibpath_var=BEGINLIBPATH
  9689. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9690. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9691. postinstall_cmds='base_file=`basename \$file`~
  9692. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9693. dldir=$destdir/`dirname \$dlpath`~
  9694. test -d \$dldir || mkdir -p \$dldir~
  9695. $install_prog $dir/$dlname \$dldir/$dlname~
  9696. chmod a+x \$dldir/$dlname~
  9697. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9698. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9699. fi'
  9700. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9701. dlpath=$dir/\$dldll~
  9702. $RM \$dlpath'
  9703. ;;
  9704. osf3* | osf4* | osf5*)
  9705. version_type=osf
  9706. need_lib_prefix=no
  9707. need_version=no
  9708. soname_spec='$libname$release$shared_ext$major'
  9709. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9710. shlibpath_var=LD_LIBRARY_PATH
  9711. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9712. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9713. ;;
  9714. rdos*)
  9715. dynamic_linker=no
  9716. ;;
  9717. solaris*)
  9718. version_type=linux # correct to gnu/linux during the next big refactor
  9719. need_lib_prefix=no
  9720. need_version=no
  9721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9722. soname_spec='$libname$release$shared_ext$major'
  9723. shlibpath_var=LD_LIBRARY_PATH
  9724. shlibpath_overrides_runpath=yes
  9725. hardcode_into_libs=yes
  9726. # ldd complains unless libraries are executable
  9727. postinstall_cmds='chmod +x $lib'
  9728. ;;
  9729. sunos4*)
  9730. version_type=sunos
  9731. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9732. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9733. shlibpath_var=LD_LIBRARY_PATH
  9734. shlibpath_overrides_runpath=yes
  9735. if test yes = "$with_gnu_ld"; then
  9736. need_lib_prefix=no
  9737. fi
  9738. need_version=yes
  9739. ;;
  9740. sysv4 | sysv4.3*)
  9741. version_type=linux # correct to gnu/linux during the next big refactor
  9742. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9743. soname_spec='$libname$release$shared_ext$major'
  9744. shlibpath_var=LD_LIBRARY_PATH
  9745. case $host_vendor in
  9746. sni)
  9747. shlibpath_overrides_runpath=no
  9748. need_lib_prefix=no
  9749. runpath_var=LD_RUN_PATH
  9750. ;;
  9751. siemens)
  9752. need_lib_prefix=no
  9753. ;;
  9754. motorola)
  9755. need_lib_prefix=no
  9756. need_version=no
  9757. shlibpath_overrides_runpath=no
  9758. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9759. ;;
  9760. esac
  9761. ;;
  9762. sysv4*MP*)
  9763. if test -d /usr/nec; then
  9764. version_type=linux # correct to gnu/linux during the next big refactor
  9765. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9766. soname_spec='$libname$shared_ext.$major'
  9767. shlibpath_var=LD_LIBRARY_PATH
  9768. fi
  9769. ;;
  9770. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9771. version_type=sco
  9772. need_lib_prefix=no
  9773. need_version=no
  9774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9775. soname_spec='$libname$release$shared_ext$major'
  9776. shlibpath_var=LD_LIBRARY_PATH
  9777. shlibpath_overrides_runpath=yes
  9778. hardcode_into_libs=yes
  9779. if test yes = "$with_gnu_ld"; then
  9780. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9781. else
  9782. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9783. case $host_os in
  9784. sco3.2v5*)
  9785. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9786. ;;
  9787. esac
  9788. fi
  9789. sys_lib_dlsearch_path_spec='/usr/lib'
  9790. ;;
  9791. tpf*)
  9792. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9793. version_type=linux # correct to gnu/linux during the next big refactor
  9794. need_lib_prefix=no
  9795. need_version=no
  9796. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. shlibpath_overrides_runpath=no
  9799. hardcode_into_libs=yes
  9800. ;;
  9801. uts4*)
  9802. version_type=linux # correct to gnu/linux during the next big refactor
  9803. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9804. soname_spec='$libname$release$shared_ext$major'
  9805. shlibpath_var=LD_LIBRARY_PATH
  9806. ;;
  9807. *)
  9808. dynamic_linker=no
  9809. ;;
  9810. esac
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9812. $as_echo "$dynamic_linker" >&6; }
  9813. test no = "$dynamic_linker" && can_build_shared=no
  9814. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9815. if test yes = "$GCC"; then
  9816. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9817. fi
  9818. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9819. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9820. fi
  9821. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9822. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9823. fi
  9824. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9825. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9826. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9827. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9828. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9829. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9831. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9832. hardcode_action=
  9833. if test -n "$hardcode_libdir_flag_spec" ||
  9834. test -n "$runpath_var" ||
  9835. test yes = "$hardcode_automatic"; then
  9836. # We can hardcode non-existent directories.
  9837. if test no != "$hardcode_direct" &&
  9838. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9839. # have to relink, otherwise we might link with an installed library
  9840. # when we should be linking with a yet-to-be-installed one
  9841. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9842. test no != "$hardcode_minus_L"; then
  9843. # Linking always hardcodes the temporary library directory.
  9844. hardcode_action=relink
  9845. else
  9846. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9847. hardcode_action=immediate
  9848. fi
  9849. else
  9850. # We cannot hardcode anything, or else we can only hardcode existing
  9851. # directories.
  9852. hardcode_action=unsupported
  9853. fi
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9855. $as_echo "$hardcode_action" >&6; }
  9856. if test relink = "$hardcode_action" ||
  9857. test yes = "$inherit_rpath"; then
  9858. # Fast installation is not supported
  9859. enable_fast_install=no
  9860. elif test yes = "$shlibpath_overrides_runpath" ||
  9861. test no = "$enable_shared"; then
  9862. # Fast installation is not necessary
  9863. enable_fast_install=needless
  9864. fi
  9865. if test yes != "$enable_dlopen"; then
  9866. enable_dlopen=unknown
  9867. enable_dlopen_self=unknown
  9868. enable_dlopen_self_static=unknown
  9869. else
  9870. lt_cv_dlopen=no
  9871. lt_cv_dlopen_libs=
  9872. case $host_os in
  9873. beos*)
  9874. lt_cv_dlopen=load_add_on
  9875. lt_cv_dlopen_libs=
  9876. lt_cv_dlopen_self=yes
  9877. ;;
  9878. mingw* | pw32* | cegcc*)
  9879. lt_cv_dlopen=LoadLibrary
  9880. lt_cv_dlopen_libs=
  9881. ;;
  9882. cygwin*)
  9883. lt_cv_dlopen=dlopen
  9884. lt_cv_dlopen_libs=
  9885. ;;
  9886. darwin*)
  9887. # if libdl is installed we need to link against it
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9889. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9890. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9891. $as_echo_n "(cached) " >&6
  9892. else
  9893. ac_check_lib_save_LIBS=$LIBS
  9894. LIBS="-ldl $LIBS"
  9895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9896. /* end confdefs.h. */
  9897. /* Override any GCC internal prototype to avoid an error.
  9898. Use char because int might match the return type of a GCC
  9899. builtin and then its argument prototype would still apply. */
  9900. #ifdef __cplusplus
  9901. extern "C"
  9902. #endif
  9903. char dlopen ();
  9904. int
  9905. main ()
  9906. {
  9907. return dlopen ();
  9908. ;
  9909. return 0;
  9910. }
  9911. _ACEOF
  9912. if ac_fn_c_try_link "$LINENO"; then :
  9913. ac_cv_lib_dl_dlopen=yes
  9914. else
  9915. ac_cv_lib_dl_dlopen=no
  9916. fi
  9917. rm -f core conftest.err conftest.$ac_objext \
  9918. conftest$ac_exeext conftest.$ac_ext
  9919. LIBS=$ac_check_lib_save_LIBS
  9920. fi
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9922. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9923. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9924. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9925. else
  9926. lt_cv_dlopen=dyld
  9927. lt_cv_dlopen_libs=
  9928. lt_cv_dlopen_self=yes
  9929. fi
  9930. ;;
  9931. tpf*)
  9932. # Don't try to run any link tests for TPF. We know it's impossible
  9933. # because TPF is a cross-compiler, and we know how we open DSOs.
  9934. lt_cv_dlopen=dlopen
  9935. lt_cv_dlopen_libs=
  9936. lt_cv_dlopen_self=no
  9937. ;;
  9938. *)
  9939. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9940. if test "x$ac_cv_func_shl_load" = xyes; then :
  9941. lt_cv_dlopen=shl_load
  9942. else
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9944. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9945. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. ac_check_lib_save_LIBS=$LIBS
  9949. LIBS="-ldld $LIBS"
  9950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9951. /* end confdefs.h. */
  9952. /* Override any GCC internal prototype to avoid an error.
  9953. Use char because int might match the return type of a GCC
  9954. builtin and then its argument prototype would still apply. */
  9955. #ifdef __cplusplus
  9956. extern "C"
  9957. #endif
  9958. char shl_load ();
  9959. int
  9960. main ()
  9961. {
  9962. return shl_load ();
  9963. ;
  9964. return 0;
  9965. }
  9966. _ACEOF
  9967. if ac_fn_c_try_link "$LINENO"; then :
  9968. ac_cv_lib_dld_shl_load=yes
  9969. else
  9970. ac_cv_lib_dld_shl_load=no
  9971. fi
  9972. rm -f core conftest.err conftest.$ac_objext \
  9973. conftest$ac_exeext conftest.$ac_ext
  9974. LIBS=$ac_check_lib_save_LIBS
  9975. fi
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9977. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9978. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9979. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9980. else
  9981. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9982. if test "x$ac_cv_func_dlopen" = xyes; then :
  9983. lt_cv_dlopen=dlopen
  9984. else
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9986. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9987. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9988. $as_echo_n "(cached) " >&6
  9989. else
  9990. ac_check_lib_save_LIBS=$LIBS
  9991. LIBS="-ldl $LIBS"
  9992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9993. /* end confdefs.h. */
  9994. /* Override any GCC internal prototype to avoid an error.
  9995. Use char because int might match the return type of a GCC
  9996. builtin and then its argument prototype would still apply. */
  9997. #ifdef __cplusplus
  9998. extern "C"
  9999. #endif
  10000. char dlopen ();
  10001. int
  10002. main ()
  10003. {
  10004. return dlopen ();
  10005. ;
  10006. return 0;
  10007. }
  10008. _ACEOF
  10009. if ac_fn_c_try_link "$LINENO"; then :
  10010. ac_cv_lib_dl_dlopen=yes
  10011. else
  10012. ac_cv_lib_dl_dlopen=no
  10013. fi
  10014. rm -f core conftest.err conftest.$ac_objext \
  10015. conftest$ac_exeext conftest.$ac_ext
  10016. LIBS=$ac_check_lib_save_LIBS
  10017. fi
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10019. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10020. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10021. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10022. else
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10024. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10025. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10026. $as_echo_n "(cached) " >&6
  10027. else
  10028. ac_check_lib_save_LIBS=$LIBS
  10029. LIBS="-lsvld $LIBS"
  10030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10031. /* end confdefs.h. */
  10032. /* Override any GCC internal prototype to avoid an error.
  10033. Use char because int might match the return type of a GCC
  10034. builtin and then its argument prototype would still apply. */
  10035. #ifdef __cplusplus
  10036. extern "C"
  10037. #endif
  10038. char dlopen ();
  10039. int
  10040. main ()
  10041. {
  10042. return dlopen ();
  10043. ;
  10044. return 0;
  10045. }
  10046. _ACEOF
  10047. if ac_fn_c_try_link "$LINENO"; then :
  10048. ac_cv_lib_svld_dlopen=yes
  10049. else
  10050. ac_cv_lib_svld_dlopen=no
  10051. fi
  10052. rm -f core conftest.err conftest.$ac_objext \
  10053. conftest$ac_exeext conftest.$ac_ext
  10054. LIBS=$ac_check_lib_save_LIBS
  10055. fi
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10057. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10058. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10059. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10060. else
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10062. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10063. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10064. $as_echo_n "(cached) " >&6
  10065. else
  10066. ac_check_lib_save_LIBS=$LIBS
  10067. LIBS="-ldld $LIBS"
  10068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10069. /* end confdefs.h. */
  10070. /* Override any GCC internal prototype to avoid an error.
  10071. Use char because int might match the return type of a GCC
  10072. builtin and then its argument prototype would still apply. */
  10073. #ifdef __cplusplus
  10074. extern "C"
  10075. #endif
  10076. char dld_link ();
  10077. int
  10078. main ()
  10079. {
  10080. return dld_link ();
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. if ac_fn_c_try_link "$LINENO"; then :
  10086. ac_cv_lib_dld_dld_link=yes
  10087. else
  10088. ac_cv_lib_dld_dld_link=no
  10089. fi
  10090. rm -f core conftest.err conftest.$ac_objext \
  10091. conftest$ac_exeext conftest.$ac_ext
  10092. LIBS=$ac_check_lib_save_LIBS
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10095. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10096. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10097. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10098. fi
  10099. fi
  10100. fi
  10101. fi
  10102. fi
  10103. fi
  10104. ;;
  10105. esac
  10106. if test no = "$lt_cv_dlopen"; then
  10107. enable_dlopen=no
  10108. else
  10109. enable_dlopen=yes
  10110. fi
  10111. case $lt_cv_dlopen in
  10112. dlopen)
  10113. save_CPPFLAGS=$CPPFLAGS
  10114. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10115. save_LDFLAGS=$LDFLAGS
  10116. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10117. save_LIBS=$LIBS
  10118. LIBS="$lt_cv_dlopen_libs $LIBS"
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10120. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10121. if ${lt_cv_dlopen_self+:} false; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. if test yes = "$cross_compiling"; then :
  10125. lt_cv_dlopen_self=cross
  10126. else
  10127. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10128. lt_status=$lt_dlunknown
  10129. cat > conftest.$ac_ext <<_LT_EOF
  10130. #line $LINENO "configure"
  10131. #include "confdefs.h"
  10132. #if HAVE_DLFCN_H
  10133. #include <dlfcn.h>
  10134. #endif
  10135. #include <stdio.h>
  10136. #ifdef RTLD_GLOBAL
  10137. # define LT_DLGLOBAL RTLD_GLOBAL
  10138. #else
  10139. # ifdef DL_GLOBAL
  10140. # define LT_DLGLOBAL DL_GLOBAL
  10141. # else
  10142. # define LT_DLGLOBAL 0
  10143. # endif
  10144. #endif
  10145. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10146. find out it does not work in some platform. */
  10147. #ifndef LT_DLLAZY_OR_NOW
  10148. # ifdef RTLD_LAZY
  10149. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10150. # else
  10151. # ifdef DL_LAZY
  10152. # define LT_DLLAZY_OR_NOW DL_LAZY
  10153. # else
  10154. # ifdef RTLD_NOW
  10155. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10156. # else
  10157. # ifdef DL_NOW
  10158. # define LT_DLLAZY_OR_NOW DL_NOW
  10159. # else
  10160. # define LT_DLLAZY_OR_NOW 0
  10161. # endif
  10162. # endif
  10163. # endif
  10164. # endif
  10165. #endif
  10166. /* When -fvisibility=hidden is used, assume the code has been annotated
  10167. correspondingly for the symbols needed. */
  10168. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10169. int fnord () __attribute__((visibility("default")));
  10170. #endif
  10171. int fnord () { return 42; }
  10172. int main ()
  10173. {
  10174. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10175. int status = $lt_dlunknown;
  10176. if (self)
  10177. {
  10178. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10179. else
  10180. {
  10181. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10182. else puts (dlerror ());
  10183. }
  10184. /* dlclose (self); */
  10185. }
  10186. else
  10187. puts (dlerror ());
  10188. return status;
  10189. }
  10190. _LT_EOF
  10191. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10192. (eval $ac_link) 2>&5
  10193. ac_status=$?
  10194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10195. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10196. (./conftest; exit; ) >&5 2>/dev/null
  10197. lt_status=$?
  10198. case x$lt_status in
  10199. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10200. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10201. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10202. esac
  10203. else :
  10204. # compilation failed
  10205. lt_cv_dlopen_self=no
  10206. fi
  10207. fi
  10208. rm -fr conftest*
  10209. fi
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10211. $as_echo "$lt_cv_dlopen_self" >&6; }
  10212. if test yes = "$lt_cv_dlopen_self"; then
  10213. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10215. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10216. if ${lt_cv_dlopen_self_static+:} false; then :
  10217. $as_echo_n "(cached) " >&6
  10218. else
  10219. if test yes = "$cross_compiling"; then :
  10220. lt_cv_dlopen_self_static=cross
  10221. else
  10222. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10223. lt_status=$lt_dlunknown
  10224. cat > conftest.$ac_ext <<_LT_EOF
  10225. #line $LINENO "configure"
  10226. #include "confdefs.h"
  10227. #if HAVE_DLFCN_H
  10228. #include <dlfcn.h>
  10229. #endif
  10230. #include <stdio.h>
  10231. #ifdef RTLD_GLOBAL
  10232. # define LT_DLGLOBAL RTLD_GLOBAL
  10233. #else
  10234. # ifdef DL_GLOBAL
  10235. # define LT_DLGLOBAL DL_GLOBAL
  10236. # else
  10237. # define LT_DLGLOBAL 0
  10238. # endif
  10239. #endif
  10240. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10241. find out it does not work in some platform. */
  10242. #ifndef LT_DLLAZY_OR_NOW
  10243. # ifdef RTLD_LAZY
  10244. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10245. # else
  10246. # ifdef DL_LAZY
  10247. # define LT_DLLAZY_OR_NOW DL_LAZY
  10248. # else
  10249. # ifdef RTLD_NOW
  10250. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10251. # else
  10252. # ifdef DL_NOW
  10253. # define LT_DLLAZY_OR_NOW DL_NOW
  10254. # else
  10255. # define LT_DLLAZY_OR_NOW 0
  10256. # endif
  10257. # endif
  10258. # endif
  10259. # endif
  10260. #endif
  10261. /* When -fvisibility=hidden is used, assume the code has been annotated
  10262. correspondingly for the symbols needed. */
  10263. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10264. int fnord () __attribute__((visibility("default")));
  10265. #endif
  10266. int fnord () { return 42; }
  10267. int main ()
  10268. {
  10269. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10270. int status = $lt_dlunknown;
  10271. if (self)
  10272. {
  10273. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10274. else
  10275. {
  10276. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10277. else puts (dlerror ());
  10278. }
  10279. /* dlclose (self); */
  10280. }
  10281. else
  10282. puts (dlerror ());
  10283. return status;
  10284. }
  10285. _LT_EOF
  10286. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10287. (eval $ac_link) 2>&5
  10288. ac_status=$?
  10289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10290. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10291. (./conftest; exit; ) >&5 2>/dev/null
  10292. lt_status=$?
  10293. case x$lt_status in
  10294. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10295. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10296. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10297. esac
  10298. else :
  10299. # compilation failed
  10300. lt_cv_dlopen_self_static=no
  10301. fi
  10302. fi
  10303. rm -fr conftest*
  10304. fi
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10306. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10307. fi
  10308. CPPFLAGS=$save_CPPFLAGS
  10309. LDFLAGS=$save_LDFLAGS
  10310. LIBS=$save_LIBS
  10311. ;;
  10312. esac
  10313. case $lt_cv_dlopen_self in
  10314. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10315. *) enable_dlopen_self=unknown ;;
  10316. esac
  10317. case $lt_cv_dlopen_self_static in
  10318. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10319. *) enable_dlopen_self_static=unknown ;;
  10320. esac
  10321. fi
  10322. striplib=
  10323. old_striplib=
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10325. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10326. if test -z "$STRIP"; then
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10328. $as_echo "no" >&6; }
  10329. else
  10330. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10331. old_striplib="$STRIP --strip-debug"
  10332. striplib="$STRIP --strip-unneeded"
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10334. $as_echo "yes" >&6; }
  10335. else
  10336. case $host_os in
  10337. darwin*)
  10338. # FIXME - insert some real tests, host_os isn't really good enough
  10339. striplib="$STRIP -x"
  10340. old_striplib="$STRIP -S"
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10342. $as_echo "yes" >&6; }
  10343. ;;
  10344. freebsd*)
  10345. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10346. old_striplib="$STRIP --strip-debug"
  10347. striplib="$STRIP --strip-unneeded"
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10349. $as_echo "yes" >&6; }
  10350. else
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10352. $as_echo "no" >&6; }
  10353. fi
  10354. ;;
  10355. *)
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. ;;
  10359. esac
  10360. fi
  10361. fi
  10362. # Report what library types will actually be built
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10364. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10366. $as_echo "$can_build_shared" >&6; }
  10367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10368. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10369. test no = "$can_build_shared" && enable_shared=no
  10370. # On AIX, shared libraries and static libraries use the same namespace, and
  10371. # are all built from PIC.
  10372. case $host_os in
  10373. aix3*)
  10374. test yes = "$enable_shared" && enable_static=no
  10375. if test -n "$RANLIB"; then
  10376. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10377. postinstall_cmds='$RANLIB $lib'
  10378. fi
  10379. ;;
  10380. aix[4-9]*)
  10381. if test ia64 != "$host_cpu"; then
  10382. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10383. yes,aix,yes) ;; # shared object as lib.so file only
  10384. yes,svr4,*) ;; # shared object as lib.so archive member only
  10385. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10386. esac
  10387. fi
  10388. ;;
  10389. esac
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10391. $as_echo "$enable_shared" >&6; }
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10393. $as_echo_n "checking whether to build static libraries... " >&6; }
  10394. # Make sure either enable_shared or enable_static is yes.
  10395. test yes = "$enable_shared" || enable_static=yes
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10397. $as_echo "$enable_static" >&6; }
  10398. fi
  10399. ac_ext=c
  10400. ac_cpp='$CPP $CPPFLAGS'
  10401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10404. CC=$lt_save_CC
  10405. ac_config_commands="$ac_config_commands libtool"
  10406. # Only expand once:
  10407. if test -n "$ac_tool_prefix"; then
  10408. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10409. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10411. $as_echo_n "checking for $ac_word... " >&6; }
  10412. if ${ac_cv_prog_RC+:} false; then :
  10413. $as_echo_n "(cached) " >&6
  10414. else
  10415. if test -n "$RC"; then
  10416. ac_cv_prog_RC="$RC" # Let the user override the test.
  10417. else
  10418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10419. for as_dir in $PATH
  10420. do
  10421. IFS=$as_save_IFS
  10422. test -z "$as_dir" && as_dir=.
  10423. for ac_exec_ext in '' $ac_executable_extensions; do
  10424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10425. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10427. break 2
  10428. fi
  10429. done
  10430. done
  10431. IFS=$as_save_IFS
  10432. fi
  10433. fi
  10434. RC=$ac_cv_prog_RC
  10435. if test -n "$RC"; then
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10437. $as_echo "$RC" >&6; }
  10438. else
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10440. $as_echo "no" >&6; }
  10441. fi
  10442. fi
  10443. if test -z "$ac_cv_prog_RC"; then
  10444. ac_ct_RC=$RC
  10445. # Extract the first word of "windres", so it can be a program name with args.
  10446. set dummy windres; ac_word=$2
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10448. $as_echo_n "checking for $ac_word... " >&6; }
  10449. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. if test -n "$ac_ct_RC"; then
  10453. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10454. else
  10455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10456. for as_dir in $PATH
  10457. do
  10458. IFS=$as_save_IFS
  10459. test -z "$as_dir" && as_dir=.
  10460. for ac_exec_ext in '' $ac_executable_extensions; do
  10461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10462. ac_cv_prog_ac_ct_RC="windres"
  10463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10464. break 2
  10465. fi
  10466. done
  10467. done
  10468. IFS=$as_save_IFS
  10469. fi
  10470. fi
  10471. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10472. if test -n "$ac_ct_RC"; then
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10474. $as_echo "$ac_ct_RC" >&6; }
  10475. else
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10477. $as_echo "no" >&6; }
  10478. fi
  10479. if test "x$ac_ct_RC" = x; then
  10480. RC=""
  10481. else
  10482. case $cross_compiling:$ac_tool_warned in
  10483. yes:)
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10485. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10486. ac_tool_warned=yes ;;
  10487. esac
  10488. RC=$ac_ct_RC
  10489. fi
  10490. else
  10491. RC="$ac_cv_prog_RC"
  10492. fi
  10493. # Source file extension for RC test sources.
  10494. ac_ext=rc
  10495. # Object file extension for compiled RC test sources.
  10496. objext=o
  10497. objext_RC=$objext
  10498. # Code to be used in simple compile tests
  10499. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10500. # Code to be used in simple link tests
  10501. lt_simple_link_test_code=$lt_simple_compile_test_code
  10502. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10503. # If no C compiler was specified, use CC.
  10504. LTCC=${LTCC-"$CC"}
  10505. # If no C compiler flags were specified, use CFLAGS.
  10506. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10507. # Allow CC to be a program name with arguments.
  10508. compiler=$CC
  10509. # save warnings/boilerplate of simple test code
  10510. ac_outfile=conftest.$ac_objext
  10511. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10512. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10513. _lt_compiler_boilerplate=`cat conftest.err`
  10514. $RM conftest*
  10515. ac_outfile=conftest.$ac_objext
  10516. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10517. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10518. _lt_linker_boilerplate=`cat conftest.err`
  10519. $RM -r conftest*
  10520. # Allow CC to be a program name with arguments.
  10521. lt_save_CC=$CC
  10522. lt_save_CFLAGS=$CFLAGS
  10523. lt_save_GCC=$GCC
  10524. GCC=
  10525. CC=${RC-"windres"}
  10526. CFLAGS=
  10527. compiler=$CC
  10528. compiler_RC=$CC
  10529. func_cc_basename $compiler
  10530. cc_basename=$func_cc_basename_result
  10531. lt_cv_prog_compiler_c_o_RC=yes
  10532. if test -n "$compiler"; then
  10533. :
  10534. fi
  10535. GCC=$lt_save_GCC
  10536. ac_ext=c
  10537. ac_cpp='$CPP $CPPFLAGS'
  10538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10541. CC=$lt_save_CC
  10542. CFLAGS=$lt_save_CFLAGS
  10543. # For historical reasons, the library name redundantly includes the major
  10544. # version twice: libSDL2-2.0.so.0.
  10545. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  10546. LT_RELEASE=2.0
  10547. # Increment this if there is an incompatible change - but if that happens,
  10548. # we should rename the library from SDL2 to SDL3, at which point this would
  10549. # reset to 0 anyway.
  10550. LT_MAJOR=0
  10551. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10552. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  10553. LT_REVISION=$SDL_INTERFACE_AGE
  10554. ac_ext=c
  10555. ac_cpp='$CPP $CPPFLAGS'
  10556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10559. if test -n "$ac_tool_prefix"; then
  10560. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10561. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10563. $as_echo_n "checking for $ac_word... " >&6; }
  10564. if ${ac_cv_prog_CC+:} false; then :
  10565. $as_echo_n "(cached) " >&6
  10566. else
  10567. if test -n "$CC"; then
  10568. ac_cv_prog_CC="$CC" # Let the user override the test.
  10569. else
  10570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10571. for as_dir in $PATH
  10572. do
  10573. IFS=$as_save_IFS
  10574. test -z "$as_dir" && as_dir=.
  10575. for ac_exec_ext in '' $ac_executable_extensions; do
  10576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10577. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10579. break 2
  10580. fi
  10581. done
  10582. done
  10583. IFS=$as_save_IFS
  10584. fi
  10585. fi
  10586. CC=$ac_cv_prog_CC
  10587. if test -n "$CC"; then
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10589. $as_echo "$CC" >&6; }
  10590. else
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10592. $as_echo "no" >&6; }
  10593. fi
  10594. fi
  10595. if test -z "$ac_cv_prog_CC"; then
  10596. ac_ct_CC=$CC
  10597. # Extract the first word of "gcc", so it can be a program name with args.
  10598. set dummy gcc; ac_word=$2
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10600. $as_echo_n "checking for $ac_word... " >&6; }
  10601. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10602. $as_echo_n "(cached) " >&6
  10603. else
  10604. if test -n "$ac_ct_CC"; then
  10605. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10606. else
  10607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10608. for as_dir in $PATH
  10609. do
  10610. IFS=$as_save_IFS
  10611. test -z "$as_dir" && as_dir=.
  10612. for ac_exec_ext in '' $ac_executable_extensions; do
  10613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10614. ac_cv_prog_ac_ct_CC="gcc"
  10615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10616. break 2
  10617. fi
  10618. done
  10619. done
  10620. IFS=$as_save_IFS
  10621. fi
  10622. fi
  10623. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10624. if test -n "$ac_ct_CC"; then
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10626. $as_echo "$ac_ct_CC" >&6; }
  10627. else
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10629. $as_echo "no" >&6; }
  10630. fi
  10631. if test "x$ac_ct_CC" = x; then
  10632. CC=""
  10633. else
  10634. case $cross_compiling:$ac_tool_warned in
  10635. yes:)
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10637. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10638. ac_tool_warned=yes ;;
  10639. esac
  10640. CC=$ac_ct_CC
  10641. fi
  10642. else
  10643. CC="$ac_cv_prog_CC"
  10644. fi
  10645. if test -z "$CC"; then
  10646. if test -n "$ac_tool_prefix"; then
  10647. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10648. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10650. $as_echo_n "checking for $ac_word... " >&6; }
  10651. if ${ac_cv_prog_CC+:} false; then :
  10652. $as_echo_n "(cached) " >&6
  10653. else
  10654. if test -n "$CC"; then
  10655. ac_cv_prog_CC="$CC" # Let the user override the test.
  10656. else
  10657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10658. for as_dir in $PATH
  10659. do
  10660. IFS=$as_save_IFS
  10661. test -z "$as_dir" && as_dir=.
  10662. for ac_exec_ext in '' $ac_executable_extensions; do
  10663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10664. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10666. break 2
  10667. fi
  10668. done
  10669. done
  10670. IFS=$as_save_IFS
  10671. fi
  10672. fi
  10673. CC=$ac_cv_prog_CC
  10674. if test -n "$CC"; then
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10676. $as_echo "$CC" >&6; }
  10677. else
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10679. $as_echo "no" >&6; }
  10680. fi
  10681. fi
  10682. fi
  10683. if test -z "$CC"; then
  10684. # Extract the first word of "cc", so it can be a program name with args.
  10685. set dummy cc; ac_word=$2
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10687. $as_echo_n "checking for $ac_word... " >&6; }
  10688. if ${ac_cv_prog_CC+:} false; then :
  10689. $as_echo_n "(cached) " >&6
  10690. else
  10691. if test -n "$CC"; then
  10692. ac_cv_prog_CC="$CC" # Let the user override the test.
  10693. else
  10694. ac_prog_rejected=no
  10695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10696. for as_dir in $PATH
  10697. do
  10698. IFS=$as_save_IFS
  10699. test -z "$as_dir" && as_dir=.
  10700. for ac_exec_ext in '' $ac_executable_extensions; do
  10701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10702. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10703. ac_prog_rejected=yes
  10704. continue
  10705. fi
  10706. ac_cv_prog_CC="cc"
  10707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10708. break 2
  10709. fi
  10710. done
  10711. done
  10712. IFS=$as_save_IFS
  10713. if test $ac_prog_rejected = yes; then
  10714. # We found a bogon in the path, so make sure we never use it.
  10715. set dummy $ac_cv_prog_CC
  10716. shift
  10717. if test $# != 0; then
  10718. # We chose a different compiler from the bogus one.
  10719. # However, it has the same basename, so the bogon will be chosen
  10720. # first if we set CC to just the basename; use the full file name.
  10721. shift
  10722. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10723. fi
  10724. fi
  10725. fi
  10726. fi
  10727. CC=$ac_cv_prog_CC
  10728. if test -n "$CC"; then
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10730. $as_echo "$CC" >&6; }
  10731. else
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10733. $as_echo "no" >&6; }
  10734. fi
  10735. fi
  10736. if test -z "$CC"; then
  10737. if test -n "$ac_tool_prefix"; then
  10738. for ac_prog in cl.exe
  10739. do
  10740. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10741. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10743. $as_echo_n "checking for $ac_word... " >&6; }
  10744. if ${ac_cv_prog_CC+:} false; then :
  10745. $as_echo_n "(cached) " >&6
  10746. else
  10747. if test -n "$CC"; then
  10748. ac_cv_prog_CC="$CC" # Let the user override the test.
  10749. else
  10750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10751. for as_dir in $PATH
  10752. do
  10753. IFS=$as_save_IFS
  10754. test -z "$as_dir" && as_dir=.
  10755. for ac_exec_ext in '' $ac_executable_extensions; do
  10756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10757. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10759. break 2
  10760. fi
  10761. done
  10762. done
  10763. IFS=$as_save_IFS
  10764. fi
  10765. fi
  10766. CC=$ac_cv_prog_CC
  10767. if test -n "$CC"; then
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10769. $as_echo "$CC" >&6; }
  10770. else
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10772. $as_echo "no" >&6; }
  10773. fi
  10774. test -n "$CC" && break
  10775. done
  10776. fi
  10777. if test -z "$CC"; then
  10778. ac_ct_CC=$CC
  10779. for ac_prog in cl.exe
  10780. do
  10781. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10782. set dummy $ac_prog; ac_word=$2
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10784. $as_echo_n "checking for $ac_word... " >&6; }
  10785. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10786. $as_echo_n "(cached) " >&6
  10787. else
  10788. if test -n "$ac_ct_CC"; then
  10789. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10790. else
  10791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10792. for as_dir in $PATH
  10793. do
  10794. IFS=$as_save_IFS
  10795. test -z "$as_dir" && as_dir=.
  10796. for ac_exec_ext in '' $ac_executable_extensions; do
  10797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10798. ac_cv_prog_ac_ct_CC="$ac_prog"
  10799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10800. break 2
  10801. fi
  10802. done
  10803. done
  10804. IFS=$as_save_IFS
  10805. fi
  10806. fi
  10807. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10808. if test -n "$ac_ct_CC"; then
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10810. $as_echo "$ac_ct_CC" >&6; }
  10811. else
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10813. $as_echo "no" >&6; }
  10814. fi
  10815. test -n "$ac_ct_CC" && break
  10816. done
  10817. if test "x$ac_ct_CC" = x; then
  10818. CC=""
  10819. else
  10820. case $cross_compiling:$ac_tool_warned in
  10821. yes:)
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10823. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10824. ac_tool_warned=yes ;;
  10825. esac
  10826. CC=$ac_ct_CC
  10827. fi
  10828. fi
  10829. fi
  10830. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10831. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10832. as_fn_error $? "no acceptable C compiler found in \$PATH
  10833. See \`config.log' for more details" "$LINENO" 5; }
  10834. # Provide some information about the compiler.
  10835. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10836. set X $ac_compile
  10837. ac_compiler=$2
  10838. for ac_option in --version -v -V -qversion; do
  10839. { { ac_try="$ac_compiler $ac_option >&5"
  10840. case "(($ac_try" in
  10841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10842. *) ac_try_echo=$ac_try;;
  10843. esac
  10844. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10845. $as_echo "$ac_try_echo"; } >&5
  10846. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10847. ac_status=$?
  10848. if test -s conftest.err; then
  10849. sed '10a\
  10850. ... rest of stderr output deleted ...
  10851. 10q' conftest.err >conftest.er1
  10852. cat conftest.er1 >&5
  10853. fi
  10854. rm -f conftest.er1 conftest.err
  10855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10856. test $ac_status = 0; }
  10857. done
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10859. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10860. if ${ac_cv_c_compiler_gnu+:} false; then :
  10861. $as_echo_n "(cached) " >&6
  10862. else
  10863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10864. /* end confdefs.h. */
  10865. int
  10866. main ()
  10867. {
  10868. #ifndef __GNUC__
  10869. choke me
  10870. #endif
  10871. ;
  10872. return 0;
  10873. }
  10874. _ACEOF
  10875. if ac_fn_c_try_compile "$LINENO"; then :
  10876. ac_compiler_gnu=yes
  10877. else
  10878. ac_compiler_gnu=no
  10879. fi
  10880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10881. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10882. fi
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10884. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10885. if test $ac_compiler_gnu = yes; then
  10886. GCC=yes
  10887. else
  10888. GCC=
  10889. fi
  10890. ac_test_CFLAGS=${CFLAGS+set}
  10891. ac_save_CFLAGS=$CFLAGS
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10893. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10894. if ${ac_cv_prog_cc_g+:} false; then :
  10895. $as_echo_n "(cached) " >&6
  10896. else
  10897. ac_save_c_werror_flag=$ac_c_werror_flag
  10898. ac_c_werror_flag=yes
  10899. ac_cv_prog_cc_g=no
  10900. CFLAGS="-g"
  10901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10902. /* end confdefs.h. */
  10903. int
  10904. main ()
  10905. {
  10906. ;
  10907. return 0;
  10908. }
  10909. _ACEOF
  10910. if ac_fn_c_try_compile "$LINENO"; then :
  10911. ac_cv_prog_cc_g=yes
  10912. else
  10913. CFLAGS=""
  10914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10915. /* end confdefs.h. */
  10916. int
  10917. main ()
  10918. {
  10919. ;
  10920. return 0;
  10921. }
  10922. _ACEOF
  10923. if ac_fn_c_try_compile "$LINENO"; then :
  10924. else
  10925. ac_c_werror_flag=$ac_save_c_werror_flag
  10926. CFLAGS="-g"
  10927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10928. /* end confdefs.h. */
  10929. int
  10930. main ()
  10931. {
  10932. ;
  10933. return 0;
  10934. }
  10935. _ACEOF
  10936. if ac_fn_c_try_compile "$LINENO"; then :
  10937. ac_cv_prog_cc_g=yes
  10938. fi
  10939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10940. fi
  10941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10942. fi
  10943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10944. ac_c_werror_flag=$ac_save_c_werror_flag
  10945. fi
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10947. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10948. if test "$ac_test_CFLAGS" = set; then
  10949. CFLAGS=$ac_save_CFLAGS
  10950. elif test $ac_cv_prog_cc_g = yes; then
  10951. if test "$GCC" = yes; then
  10952. CFLAGS="-g -O2"
  10953. else
  10954. CFLAGS="-g"
  10955. fi
  10956. else
  10957. if test "$GCC" = yes; then
  10958. CFLAGS="-O2"
  10959. else
  10960. CFLAGS=
  10961. fi
  10962. fi
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10964. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10965. if ${ac_cv_prog_cc_c89+:} false; then :
  10966. $as_echo_n "(cached) " >&6
  10967. else
  10968. ac_cv_prog_cc_c89=no
  10969. ac_save_CC=$CC
  10970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10971. /* end confdefs.h. */
  10972. #include <stdarg.h>
  10973. #include <stdio.h>
  10974. struct stat;
  10975. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10976. struct buf { int x; };
  10977. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10978. static char *e (p, i)
  10979. char **p;
  10980. int i;
  10981. {
  10982. return p[i];
  10983. }
  10984. static char *f (char * (*g) (char **, int), char **p, ...)
  10985. {
  10986. char *s;
  10987. va_list v;
  10988. va_start (v,p);
  10989. s = g (p, va_arg (v,int));
  10990. va_end (v);
  10991. return s;
  10992. }
  10993. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10994. function prototypes and stuff, but not '\xHH' hex character constants.
  10995. These don't provoke an error unfortunately, instead are silently treated
  10996. as 'x'. The following induces an error, until -std is added to get
  10997. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10998. array size at least. It's necessary to write '\x00'==0 to get something
  10999. that's true only with -std. */
  11000. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11001. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11002. inside strings and character constants. */
  11003. #define FOO(x) 'x'
  11004. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11005. int test (int i, double x);
  11006. struct s1 {int (*f) (int a);};
  11007. struct s2 {int (*f) (double a);};
  11008. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11009. int argc;
  11010. char **argv;
  11011. int
  11012. main ()
  11013. {
  11014. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11015. ;
  11016. return 0;
  11017. }
  11018. _ACEOF
  11019. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11020. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11021. do
  11022. CC="$ac_save_CC $ac_arg"
  11023. if ac_fn_c_try_compile "$LINENO"; then :
  11024. ac_cv_prog_cc_c89=$ac_arg
  11025. fi
  11026. rm -f core conftest.err conftest.$ac_objext
  11027. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11028. done
  11029. rm -f conftest.$ac_ext
  11030. CC=$ac_save_CC
  11031. fi
  11032. # AC_CACHE_VAL
  11033. case "x$ac_cv_prog_cc_c89" in
  11034. x)
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11036. $as_echo "none needed" >&6; } ;;
  11037. xno)
  11038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11039. $as_echo "unsupported" >&6; } ;;
  11040. *)
  11041. CC="$CC $ac_cv_prog_cc_c89"
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11043. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11044. esac
  11045. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11046. fi
  11047. ac_ext=c
  11048. ac_cpp='$CPP $CPPFLAGS'
  11049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11052. ac_ext=cpp
  11053. ac_cpp='$CXXCPP $CPPFLAGS'
  11054. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11055. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11056. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11057. if test -z "$CXX"; then
  11058. if test -n "$CCC"; then
  11059. CXX=$CCC
  11060. else
  11061. if test -n "$ac_tool_prefix"; then
  11062. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11063. do
  11064. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11065. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11067. $as_echo_n "checking for $ac_word... " >&6; }
  11068. if ${ac_cv_prog_CXX+:} false; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. if test -n "$CXX"; then
  11072. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11073. else
  11074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11075. for as_dir in $PATH
  11076. do
  11077. IFS=$as_save_IFS
  11078. test -z "$as_dir" && as_dir=.
  11079. for ac_exec_ext in '' $ac_executable_extensions; do
  11080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11081. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11083. break 2
  11084. fi
  11085. done
  11086. done
  11087. IFS=$as_save_IFS
  11088. fi
  11089. fi
  11090. CXX=$ac_cv_prog_CXX
  11091. if test -n "$CXX"; then
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11093. $as_echo "$CXX" >&6; }
  11094. else
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11096. $as_echo "no" >&6; }
  11097. fi
  11098. test -n "$CXX" && break
  11099. done
  11100. fi
  11101. if test -z "$CXX"; then
  11102. ac_ct_CXX=$CXX
  11103. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11104. do
  11105. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11106. set dummy $ac_prog; ac_word=$2
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11108. $as_echo_n "checking for $ac_word... " >&6; }
  11109. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11110. $as_echo_n "(cached) " >&6
  11111. else
  11112. if test -n "$ac_ct_CXX"; then
  11113. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11114. else
  11115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11116. for as_dir in $PATH
  11117. do
  11118. IFS=$as_save_IFS
  11119. test -z "$as_dir" && as_dir=.
  11120. for ac_exec_ext in '' $ac_executable_extensions; do
  11121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11122. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11124. break 2
  11125. fi
  11126. done
  11127. done
  11128. IFS=$as_save_IFS
  11129. fi
  11130. fi
  11131. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11132. if test -n "$ac_ct_CXX"; then
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11134. $as_echo "$ac_ct_CXX" >&6; }
  11135. else
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11137. $as_echo "no" >&6; }
  11138. fi
  11139. test -n "$ac_ct_CXX" && break
  11140. done
  11141. if test "x$ac_ct_CXX" = x; then
  11142. CXX="g++"
  11143. else
  11144. case $cross_compiling:$ac_tool_warned in
  11145. yes:)
  11146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11147. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11148. ac_tool_warned=yes ;;
  11149. esac
  11150. CXX=$ac_ct_CXX
  11151. fi
  11152. fi
  11153. fi
  11154. fi
  11155. # Provide some information about the compiler.
  11156. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11157. set X $ac_compile
  11158. ac_compiler=$2
  11159. for ac_option in --version -v -V -qversion; do
  11160. { { ac_try="$ac_compiler $ac_option >&5"
  11161. case "(($ac_try" in
  11162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11163. *) ac_try_echo=$ac_try;;
  11164. esac
  11165. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11166. $as_echo "$ac_try_echo"; } >&5
  11167. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11168. ac_status=$?
  11169. if test -s conftest.err; then
  11170. sed '10a\
  11171. ... rest of stderr output deleted ...
  11172. 10q' conftest.err >conftest.er1
  11173. cat conftest.er1 >&5
  11174. fi
  11175. rm -f conftest.er1 conftest.err
  11176. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11177. test $ac_status = 0; }
  11178. done
  11179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11180. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11181. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11182. $as_echo_n "(cached) " >&6
  11183. else
  11184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11185. /* end confdefs.h. */
  11186. int
  11187. main ()
  11188. {
  11189. #ifndef __GNUC__
  11190. choke me
  11191. #endif
  11192. ;
  11193. return 0;
  11194. }
  11195. _ACEOF
  11196. if ac_fn_cxx_try_compile "$LINENO"; then :
  11197. ac_compiler_gnu=yes
  11198. else
  11199. ac_compiler_gnu=no
  11200. fi
  11201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11202. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11203. fi
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11205. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11206. if test $ac_compiler_gnu = yes; then
  11207. GXX=yes
  11208. else
  11209. GXX=
  11210. fi
  11211. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11212. ac_save_CXXFLAGS=$CXXFLAGS
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11214. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11215. if ${ac_cv_prog_cxx_g+:} false; then :
  11216. $as_echo_n "(cached) " >&6
  11217. else
  11218. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11219. ac_cxx_werror_flag=yes
  11220. ac_cv_prog_cxx_g=no
  11221. CXXFLAGS="-g"
  11222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11223. /* end confdefs.h. */
  11224. int
  11225. main ()
  11226. {
  11227. ;
  11228. return 0;
  11229. }
  11230. _ACEOF
  11231. if ac_fn_cxx_try_compile "$LINENO"; then :
  11232. ac_cv_prog_cxx_g=yes
  11233. else
  11234. CXXFLAGS=""
  11235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11236. /* end confdefs.h. */
  11237. int
  11238. main ()
  11239. {
  11240. ;
  11241. return 0;
  11242. }
  11243. _ACEOF
  11244. if ac_fn_cxx_try_compile "$LINENO"; then :
  11245. else
  11246. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11247. CXXFLAGS="-g"
  11248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11249. /* end confdefs.h. */
  11250. int
  11251. main ()
  11252. {
  11253. ;
  11254. return 0;
  11255. }
  11256. _ACEOF
  11257. if ac_fn_cxx_try_compile "$LINENO"; then :
  11258. ac_cv_prog_cxx_g=yes
  11259. fi
  11260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11261. fi
  11262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11263. fi
  11264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11265. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11266. fi
  11267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11268. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11269. if test "$ac_test_CXXFLAGS" = set; then
  11270. CXXFLAGS=$ac_save_CXXFLAGS
  11271. elif test $ac_cv_prog_cxx_g = yes; then
  11272. if test "$GXX" = yes; then
  11273. CXXFLAGS="-g -O2"
  11274. else
  11275. CXXFLAGS="-g"
  11276. fi
  11277. else
  11278. if test "$GXX" = yes; then
  11279. CXXFLAGS="-O2"
  11280. else
  11281. CXXFLAGS=
  11282. fi
  11283. fi
  11284. ac_ext=c
  11285. ac_cpp='$CPP $CPPFLAGS'
  11286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11289. func_stripname_cnf ()
  11290. {
  11291. case $2 in
  11292. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11293. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11294. esac
  11295. } # func_stripname_cnf
  11296. if test -n "$CXX" && ( test no != "$CXX" &&
  11297. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11298. (test g++ != "$CXX"))); then
  11299. ac_ext=cpp
  11300. ac_cpp='$CXXCPP $CPPFLAGS'
  11301. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11302. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11303. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11305. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11306. if test -z "$CXXCPP"; then
  11307. if ${ac_cv_prog_CXXCPP+:} false; then :
  11308. $as_echo_n "(cached) " >&6
  11309. else
  11310. # Double quotes because CXXCPP needs to be expanded
  11311. for CXXCPP in "$CXX -E" "/lib/cpp"
  11312. do
  11313. ac_preproc_ok=false
  11314. for ac_cxx_preproc_warn_flag in '' yes
  11315. do
  11316. # Use a header file that comes with gcc, so configuring glibc
  11317. # with a fresh cross-compiler works.
  11318. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11319. # <limits.h> exists even on freestanding compilers.
  11320. # On the NeXT, cc -E runs the code through the compiler's parser,
  11321. # not just through cpp. "Syntax error" is here to catch this case.
  11322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11323. /* end confdefs.h. */
  11324. #ifdef __STDC__
  11325. # include <limits.h>
  11326. #else
  11327. # include <assert.h>
  11328. #endif
  11329. Syntax error
  11330. _ACEOF
  11331. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11332. else
  11333. # Broken: fails on valid input.
  11334. continue
  11335. fi
  11336. rm -f conftest.err conftest.i conftest.$ac_ext
  11337. # OK, works on sane cases. Now check whether nonexistent headers
  11338. # can be detected and how.
  11339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11340. /* end confdefs.h. */
  11341. #include <ac_nonexistent.h>
  11342. _ACEOF
  11343. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11344. # Broken: success on invalid input.
  11345. continue
  11346. else
  11347. # Passes both tests.
  11348. ac_preproc_ok=:
  11349. break
  11350. fi
  11351. rm -f conftest.err conftest.i conftest.$ac_ext
  11352. done
  11353. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11354. rm -f conftest.i conftest.err conftest.$ac_ext
  11355. if $ac_preproc_ok; then :
  11356. break
  11357. fi
  11358. done
  11359. ac_cv_prog_CXXCPP=$CXXCPP
  11360. fi
  11361. CXXCPP=$ac_cv_prog_CXXCPP
  11362. else
  11363. ac_cv_prog_CXXCPP=$CXXCPP
  11364. fi
  11365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11366. $as_echo "$CXXCPP" >&6; }
  11367. ac_preproc_ok=false
  11368. for ac_cxx_preproc_warn_flag in '' yes
  11369. do
  11370. # Use a header file that comes with gcc, so configuring glibc
  11371. # with a fresh cross-compiler works.
  11372. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11373. # <limits.h> exists even on freestanding compilers.
  11374. # On the NeXT, cc -E runs the code through the compiler's parser,
  11375. # not just through cpp. "Syntax error" is here to catch this case.
  11376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11377. /* end confdefs.h. */
  11378. #ifdef __STDC__
  11379. # include <limits.h>
  11380. #else
  11381. # include <assert.h>
  11382. #endif
  11383. Syntax error
  11384. _ACEOF
  11385. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11386. else
  11387. # Broken: fails on valid input.
  11388. continue
  11389. fi
  11390. rm -f conftest.err conftest.i conftest.$ac_ext
  11391. # OK, works on sane cases. Now check whether nonexistent headers
  11392. # can be detected and how.
  11393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11394. /* end confdefs.h. */
  11395. #include <ac_nonexistent.h>
  11396. _ACEOF
  11397. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11398. # Broken: success on invalid input.
  11399. continue
  11400. else
  11401. # Passes both tests.
  11402. ac_preproc_ok=:
  11403. break
  11404. fi
  11405. rm -f conftest.err conftest.i conftest.$ac_ext
  11406. done
  11407. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11408. rm -f conftest.i conftest.err conftest.$ac_ext
  11409. if $ac_preproc_ok; then :
  11410. else
  11411. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11413. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11414. See \`config.log' for more details" "$LINENO" 5; }
  11415. fi
  11416. ac_ext=c
  11417. ac_cpp='$CPP $CPPFLAGS'
  11418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11421. else
  11422. _lt_caught_CXX_error=yes
  11423. fi
  11424. ac_ext=cpp
  11425. ac_cpp='$CXXCPP $CPPFLAGS'
  11426. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11427. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11428. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11429. archive_cmds_need_lc_CXX=no
  11430. allow_undefined_flag_CXX=
  11431. always_export_symbols_CXX=no
  11432. archive_expsym_cmds_CXX=
  11433. compiler_needs_object_CXX=no
  11434. export_dynamic_flag_spec_CXX=
  11435. hardcode_direct_CXX=no
  11436. hardcode_direct_absolute_CXX=no
  11437. hardcode_libdir_flag_spec_CXX=
  11438. hardcode_libdir_separator_CXX=
  11439. hardcode_minus_L_CXX=no
  11440. hardcode_shlibpath_var_CXX=unsupported
  11441. hardcode_automatic_CXX=no
  11442. inherit_rpath_CXX=no
  11443. module_cmds_CXX=
  11444. module_expsym_cmds_CXX=
  11445. link_all_deplibs_CXX=unknown
  11446. old_archive_cmds_CXX=$old_archive_cmds
  11447. reload_flag_CXX=$reload_flag
  11448. reload_cmds_CXX=$reload_cmds
  11449. no_undefined_flag_CXX=
  11450. whole_archive_flag_spec_CXX=
  11451. enable_shared_with_static_runtimes_CXX=no
  11452. # Source file extension for C++ test sources.
  11453. ac_ext=cpp
  11454. # Object file extension for compiled C++ test sources.
  11455. objext=o
  11456. objext_CXX=$objext
  11457. # No sense in running all these tests if we already determined that
  11458. # the CXX compiler isn't working. Some variables (like enable_shared)
  11459. # are currently assumed to apply to all compilers on this platform,
  11460. # and will be corrupted by setting them based on a non-working compiler.
  11461. if test yes != "$_lt_caught_CXX_error"; then
  11462. # Code to be used in simple compile tests
  11463. lt_simple_compile_test_code="int some_variable = 0;"
  11464. # Code to be used in simple link tests
  11465. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11466. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11467. # If no C compiler was specified, use CC.
  11468. LTCC=${LTCC-"$CC"}
  11469. # If no C compiler flags were specified, use CFLAGS.
  11470. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11471. # Allow CC to be a program name with arguments.
  11472. compiler=$CC
  11473. # save warnings/boilerplate of simple test code
  11474. ac_outfile=conftest.$ac_objext
  11475. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11476. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11477. _lt_compiler_boilerplate=`cat conftest.err`
  11478. $RM conftest*
  11479. ac_outfile=conftest.$ac_objext
  11480. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11481. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11482. _lt_linker_boilerplate=`cat conftest.err`
  11483. $RM -r conftest*
  11484. # Allow CC to be a program name with arguments.
  11485. lt_save_CC=$CC
  11486. lt_save_CFLAGS=$CFLAGS
  11487. lt_save_LD=$LD
  11488. lt_save_GCC=$GCC
  11489. GCC=$GXX
  11490. lt_save_with_gnu_ld=$with_gnu_ld
  11491. lt_save_path_LD=$lt_cv_path_LD
  11492. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11493. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11494. else
  11495. $as_unset lt_cv_prog_gnu_ld
  11496. fi
  11497. if test -n "${lt_cv_path_LDCXX+set}"; then
  11498. lt_cv_path_LD=$lt_cv_path_LDCXX
  11499. else
  11500. $as_unset lt_cv_path_LD
  11501. fi
  11502. test -z "${LDCXX+set}" || LD=$LDCXX
  11503. CC=${CXX-"c++"}
  11504. CFLAGS=$CXXFLAGS
  11505. compiler=$CC
  11506. compiler_CXX=$CC
  11507. func_cc_basename $compiler
  11508. cc_basename=$func_cc_basename_result
  11509. if test -n "$compiler"; then
  11510. # We don't want -fno-exception when compiling C++ code, so set the
  11511. # no_builtin_flag separately
  11512. if test yes = "$GXX"; then
  11513. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11514. else
  11515. lt_prog_compiler_no_builtin_flag_CXX=
  11516. fi
  11517. if test yes = "$GXX"; then
  11518. # Set up default GNU C++ configuration
  11519. # Check whether --with-gnu-ld was given.
  11520. if test "${with_gnu_ld+set}" = set; then :
  11521. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11522. else
  11523. with_gnu_ld=no
  11524. fi
  11525. ac_prog=ld
  11526. if test yes = "$GCC"; then
  11527. # Check if gcc -print-prog-name=ld gives a path.
  11528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11529. $as_echo_n "checking for ld used by $CC... " >&6; }
  11530. case $host in
  11531. *-*-mingw*)
  11532. # gcc leaves a trailing carriage return, which upsets mingw
  11533. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11534. *)
  11535. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11536. esac
  11537. case $ac_prog in
  11538. # Accept absolute paths.
  11539. [\\/]* | ?:[\\/]*)
  11540. re_direlt='/[^/][^/]*/\.\./'
  11541. # Canonicalize the pathname of ld
  11542. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11543. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11544. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11545. done
  11546. test -z "$LD" && LD=$ac_prog
  11547. ;;
  11548. "")
  11549. # If it fails, then pretend we aren't using GCC.
  11550. ac_prog=ld
  11551. ;;
  11552. *)
  11553. # If it is relative, then search for the first ld in PATH.
  11554. with_gnu_ld=unknown
  11555. ;;
  11556. esac
  11557. elif test yes = "$with_gnu_ld"; then
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11559. $as_echo_n "checking for GNU ld... " >&6; }
  11560. else
  11561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11562. $as_echo_n "checking for non-GNU ld... " >&6; }
  11563. fi
  11564. if ${lt_cv_path_LD+:} false; then :
  11565. $as_echo_n "(cached) " >&6
  11566. else
  11567. if test -z "$LD"; then
  11568. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11569. for ac_dir in $PATH; do
  11570. IFS=$lt_save_ifs
  11571. test -z "$ac_dir" && ac_dir=.
  11572. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11573. lt_cv_path_LD=$ac_dir/$ac_prog
  11574. # Check to see if the program is GNU ld. I'd rather use --version,
  11575. # but apparently some variants of GNU ld only accept -v.
  11576. # Break only if it was the GNU/non-GNU ld that we prefer.
  11577. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11578. *GNU* | *'with BFD'*)
  11579. test no != "$with_gnu_ld" && break
  11580. ;;
  11581. *)
  11582. test yes != "$with_gnu_ld" && break
  11583. ;;
  11584. esac
  11585. fi
  11586. done
  11587. IFS=$lt_save_ifs
  11588. else
  11589. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11590. fi
  11591. fi
  11592. LD=$lt_cv_path_LD
  11593. if test -n "$LD"; then
  11594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11595. $as_echo "$LD" >&6; }
  11596. else
  11597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11598. $as_echo "no" >&6; }
  11599. fi
  11600. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11602. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11603. if ${lt_cv_prog_gnu_ld+:} false; then :
  11604. $as_echo_n "(cached) " >&6
  11605. else
  11606. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11607. case `$LD -v 2>&1 </dev/null` in
  11608. *GNU* | *'with BFD'*)
  11609. lt_cv_prog_gnu_ld=yes
  11610. ;;
  11611. *)
  11612. lt_cv_prog_gnu_ld=no
  11613. ;;
  11614. esac
  11615. fi
  11616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11617. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11618. with_gnu_ld=$lt_cv_prog_gnu_ld
  11619. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11620. # archiving commands below assume that GNU ld is being used.
  11621. if test yes = "$with_gnu_ld"; then
  11622. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11623. 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'
  11624. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11625. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11626. # If archive_cmds runs LD, not CC, wlarc should be empty
  11627. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11628. # investigate it a little bit more. (MM)
  11629. wlarc='$wl'
  11630. # ancient GNU ld didn't support --whole-archive et. al.
  11631. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11632. $GREP 'no-whole-archive' > /dev/null; then
  11633. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11634. else
  11635. whole_archive_flag_spec_CXX=
  11636. fi
  11637. else
  11638. with_gnu_ld=no
  11639. wlarc=
  11640. # A generic and very simple default shared library creation
  11641. # command for GNU C++ for the case where it uses the native
  11642. # linker, instead of GNU ld. If possible, this setting should
  11643. # overridden to take advantage of the native linker features on
  11644. # the platform it is being used on.
  11645. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11646. fi
  11647. # Commands to make compiler produce verbose output that lists
  11648. # what "hidden" libraries, object files and flags are used when
  11649. # linking a shared library.
  11650. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11651. else
  11652. GXX=no
  11653. with_gnu_ld=no
  11654. wlarc=
  11655. fi
  11656. # PORTME: fill in a description of your system's C++ link characteristics
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11658. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11659. ld_shlibs_CXX=yes
  11660. case $host_os in
  11661. aix3*)
  11662. # FIXME: insert proper C++ library support
  11663. ld_shlibs_CXX=no
  11664. ;;
  11665. aix[4-9]*)
  11666. if test ia64 = "$host_cpu"; then
  11667. # On IA64, the linker does run time linking by default, so we don't
  11668. # have to do anything special.
  11669. aix_use_runtimelinking=no
  11670. exp_sym_flag='-Bexport'
  11671. no_entry_flag=
  11672. else
  11673. aix_use_runtimelinking=no
  11674. # Test if we are trying to use run time linking or normal
  11675. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11676. # have runtime linking enabled, and use it for executables.
  11677. # For shared libraries, we enable/disable runtime linking
  11678. # depending on the kind of the shared library created -
  11679. # when "with_aix_soname,aix_use_runtimelinking" is:
  11680. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11681. # "aix,yes" lib.so shared, rtl:yes, for executables
  11682. # lib.a static archive
  11683. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11684. # lib.a(lib.so.V) shared, rtl:no, for executables
  11685. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11686. # lib.a(lib.so.V) shared, rtl:no
  11687. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11688. # lib.a static archive
  11689. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11690. for ld_flag in $LDFLAGS; do
  11691. case $ld_flag in
  11692. *-brtl*)
  11693. aix_use_runtimelinking=yes
  11694. break
  11695. ;;
  11696. esac
  11697. done
  11698. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11699. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11700. # so we don't have lib.a shared libs to link our executables.
  11701. # We have to force runtime linking in this case.
  11702. aix_use_runtimelinking=yes
  11703. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11704. fi
  11705. ;;
  11706. esac
  11707. exp_sym_flag='-bexport'
  11708. no_entry_flag='-bnoentry'
  11709. fi
  11710. # When large executables or shared objects are built, AIX ld can
  11711. # have problems creating the table of contents. If linking a library
  11712. # or program results in "error TOC overflow" add -mminimal-toc to
  11713. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11714. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11715. archive_cmds_CXX=''
  11716. hardcode_direct_CXX=yes
  11717. hardcode_direct_absolute_CXX=yes
  11718. hardcode_libdir_separator_CXX=':'
  11719. link_all_deplibs_CXX=yes
  11720. file_list_spec_CXX='$wl-f,'
  11721. case $with_aix_soname,$aix_use_runtimelinking in
  11722. aix,*) ;; # no import file
  11723. svr4,* | *,yes) # use import file
  11724. # The Import File defines what to hardcode.
  11725. hardcode_direct_CXX=no
  11726. hardcode_direct_absolute_CXX=no
  11727. ;;
  11728. esac
  11729. if test yes = "$GXX"; then
  11730. case $host_os in aix4.[012]|aix4.[012].*)
  11731. # We only want to do this on AIX 4.2 and lower, the check
  11732. # below for broken collect2 doesn't work under 4.3+
  11733. collect2name=`$CC -print-prog-name=collect2`
  11734. if test -f "$collect2name" &&
  11735. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11736. then
  11737. # We have reworked collect2
  11738. :
  11739. else
  11740. # We have old collect2
  11741. hardcode_direct_CXX=unsupported
  11742. # It fails to find uninstalled libraries when the uninstalled
  11743. # path is not listed in the libpath. Setting hardcode_minus_L
  11744. # to unsupported forces relinking
  11745. hardcode_minus_L_CXX=yes
  11746. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11747. hardcode_libdir_separator_CXX=
  11748. fi
  11749. esac
  11750. shared_flag='-shared'
  11751. if test yes = "$aix_use_runtimelinking"; then
  11752. shared_flag=$shared_flag' $wl-G'
  11753. fi
  11754. # Need to ensure runtime linking is disabled for the traditional
  11755. # shared library, or the linker may eventually find shared libraries
  11756. # /with/ Import File - we do not want to mix them.
  11757. shared_flag_aix='-shared'
  11758. shared_flag_svr4='-shared $wl-G'
  11759. else
  11760. # not using gcc
  11761. if test ia64 = "$host_cpu"; then
  11762. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11763. # chokes on -Wl,-G. The following line is correct:
  11764. shared_flag='-G'
  11765. else
  11766. if test yes = "$aix_use_runtimelinking"; then
  11767. shared_flag='$wl-G'
  11768. else
  11769. shared_flag='$wl-bM:SRE'
  11770. fi
  11771. shared_flag_aix='$wl-bM:SRE'
  11772. shared_flag_svr4='$wl-G'
  11773. fi
  11774. fi
  11775. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11776. # It seems that -bexpall does not export symbols beginning with
  11777. # underscore (_), so it is better to generate a list of symbols to
  11778. # export.
  11779. always_export_symbols_CXX=yes
  11780. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11781. # Warning - without using the other runtime loading flags (-brtl),
  11782. # -berok will link without error, but may produce a broken library.
  11783. # The "-G" linker flag allows undefined symbols.
  11784. no_undefined_flag_CXX='-bernotok'
  11785. # Determine the default libpath from the value encoded in an empty
  11786. # executable.
  11787. if test set = "${lt_cv_aix_libpath+set}"; then
  11788. aix_libpath=$lt_cv_aix_libpath
  11789. else
  11790. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11791. $as_echo_n "(cached) " >&6
  11792. else
  11793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11794. /* end confdefs.h. */
  11795. int
  11796. main ()
  11797. {
  11798. ;
  11799. return 0;
  11800. }
  11801. _ACEOF
  11802. if ac_fn_cxx_try_link "$LINENO"; then :
  11803. lt_aix_libpath_sed='
  11804. /Import File Strings/,/^$/ {
  11805. /^0/ {
  11806. s/^0 *\([^ ]*\) *$/\1/
  11807. p
  11808. }
  11809. }'
  11810. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11811. # Check for a 64-bit object if we didn't find anything.
  11812. if test -z "$lt_cv_aix_libpath__CXX"; then
  11813. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11814. fi
  11815. fi
  11816. rm -f core conftest.err conftest.$ac_objext \
  11817. conftest$ac_exeext conftest.$ac_ext
  11818. if test -z "$lt_cv_aix_libpath__CXX"; then
  11819. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11820. fi
  11821. fi
  11822. aix_libpath=$lt_cv_aix_libpath__CXX
  11823. fi
  11824. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11825. 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
  11826. else
  11827. if test ia64 = "$host_cpu"; then
  11828. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11829. allow_undefined_flag_CXX="-z nodefs"
  11830. 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"
  11831. else
  11832. # Determine the default libpath from the value encoded in an
  11833. # empty executable.
  11834. if test set = "${lt_cv_aix_libpath+set}"; then
  11835. aix_libpath=$lt_cv_aix_libpath
  11836. else
  11837. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11838. $as_echo_n "(cached) " >&6
  11839. else
  11840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11841. /* end confdefs.h. */
  11842. int
  11843. main ()
  11844. {
  11845. ;
  11846. return 0;
  11847. }
  11848. _ACEOF
  11849. if ac_fn_cxx_try_link "$LINENO"; then :
  11850. lt_aix_libpath_sed='
  11851. /Import File Strings/,/^$/ {
  11852. /^0/ {
  11853. s/^0 *\([^ ]*\) *$/\1/
  11854. p
  11855. }
  11856. }'
  11857. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11858. # Check for a 64-bit object if we didn't find anything.
  11859. if test -z "$lt_cv_aix_libpath__CXX"; then
  11860. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11861. fi
  11862. fi
  11863. rm -f core conftest.err conftest.$ac_objext \
  11864. conftest$ac_exeext conftest.$ac_ext
  11865. if test -z "$lt_cv_aix_libpath__CXX"; then
  11866. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11867. fi
  11868. fi
  11869. aix_libpath=$lt_cv_aix_libpath__CXX
  11870. fi
  11871. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11872. # Warning - without using the other run time loading flags,
  11873. # -berok will link without error, but may produce a broken library.
  11874. no_undefined_flag_CXX=' $wl-bernotok'
  11875. allow_undefined_flag_CXX=' $wl-berok'
  11876. if test yes = "$with_gnu_ld"; then
  11877. # We only use this code for GNU lds that support --whole-archive.
  11878. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11879. else
  11880. # Exported symbols can be pulled into shared objects from archives
  11881. whole_archive_flag_spec_CXX='$convenience'
  11882. fi
  11883. archive_cmds_need_lc_CXX=yes
  11884. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11885. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11886. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11887. if test svr4 != "$with_aix_soname"; then
  11888. # This is similar to how AIX traditionally builds its shared
  11889. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11890. 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'
  11891. fi
  11892. if test aix != "$with_aix_soname"; then
  11893. 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'
  11894. else
  11895. # used by -dlpreopen to get the symbols
  11896. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11897. fi
  11898. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11899. fi
  11900. fi
  11901. ;;
  11902. beos*)
  11903. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11904. allow_undefined_flag_CXX=unsupported
  11905. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11906. # support --undefined. This deserves some investigation. FIXME
  11907. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11908. else
  11909. ld_shlibs_CXX=no
  11910. fi
  11911. ;;
  11912. chorus*)
  11913. case $cc_basename in
  11914. *)
  11915. # FIXME: insert proper C++ library support
  11916. ld_shlibs_CXX=no
  11917. ;;
  11918. esac
  11919. ;;
  11920. cygwin* | mingw* | pw32* | cegcc*)
  11921. case $GXX,$cc_basename in
  11922. ,cl* | no,cl*)
  11923. # Native MSVC
  11924. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11925. # no search path for DLLs.
  11926. hardcode_libdir_flag_spec_CXX=' '
  11927. allow_undefined_flag_CXX=unsupported
  11928. always_export_symbols_CXX=yes
  11929. file_list_spec_CXX='@'
  11930. # Tell ltmain to make .lib files, not .a files.
  11931. libext=lib
  11932. # Tell ltmain to make .dll files, not .so files.
  11933. shrext_cmds=.dll
  11934. # FIXME: Setting linknames here is a bad hack.
  11935. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11936. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11937. cp "$export_symbols" "$output_objdir/$soname.def";
  11938. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11939. else
  11940. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11941. fi~
  11942. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11943. linknames='
  11944. # The linker will not automatically build a static lib if we build a DLL.
  11945. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11946. enable_shared_with_static_runtimes_CXX=yes
  11947. # Don't use ranlib
  11948. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11949. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11950. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11951. case $lt_outputfile in
  11952. *.exe|*.EXE) ;;
  11953. *)
  11954. lt_outputfile=$lt_outputfile.exe
  11955. lt_tool_outputfile=$lt_tool_outputfile.exe
  11956. ;;
  11957. esac~
  11958. func_to_tool_file "$lt_outputfile"~
  11959. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11960. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11961. $RM "$lt_outputfile.manifest";
  11962. fi'
  11963. ;;
  11964. *)
  11965. # g++
  11966. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11967. # as there is no search path for DLLs.
  11968. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11969. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11970. allow_undefined_flag_CXX=unsupported
  11971. always_export_symbols_CXX=no
  11972. enable_shared_with_static_runtimes_CXX=yes
  11973. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11974. 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'
  11975. # If the export-symbols file already is a .def file, use it as
  11976. # is; otherwise, prepend EXPORTS...
  11977. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11978. cp $export_symbols $output_objdir/$soname.def;
  11979. else
  11980. echo EXPORTS > $output_objdir/$soname.def;
  11981. cat $export_symbols >> $output_objdir/$soname.def;
  11982. fi~
  11983. $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'
  11984. else
  11985. ld_shlibs_CXX=no
  11986. fi
  11987. ;;
  11988. esac
  11989. ;;
  11990. darwin* | rhapsody*)
  11991. archive_cmds_need_lc_CXX=no
  11992. hardcode_direct_CXX=no
  11993. hardcode_automatic_CXX=yes
  11994. hardcode_shlibpath_var_CXX=unsupported
  11995. if test yes = "$lt_cv_ld_force_load"; then
  11996. 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\"`'
  11997. else
  11998. whole_archive_flag_spec_CXX=''
  11999. fi
  12000. link_all_deplibs_CXX=yes
  12001. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12002. case $cc_basename in
  12003. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12004. *) _lt_dar_can_shared=$GCC ;;
  12005. esac
  12006. if test yes = "$_lt_dar_can_shared"; then
  12007. output_verbose_link_cmd=func_echo_all
  12008. 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"
  12009. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12010. 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"
  12011. 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"
  12012. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12013. 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"
  12014. 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"
  12015. fi
  12016. else
  12017. ld_shlibs_CXX=no
  12018. fi
  12019. ;;
  12020. os2*)
  12021. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12022. hardcode_minus_L_CXX=yes
  12023. allow_undefined_flag_CXX=unsupported
  12024. shrext_cmds=.dll
  12025. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12026. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12027. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12028. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12029. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12030. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12031. emximp -o $lib $output_objdir/$libname.def'
  12032. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12033. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12034. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12035. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12036. prefix_cmds="$SED"~
  12037. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12038. prefix_cmds="$prefix_cmds -e 1d";
  12039. fi~
  12040. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12041. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12042. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12043. emximp -o $lib $output_objdir/$libname.def'
  12044. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12045. enable_shared_with_static_runtimes_CXX=yes
  12046. file_list_spec_CXX='@'
  12047. ;;
  12048. dgux*)
  12049. case $cc_basename in
  12050. ec++*)
  12051. # FIXME: insert proper C++ library support
  12052. ld_shlibs_CXX=no
  12053. ;;
  12054. ghcx*)
  12055. # Green Hills C++ Compiler
  12056. # FIXME: insert proper C++ library support
  12057. ld_shlibs_CXX=no
  12058. ;;
  12059. *)
  12060. # FIXME: insert proper C++ library support
  12061. ld_shlibs_CXX=no
  12062. ;;
  12063. esac
  12064. ;;
  12065. freebsd2.*)
  12066. # C++ shared libraries reported to be fairly broken before
  12067. # switch to ELF
  12068. ld_shlibs_CXX=no
  12069. ;;
  12070. freebsd-elf*)
  12071. archive_cmds_need_lc_CXX=no
  12072. ;;
  12073. freebsd* | dragonfly* | midnightbsd*)
  12074. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12075. # conventions
  12076. ld_shlibs_CXX=yes
  12077. ;;
  12078. haiku*)
  12079. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12080. link_all_deplibs_CXX=yes
  12081. ;;
  12082. hpux9*)
  12083. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12084. hardcode_libdir_separator_CXX=:
  12085. export_dynamic_flag_spec_CXX='$wl-E'
  12086. hardcode_direct_CXX=yes
  12087. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12088. # but as the default
  12089. # location of the library.
  12090. case $cc_basename in
  12091. CC*)
  12092. # FIXME: insert proper C++ library support
  12093. ld_shlibs_CXX=no
  12094. ;;
  12095. aCC*)
  12096. 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'
  12097. # Commands to make compiler produce verbose output that lists
  12098. # what "hidden" libraries, object files and flags are used when
  12099. # linking a shared library.
  12100. #
  12101. # There doesn't appear to be a way to prevent this compiler from
  12102. # explicitly linking system object files so we need to strip them
  12103. # from the output so that they don't get included in the library
  12104. # dependencies.
  12105. 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"'
  12106. ;;
  12107. *)
  12108. if test yes = "$GXX"; then
  12109. 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'
  12110. else
  12111. # FIXME: insert proper C++ library support
  12112. ld_shlibs_CXX=no
  12113. fi
  12114. ;;
  12115. esac
  12116. ;;
  12117. hpux10*|hpux11*)
  12118. if test no = "$with_gnu_ld"; then
  12119. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12120. hardcode_libdir_separator_CXX=:
  12121. case $host_cpu in
  12122. hppa*64*|ia64*)
  12123. ;;
  12124. *)
  12125. export_dynamic_flag_spec_CXX='$wl-E'
  12126. ;;
  12127. esac
  12128. fi
  12129. case $host_cpu in
  12130. hppa*64*|ia64*)
  12131. hardcode_direct_CXX=no
  12132. hardcode_shlibpath_var_CXX=no
  12133. ;;
  12134. *)
  12135. hardcode_direct_CXX=yes
  12136. hardcode_direct_absolute_CXX=yes
  12137. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12138. # but as the default
  12139. # location of the library.
  12140. ;;
  12141. esac
  12142. case $cc_basename in
  12143. CC*)
  12144. # FIXME: insert proper C++ library support
  12145. ld_shlibs_CXX=no
  12146. ;;
  12147. aCC*)
  12148. case $host_cpu in
  12149. hppa*64*)
  12150. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12151. ;;
  12152. ia64*)
  12153. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12154. ;;
  12155. *)
  12156. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12157. ;;
  12158. esac
  12159. # Commands to make compiler produce verbose output that lists
  12160. # what "hidden" libraries, object files and flags are used when
  12161. # linking a shared library.
  12162. #
  12163. # There doesn't appear to be a way to prevent this compiler from
  12164. # explicitly linking system object files so we need to strip them
  12165. # from the output so that they don't get included in the library
  12166. # dependencies.
  12167. 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"'
  12168. ;;
  12169. *)
  12170. if test yes = "$GXX"; then
  12171. if test no = "$with_gnu_ld"; then
  12172. case $host_cpu in
  12173. hppa*64*)
  12174. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12175. ;;
  12176. ia64*)
  12177. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12178. ;;
  12179. *)
  12180. 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'
  12181. ;;
  12182. esac
  12183. fi
  12184. else
  12185. # FIXME: insert proper C++ library support
  12186. ld_shlibs_CXX=no
  12187. fi
  12188. ;;
  12189. esac
  12190. ;;
  12191. interix[3-9]*)
  12192. hardcode_direct_CXX=no
  12193. hardcode_shlibpath_var_CXX=no
  12194. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12195. export_dynamic_flag_spec_CXX='$wl-E'
  12196. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12197. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12198. # default) and relocated if they conflict, which is a slow very memory
  12199. # consuming and fragmenting process. To avoid this, we pick a random,
  12200. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12201. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12202. 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'
  12203. 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'
  12204. ;;
  12205. irix5* | irix6*)
  12206. case $cc_basename in
  12207. CC*)
  12208. # SGI C++
  12209. 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'
  12210. # Archives containing C++ object files must be created using
  12211. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12212. # necessary to make sure instantiated templates are included
  12213. # in the archive.
  12214. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12215. ;;
  12216. *)
  12217. if test yes = "$GXX"; then
  12218. if test no = "$with_gnu_ld"; then
  12219. 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'
  12220. else
  12221. 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'
  12222. fi
  12223. fi
  12224. link_all_deplibs_CXX=yes
  12225. ;;
  12226. esac
  12227. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12228. hardcode_libdir_separator_CXX=:
  12229. inherit_rpath_CXX=yes
  12230. ;;
  12231. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12232. case $cc_basename in
  12233. KCC*)
  12234. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12235. # KCC will only create a shared library if the output file
  12236. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12237. # to its proper name (with version) after linking.
  12238. 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'
  12239. 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'
  12240. # Commands to make compiler produce verbose output that lists
  12241. # what "hidden" libraries, object files and flags are used when
  12242. # linking a shared library.
  12243. #
  12244. # There doesn't appear to be a way to prevent this compiler from
  12245. # explicitly linking system object files so we need to strip them
  12246. # from the output so that they don't get included in the library
  12247. # dependencies.
  12248. 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"'
  12249. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12250. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12251. # Archives containing C++ object files must be created using
  12252. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12253. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12254. ;;
  12255. icpc* | ecpc* )
  12256. # Intel C++
  12257. with_gnu_ld=yes
  12258. # version 8.0 and above of icpc choke on multiply defined symbols
  12259. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12260. # earlier do not add the objects themselves.
  12261. case `$CC -V 2>&1` in
  12262. *"Version 7."*)
  12263. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12264. 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'
  12265. ;;
  12266. *) # Version 8.0 or newer
  12267. tmp_idyn=
  12268. case $host_cpu in
  12269. ia64*) tmp_idyn=' -i_dynamic';;
  12270. esac
  12271. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12272. 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'
  12273. ;;
  12274. esac
  12275. archive_cmds_need_lc_CXX=no
  12276. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12277. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12278. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12279. ;;
  12280. pgCC* | pgcpp*)
  12281. # Portland Group C++ compiler
  12282. case `$CC -V` in
  12283. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12284. prelink_cmds_CXX='tpldir=Template.dir~
  12285. rm -rf $tpldir~
  12286. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12287. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12288. old_archive_cmds_CXX='tpldir=Template.dir~
  12289. rm -rf $tpldir~
  12290. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12291. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12292. $RANLIB $oldlib'
  12293. archive_cmds_CXX='tpldir=Template.dir~
  12294. rm -rf $tpldir~
  12295. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12296. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12297. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12298. rm -rf $tpldir~
  12299. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12300. $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'
  12301. ;;
  12302. *) # Version 6 and above use weak symbols
  12303. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12304. 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'
  12305. ;;
  12306. esac
  12307. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12308. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12309. 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'
  12310. ;;
  12311. cxx*)
  12312. # Compaq C++
  12313. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12314. 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'
  12315. runpath_var=LD_RUN_PATH
  12316. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12317. hardcode_libdir_separator_CXX=:
  12318. # Commands to make compiler produce verbose output that lists
  12319. # what "hidden" libraries, object files and flags are used when
  12320. # linking a shared library.
  12321. #
  12322. # There doesn't appear to be a way to prevent this compiler from
  12323. # explicitly linking system object files so we need to strip them
  12324. # from the output so that they don't get included in the library
  12325. # dependencies.
  12326. 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'
  12327. ;;
  12328. xl* | mpixl* | bgxl*)
  12329. # IBM XL 8.0 on PPC, with GNU ld
  12330. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12331. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12332. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12333. if test yes = "$supports_anon_versioning"; then
  12334. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12335. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12336. echo "local: *; };" >> $output_objdir/$libname.ver~
  12337. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12338. fi
  12339. ;;
  12340. *)
  12341. case `$CC -V 2>&1 | sed 5q` in
  12342. *Sun\ C*)
  12343. # Sun C++ 5.9
  12344. no_undefined_flag_CXX=' -zdefs'
  12345. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12346. 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'
  12347. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12348. 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'
  12349. compiler_needs_object_CXX=yes
  12350. # Not sure whether something based on
  12351. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12352. # would be better.
  12353. output_verbose_link_cmd='func_echo_all'
  12354. # Archives containing C++ object files must be created using
  12355. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12356. # necessary to make sure instantiated templates are included
  12357. # in the archive.
  12358. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12359. ;;
  12360. esac
  12361. ;;
  12362. esac
  12363. ;;
  12364. lynxos*)
  12365. # FIXME: insert proper C++ library support
  12366. ld_shlibs_CXX=no
  12367. ;;
  12368. m88k*)
  12369. # FIXME: insert proper C++ library support
  12370. ld_shlibs_CXX=no
  12371. ;;
  12372. mvs*)
  12373. case $cc_basename in
  12374. cxx*)
  12375. # FIXME: insert proper C++ library support
  12376. ld_shlibs_CXX=no
  12377. ;;
  12378. *)
  12379. # FIXME: insert proper C++ library support
  12380. ld_shlibs_CXX=no
  12381. ;;
  12382. esac
  12383. ;;
  12384. netbsd*)
  12385. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12386. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12387. wlarc=
  12388. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12389. hardcode_direct_CXX=yes
  12390. hardcode_shlibpath_var_CXX=no
  12391. fi
  12392. # Workaround some broken pre-1.5 toolchains
  12393. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12394. ;;
  12395. *nto* | *qnx*)
  12396. ld_shlibs_CXX=yes
  12397. ;;
  12398. openbsd* | bitrig*)
  12399. if test -f /usr/libexec/ld.so; then
  12400. hardcode_direct_CXX=yes
  12401. hardcode_shlibpath_var_CXX=no
  12402. hardcode_direct_absolute_CXX=yes
  12403. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12404. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12405. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12406. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12407. export_dynamic_flag_spec_CXX='$wl-E'
  12408. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12409. fi
  12410. output_verbose_link_cmd=func_echo_all
  12411. else
  12412. ld_shlibs_CXX=no
  12413. fi
  12414. ;;
  12415. osf3* | osf4* | osf5*)
  12416. case $cc_basename in
  12417. KCC*)
  12418. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12419. # KCC will only create a shared library if the output file
  12420. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12421. # to its proper name (with version) after linking.
  12422. 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'
  12423. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12424. hardcode_libdir_separator_CXX=:
  12425. # Archives containing C++ object files must be created using
  12426. # the KAI C++ compiler.
  12427. case $host in
  12428. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12429. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12430. esac
  12431. ;;
  12432. RCC*)
  12433. # Rational C++ 2.4.1
  12434. # FIXME: insert proper C++ library support
  12435. ld_shlibs_CXX=no
  12436. ;;
  12437. cxx*)
  12438. case $host in
  12439. osf3*)
  12440. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12441. 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'
  12442. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12443. ;;
  12444. *)
  12445. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12446. 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'
  12447. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12448. echo "-hidden">> $lib.exp~
  12449. $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~
  12450. $RM $lib.exp'
  12451. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12452. ;;
  12453. esac
  12454. hardcode_libdir_separator_CXX=:
  12455. # Commands to make compiler produce verbose output that lists
  12456. # what "hidden" libraries, object files and flags are used when
  12457. # linking a shared library.
  12458. #
  12459. # There doesn't appear to be a way to prevent this compiler from
  12460. # explicitly linking system object files so we need to strip them
  12461. # from the output so that they don't get included in the library
  12462. # dependencies.
  12463. 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"'
  12464. ;;
  12465. *)
  12466. if test yes,no = "$GXX,$with_gnu_ld"; then
  12467. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12468. case $host in
  12469. osf3*)
  12470. 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'
  12471. ;;
  12472. *)
  12473. 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'
  12474. ;;
  12475. esac
  12476. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12477. hardcode_libdir_separator_CXX=:
  12478. # Commands to make compiler produce verbose output that lists
  12479. # what "hidden" libraries, object files and flags are used when
  12480. # linking a shared library.
  12481. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12482. else
  12483. # FIXME: insert proper C++ library support
  12484. ld_shlibs_CXX=no
  12485. fi
  12486. ;;
  12487. esac
  12488. ;;
  12489. psos*)
  12490. # FIXME: insert proper C++ library support
  12491. ld_shlibs_CXX=no
  12492. ;;
  12493. sunos4*)
  12494. case $cc_basename in
  12495. CC*)
  12496. # Sun C++ 4.x
  12497. # FIXME: insert proper C++ library support
  12498. ld_shlibs_CXX=no
  12499. ;;
  12500. lcc*)
  12501. # Lucid
  12502. # FIXME: insert proper C++ library support
  12503. ld_shlibs_CXX=no
  12504. ;;
  12505. *)
  12506. # FIXME: insert proper C++ library support
  12507. ld_shlibs_CXX=no
  12508. ;;
  12509. esac
  12510. ;;
  12511. solaris*)
  12512. case $cc_basename in
  12513. CC* | sunCC*)
  12514. # Sun C++ 4.2, 5.x and Centerline C++
  12515. archive_cmds_need_lc_CXX=yes
  12516. no_undefined_flag_CXX=' -zdefs'
  12517. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12518. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12519. $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'
  12520. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12521. hardcode_shlibpath_var_CXX=no
  12522. case $host_os in
  12523. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12524. *)
  12525. # The compiler driver will combine and reorder linker options,
  12526. # but understands '-z linker_flag'.
  12527. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12528. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12529. ;;
  12530. esac
  12531. link_all_deplibs_CXX=yes
  12532. output_verbose_link_cmd='func_echo_all'
  12533. # Archives containing C++ object files must be created using
  12534. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12535. # necessary to make sure instantiated templates are included
  12536. # in the archive.
  12537. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12538. ;;
  12539. gcx*)
  12540. # Green Hills C++ Compiler
  12541. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12542. # The C++ compiler must be used to create the archive.
  12543. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12544. ;;
  12545. *)
  12546. # GNU C++ compiler with Solaris linker
  12547. if test yes,no = "$GXX,$with_gnu_ld"; then
  12548. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12549. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12550. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12551. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12552. $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'
  12553. # Commands to make compiler produce verbose output that lists
  12554. # what "hidden" libraries, object files and flags are used when
  12555. # linking a shared library.
  12556. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12557. else
  12558. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12559. # platform.
  12560. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12561. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12562. $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'
  12563. # Commands to make compiler produce verbose output that lists
  12564. # what "hidden" libraries, object files and flags are used when
  12565. # linking a shared library.
  12566. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12567. fi
  12568. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12569. case $host_os in
  12570. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12571. *)
  12572. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12573. ;;
  12574. esac
  12575. fi
  12576. ;;
  12577. esac
  12578. ;;
  12579. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12580. no_undefined_flag_CXX='$wl-z,text'
  12581. archive_cmds_need_lc_CXX=no
  12582. hardcode_shlibpath_var_CXX=no
  12583. runpath_var='LD_RUN_PATH'
  12584. case $cc_basename in
  12585. CC*)
  12586. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12587. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12588. ;;
  12589. *)
  12590. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12591. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12592. ;;
  12593. esac
  12594. ;;
  12595. sysv5* | sco3.2v5* | sco5v6*)
  12596. # Note: We CANNOT use -z defs as we might desire, because we do not
  12597. # link with -lc, and that would cause any symbols used from libc to
  12598. # always be unresolved, which means just about no library would
  12599. # ever link correctly. If we're not using GNU ld we use -z text
  12600. # though, which does catch some bad symbols but isn't as heavy-handed
  12601. # as -z defs.
  12602. no_undefined_flag_CXX='$wl-z,text'
  12603. allow_undefined_flag_CXX='$wl-z,nodefs'
  12604. archive_cmds_need_lc_CXX=no
  12605. hardcode_shlibpath_var_CXX=no
  12606. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12607. hardcode_libdir_separator_CXX=':'
  12608. link_all_deplibs_CXX=yes
  12609. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12610. runpath_var='LD_RUN_PATH'
  12611. case $cc_basename in
  12612. CC*)
  12613. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12614. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12615. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12616. '"$old_archive_cmds_CXX"
  12617. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12618. '"$reload_cmds_CXX"
  12619. ;;
  12620. *)
  12621. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12622. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12623. ;;
  12624. esac
  12625. ;;
  12626. tandem*)
  12627. case $cc_basename in
  12628. NCC*)
  12629. # NonStop-UX NCC 3.20
  12630. # FIXME: insert proper C++ library support
  12631. ld_shlibs_CXX=no
  12632. ;;
  12633. *)
  12634. # FIXME: insert proper C++ library support
  12635. ld_shlibs_CXX=no
  12636. ;;
  12637. esac
  12638. ;;
  12639. vxworks*)
  12640. # FIXME: insert proper C++ library support
  12641. ld_shlibs_CXX=no
  12642. ;;
  12643. *)
  12644. # FIXME: insert proper C++ library support
  12645. ld_shlibs_CXX=no
  12646. ;;
  12647. esac
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12649. $as_echo "$ld_shlibs_CXX" >&6; }
  12650. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12651. GCC_CXX=$GXX
  12652. LD_CXX=$LD
  12653. ## CAVEAT EMPTOR:
  12654. ## There is no encapsulation within the following macros, do not change
  12655. ## the running order or otherwise move them around unless you know exactly
  12656. ## what you are doing...
  12657. # Dependencies to place before and after the object being linked:
  12658. predep_objects_CXX=
  12659. postdep_objects_CXX=
  12660. predeps_CXX=
  12661. postdeps_CXX=
  12662. compiler_lib_search_path_CXX=
  12663. cat > conftest.$ac_ext <<_LT_EOF
  12664. class Foo
  12665. {
  12666. public:
  12667. Foo (void) { a = 0; }
  12668. private:
  12669. int a;
  12670. };
  12671. _LT_EOF
  12672. _lt_libdeps_save_CFLAGS=$CFLAGS
  12673. case "$CC $CFLAGS " in #(
  12674. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12675. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12676. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12677. esac
  12678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12679. (eval $ac_compile) 2>&5
  12680. ac_status=$?
  12681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12682. test $ac_status = 0; }; then
  12683. # Parse the compiler output and extract the necessary
  12684. # objects, libraries and library flags.
  12685. # Sentinel used to keep track of whether or not we are before
  12686. # the conftest object file.
  12687. pre_test_object_deps_done=no
  12688. for p in `eval "$output_verbose_link_cmd"`; do
  12689. case $prev$p in
  12690. -L* | -R* | -l*)
  12691. # Some compilers place space between "-{L,R}" and the path.
  12692. # Remove the space.
  12693. if test x-L = "x$p" ||
  12694. test x-R = "x$p" ||
  12695. test x-l = "x$p"; then
  12696. prev=$p
  12697. continue
  12698. fi
  12699. # Expand the sysroot to ease extracting the directories later.
  12700. if test -z "$prev"; then
  12701. case $p in
  12702. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12703. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12704. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12705. esac
  12706. fi
  12707. case $p in
  12708. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12709. esac
  12710. if test no = "$pre_test_object_deps_done"; then
  12711. case $prev in
  12712. -L | -R)
  12713. # Internal compiler library paths should come after those
  12714. # provided the user. The postdeps already come after the
  12715. # user supplied libs so there is no need to process them.
  12716. if test -z "$compiler_lib_search_path_CXX"; then
  12717. compiler_lib_search_path_CXX=$prev$p
  12718. else
  12719. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12720. fi
  12721. ;;
  12722. # The "-l" case would never come before the object being
  12723. # linked, so don't bother handling this case.
  12724. esac
  12725. else
  12726. if test -z "$postdeps_CXX"; then
  12727. postdeps_CXX=$prev$p
  12728. else
  12729. postdeps_CXX="${postdeps_CXX} $prev$p"
  12730. fi
  12731. fi
  12732. prev=
  12733. ;;
  12734. *.lto.$objext) ;; # Ignore GCC LTO objects
  12735. *.$objext)
  12736. # This assumes that the test object file only shows up
  12737. # once in the compiler output.
  12738. if test "$p" = "conftest.$objext"; then
  12739. pre_test_object_deps_done=yes
  12740. continue
  12741. fi
  12742. if test no = "$pre_test_object_deps_done"; then
  12743. if test -z "$predep_objects_CXX"; then
  12744. predep_objects_CXX=$p
  12745. else
  12746. predep_objects_CXX="$predep_objects_CXX $p"
  12747. fi
  12748. else
  12749. if test -z "$postdep_objects_CXX"; then
  12750. postdep_objects_CXX=$p
  12751. else
  12752. postdep_objects_CXX="$postdep_objects_CXX $p"
  12753. fi
  12754. fi
  12755. ;;
  12756. *) ;; # Ignore the rest.
  12757. esac
  12758. done
  12759. # Clean up.
  12760. rm -f a.out a.exe
  12761. else
  12762. echo "libtool.m4: error: problem compiling CXX test program"
  12763. fi
  12764. $RM -f confest.$objext
  12765. CFLAGS=$_lt_libdeps_save_CFLAGS
  12766. # PORTME: override above test on systems where it is broken
  12767. case $host_os in
  12768. interix[3-9]*)
  12769. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12770. # hack all around it, let's just trust "g++" to DTRT.
  12771. predep_objects_CXX=
  12772. postdep_objects_CXX=
  12773. postdeps_CXX=
  12774. ;;
  12775. esac
  12776. case " $postdeps_CXX " in
  12777. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12778. esac
  12779. compiler_lib_search_dirs_CXX=
  12780. if test -n "${compiler_lib_search_path_CXX}"; then
  12781. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12782. fi
  12783. lt_prog_compiler_wl_CXX=
  12784. lt_prog_compiler_pic_CXX=
  12785. lt_prog_compiler_static_CXX=
  12786. # C++ specific cases for pic, static, wl, etc.
  12787. if test yes = "$GXX"; then
  12788. lt_prog_compiler_wl_CXX='-Wl,'
  12789. lt_prog_compiler_static_CXX='-static'
  12790. case $host_os in
  12791. aix*)
  12792. # All AIX code is PIC.
  12793. if test ia64 = "$host_cpu"; then
  12794. # AIX 5 now supports IA64 processor
  12795. lt_prog_compiler_static_CXX='-Bstatic'
  12796. fi
  12797. lt_prog_compiler_pic_CXX='-fPIC'
  12798. ;;
  12799. amigaos*)
  12800. case $host_cpu in
  12801. powerpc)
  12802. # see comment about AmigaOS4 .so support
  12803. lt_prog_compiler_pic_CXX='-fPIC'
  12804. ;;
  12805. m68k)
  12806. # FIXME: we need at least 68020 code to build shared libraries, but
  12807. # adding the '-m68020' flag to GCC prevents building anything better,
  12808. # like '-m68040'.
  12809. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12810. ;;
  12811. esac
  12812. ;;
  12813. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12814. # PIC is the default for these OSes.
  12815. ;;
  12816. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12817. # This hack is so that the source file can tell whether it is being
  12818. # built for inclusion in a dll (and should export symbols for example).
  12819. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12820. # (--disable-auto-import) libraries
  12821. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12822. case $host_os in
  12823. os2*)
  12824. lt_prog_compiler_static_CXX='$wl-static'
  12825. ;;
  12826. esac
  12827. ;;
  12828. darwin* | rhapsody*)
  12829. # PIC is the default on this platform
  12830. # Common symbols not allowed in MH_DYLIB files
  12831. lt_prog_compiler_pic_CXX='-fno-common'
  12832. ;;
  12833. *djgpp*)
  12834. # DJGPP does not support shared libraries at all
  12835. lt_prog_compiler_pic_CXX=
  12836. ;;
  12837. haiku*)
  12838. # PIC is the default for Haiku.
  12839. # The "-static" flag exists, but is broken.
  12840. lt_prog_compiler_static_CXX=
  12841. ;;
  12842. interix[3-9]*)
  12843. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12844. # Instead, we relocate shared libraries at runtime.
  12845. ;;
  12846. sysv4*MP*)
  12847. if test -d /usr/nec; then
  12848. lt_prog_compiler_pic_CXX=-Kconform_pic
  12849. fi
  12850. ;;
  12851. hpux*)
  12852. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12853. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12854. # sets the default TLS model and affects inlining.
  12855. case $host_cpu in
  12856. hppa*64*)
  12857. ;;
  12858. *)
  12859. lt_prog_compiler_pic_CXX='-fPIC'
  12860. ;;
  12861. esac
  12862. ;;
  12863. *qnx* | *nto*)
  12864. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12865. # it will coredump.
  12866. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12867. ;;
  12868. *)
  12869. lt_prog_compiler_pic_CXX='-fPIC'
  12870. ;;
  12871. esac
  12872. else
  12873. case $host_os in
  12874. aix[4-9]*)
  12875. # All AIX code is PIC.
  12876. if test ia64 = "$host_cpu"; then
  12877. # AIX 5 now supports IA64 processor
  12878. lt_prog_compiler_static_CXX='-Bstatic'
  12879. else
  12880. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12881. fi
  12882. ;;
  12883. chorus*)
  12884. case $cc_basename in
  12885. cxch68*)
  12886. # Green Hills C++ Compiler
  12887. # _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"
  12888. ;;
  12889. esac
  12890. ;;
  12891. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12892. # This hack is so that the source file can tell whether it is being
  12893. # built for inclusion in a dll (and should export symbols for example).
  12894. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12895. ;;
  12896. dgux*)
  12897. case $cc_basename in
  12898. ec++*)
  12899. lt_prog_compiler_pic_CXX='-KPIC'
  12900. ;;
  12901. ghcx*)
  12902. # Green Hills C++ Compiler
  12903. lt_prog_compiler_pic_CXX='-pic'
  12904. ;;
  12905. *)
  12906. ;;
  12907. esac
  12908. ;;
  12909. freebsd* | dragonfly* | midnightbsd*)
  12910. # FreeBSD uses GNU C++
  12911. ;;
  12912. hpux9* | hpux10* | hpux11*)
  12913. case $cc_basename in
  12914. CC*)
  12915. lt_prog_compiler_wl_CXX='-Wl,'
  12916. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12917. if test ia64 != "$host_cpu"; then
  12918. lt_prog_compiler_pic_CXX='+Z'
  12919. fi
  12920. ;;
  12921. aCC*)
  12922. lt_prog_compiler_wl_CXX='-Wl,'
  12923. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12924. case $host_cpu in
  12925. hppa*64*|ia64*)
  12926. # +Z the default
  12927. ;;
  12928. *)
  12929. lt_prog_compiler_pic_CXX='+Z'
  12930. ;;
  12931. esac
  12932. ;;
  12933. *)
  12934. ;;
  12935. esac
  12936. ;;
  12937. interix*)
  12938. # This is c89, which is MS Visual C++ (no shared libs)
  12939. # Anyone wants to do a port?
  12940. ;;
  12941. irix5* | irix6* | nonstopux*)
  12942. case $cc_basename in
  12943. CC*)
  12944. lt_prog_compiler_wl_CXX='-Wl,'
  12945. lt_prog_compiler_static_CXX='-non_shared'
  12946. # CC pic flag -KPIC is the default.
  12947. ;;
  12948. *)
  12949. ;;
  12950. esac
  12951. ;;
  12952. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12953. case $cc_basename in
  12954. KCC*)
  12955. # KAI C++ Compiler
  12956. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12957. lt_prog_compiler_pic_CXX='-fPIC'
  12958. ;;
  12959. ecpc* )
  12960. # old Intel C++ for x86_64, which still supported -KPIC.
  12961. lt_prog_compiler_wl_CXX='-Wl,'
  12962. lt_prog_compiler_pic_CXX='-KPIC'
  12963. lt_prog_compiler_static_CXX='-static'
  12964. ;;
  12965. icpc* )
  12966. # Intel C++, used to be incompatible with GCC.
  12967. # ICC 10 doesn't accept -KPIC any more.
  12968. lt_prog_compiler_wl_CXX='-Wl,'
  12969. lt_prog_compiler_pic_CXX='-fPIC'
  12970. lt_prog_compiler_static_CXX='-static'
  12971. ;;
  12972. pgCC* | pgcpp*)
  12973. # Portland Group C++ compiler
  12974. lt_prog_compiler_wl_CXX='-Wl,'
  12975. lt_prog_compiler_pic_CXX='-fpic'
  12976. lt_prog_compiler_static_CXX='-Bstatic'
  12977. ;;
  12978. cxx*)
  12979. # Compaq C++
  12980. # Make sure the PIC flag is empty. It appears that all Alpha
  12981. # Linux and Compaq Tru64 Unix objects are PIC.
  12982. lt_prog_compiler_pic_CXX=
  12983. lt_prog_compiler_static_CXX='-non_shared'
  12984. ;;
  12985. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12986. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12987. lt_prog_compiler_wl_CXX='-Wl,'
  12988. lt_prog_compiler_pic_CXX='-qpic'
  12989. lt_prog_compiler_static_CXX='-qstaticlink'
  12990. ;;
  12991. *)
  12992. case `$CC -V 2>&1 | sed 5q` in
  12993. *Sun\ C*)
  12994. # Sun C++ 5.9
  12995. lt_prog_compiler_pic_CXX='-KPIC'
  12996. lt_prog_compiler_static_CXX='-Bstatic'
  12997. lt_prog_compiler_wl_CXX='-Qoption ld '
  12998. ;;
  12999. esac
  13000. ;;
  13001. esac
  13002. ;;
  13003. lynxos*)
  13004. ;;
  13005. m88k*)
  13006. ;;
  13007. mvs*)
  13008. case $cc_basename in
  13009. cxx*)
  13010. lt_prog_compiler_pic_CXX='-W c,exportall'
  13011. ;;
  13012. *)
  13013. ;;
  13014. esac
  13015. ;;
  13016. netbsd*)
  13017. ;;
  13018. *qnx* | *nto*)
  13019. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13020. # it will coredump.
  13021. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13022. ;;
  13023. osf3* | osf4* | osf5*)
  13024. case $cc_basename in
  13025. KCC*)
  13026. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13027. ;;
  13028. RCC*)
  13029. # Rational C++ 2.4.1
  13030. lt_prog_compiler_pic_CXX='-pic'
  13031. ;;
  13032. cxx*)
  13033. # Digital/Compaq C++
  13034. lt_prog_compiler_wl_CXX='-Wl,'
  13035. # Make sure the PIC flag is empty. It appears that all Alpha
  13036. # Linux and Compaq Tru64 Unix objects are PIC.
  13037. lt_prog_compiler_pic_CXX=
  13038. lt_prog_compiler_static_CXX='-non_shared'
  13039. ;;
  13040. *)
  13041. ;;
  13042. esac
  13043. ;;
  13044. psos*)
  13045. ;;
  13046. solaris*)
  13047. case $cc_basename in
  13048. CC* | sunCC*)
  13049. # Sun C++ 4.2, 5.x and Centerline C++
  13050. lt_prog_compiler_pic_CXX='-KPIC'
  13051. lt_prog_compiler_static_CXX='-Bstatic'
  13052. lt_prog_compiler_wl_CXX='-Qoption ld '
  13053. ;;
  13054. gcx*)
  13055. # Green Hills C++ Compiler
  13056. lt_prog_compiler_pic_CXX='-PIC'
  13057. ;;
  13058. *)
  13059. ;;
  13060. esac
  13061. ;;
  13062. sunos4*)
  13063. case $cc_basename in
  13064. CC*)
  13065. # Sun C++ 4.x
  13066. lt_prog_compiler_pic_CXX='-pic'
  13067. lt_prog_compiler_static_CXX='-Bstatic'
  13068. ;;
  13069. lcc*)
  13070. # Lucid
  13071. lt_prog_compiler_pic_CXX='-pic'
  13072. ;;
  13073. *)
  13074. ;;
  13075. esac
  13076. ;;
  13077. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13078. case $cc_basename in
  13079. CC*)
  13080. lt_prog_compiler_wl_CXX='-Wl,'
  13081. lt_prog_compiler_pic_CXX='-KPIC'
  13082. lt_prog_compiler_static_CXX='-Bstatic'
  13083. ;;
  13084. esac
  13085. ;;
  13086. tandem*)
  13087. case $cc_basename in
  13088. NCC*)
  13089. # NonStop-UX NCC 3.20
  13090. lt_prog_compiler_pic_CXX='-KPIC'
  13091. ;;
  13092. *)
  13093. ;;
  13094. esac
  13095. ;;
  13096. vxworks*)
  13097. ;;
  13098. *)
  13099. lt_prog_compiler_can_build_shared_CXX=no
  13100. ;;
  13101. esac
  13102. fi
  13103. case $host_os in
  13104. # For platforms that do not support PIC, -DPIC is meaningless:
  13105. *djgpp*)
  13106. lt_prog_compiler_pic_CXX=
  13107. ;;
  13108. *)
  13109. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13110. ;;
  13111. esac
  13112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13113. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13114. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13115. $as_echo_n "(cached) " >&6
  13116. else
  13117. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13118. fi
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13120. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13121. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13122. #
  13123. # Check to make sure the PIC flag actually works.
  13124. #
  13125. if test -n "$lt_prog_compiler_pic_CXX"; then
  13126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13127. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13128. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13129. $as_echo_n "(cached) " >&6
  13130. else
  13131. lt_cv_prog_compiler_pic_works_CXX=no
  13132. ac_outfile=conftest.$ac_objext
  13133. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13134. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13135. # Insert the option either (1) after the last *FLAGS variable, or
  13136. # (2) before a word containing "conftest.", or (3) at the end.
  13137. # Note that $ac_compile itself does not contain backslashes and begins
  13138. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13139. # The option is referenced via a variable to avoid confusing sed.
  13140. lt_compile=`echo "$ac_compile" | $SED \
  13141. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13142. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13143. -e 's:$: $lt_compiler_flag:'`
  13144. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13145. (eval "$lt_compile" 2>conftest.err)
  13146. ac_status=$?
  13147. cat conftest.err >&5
  13148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13149. if (exit $ac_status) && test -s "$ac_outfile"; then
  13150. # The compiler can only warn and ignore the option if not recognized
  13151. # So say no if there are warnings other than the usual output.
  13152. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13153. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13154. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13155. lt_cv_prog_compiler_pic_works_CXX=yes
  13156. fi
  13157. fi
  13158. $RM conftest*
  13159. fi
  13160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13161. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13162. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13163. case $lt_prog_compiler_pic_CXX in
  13164. "" | " "*) ;;
  13165. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13166. esac
  13167. else
  13168. lt_prog_compiler_pic_CXX=
  13169. lt_prog_compiler_can_build_shared_CXX=no
  13170. fi
  13171. fi
  13172. #
  13173. # Check to make sure the static flag actually works.
  13174. #
  13175. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13177. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13178. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13179. $as_echo_n "(cached) " >&6
  13180. else
  13181. lt_cv_prog_compiler_static_works_CXX=no
  13182. save_LDFLAGS=$LDFLAGS
  13183. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13184. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13185. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13186. # The linker can only warn and ignore the option if not recognized
  13187. # So say no if there are warnings
  13188. if test -s conftest.err; then
  13189. # Append any errors to the config.log.
  13190. cat conftest.err 1>&5
  13191. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13192. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13193. if diff conftest.exp conftest.er2 >/dev/null; then
  13194. lt_cv_prog_compiler_static_works_CXX=yes
  13195. fi
  13196. else
  13197. lt_cv_prog_compiler_static_works_CXX=yes
  13198. fi
  13199. fi
  13200. $RM -r conftest*
  13201. LDFLAGS=$save_LDFLAGS
  13202. fi
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13204. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13205. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13206. :
  13207. else
  13208. lt_prog_compiler_static_CXX=
  13209. fi
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13211. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13212. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13213. $as_echo_n "(cached) " >&6
  13214. else
  13215. lt_cv_prog_compiler_c_o_CXX=no
  13216. $RM -r conftest 2>/dev/null
  13217. mkdir conftest
  13218. cd conftest
  13219. mkdir out
  13220. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13221. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13222. # Insert the option either (1) after the last *FLAGS variable, or
  13223. # (2) before a word containing "conftest.", or (3) at the end.
  13224. # Note that $ac_compile itself does not contain backslashes and begins
  13225. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13226. lt_compile=`echo "$ac_compile" | $SED \
  13227. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13228. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13229. -e 's:$: $lt_compiler_flag:'`
  13230. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13231. (eval "$lt_compile" 2>out/conftest.err)
  13232. ac_status=$?
  13233. cat out/conftest.err >&5
  13234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13235. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13236. then
  13237. # The compiler can only warn and ignore the option if not recognized
  13238. # So say no if there are warnings
  13239. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13240. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13241. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13242. lt_cv_prog_compiler_c_o_CXX=yes
  13243. fi
  13244. fi
  13245. chmod u+w . 2>&5
  13246. $RM conftest*
  13247. # SGI C++ compiler will create directory out/ii_files/ for
  13248. # template instantiation
  13249. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13250. $RM out/* && rmdir out
  13251. cd ..
  13252. $RM -r conftest
  13253. $RM conftest*
  13254. fi
  13255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13256. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13258. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13259. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13260. $as_echo_n "(cached) " >&6
  13261. else
  13262. lt_cv_prog_compiler_c_o_CXX=no
  13263. $RM -r conftest 2>/dev/null
  13264. mkdir conftest
  13265. cd conftest
  13266. mkdir out
  13267. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13268. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13269. # Insert the option either (1) after the last *FLAGS variable, or
  13270. # (2) before a word containing "conftest.", or (3) at the end.
  13271. # Note that $ac_compile itself does not contain backslashes and begins
  13272. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13273. lt_compile=`echo "$ac_compile" | $SED \
  13274. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13275. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13276. -e 's:$: $lt_compiler_flag:'`
  13277. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13278. (eval "$lt_compile" 2>out/conftest.err)
  13279. ac_status=$?
  13280. cat out/conftest.err >&5
  13281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13282. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13283. then
  13284. # The compiler can only warn and ignore the option if not recognized
  13285. # So say no if there are warnings
  13286. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13287. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13288. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13289. lt_cv_prog_compiler_c_o_CXX=yes
  13290. fi
  13291. fi
  13292. chmod u+w . 2>&5
  13293. $RM conftest*
  13294. # SGI C++ compiler will create directory out/ii_files/ for
  13295. # template instantiation
  13296. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13297. $RM out/* && rmdir out
  13298. cd ..
  13299. $RM -r conftest
  13300. $RM conftest*
  13301. fi
  13302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13303. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13304. hard_links=nottested
  13305. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13306. # do not overwrite the value of need_locks provided by the user
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13308. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13309. hard_links=yes
  13310. $RM conftest*
  13311. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13312. touch conftest.a
  13313. ln conftest.a conftest.b 2>&5 || hard_links=no
  13314. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13316. $as_echo "$hard_links" >&6; }
  13317. if test no = "$hard_links"; then
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13319. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13320. need_locks=warn
  13321. fi
  13322. else
  13323. need_locks=no
  13324. fi
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13326. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13327. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13328. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13329. case $host_os in
  13330. aix[4-9]*)
  13331. # If we're using GNU nm, then we don't want the "-C" option.
  13332. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13333. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13334. # weak defined symbols like other global defined symbols, whereas
  13335. # GNU nm marks them as "W".
  13336. # While the 'weak' keyword is ignored in the Export File, we need
  13337. # it in the Import File for the 'aix-soname' feature, so we have
  13338. # to replace the "-B" option with "-P" for AIX nm.
  13339. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13340. 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'
  13341. else
  13342. 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'
  13343. fi
  13344. ;;
  13345. pw32*)
  13346. export_symbols_cmds_CXX=$ltdll_cmds
  13347. ;;
  13348. cygwin* | mingw* | cegcc*)
  13349. case $cc_basename in
  13350. cl*)
  13351. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13352. ;;
  13353. *)
  13354. 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'
  13355. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13356. ;;
  13357. esac
  13358. ;;
  13359. *)
  13360. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13361. ;;
  13362. esac
  13363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13364. $as_echo "$ld_shlibs_CXX" >&6; }
  13365. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13366. with_gnu_ld_CXX=$with_gnu_ld
  13367. #
  13368. # Do we need to explicitly link libc?
  13369. #
  13370. case "x$archive_cmds_need_lc_CXX" in
  13371. x|xyes)
  13372. # Assume -lc should be added
  13373. archive_cmds_need_lc_CXX=yes
  13374. if test yes,yes = "$GCC,$enable_shared"; then
  13375. case $archive_cmds_CXX in
  13376. *'~'*)
  13377. # FIXME: we may have to deal with multi-command sequences.
  13378. ;;
  13379. '$CC '*)
  13380. # Test whether the compiler implicitly links with -lc since on some
  13381. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13382. # to ld, don't add -lc before -lgcc.
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13384. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13385. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13386. $as_echo_n "(cached) " >&6
  13387. else
  13388. $RM conftest*
  13389. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13390. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13391. (eval $ac_compile) 2>&5
  13392. ac_status=$?
  13393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13394. test $ac_status = 0; } 2>conftest.err; then
  13395. soname=conftest
  13396. lib=conftest
  13397. libobjs=conftest.$ac_objext
  13398. deplibs=
  13399. wl=$lt_prog_compiler_wl_CXX
  13400. pic_flag=$lt_prog_compiler_pic_CXX
  13401. compiler_flags=-v
  13402. linker_flags=-v
  13403. verstring=
  13404. output_objdir=.
  13405. libname=conftest
  13406. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13407. allow_undefined_flag_CXX=
  13408. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13409. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13410. ac_status=$?
  13411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13412. test $ac_status = 0; }
  13413. then
  13414. lt_cv_archive_cmds_need_lc_CXX=no
  13415. else
  13416. lt_cv_archive_cmds_need_lc_CXX=yes
  13417. fi
  13418. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13419. else
  13420. cat conftest.err 1>&5
  13421. fi
  13422. $RM conftest*
  13423. fi
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13425. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13426. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13427. ;;
  13428. esac
  13429. fi
  13430. ;;
  13431. esac
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13433. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13434. library_names_spec=
  13435. libname_spec='lib$name'
  13436. soname_spec=
  13437. shrext_cmds=.so
  13438. postinstall_cmds=
  13439. postuninstall_cmds=
  13440. finish_cmds=
  13441. finish_eval=
  13442. shlibpath_var=
  13443. shlibpath_overrides_runpath=unknown
  13444. version_type=none
  13445. dynamic_linker="$host_os ld.so"
  13446. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13447. need_lib_prefix=unknown
  13448. hardcode_into_libs=no
  13449. # when you set need_version to no, make sure it does not cause -set_version
  13450. # flags to be left without arguments
  13451. need_version=unknown
  13452. case $host_os in
  13453. aix3*)
  13454. version_type=linux # correct to gnu/linux during the next big refactor
  13455. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13456. shlibpath_var=LIBPATH
  13457. # AIX 3 has no versioning support, so we append a major version to the name.
  13458. soname_spec='$libname$release$shared_ext$major'
  13459. ;;
  13460. aix[4-9]*)
  13461. version_type=linux # correct to gnu/linux during the next big refactor
  13462. need_lib_prefix=no
  13463. need_version=no
  13464. hardcode_into_libs=yes
  13465. if test ia64 = "$host_cpu"; then
  13466. # AIX 5 supports IA64
  13467. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13468. shlibpath_var=LD_LIBRARY_PATH
  13469. else
  13470. # With GCC up to 2.95.x, collect2 would create an import file
  13471. # for dependence libraries. The import file would start with
  13472. # the line '#! .'. This would cause the generated library to
  13473. # depend on '.', always an invalid library. This was fixed in
  13474. # development snapshots of GCC prior to 3.0.
  13475. case $host_os in
  13476. aix4 | aix4.[01] | aix4.[01].*)
  13477. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13478. echo ' yes '
  13479. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13480. :
  13481. else
  13482. can_build_shared=no
  13483. fi
  13484. ;;
  13485. esac
  13486. # Using Import Files as archive members, it is possible to support
  13487. # filename-based versioning of shared library archives on AIX. While
  13488. # this would work for both with and without runtime linking, it will
  13489. # prevent static linking of such archives. So we do filename-based
  13490. # shared library versioning with .so extension only, which is used
  13491. # when both runtime linking and shared linking is enabled.
  13492. # Unfortunately, runtime linking may impact performance, so we do
  13493. # not want this to be the default eventually. Also, we use the
  13494. # versioned .so libs for executables only if there is the -brtl
  13495. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13496. # To allow for filename-based versioning support, we need to create
  13497. # libNAME.so.V as an archive file, containing:
  13498. # *) an Import File, referring to the versioned filename of the
  13499. # archive as well as the shared archive member, telling the
  13500. # bitwidth (32 or 64) of that shared object, and providing the
  13501. # list of exported symbols of that shared object, eventually
  13502. # decorated with the 'weak' keyword
  13503. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13504. # it being seen by the linker.
  13505. # At run time we better use the real file rather than another symlink,
  13506. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13507. case $with_aix_soname,$aix_use_runtimelinking in
  13508. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13509. # soname into executable. Probably we can add versioning support to
  13510. # collect2, so additional links can be useful in future.
  13511. aix,yes) # traditional libtool
  13512. dynamic_linker='AIX unversionable lib.so'
  13513. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13514. # instead of lib<name>.a to let people know that these are not
  13515. # typical AIX shared libraries.
  13516. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13517. ;;
  13518. aix,no) # traditional AIX only
  13519. dynamic_linker='AIX lib.a(lib.so.V)'
  13520. # We preserve .a as extension for shared libraries through AIX4.2
  13521. # and later when we are not doing run time linking.
  13522. library_names_spec='$libname$release.a $libname.a'
  13523. soname_spec='$libname$release$shared_ext$major'
  13524. ;;
  13525. svr4,*) # full svr4 only
  13526. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13527. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13528. # We do not specify a path in Import Files, so LIBPATH fires.
  13529. shlibpath_overrides_runpath=yes
  13530. ;;
  13531. *,yes) # both, prefer svr4
  13532. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13533. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13534. # unpreferred sharedlib libNAME.a needs extra handling
  13535. 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"'
  13536. 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"'
  13537. # We do not specify a path in Import Files, so LIBPATH fires.
  13538. shlibpath_overrides_runpath=yes
  13539. ;;
  13540. *,no) # both, prefer aix
  13541. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13542. library_names_spec='$libname$release.a $libname.a'
  13543. soname_spec='$libname$release$shared_ext$major'
  13544. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13545. 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)'
  13546. 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"'
  13547. ;;
  13548. esac
  13549. shlibpath_var=LIBPATH
  13550. fi
  13551. ;;
  13552. amigaos*)
  13553. case $host_cpu in
  13554. powerpc)
  13555. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13556. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13557. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13558. ;;
  13559. m68k)
  13560. library_names_spec='$libname.ixlibrary $libname.a'
  13561. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13562. 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'
  13563. ;;
  13564. esac
  13565. ;;
  13566. beos*)
  13567. library_names_spec='$libname$shared_ext'
  13568. dynamic_linker="$host_os ld.so"
  13569. shlibpath_var=LIBRARY_PATH
  13570. ;;
  13571. bsdi[45]*)
  13572. version_type=linux # correct to gnu/linux during the next big refactor
  13573. need_version=no
  13574. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13575. soname_spec='$libname$release$shared_ext$major'
  13576. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13577. shlibpath_var=LD_LIBRARY_PATH
  13578. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13579. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13580. # the default ld.so.conf also contains /usr/contrib/lib and
  13581. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13582. # libtool to hard-code these into programs
  13583. ;;
  13584. cygwin* | mingw* | pw32* | cegcc*)
  13585. version_type=windows
  13586. shrext_cmds=.dll
  13587. need_version=no
  13588. need_lib_prefix=no
  13589. case $GCC,$cc_basename in
  13590. yes,*)
  13591. # gcc
  13592. library_names_spec='$libname.dll.a'
  13593. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13594. postinstall_cmds='base_file=`basename \$file`~
  13595. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13596. dldir=$destdir/`dirname \$dlpath`~
  13597. test -d \$dldir || mkdir -p \$dldir~
  13598. $install_prog $dir/$dlname \$dldir/$dlname~
  13599. chmod a+x \$dldir/$dlname~
  13600. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13601. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13602. fi'
  13603. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13604. dlpath=$dir/\$dldll~
  13605. $RM \$dlpath'
  13606. shlibpath_overrides_runpath=yes
  13607. case $host_os in
  13608. cygwin*)
  13609. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13610. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13611. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13612. ;;
  13613. mingw* | cegcc*)
  13614. # MinGW DLLs use traditional 'lib' prefix
  13615. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13616. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13617. ;;
  13618. pw32*)
  13619. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13620. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13621. ;;
  13622. esac
  13623. dynamic_linker='Win32 ld.exe'
  13624. ;;
  13625. *,cl*)
  13626. # Native MSVC
  13627. libname_spec='$name'
  13628. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13629. library_names_spec='$libname.dll.lib'
  13630. case $build_os in
  13631. mingw*)
  13632. sys_lib_search_path_spec=
  13633. lt_save_ifs=$IFS
  13634. IFS=';'
  13635. for lt_path in $LIB
  13636. do
  13637. IFS=$lt_save_ifs
  13638. # Let DOS variable expansion print the short 8.3 style file name.
  13639. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13640. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13641. done
  13642. IFS=$lt_save_ifs
  13643. # Convert to MSYS style.
  13644. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13645. ;;
  13646. cygwin*)
  13647. # Convert to unix form, then to dos form, then back to unix form
  13648. # but this time dos style (no spaces!) so that the unix form looks
  13649. # like /cygdrive/c/PROGRA~1:/cygdr...
  13650. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13651. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13652. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13653. ;;
  13654. *)
  13655. sys_lib_search_path_spec=$LIB
  13656. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13657. # It is most probably a Windows format PATH.
  13658. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13659. else
  13660. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13661. fi
  13662. # FIXME: find the short name or the path components, as spaces are
  13663. # common. (e.g. "Program Files" -> "PROGRA~1")
  13664. ;;
  13665. esac
  13666. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13667. postinstall_cmds='base_file=`basename \$file`~
  13668. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13669. dldir=$destdir/`dirname \$dlpath`~
  13670. test -d \$dldir || mkdir -p \$dldir~
  13671. $install_prog $dir/$dlname \$dldir/$dlname'
  13672. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13673. dlpath=$dir/\$dldll~
  13674. $RM \$dlpath'
  13675. shlibpath_overrides_runpath=yes
  13676. dynamic_linker='Win32 link.exe'
  13677. ;;
  13678. *)
  13679. # Assume MSVC wrapper
  13680. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13681. dynamic_linker='Win32 ld.exe'
  13682. ;;
  13683. esac
  13684. # FIXME: first we should search . and the directory the executable is in
  13685. shlibpath_var=PATH
  13686. ;;
  13687. darwin* | rhapsody*)
  13688. dynamic_linker="$host_os dyld"
  13689. version_type=darwin
  13690. need_lib_prefix=no
  13691. need_version=no
  13692. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13693. soname_spec='$libname$release$major$shared_ext'
  13694. shlibpath_overrides_runpath=yes
  13695. shlibpath_var=DYLD_LIBRARY_PATH
  13696. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13697. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13698. ;;
  13699. dgux*)
  13700. version_type=linux # correct to gnu/linux during the next big refactor
  13701. need_lib_prefix=no
  13702. need_version=no
  13703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13704. soname_spec='$libname$release$shared_ext$major'
  13705. shlibpath_var=LD_LIBRARY_PATH
  13706. ;;
  13707. freebsd* | dragonfly* | midnightbsd*)
  13708. # DragonFly does not have aout. When/if they implement a new
  13709. # versioning mechanism, adjust this.
  13710. if test -x /usr/bin/objformat; then
  13711. objformat=`/usr/bin/objformat`
  13712. else
  13713. case $host_os in
  13714. freebsd[23].*) objformat=aout ;;
  13715. *) objformat=elf ;;
  13716. esac
  13717. fi
  13718. version_type=freebsd-$objformat
  13719. case $version_type in
  13720. freebsd-elf*)
  13721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13722. soname_spec='$libname$release$shared_ext$major'
  13723. need_version=no
  13724. need_lib_prefix=no
  13725. ;;
  13726. freebsd-*)
  13727. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13728. need_version=yes
  13729. ;;
  13730. esac
  13731. shlibpath_var=LD_LIBRARY_PATH
  13732. case $host_os in
  13733. freebsd2.*)
  13734. shlibpath_overrides_runpath=yes
  13735. ;;
  13736. freebsd3.[01]* | freebsdelf3.[01]*)
  13737. shlibpath_overrides_runpath=yes
  13738. hardcode_into_libs=yes
  13739. ;;
  13740. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13741. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13742. shlibpath_overrides_runpath=no
  13743. hardcode_into_libs=yes
  13744. ;;
  13745. *) # from 4.6 on, and DragonFly
  13746. shlibpath_overrides_runpath=yes
  13747. hardcode_into_libs=yes
  13748. ;;
  13749. esac
  13750. ;;
  13751. haiku*)
  13752. version_type=linux # correct to gnu/linux during the next big refactor
  13753. need_lib_prefix=no
  13754. need_version=no
  13755. dynamic_linker="$host_os runtime_loader"
  13756. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13757. soname_spec='$libname$release$shared_ext$major'
  13758. shlibpath_var=LIBRARY_PATH
  13759. shlibpath_overrides_runpath=no
  13760. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13761. hardcode_into_libs=yes
  13762. ;;
  13763. hpux9* | hpux10* | hpux11*)
  13764. # Give a soname corresponding to the major version so that dld.sl refuses to
  13765. # link against other versions.
  13766. version_type=sunos
  13767. need_lib_prefix=no
  13768. need_version=no
  13769. case $host_cpu in
  13770. ia64*)
  13771. shrext_cmds='.so'
  13772. hardcode_into_libs=yes
  13773. dynamic_linker="$host_os dld.so"
  13774. shlibpath_var=LD_LIBRARY_PATH
  13775. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13776. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13777. soname_spec='$libname$release$shared_ext$major'
  13778. if test 32 = "$HPUX_IA64_MODE"; then
  13779. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13780. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13781. else
  13782. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13783. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13784. fi
  13785. ;;
  13786. hppa*64*)
  13787. shrext_cmds='.sl'
  13788. hardcode_into_libs=yes
  13789. dynamic_linker="$host_os dld.sl"
  13790. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13791. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13792. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13793. soname_spec='$libname$release$shared_ext$major'
  13794. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13795. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13796. ;;
  13797. *)
  13798. shrext_cmds='.sl'
  13799. dynamic_linker="$host_os dld.sl"
  13800. shlibpath_var=SHLIB_PATH
  13801. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13802. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13803. soname_spec='$libname$release$shared_ext$major'
  13804. ;;
  13805. esac
  13806. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13807. postinstall_cmds='chmod 555 $lib'
  13808. # or fails outright, so override atomically:
  13809. install_override_mode=555
  13810. ;;
  13811. interix[3-9]*)
  13812. version_type=linux # correct to gnu/linux during the next big refactor
  13813. need_lib_prefix=no
  13814. need_version=no
  13815. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13816. soname_spec='$libname$release$shared_ext$major'
  13817. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13818. shlibpath_var=LD_LIBRARY_PATH
  13819. shlibpath_overrides_runpath=no
  13820. hardcode_into_libs=yes
  13821. ;;
  13822. irix5* | irix6* | nonstopux*)
  13823. case $host_os in
  13824. nonstopux*) version_type=nonstopux ;;
  13825. *)
  13826. if test yes = "$lt_cv_prog_gnu_ld"; then
  13827. version_type=linux # correct to gnu/linux during the next big refactor
  13828. else
  13829. version_type=irix
  13830. fi ;;
  13831. esac
  13832. need_lib_prefix=no
  13833. need_version=no
  13834. soname_spec='$libname$release$shared_ext$major'
  13835. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13836. case $host_os in
  13837. irix5* | nonstopux*)
  13838. libsuff= shlibsuff=
  13839. ;;
  13840. *)
  13841. case $LD in # libtool.m4 will add one of these switches to LD
  13842. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13843. libsuff= shlibsuff= libmagic=32-bit;;
  13844. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13845. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13846. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13847. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13848. *) libsuff= shlibsuff= libmagic=never-match;;
  13849. esac
  13850. ;;
  13851. esac
  13852. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13853. shlibpath_overrides_runpath=no
  13854. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13855. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13856. hardcode_into_libs=yes
  13857. ;;
  13858. # No shared lib support for Linux oldld, aout, or coff.
  13859. linux*oldld* | linux*aout* | linux*coff*)
  13860. dynamic_linker=no
  13861. ;;
  13862. linux*android*)
  13863. version_type=none # Android doesn't support versioned libraries.
  13864. need_lib_prefix=no
  13865. need_version=no
  13866. library_names_spec='$libname$release$shared_ext'
  13867. soname_spec='$libname$release$shared_ext'
  13868. finish_cmds=
  13869. shlibpath_var=LD_LIBRARY_PATH
  13870. shlibpath_overrides_runpath=yes
  13871. # This implies no fast_install, which is unacceptable.
  13872. # Some rework will be needed to allow for fast_install
  13873. # before this can be enabled.
  13874. hardcode_into_libs=yes
  13875. dynamic_linker='Android linker'
  13876. # Don't embed -rpath directories since the linker doesn't support them.
  13877. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13878. ;;
  13879. # This must be glibc/ELF.
  13880. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13881. version_type=linux # correct to gnu/linux during the next big refactor
  13882. need_lib_prefix=no
  13883. need_version=no
  13884. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13885. soname_spec='$libname$release$shared_ext$major'
  13886. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13887. shlibpath_var=LD_LIBRARY_PATH
  13888. shlibpath_overrides_runpath=no
  13889. # Some binutils ld are patched to set DT_RUNPATH
  13890. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13891. $as_echo_n "(cached) " >&6
  13892. else
  13893. lt_cv_shlibpath_overrides_runpath=no
  13894. save_LDFLAGS=$LDFLAGS
  13895. save_libdir=$libdir
  13896. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13897. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13899. /* end confdefs.h. */
  13900. int
  13901. main ()
  13902. {
  13903. ;
  13904. return 0;
  13905. }
  13906. _ACEOF
  13907. if ac_fn_cxx_try_link "$LINENO"; then :
  13908. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13909. lt_cv_shlibpath_overrides_runpath=yes
  13910. fi
  13911. fi
  13912. rm -f core conftest.err conftest.$ac_objext \
  13913. conftest$ac_exeext conftest.$ac_ext
  13914. LDFLAGS=$save_LDFLAGS
  13915. libdir=$save_libdir
  13916. fi
  13917. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13918. # This implies no fast_install, which is unacceptable.
  13919. # Some rework will be needed to allow for fast_install
  13920. # before this can be enabled.
  13921. hardcode_into_libs=yes
  13922. # Add ABI-specific directories to the system library path.
  13923. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13924. # Ideally, we could use ldconfig to report *all* directores which are
  13925. # searched for libraries, however this is still not possible. Aside from not
  13926. # being certain /sbin/ldconfig is available, command
  13927. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13928. # even though it is searched at run-time. Try to do the best guess by
  13929. # appending ld.so.conf contents (and includes) to the search path.
  13930. if test -f /etc/ld.so.conf; then
  13931. 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' ' '`
  13932. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13933. fi
  13934. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13935. # powerpc, because MkLinux only supported shared libraries with the
  13936. # GNU dynamic linker. Since this was broken with cross compilers,
  13937. # most powerpc-linux boxes support dynamic linking these days and
  13938. # people can always --disable-shared, the test was removed, and we
  13939. # assume the GNU/Linux dynamic linker is in use.
  13940. dynamic_linker='GNU/Linux ld.so'
  13941. ;;
  13942. netbsd*)
  13943. version_type=sunos
  13944. need_lib_prefix=no
  13945. need_version=no
  13946. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13947. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13948. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13949. dynamic_linker='NetBSD (a.out) ld.so'
  13950. else
  13951. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13952. soname_spec='$libname$release$shared_ext$major'
  13953. dynamic_linker='NetBSD ld.elf_so'
  13954. fi
  13955. shlibpath_var=LD_LIBRARY_PATH
  13956. shlibpath_overrides_runpath=yes
  13957. hardcode_into_libs=yes
  13958. ;;
  13959. newsos6)
  13960. version_type=linux # correct to gnu/linux during the next big refactor
  13961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13962. shlibpath_var=LD_LIBRARY_PATH
  13963. shlibpath_overrides_runpath=yes
  13964. ;;
  13965. *nto* | *qnx*)
  13966. version_type=qnx
  13967. need_lib_prefix=no
  13968. need_version=no
  13969. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13970. soname_spec='$libname$release$shared_ext$major'
  13971. shlibpath_var=LD_LIBRARY_PATH
  13972. shlibpath_overrides_runpath=no
  13973. hardcode_into_libs=yes
  13974. dynamic_linker='ldqnx.so'
  13975. ;;
  13976. openbsd* | bitrig*)
  13977. version_type=sunos
  13978. sys_lib_dlsearch_path_spec=/usr/lib
  13979. need_lib_prefix=no
  13980. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13981. need_version=no
  13982. else
  13983. need_version=yes
  13984. fi
  13985. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13986. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13987. shlibpath_var=LD_LIBRARY_PATH
  13988. shlibpath_overrides_runpath=yes
  13989. ;;
  13990. os2*)
  13991. libname_spec='$name'
  13992. shrext_cmds=.dll
  13993. need_lib_prefix=no
  13994. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13995. # SDL customization: removed versioning support.
  13996. # version_type=windows
  13997. # need_version=no
  13998. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13999. # v=$($ECHO $release$versuffix | tr -d .-);
  14000. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14001. # $ECHO $n$v`$shared_ext'
  14002. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  14003. library_names_spec='${libname}_dll.$libext'
  14004. dynamic_linker='OS/2 ld.exe'
  14005. shlibpath_var=BEGINLIBPATH
  14006. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14007. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14008. postinstall_cmds='base_file=`basename \$file`~
  14009. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14010. dldir=$destdir/`dirname \$dlpath`~
  14011. test -d \$dldir || mkdir -p \$dldir~
  14012. $install_prog $dir/$dlname \$dldir/$dlname~
  14013. chmod a+x \$dldir/$dlname~
  14014. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14015. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14016. fi'
  14017. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14018. dlpath=$dir/\$dldll~
  14019. $RM \$dlpath'
  14020. ;;
  14021. osf3* | osf4* | osf5*)
  14022. version_type=osf
  14023. need_lib_prefix=no
  14024. need_version=no
  14025. soname_spec='$libname$release$shared_ext$major'
  14026. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14027. shlibpath_var=LD_LIBRARY_PATH
  14028. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14029. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14030. ;;
  14031. rdos*)
  14032. dynamic_linker=no
  14033. ;;
  14034. solaris*)
  14035. version_type=linux # correct to gnu/linux during the next big refactor
  14036. need_lib_prefix=no
  14037. need_version=no
  14038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14039. soname_spec='$libname$release$shared_ext$major'
  14040. shlibpath_var=LD_LIBRARY_PATH
  14041. shlibpath_overrides_runpath=yes
  14042. hardcode_into_libs=yes
  14043. # ldd complains unless libraries are executable
  14044. postinstall_cmds='chmod +x $lib'
  14045. ;;
  14046. sunos4*)
  14047. version_type=sunos
  14048. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14049. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14050. shlibpath_var=LD_LIBRARY_PATH
  14051. shlibpath_overrides_runpath=yes
  14052. if test yes = "$with_gnu_ld"; then
  14053. need_lib_prefix=no
  14054. fi
  14055. need_version=yes
  14056. ;;
  14057. sysv4 | sysv4.3*)
  14058. version_type=linux # correct to gnu/linux during the next big refactor
  14059. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14060. soname_spec='$libname$release$shared_ext$major'
  14061. shlibpath_var=LD_LIBRARY_PATH
  14062. case $host_vendor in
  14063. sni)
  14064. shlibpath_overrides_runpath=no
  14065. need_lib_prefix=no
  14066. runpath_var=LD_RUN_PATH
  14067. ;;
  14068. siemens)
  14069. need_lib_prefix=no
  14070. ;;
  14071. motorola)
  14072. need_lib_prefix=no
  14073. need_version=no
  14074. shlibpath_overrides_runpath=no
  14075. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14076. ;;
  14077. esac
  14078. ;;
  14079. sysv4*MP*)
  14080. if test -d /usr/nec; then
  14081. version_type=linux # correct to gnu/linux during the next big refactor
  14082. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14083. soname_spec='$libname$shared_ext.$major'
  14084. shlibpath_var=LD_LIBRARY_PATH
  14085. fi
  14086. ;;
  14087. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14088. version_type=sco
  14089. need_lib_prefix=no
  14090. need_version=no
  14091. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14092. soname_spec='$libname$release$shared_ext$major'
  14093. shlibpath_var=LD_LIBRARY_PATH
  14094. shlibpath_overrides_runpath=yes
  14095. hardcode_into_libs=yes
  14096. if test yes = "$with_gnu_ld"; then
  14097. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14098. else
  14099. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14100. case $host_os in
  14101. sco3.2v5*)
  14102. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14103. ;;
  14104. esac
  14105. fi
  14106. sys_lib_dlsearch_path_spec='/usr/lib'
  14107. ;;
  14108. tpf*)
  14109. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14110. version_type=linux # correct to gnu/linux during the next big refactor
  14111. need_lib_prefix=no
  14112. need_version=no
  14113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14114. shlibpath_var=LD_LIBRARY_PATH
  14115. shlibpath_overrides_runpath=no
  14116. hardcode_into_libs=yes
  14117. ;;
  14118. uts4*)
  14119. version_type=linux # correct to gnu/linux during the next big refactor
  14120. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14121. soname_spec='$libname$release$shared_ext$major'
  14122. shlibpath_var=LD_LIBRARY_PATH
  14123. ;;
  14124. *)
  14125. dynamic_linker=no
  14126. ;;
  14127. esac
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14129. $as_echo "$dynamic_linker" >&6; }
  14130. test no = "$dynamic_linker" && can_build_shared=no
  14131. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14132. if test yes = "$GCC"; then
  14133. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14134. fi
  14135. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14136. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14137. fi
  14138. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14139. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14140. fi
  14141. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14142. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14143. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14144. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14145. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14146. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14148. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14149. hardcode_action_CXX=
  14150. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14151. test -n "$runpath_var_CXX" ||
  14152. test yes = "$hardcode_automatic_CXX"; then
  14153. # We can hardcode non-existent directories.
  14154. if test no != "$hardcode_direct_CXX" &&
  14155. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14156. # have to relink, otherwise we might link with an installed library
  14157. # when we should be linking with a yet-to-be-installed one
  14158. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14159. test no != "$hardcode_minus_L_CXX"; then
  14160. # Linking always hardcodes the temporary library directory.
  14161. hardcode_action_CXX=relink
  14162. else
  14163. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14164. hardcode_action_CXX=immediate
  14165. fi
  14166. else
  14167. # We cannot hardcode anything, or else we can only hardcode existing
  14168. # directories.
  14169. hardcode_action_CXX=unsupported
  14170. fi
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14172. $as_echo "$hardcode_action_CXX" >&6; }
  14173. if test relink = "$hardcode_action_CXX" ||
  14174. test yes = "$inherit_rpath_CXX"; then
  14175. # Fast installation is not supported
  14176. enable_fast_install=no
  14177. elif test yes = "$shlibpath_overrides_runpath" ||
  14178. test no = "$enable_shared"; then
  14179. # Fast installation is not necessary
  14180. enable_fast_install=needless
  14181. fi
  14182. fi # test -n "$compiler"
  14183. CC=$lt_save_CC
  14184. CFLAGS=$lt_save_CFLAGS
  14185. LDCXX=$LD
  14186. LD=$lt_save_LD
  14187. GCC=$lt_save_GCC
  14188. with_gnu_ld=$lt_save_with_gnu_ld
  14189. lt_cv_path_LDCXX=$lt_cv_path_LD
  14190. lt_cv_path_LD=$lt_save_path_LD
  14191. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14192. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14193. fi # test yes != "$_lt_caught_CXX_error"
  14194. ac_ext=c
  14195. ac_cpp='$CPP $CPPFLAGS'
  14196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14199. # Check whether --enable-largefile was given.
  14200. if test "${enable_largefile+set}" = set; then :
  14201. enableval=$enable_largefile;
  14202. fi
  14203. if test "$enable_largefile" != no; then
  14204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  14205. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  14206. if ${ac_cv_sys_largefile_CC+:} false; then :
  14207. $as_echo_n "(cached) " >&6
  14208. else
  14209. ac_cv_sys_largefile_CC=no
  14210. if test "$GCC" != yes; then
  14211. ac_save_CC=$CC
  14212. while :; do
  14213. # IRIX 6.2 and later do not support large files by default,
  14214. # so use the C compiler's -n32 option if that helps.
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. #include <sys/types.h>
  14218. /* Check that off_t can represent 2**63 - 1 correctly.
  14219. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14220. since some C++ compilers masquerading as C compilers
  14221. incorrectly reject 9223372036854775807. */
  14222. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14223. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14224. && LARGE_OFF_T % 2147483647 == 1)
  14225. ? 1 : -1];
  14226. int
  14227. main ()
  14228. {
  14229. ;
  14230. return 0;
  14231. }
  14232. _ACEOF
  14233. if ac_fn_c_try_compile "$LINENO"; then :
  14234. break
  14235. fi
  14236. rm -f core conftest.err conftest.$ac_objext
  14237. CC="$CC -n32"
  14238. if ac_fn_c_try_compile "$LINENO"; then :
  14239. ac_cv_sys_largefile_CC=' -n32'; break
  14240. fi
  14241. rm -f core conftest.err conftest.$ac_objext
  14242. break
  14243. done
  14244. CC=$ac_save_CC
  14245. rm -f conftest.$ac_ext
  14246. fi
  14247. fi
  14248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  14249. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  14250. if test "$ac_cv_sys_largefile_CC" != no; then
  14251. CC=$CC$ac_cv_sys_largefile_CC
  14252. fi
  14253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  14254. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  14255. if ${ac_cv_sys_file_offset_bits+:} false; then :
  14256. $as_echo_n "(cached) " >&6
  14257. else
  14258. while :; do
  14259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14260. /* end confdefs.h. */
  14261. #include <sys/types.h>
  14262. /* Check that off_t can represent 2**63 - 1 correctly.
  14263. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14264. since some C++ compilers masquerading as C compilers
  14265. incorrectly reject 9223372036854775807. */
  14266. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14267. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14268. && LARGE_OFF_T % 2147483647 == 1)
  14269. ? 1 : -1];
  14270. int
  14271. main ()
  14272. {
  14273. ;
  14274. return 0;
  14275. }
  14276. _ACEOF
  14277. if ac_fn_c_try_compile "$LINENO"; then :
  14278. ac_cv_sys_file_offset_bits=no; break
  14279. fi
  14280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. #define _FILE_OFFSET_BITS 64
  14284. #include <sys/types.h>
  14285. /* Check that off_t can represent 2**63 - 1 correctly.
  14286. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14287. since some C++ compilers masquerading as C compilers
  14288. incorrectly reject 9223372036854775807. */
  14289. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14290. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14291. && LARGE_OFF_T % 2147483647 == 1)
  14292. ? 1 : -1];
  14293. int
  14294. main ()
  14295. {
  14296. ;
  14297. return 0;
  14298. }
  14299. _ACEOF
  14300. if ac_fn_c_try_compile "$LINENO"; then :
  14301. ac_cv_sys_file_offset_bits=64; break
  14302. fi
  14303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14304. ac_cv_sys_file_offset_bits=unknown
  14305. break
  14306. done
  14307. fi
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  14309. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  14310. case $ac_cv_sys_file_offset_bits in #(
  14311. no | unknown) ;;
  14312. *)
  14313. cat >>confdefs.h <<_ACEOF
  14314. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  14315. _ACEOF
  14316. ;;
  14317. esac
  14318. rm -rf conftest*
  14319. if test $ac_cv_sys_file_offset_bits = unknown; then
  14320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  14321. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  14322. if ${ac_cv_sys_large_files+:} false; then :
  14323. $as_echo_n "(cached) " >&6
  14324. else
  14325. while :; do
  14326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14327. /* end confdefs.h. */
  14328. #include <sys/types.h>
  14329. /* Check that off_t can represent 2**63 - 1 correctly.
  14330. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14331. since some C++ compilers masquerading as C compilers
  14332. incorrectly reject 9223372036854775807. */
  14333. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14334. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14335. && LARGE_OFF_T % 2147483647 == 1)
  14336. ? 1 : -1];
  14337. int
  14338. main ()
  14339. {
  14340. ;
  14341. return 0;
  14342. }
  14343. _ACEOF
  14344. if ac_fn_c_try_compile "$LINENO"; then :
  14345. ac_cv_sys_large_files=no; break
  14346. fi
  14347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14349. /* end confdefs.h. */
  14350. #define _LARGE_FILES 1
  14351. #include <sys/types.h>
  14352. /* Check that off_t can represent 2**63 - 1 correctly.
  14353. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14354. since some C++ compilers masquerading as C compilers
  14355. incorrectly reject 9223372036854775807. */
  14356. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14357. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14358. && LARGE_OFF_T % 2147483647 == 1)
  14359. ? 1 : -1];
  14360. int
  14361. main ()
  14362. {
  14363. ;
  14364. return 0;
  14365. }
  14366. _ACEOF
  14367. if ac_fn_c_try_compile "$LINENO"; then :
  14368. ac_cv_sys_large_files=1; break
  14369. fi
  14370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14371. ac_cv_sys_large_files=unknown
  14372. break
  14373. done
  14374. fi
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  14376. $as_echo "$ac_cv_sys_large_files" >&6; }
  14377. case $ac_cv_sys_large_files in #(
  14378. no | unknown) ;;
  14379. *)
  14380. cat >>confdefs.h <<_ACEOF
  14381. #define _LARGE_FILES $ac_cv_sys_large_files
  14382. _ACEOF
  14383. ;;
  14384. esac
  14385. rm -rf conftest*
  14386. fi
  14387. fi
  14388. # Find a good install program. We prefer a C program (faster),
  14389. # so one script is as good as another. But avoid the broken or
  14390. # incompatible versions:
  14391. # SysV /etc/install, /usr/sbin/install
  14392. # SunOS /usr/etc/install
  14393. # IRIX /sbin/install
  14394. # AIX /bin/install
  14395. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14396. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14397. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14398. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14399. # OS/2's system install, which has a completely different semantic
  14400. # ./install, which can be erroneously created by make from ./install.sh.
  14401. # Reject install programs that cannot install multiple files.
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14403. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14404. if test -z "$INSTALL"; then
  14405. if ${ac_cv_path_install+:} false; then :
  14406. $as_echo_n "(cached) " >&6
  14407. else
  14408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14409. for as_dir in $PATH
  14410. do
  14411. IFS=$as_save_IFS
  14412. test -z "$as_dir" && as_dir=.
  14413. # Account for people who put trailing slashes in PATH elements.
  14414. case $as_dir/ in #((
  14415. ./ | .// | /[cC]/* | \
  14416. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14417. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14418. /usr/ucb/* ) ;;
  14419. *)
  14420. # OSF1 and SCO ODT 3.0 have their own names for install.
  14421. # Don't use installbsd from OSF since it installs stuff as root
  14422. # by default.
  14423. for ac_prog in ginstall scoinst install; do
  14424. for ac_exec_ext in '' $ac_executable_extensions; do
  14425. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14426. if test $ac_prog = install &&
  14427. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14428. # AIX install. It has an incompatible calling convention.
  14429. :
  14430. elif test $ac_prog = install &&
  14431. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14432. # program-specific install script used by HP pwplus--don't use.
  14433. :
  14434. else
  14435. rm -rf conftest.one conftest.two conftest.dir
  14436. echo one > conftest.one
  14437. echo two > conftest.two
  14438. mkdir conftest.dir
  14439. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14440. test -s conftest.one && test -s conftest.two &&
  14441. test -s conftest.dir/conftest.one &&
  14442. test -s conftest.dir/conftest.two
  14443. then
  14444. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14445. break 3
  14446. fi
  14447. fi
  14448. fi
  14449. done
  14450. done
  14451. ;;
  14452. esac
  14453. done
  14454. IFS=$as_save_IFS
  14455. rm -rf conftest.one conftest.two conftest.dir
  14456. fi
  14457. if test "${ac_cv_path_install+set}" = set; then
  14458. INSTALL=$ac_cv_path_install
  14459. else
  14460. # As a last resort, use the slow shell script. Don't cache a
  14461. # value for INSTALL within a source directory, because that will
  14462. # break other packages using the cache if that directory is
  14463. # removed, or if the value is a relative name.
  14464. INSTALL=$ac_install_sh
  14465. fi
  14466. fi
  14467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14468. $as_echo "$INSTALL" >&6; }
  14469. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14470. # It thinks the first close brace ends the variable substitution.
  14471. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14472. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14473. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14475. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14476. set x ${MAKE-make}
  14477. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14478. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14479. $as_echo_n "(cached) " >&6
  14480. else
  14481. cat >conftest.make <<\_ACEOF
  14482. SHELL = /bin/sh
  14483. all:
  14484. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14485. _ACEOF
  14486. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14487. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14488. *@@@%%%=?*=@@@%%%*)
  14489. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14490. *)
  14491. eval ac_cv_prog_make_${ac_make}_set=no;;
  14492. esac
  14493. rm -f conftest.make
  14494. fi
  14495. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14497. $as_echo "yes" >&6; }
  14498. SET_MAKE=
  14499. else
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14501. $as_echo "no" >&6; }
  14502. SET_MAKE="MAKE=${MAKE-make}"
  14503. fi
  14504. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14505. if test -n "$ac_tool_prefix"; then
  14506. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14507. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14509. $as_echo_n "checking for $ac_word... " >&6; }
  14510. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14511. $as_echo_n "(cached) " >&6
  14512. else
  14513. case $PKG_CONFIG in
  14514. [\\/]* | ?:[\\/]*)
  14515. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14516. ;;
  14517. *)
  14518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14519. for as_dir in $PATH
  14520. do
  14521. IFS=$as_save_IFS
  14522. test -z "$as_dir" && as_dir=.
  14523. for ac_exec_ext in '' $ac_executable_extensions; do
  14524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14525. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14527. break 2
  14528. fi
  14529. done
  14530. done
  14531. IFS=$as_save_IFS
  14532. ;;
  14533. esac
  14534. fi
  14535. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14536. if test -n "$PKG_CONFIG"; then
  14537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14538. $as_echo "$PKG_CONFIG" >&6; }
  14539. else
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14541. $as_echo "no" >&6; }
  14542. fi
  14543. fi
  14544. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14545. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14546. # Extract the first word of "pkg-config", so it can be a program name with args.
  14547. set dummy pkg-config; ac_word=$2
  14548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14549. $as_echo_n "checking for $ac_word... " >&6; }
  14550. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14551. $as_echo_n "(cached) " >&6
  14552. else
  14553. case $ac_pt_PKG_CONFIG in
  14554. [\\/]* | ?:[\\/]*)
  14555. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14556. ;;
  14557. *)
  14558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14559. for as_dir in $PATH
  14560. do
  14561. IFS=$as_save_IFS
  14562. test -z "$as_dir" && as_dir=.
  14563. for ac_exec_ext in '' $ac_executable_extensions; do
  14564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14565. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14567. break 2
  14568. fi
  14569. done
  14570. done
  14571. IFS=$as_save_IFS
  14572. ;;
  14573. esac
  14574. fi
  14575. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14576. if test -n "$ac_pt_PKG_CONFIG"; then
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14578. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14579. else
  14580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14581. $as_echo "no" >&6; }
  14582. fi
  14583. if test "x$ac_pt_PKG_CONFIG" = x; then
  14584. PKG_CONFIG=""
  14585. else
  14586. case $cross_compiling:$ac_tool_warned in
  14587. yes:)
  14588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14590. ac_tool_warned=yes ;;
  14591. esac
  14592. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14593. fi
  14594. else
  14595. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14596. fi
  14597. fi
  14598. if test -n "$PKG_CONFIG"; then
  14599. _pkg_min_version=0.9.0
  14600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14601. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14602. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14604. $as_echo "yes" >&6; }
  14605. else
  14606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14607. $as_echo "no" >&6; }
  14608. PKG_CONFIG=""
  14609. fi
  14610. fi
  14611. case "$host" in
  14612. *-*-mingw*)
  14613. # Except on msys, where make can't handle full pathnames (bug 1972)
  14614. ;;
  14615. *)
  14616. srcdir=`cd $srcdir && pwd`
  14617. ;;
  14618. esac
  14619. INCLUDE="-I$srcdir/include"
  14620. case "$host" in
  14621. *-*-nto-qnx*)
  14622. ;;
  14623. *)
  14624. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14625. ;;
  14626. esac
  14627. case "$host" in
  14628. *-*-haiku*)
  14629. LINKER='$(CXX)'
  14630. LIBTOOLLINKERTAG='CXX'
  14631. ;;
  14632. *)
  14633. LINKER='$(CC)'
  14634. LIBTOOLLINKERTAG='CC'
  14635. ;;
  14636. esac
  14637. if test x$srcdir != x.; then
  14638. INCLUDE="-Iinclude $INCLUDE"
  14639. elif test -d .git; then
  14640. as_fn_error $? "
  14641. *** When building from a git clone you should configure and build in a
  14642. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14643. " "$LINENO" 5
  14644. fi
  14645. BASE_CFLAGS=""
  14646. BASE_LDFLAGS=""
  14647. case "$host" in
  14648. *-*-cygwin*)
  14649. # We build SDL on cygwin without the UNIX emulation layer
  14650. save_CFLAGS="$CFLAGS"
  14651. have_no_cygwin=no
  14652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14653. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14654. CFLAGS="$save_CFLAGS -mno-cygwin"
  14655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14656. /* end confdefs.h. */
  14657. int
  14658. main ()
  14659. {
  14660. ;
  14661. return 0;
  14662. }
  14663. _ACEOF
  14664. if ac_fn_c_try_compile "$LINENO"; then :
  14665. have_no_cygwin=yes
  14666. fi
  14667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14669. $as_echo "$have_no_cygwin" >&6; }
  14670. CFLAGS="$save_CFLAGS"
  14671. if test x$have_no_cygwin = xyes; then
  14672. BASE_CFLAGS="-mno-cygwin"
  14673. BASE_LDFLAGS="-mno-cygwin"
  14674. fi
  14675. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14676. ;;
  14677. esac
  14678. # Uncomment the following line if you want to force SDL and applications
  14679. # built with it to be compiled for a particular architecture.
  14680. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14681. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14682. # The default optimization for SDL is -O3 (Bug #31)
  14683. if test "x$orig_CFLAGS" = x; then
  14684. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14685. fi
  14686. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14687. BUILD_LDFLAGS="$LDFLAGS"
  14688. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14689. ## These are common directories to find software packages
  14690. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14691. # if test -d $path/include; then
  14692. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14693. # fi
  14694. # if test -d $path/lib; then
  14695. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14696. # fi
  14697. #done
  14698. SDL_CFLAGS="$BASE_CFLAGS"
  14699. SDL_LIBS="-lSDL2"
  14700. if test "x$BASE_LDFLAGS" != x; then
  14701. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14702. fi
  14703. if test "x$EXTRA_CFLAGS" != x; then
  14704. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14705. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14706. fi
  14707. if test "x$EXTRA_LDFLAGS" != x; then
  14708. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14709. fi
  14710. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14711. find_lib()
  14712. {
  14713. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14714. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14715. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14716. if test "$cross_compiling" = yes; then
  14717. host_lib_path=""
  14718. else
  14719. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14720. fi
  14721. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14722. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14723. if test x$lib != x; then
  14724. echo $lib
  14725. return
  14726. fi
  14727. done
  14728. # Try again, this time allowing more than one version digit after the .so
  14729. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14730. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14731. if test x$lib != x; then
  14732. echo $lib
  14733. return
  14734. fi
  14735. done
  14736. }
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14738. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14739. if ${ac_cv_c_const+:} false; then :
  14740. $as_echo_n "(cached) " >&6
  14741. else
  14742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14743. /* end confdefs.h. */
  14744. int
  14745. main ()
  14746. {
  14747. #ifndef __cplusplus
  14748. /* Ultrix mips cc rejects this sort of thing. */
  14749. typedef int charset[2];
  14750. const charset cs = { 0, 0 };
  14751. /* SunOS 4.1.1 cc rejects this. */
  14752. char const *const *pcpcc;
  14753. char **ppc;
  14754. /* NEC SVR4.0.2 mips cc rejects this. */
  14755. struct point {int x, y;};
  14756. static struct point const zero = {0,0};
  14757. /* AIX XL C 1.02.0.0 rejects this.
  14758. It does not let you subtract one const X* pointer from another in
  14759. an arm of an if-expression whose if-part is not a constant
  14760. expression */
  14761. const char *g = "string";
  14762. pcpcc = &g + (g ? g-g : 0);
  14763. /* HPUX 7.0 cc rejects these. */
  14764. ++pcpcc;
  14765. ppc = (char**) pcpcc;
  14766. pcpcc = (char const *const *) ppc;
  14767. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14768. char tx;
  14769. char *t = &tx;
  14770. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14771. *t++ = 0;
  14772. if (s) return 0;
  14773. }
  14774. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14775. int x[] = {25, 17};
  14776. const int *foo = &x[0];
  14777. ++foo;
  14778. }
  14779. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14780. typedef const int *iptr;
  14781. iptr p = 0;
  14782. ++p;
  14783. }
  14784. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14785. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14786. struct s { int j; const int *ap[3]; } bx;
  14787. struct s *b = &bx; b->j = 5;
  14788. }
  14789. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14790. const int foo = 10;
  14791. if (!foo) return 0;
  14792. }
  14793. return !cs[0] && !zero.x;
  14794. #endif
  14795. ;
  14796. return 0;
  14797. }
  14798. _ACEOF
  14799. if ac_fn_c_try_compile "$LINENO"; then :
  14800. ac_cv_c_const=yes
  14801. else
  14802. ac_cv_c_const=no
  14803. fi
  14804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14805. fi
  14806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14807. $as_echo "$ac_cv_c_const" >&6; }
  14808. if test $ac_cv_c_const = no; then
  14809. $as_echo "#define const /**/" >>confdefs.h
  14810. fi
  14811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14812. $as_echo_n "checking for inline... " >&6; }
  14813. if ${ac_cv_c_inline+:} false; then :
  14814. $as_echo_n "(cached) " >&6
  14815. else
  14816. ac_cv_c_inline=no
  14817. for ac_kw in inline __inline__ __inline; do
  14818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14819. /* end confdefs.h. */
  14820. #ifndef __cplusplus
  14821. typedef int foo_t;
  14822. static $ac_kw foo_t static_foo () {return 0; }
  14823. $ac_kw foo_t foo () {return 0; }
  14824. #endif
  14825. _ACEOF
  14826. if ac_fn_c_try_compile "$LINENO"; then :
  14827. ac_cv_c_inline=$ac_kw
  14828. fi
  14829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14830. test "$ac_cv_c_inline" != no && break
  14831. done
  14832. fi
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14834. $as_echo "$ac_cv_c_inline" >&6; }
  14835. case $ac_cv_c_inline in
  14836. inline | yes) ;;
  14837. *)
  14838. case $ac_cv_c_inline in
  14839. no) ac_val=;;
  14840. *) ac_val=$ac_cv_c_inline;;
  14841. esac
  14842. cat >>confdefs.h <<_ACEOF
  14843. #ifndef __cplusplus
  14844. #define inline $ac_val
  14845. #endif
  14846. _ACEOF
  14847. ;;
  14848. esac
  14849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14850. $as_echo_n "checking for working volatile... " >&6; }
  14851. if ${ac_cv_c_volatile+:} false; then :
  14852. $as_echo_n "(cached) " >&6
  14853. else
  14854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14855. /* end confdefs.h. */
  14856. int
  14857. main ()
  14858. {
  14859. volatile int x;
  14860. int * volatile y = (int *) 0;
  14861. return !x && !y;
  14862. ;
  14863. return 0;
  14864. }
  14865. _ACEOF
  14866. if ac_fn_c_try_compile "$LINENO"; then :
  14867. ac_cv_c_volatile=yes
  14868. else
  14869. ac_cv_c_volatile=no
  14870. fi
  14871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14872. fi
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14874. $as_echo "$ac_cv_c_volatile" >&6; }
  14875. if test $ac_cv_c_volatile = no; then
  14876. $as_echo "#define volatile /**/" >>confdefs.h
  14877. fi
  14878. # Check whether --enable-assertions was given.
  14879. if test "${enable_assertions+set}" = set; then :
  14880. enableval=$enable_assertions;
  14881. else
  14882. enable_assertions=auto
  14883. fi
  14884. case "$enable_assertions" in
  14885. auto) # Use optimization settings to determine assertion level
  14886. ;;
  14887. disabled)
  14888. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14889. ;;
  14890. release)
  14891. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14892. ;;
  14893. enabled)
  14894. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14895. ;;
  14896. paranoid)
  14897. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14898. ;;
  14899. *)
  14900. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14901. ;;
  14902. esac
  14903. cat >>confdefs.h <<_ACEOF
  14904. #define SDL_BUILD_MAJOR_VERSION $SDL_MAJOR_VERSION
  14905. _ACEOF
  14906. cat >>confdefs.h <<_ACEOF
  14907. #define SDL_BUILD_MINOR_VERSION $SDL_MINOR_VERSION
  14908. _ACEOF
  14909. cat >>confdefs.h <<_ACEOF
  14910. #define SDL_BUILD_MICRO_VERSION $SDL_MICRO_VERSION
  14911. _ACEOF
  14912. # Check whether --enable-dependency-tracking was given.
  14913. if test "${enable_dependency_tracking+set}" = set; then :
  14914. enableval=$enable_dependency_tracking;
  14915. else
  14916. enable_dependency_tracking=yes
  14917. fi
  14918. if test x$enable_dependency_tracking = xyes; then
  14919. have_gcc_mmd_mt=no
  14920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14921. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14923. /* end confdefs.h. */
  14924. #if !defined(__GNUC__) || __GNUC__ < 3
  14925. #error Dependency tracking requires GCC 3.0 or newer
  14926. #endif
  14927. int
  14928. main ()
  14929. {
  14930. ;
  14931. return 0;
  14932. }
  14933. _ACEOF
  14934. if ac_fn_c_try_compile "$LINENO"; then :
  14935. have_gcc_mmd_mt=yes
  14936. fi
  14937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14939. $as_echo "$have_gcc_mmd_mt" >&6; }
  14940. if test x$have_gcc_mmd_mt = xyes; then
  14941. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14942. fi
  14943. fi
  14944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14945. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14946. have_no_undefined=no
  14947. case "$host" in
  14948. *-*-openbsd*)
  14949. ;;
  14950. *)
  14951. save_LDFLAGS="$LDFLAGS"
  14952. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14954. /* end confdefs.h. */
  14955. int
  14956. main ()
  14957. {
  14958. ;
  14959. return 0;
  14960. }
  14961. _ACEOF
  14962. if ac_fn_c_try_link "$LINENO"; then :
  14963. have_no_undefined=yes
  14964. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14965. fi
  14966. rm -f core conftest.err conftest.$ac_objext \
  14967. conftest$ac_exeext conftest.$ac_ext
  14968. LDFLAGS="$save_LDFLAGS"
  14969. ;;
  14970. esac
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14972. $as_echo "$have_no_undefined" >&6; }
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14974. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14975. have_dynamicbase=no
  14976. case "$host" in
  14977. *)
  14978. save_LDFLAGS="$LDFLAGS"
  14979. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14981. /* end confdefs.h. */
  14982. int
  14983. main ()
  14984. {
  14985. ;
  14986. return 0;
  14987. }
  14988. _ACEOF
  14989. if ac_fn_c_try_link "$LINENO"; then :
  14990. have_dynamicbase=yes
  14991. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14992. fi
  14993. rm -f core conftest.err conftest.$ac_objext \
  14994. conftest$ac_exeext conftest.$ac_ext
  14995. LDFLAGS="$save_LDFLAGS"
  14996. ;;
  14997. esac
  14998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14999. $as_echo "$have_dynamicbase" >&6; }
  15000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  15001. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  15002. have_nxcompat=no
  15003. case "$host" in
  15004. *)
  15005. save_LDFLAGS="$LDFLAGS"
  15006. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  15007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15008. /* end confdefs.h. */
  15009. int
  15010. main ()
  15011. {
  15012. ;
  15013. return 0;
  15014. }
  15015. _ACEOF
  15016. if ac_fn_c_try_link "$LINENO"; then :
  15017. have_nxcompat=yes
  15018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  15019. fi
  15020. rm -f core conftest.err conftest.$ac_objext \
  15021. conftest$ac_exeext conftest.$ac_ext
  15022. LDFLAGS="$save_LDFLAGS"
  15023. ;;
  15024. esac
  15025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  15026. $as_echo "$have_nxcompat" >&6; }
  15027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  15028. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  15029. have_high_entropy_va=no
  15030. case "$host" in
  15031. *)
  15032. save_LDFLAGS="$LDFLAGS"
  15033. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  15034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15035. /* end confdefs.h. */
  15036. int
  15037. main ()
  15038. {
  15039. ;
  15040. return 0;
  15041. }
  15042. _ACEOF
  15043. if ac_fn_c_try_link "$LINENO"; then :
  15044. have_high_entropy_va=yes
  15045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  15046. fi
  15047. rm -f core conftest.err conftest.$ac_objext \
  15048. conftest$ac_exeext conftest.$ac_ext
  15049. LDFLAGS="$save_LDFLAGS"
  15050. ;;
  15051. esac
  15052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  15053. $as_echo "$have_high_entropy_va" >&6; }
  15054. # Check whether --enable-libc was given.
  15055. if test "${enable_libc+set}" = set; then :
  15056. enableval=$enable_libc;
  15057. else
  15058. enable_libc=yes
  15059. fi
  15060. if test x$enable_libc = xyes; then
  15061. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15063. $as_echo_n "checking for ANSI C header files... " >&6; }
  15064. if ${ac_cv_header_stdc+:} false; then :
  15065. $as_echo_n "(cached) " >&6
  15066. else
  15067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15068. /* end confdefs.h. */
  15069. #include <stdlib.h>
  15070. #include <stdarg.h>
  15071. #include <string.h>
  15072. #include <float.h>
  15073. int
  15074. main ()
  15075. {
  15076. ;
  15077. return 0;
  15078. }
  15079. _ACEOF
  15080. if ac_fn_c_try_compile "$LINENO"; then :
  15081. ac_cv_header_stdc=yes
  15082. else
  15083. ac_cv_header_stdc=no
  15084. fi
  15085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15086. if test $ac_cv_header_stdc = yes; then
  15087. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15089. /* end confdefs.h. */
  15090. #include <string.h>
  15091. _ACEOF
  15092. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15093. $EGREP "memchr" >/dev/null 2>&1; then :
  15094. else
  15095. ac_cv_header_stdc=no
  15096. fi
  15097. rm -f conftest*
  15098. fi
  15099. if test $ac_cv_header_stdc = yes; then
  15100. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15102. /* end confdefs.h. */
  15103. #include <stdlib.h>
  15104. _ACEOF
  15105. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15106. $EGREP "free" >/dev/null 2>&1; then :
  15107. else
  15108. ac_cv_header_stdc=no
  15109. fi
  15110. rm -f conftest*
  15111. fi
  15112. if test $ac_cv_header_stdc = yes; then
  15113. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15114. if test "$cross_compiling" = yes; then :
  15115. :
  15116. else
  15117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15118. /* end confdefs.h. */
  15119. #include <ctype.h>
  15120. #include <stdlib.h>
  15121. #if ((' ' & 0x0FF) == 0x020)
  15122. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15123. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15124. #else
  15125. # define ISLOWER(c) \
  15126. (('a' <= (c) && (c) <= 'i') \
  15127. || ('j' <= (c) && (c) <= 'r') \
  15128. || ('s' <= (c) && (c) <= 'z'))
  15129. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15130. #endif
  15131. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15132. int
  15133. main ()
  15134. {
  15135. int i;
  15136. for (i = 0; i < 256; i++)
  15137. if (XOR (islower (i), ISLOWER (i))
  15138. || toupper (i) != TOUPPER (i))
  15139. return 2;
  15140. return 0;
  15141. }
  15142. _ACEOF
  15143. if ac_fn_c_try_run "$LINENO"; then :
  15144. else
  15145. ac_cv_header_stdc=no
  15146. fi
  15147. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15148. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15149. fi
  15150. fi
  15151. fi
  15152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15153. $as_echo "$ac_cv_header_stdc" >&6; }
  15154. if test $ac_cv_header_stdc = yes; then
  15155. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15156. fi
  15157. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  15158. do :
  15159. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15160. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15161. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15162. cat >>confdefs.h <<_ACEOF
  15163. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15164. _ACEOF
  15165. fi
  15166. done
  15167. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  15168. if test "x$ac_cv_type_size_t" = xyes; then :
  15169. else
  15170. cat >>confdefs.h <<_ACEOF
  15171. #define size_t unsigned int
  15172. _ACEOF
  15173. fi
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  15175. $as_echo_n "checking for M_PI in math.h... " >&6; }
  15176. if ${ac_cv_define_M_PI+:} false; then :
  15177. $as_echo_n "(cached) " >&6
  15178. else
  15179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15180. /* end confdefs.h. */
  15181. #include <math.h>
  15182. #ifdef M_PI
  15183. YES_IS_DEFINED
  15184. #endif
  15185. _ACEOF
  15186. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15187. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  15188. ac_cv_define_M_PI=yes
  15189. else
  15190. ac_cv_define_M_PI=no
  15191. fi
  15192. rm -f conftest*
  15193. fi
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  15195. $as_echo "$ac_cv_define_M_PI" >&6; }
  15196. if test "$ac_cv_define_M_PI" = "yes" ; then
  15197. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  15198. fi
  15199. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  15200. # for constant arguments. Useless!
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  15202. $as_echo_n "checking for working alloca.h... " >&6; }
  15203. if ${ac_cv_working_alloca_h+:} false; then :
  15204. $as_echo_n "(cached) " >&6
  15205. else
  15206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15207. /* end confdefs.h. */
  15208. #include <alloca.h>
  15209. int
  15210. main ()
  15211. {
  15212. char *p = (char *) alloca (2 * sizeof (int));
  15213. if (p) return 0;
  15214. ;
  15215. return 0;
  15216. }
  15217. _ACEOF
  15218. if ac_fn_c_try_link "$LINENO"; then :
  15219. ac_cv_working_alloca_h=yes
  15220. else
  15221. ac_cv_working_alloca_h=no
  15222. fi
  15223. rm -f core conftest.err conftest.$ac_objext \
  15224. conftest$ac_exeext conftest.$ac_ext
  15225. fi
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15227. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15228. if test $ac_cv_working_alloca_h = yes; then
  15229. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15230. fi
  15231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15232. $as_echo_n "checking for alloca... " >&6; }
  15233. if ${ac_cv_func_alloca_works+:} false; then :
  15234. $as_echo_n "(cached) " >&6
  15235. else
  15236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15237. /* end confdefs.h. */
  15238. #ifdef __GNUC__
  15239. # define alloca __builtin_alloca
  15240. #else
  15241. # ifdef _MSC_VER
  15242. # include <malloc.h>
  15243. # define alloca _alloca
  15244. # else
  15245. # ifdef HAVE_ALLOCA_H
  15246. # include <alloca.h>
  15247. # else
  15248. # ifdef _AIX
  15249. #pragma alloca
  15250. # else
  15251. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15252. void *alloca (size_t);
  15253. # endif
  15254. # endif
  15255. # endif
  15256. # endif
  15257. #endif
  15258. int
  15259. main ()
  15260. {
  15261. char *p = (char *) alloca (1);
  15262. if (p) return 0;
  15263. ;
  15264. return 0;
  15265. }
  15266. _ACEOF
  15267. if ac_fn_c_try_link "$LINENO"; then :
  15268. ac_cv_func_alloca_works=yes
  15269. else
  15270. ac_cv_func_alloca_works=no
  15271. fi
  15272. rm -f core conftest.err conftest.$ac_objext \
  15273. conftest$ac_exeext conftest.$ac_ext
  15274. fi
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15276. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15277. if test $ac_cv_func_alloca_works = yes; then
  15278. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15279. else
  15280. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15281. # that cause trouble. Some versions do not even contain alloca or
  15282. # contain a buggy version. If you still want to use their alloca,
  15283. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15284. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15285. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15287. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15288. if ${ac_cv_os_cray+:} false; then :
  15289. $as_echo_n "(cached) " >&6
  15290. else
  15291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15292. /* end confdefs.h. */
  15293. #if defined CRAY && ! defined CRAY2
  15294. webecray
  15295. #else
  15296. wenotbecray
  15297. #endif
  15298. _ACEOF
  15299. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15300. $EGREP "webecray" >/dev/null 2>&1; then :
  15301. ac_cv_os_cray=yes
  15302. else
  15303. ac_cv_os_cray=no
  15304. fi
  15305. rm -f conftest*
  15306. fi
  15307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15308. $as_echo "$ac_cv_os_cray" >&6; }
  15309. if test $ac_cv_os_cray = yes; then
  15310. for ac_func in _getb67 GETB67 getb67; do
  15311. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15312. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15313. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15314. cat >>confdefs.h <<_ACEOF
  15315. #define CRAY_STACKSEG_END $ac_func
  15316. _ACEOF
  15317. break
  15318. fi
  15319. done
  15320. fi
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15322. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15323. if ${ac_cv_c_stack_direction+:} false; then :
  15324. $as_echo_n "(cached) " >&6
  15325. else
  15326. if test "$cross_compiling" = yes; then :
  15327. ac_cv_c_stack_direction=0
  15328. else
  15329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15330. /* end confdefs.h. */
  15331. $ac_includes_default
  15332. int
  15333. find_stack_direction (int *addr, int depth)
  15334. {
  15335. int dir, dummy = 0;
  15336. if (! addr)
  15337. addr = &dummy;
  15338. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15339. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15340. return dir + dummy;
  15341. }
  15342. int
  15343. main (int argc, char **argv)
  15344. {
  15345. return find_stack_direction (0, argc + !argv + 20) < 0;
  15346. }
  15347. _ACEOF
  15348. if ac_fn_c_try_run "$LINENO"; then :
  15349. ac_cv_c_stack_direction=1
  15350. else
  15351. ac_cv_c_stack_direction=-1
  15352. fi
  15353. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15354. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15355. fi
  15356. fi
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15358. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15359. cat >>confdefs.h <<_ACEOF
  15360. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15361. _ACEOF
  15362. fi
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15364. $as_echo_n "checking for working memcmp... " >&6; }
  15365. if ${ac_cv_func_memcmp_working+:} false; then :
  15366. $as_echo_n "(cached) " >&6
  15367. else
  15368. if test "$cross_compiling" = yes; then :
  15369. ac_cv_func_memcmp_working=no
  15370. else
  15371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15372. /* end confdefs.h. */
  15373. $ac_includes_default
  15374. int
  15375. main ()
  15376. {
  15377. /* Some versions of memcmp are not 8-bit clean. */
  15378. char c0 = '\100', c1 = '\200', c2 = '\201';
  15379. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15380. return 1;
  15381. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15382. or more and with at least one buffer not starting on a 4-byte boundary.
  15383. William Lewis provided this test program. */
  15384. {
  15385. char foo[21];
  15386. char bar[21];
  15387. int i;
  15388. for (i = 0; i < 4; i++)
  15389. {
  15390. char *a = foo + i;
  15391. char *b = bar + i;
  15392. strcpy (a, "--------01111111");
  15393. strcpy (b, "--------10000000");
  15394. if (memcmp (a, b, 16) >= 0)
  15395. return 1;
  15396. }
  15397. return 0;
  15398. }
  15399. ;
  15400. return 0;
  15401. }
  15402. _ACEOF
  15403. if ac_fn_c_try_run "$LINENO"; then :
  15404. ac_cv_func_memcmp_working=yes
  15405. else
  15406. ac_cv_func_memcmp_working=no
  15407. fi
  15408. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15409. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15410. fi
  15411. fi
  15412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15413. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15414. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15415. *" memcmp.$ac_objext "* ) ;;
  15416. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15417. ;;
  15418. esac
  15419. if test x$ac_cv_func_memcmp_working = xyes; then
  15420. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15421. fi
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15423. $as_echo_n "checking for working strtod... " >&6; }
  15424. if ${ac_cv_func_strtod+:} false; then :
  15425. $as_echo_n "(cached) " >&6
  15426. else
  15427. if test "$cross_compiling" = yes; then :
  15428. ac_cv_func_strtod=no
  15429. else
  15430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15431. /* end confdefs.h. */
  15432. $ac_includes_default
  15433. #ifndef strtod
  15434. double strtod ();
  15435. #endif
  15436. int
  15437. main()
  15438. {
  15439. {
  15440. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15441. char *string = " +69";
  15442. char *term;
  15443. double value;
  15444. value = strtod (string, &term);
  15445. if (value != 69 || term != (string + 4))
  15446. return 1;
  15447. }
  15448. {
  15449. /* Under Solaris 2.4, strtod returns the wrong value for the
  15450. terminating character under some conditions. */
  15451. char *string = "NaN";
  15452. char *term;
  15453. strtod (string, &term);
  15454. if (term != string && *(term - 1) == 0)
  15455. return 1;
  15456. }
  15457. return 0;
  15458. }
  15459. _ACEOF
  15460. if ac_fn_c_try_run "$LINENO"; then :
  15461. ac_cv_func_strtod=yes
  15462. else
  15463. ac_cv_func_strtod=no
  15464. fi
  15465. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15466. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15467. fi
  15468. fi
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15470. $as_echo "$ac_cv_func_strtod" >&6; }
  15471. if test $ac_cv_func_strtod = no; then
  15472. case " $LIBOBJS " in
  15473. *" strtod.$ac_objext "* ) ;;
  15474. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15475. ;;
  15476. esac
  15477. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15478. if test "x$ac_cv_func_pow" = xyes; then :
  15479. fi
  15480. if test $ac_cv_func_pow = no; then
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15482. $as_echo_n "checking for pow in -lm... " >&6; }
  15483. if ${ac_cv_lib_m_pow+:} false; then :
  15484. $as_echo_n "(cached) " >&6
  15485. else
  15486. ac_check_lib_save_LIBS=$LIBS
  15487. LIBS="-lm $LIBS"
  15488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15489. /* end confdefs.h. */
  15490. /* Override any GCC internal prototype to avoid an error.
  15491. Use char because int might match the return type of a GCC
  15492. builtin and then its argument prototype would still apply. */
  15493. #ifdef __cplusplus
  15494. extern "C"
  15495. #endif
  15496. char pow ();
  15497. int
  15498. main ()
  15499. {
  15500. return pow ();
  15501. ;
  15502. return 0;
  15503. }
  15504. _ACEOF
  15505. if ac_fn_c_try_link "$LINENO"; then :
  15506. ac_cv_lib_m_pow=yes
  15507. else
  15508. ac_cv_lib_m_pow=no
  15509. fi
  15510. rm -f core conftest.err conftest.$ac_objext \
  15511. conftest$ac_exeext conftest.$ac_ext
  15512. LIBS=$ac_check_lib_save_LIBS
  15513. fi
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15515. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15516. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15517. POW_LIB=-lm
  15518. else
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15520. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15521. fi
  15522. fi
  15523. fi
  15524. if test x$ac_cv_func_strtod = xyes; then
  15525. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15526. fi
  15527. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15528. if test "x$ac_cv_func_mprotect" = xyes; then :
  15529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15530. /* end confdefs.h. */
  15531. #include <sys/types.h>
  15532. #include <sys/mman.h>
  15533. int
  15534. main ()
  15535. {
  15536. ;
  15537. return 0;
  15538. }
  15539. _ACEOF
  15540. if ac_fn_c_try_compile "$LINENO"; then :
  15541. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15542. fi
  15543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15544. fi
  15545. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv bsearch qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  15546. do :
  15547. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15548. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15549. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15550. cat >>confdefs.h <<_ACEOF
  15551. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15552. _ACEOF
  15553. fi
  15554. done
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15556. $as_echo_n "checking for pow in -lm... " >&6; }
  15557. if ${ac_cv_lib_m_pow+:} false; then :
  15558. $as_echo_n "(cached) " >&6
  15559. else
  15560. ac_check_lib_save_LIBS=$LIBS
  15561. LIBS="-lm $LIBS"
  15562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15563. /* end confdefs.h. */
  15564. /* Override any GCC internal prototype to avoid an error.
  15565. Use char because int might match the return type of a GCC
  15566. builtin and then its argument prototype would still apply. */
  15567. #ifdef __cplusplus
  15568. extern "C"
  15569. #endif
  15570. char pow ();
  15571. int
  15572. main ()
  15573. {
  15574. return pow ();
  15575. ;
  15576. return 0;
  15577. }
  15578. _ACEOF
  15579. if ac_fn_c_try_link "$LINENO"; then :
  15580. ac_cv_lib_m_pow=yes
  15581. else
  15582. ac_cv_lib_m_pow=no
  15583. fi
  15584. rm -f core conftest.err conftest.$ac_objext \
  15585. conftest$ac_exeext conftest.$ac_ext
  15586. LIBS=$ac_check_lib_save_LIBS
  15587. fi
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15589. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15590. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15591. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15592. fi
  15593. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  15594. do :
  15595. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15596. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15597. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15598. cat >>confdefs.h <<_ACEOF
  15599. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15600. _ACEOF
  15601. fi
  15602. done
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15604. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15605. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15606. $as_echo_n "(cached) " >&6
  15607. else
  15608. ac_check_lib_save_LIBS=$LIBS
  15609. LIBS="-liconv $LIBS"
  15610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15611. /* end confdefs.h. */
  15612. /* Override any GCC internal prototype to avoid an error.
  15613. Use char because int might match the return type of a GCC
  15614. builtin and then its argument prototype would still apply. */
  15615. #ifdef __cplusplus
  15616. extern "C"
  15617. #endif
  15618. char iconv_open ();
  15619. int
  15620. main ()
  15621. {
  15622. return iconv_open ();
  15623. ;
  15624. return 0;
  15625. }
  15626. _ACEOF
  15627. if ac_fn_c_try_link "$LINENO"; then :
  15628. ac_cv_lib_iconv_iconv_open=yes
  15629. else
  15630. ac_cv_lib_iconv_iconv_open=no
  15631. fi
  15632. rm -f core conftest.err conftest.$ac_objext \
  15633. conftest$ac_exeext conftest.$ac_ext
  15634. LIBS=$ac_check_lib_save_LIBS
  15635. fi
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15637. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15638. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15639. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15640. fi
  15641. for ac_func in iconv
  15642. do :
  15643. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15644. if test "x$ac_cv_func_iconv" = xyes; then :
  15645. cat >>confdefs.h <<_ACEOF
  15646. #define HAVE_ICONV 1
  15647. _ACEOF
  15648. fi
  15649. done
  15650. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15651. "
  15652. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15653. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15654. fi
  15655. for ac_header in libunwind.h
  15656. do :
  15657. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15658. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15659. cat >>confdefs.h <<_ACEOF
  15660. #define HAVE_LIBUNWIND_H 1
  15661. _ACEOF
  15662. fi
  15663. done
  15664. fi
  15665. # Check whether --enable-gcc-atomics was given.
  15666. if test "${enable_gcc_atomics+set}" = set; then :
  15667. enableval=$enable_gcc_atomics;
  15668. else
  15669. enable_gcc_atomics=yes
  15670. fi
  15671. if test x$enable_gcc_atomics = xyes; then
  15672. have_gcc_atomics=no
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15674. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15676. /* end confdefs.h. */
  15677. int
  15678. main ()
  15679. {
  15680. int a;
  15681. void *x, *y, *z;
  15682. __sync_lock_test_and_set(&a, 4);
  15683. __sync_lock_test_and_set(&x, y);
  15684. __sync_fetch_and_add(&a, 1);
  15685. __sync_bool_compare_and_swap(&a, 5, 10);
  15686. __sync_bool_compare_and_swap(&x, y, z);
  15687. ;
  15688. return 0;
  15689. }
  15690. _ACEOF
  15691. if ac_fn_c_try_link "$LINENO"; then :
  15692. have_gcc_atomics=yes
  15693. fi
  15694. rm -f core conftest.err conftest.$ac_objext \
  15695. conftest$ac_exeext conftest.$ac_ext
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15697. $as_echo "$have_gcc_atomics" >&6; }
  15698. if test x$have_gcc_atomics = xyes; then
  15699. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15700. else
  15701. # See if we have the minimum operation needed for GCC atomics
  15702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15703. /* end confdefs.h. */
  15704. int
  15705. main ()
  15706. {
  15707. int a;
  15708. __sync_lock_test_and_set(&a, 1);
  15709. __sync_lock_release(&a);
  15710. ;
  15711. return 0;
  15712. }
  15713. _ACEOF
  15714. if ac_fn_c_try_link "$LINENO"; then :
  15715. have_gcc_sync_lock_test_and_set=yes
  15716. fi
  15717. rm -f core conftest.err conftest.$ac_objext \
  15718. conftest$ac_exeext conftest.$ac_ext
  15719. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15720. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15721. fi
  15722. fi
  15723. fi
  15724. # Standard C sources
  15725. SOURCES="$SOURCES $srcdir/src/*.c"
  15726. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15727. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15728. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15729. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15730. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15731. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15732. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15733. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15734. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15735. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15736. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15737. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15738. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15739. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15740. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15741. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15742. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15743. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15744. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15745. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15746. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15747. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15748. case "$host" in
  15749. *-*-emscripten*)
  15750. default_atomic=no
  15751. ;;
  15752. *)
  15753. default_atomic=yes
  15754. ;;
  15755. esac
  15756. # Check whether --enable-atomic was given.
  15757. if test "${enable_atomic+set}" = set; then :
  15758. enableval=$enable_atomic;
  15759. else
  15760. enable_atomic=$default_atomic
  15761. fi
  15762. if test x$enable_atomic != xyes; then
  15763. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15764. else
  15765. SUMMARY_modules="${SUMMARY_modules} atomic"
  15766. fi
  15767. # Check whether --enable-audio was given.
  15768. if test "${enable_audio+set}" = set; then :
  15769. enableval=$enable_audio;
  15770. else
  15771. enable_audio=yes
  15772. fi
  15773. if test x$enable_audio != xyes; then
  15774. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15775. else
  15776. SUMMARY_modules="${SUMMARY_modules} audio"
  15777. fi
  15778. # Check whether --enable-video was given.
  15779. if test "${enable_video+set}" = set; then :
  15780. enableval=$enable_video;
  15781. else
  15782. enable_video=yes
  15783. fi
  15784. if test x$enable_video != xyes; then
  15785. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15786. else
  15787. SUMMARY_modules="${SUMMARY_modules} video"
  15788. fi
  15789. # Check whether --enable-render was given.
  15790. if test "${enable_render+set}" = set; then :
  15791. enableval=$enable_render;
  15792. else
  15793. enable_render=yes
  15794. fi
  15795. if test x$enable_render != xyes; then
  15796. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15797. else
  15798. SUMMARY_modules="${SUMMARY_modules} render"
  15799. fi
  15800. # Check whether --enable-events was given.
  15801. if test "${enable_events+set}" = set; then :
  15802. enableval=$enable_events;
  15803. else
  15804. enable_events=yes
  15805. fi
  15806. if test x$enable_events != xyes; then
  15807. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15808. else
  15809. SUMMARY_modules="${SUMMARY_modules} events"
  15810. fi
  15811. # Check whether --enable-joystick was given.
  15812. if test "${enable_joystick+set}" = set; then :
  15813. enableval=$enable_joystick;
  15814. else
  15815. enable_joystick=yes
  15816. fi
  15817. if test x$enable_joystick != xyes; then
  15818. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15819. else
  15820. SUMMARY_modules="${SUMMARY_modules} joystick"
  15821. fi
  15822. # Check whether --enable-haptic was given.
  15823. if test "${enable_haptic+set}" = set; then :
  15824. enableval=$enable_haptic;
  15825. else
  15826. enable_haptic=yes
  15827. fi
  15828. if test x$enable_haptic != xyes; then
  15829. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15830. else
  15831. SUMMARY_modules="${SUMMARY_modules} haptic"
  15832. fi
  15833. # Check whether --enable-hidapi was given.
  15834. if test "${enable_hidapi+set}" = set; then :
  15835. enableval=$enable_hidapi;
  15836. else
  15837. enable_hidapi=yes
  15838. fi
  15839. if test x$enable_hidapi != xyes; then
  15840. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15841. else
  15842. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15843. fi
  15844. # Check whether --enable-sensor was given.
  15845. if test "${enable_sensor+set}" = set; then :
  15846. enableval=$enable_sensor;
  15847. else
  15848. enable_sensor=yes
  15849. fi
  15850. if test x$enable_sensor != xyes; then
  15851. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15852. else
  15853. SUMMARY_modules="${SUMMARY_modules} sensor"
  15854. fi
  15855. # Check whether --enable-power was given.
  15856. if test "${enable_power+set}" = set; then :
  15857. enableval=$enable_power;
  15858. else
  15859. enable_power=yes
  15860. fi
  15861. if test x$enable_power != xyes; then
  15862. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15863. else
  15864. SUMMARY_modules="${SUMMARY_modules} power"
  15865. fi
  15866. # Check whether --enable-filesystem was given.
  15867. if test "${enable_filesystem+set}" = set; then :
  15868. enableval=$enable_filesystem;
  15869. else
  15870. enable_filesystem=yes
  15871. fi
  15872. if test x$enable_filesystem != xyes; then
  15873. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15874. else
  15875. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15876. fi
  15877. # Check whether --enable-threads was given.
  15878. if test "${enable_threads+set}" = set; then :
  15879. enableval=$enable_threads;
  15880. else
  15881. enable_threads=yes
  15882. fi
  15883. if test x$enable_threads != xyes; then
  15884. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15885. else
  15886. SUMMARY_modules="${SUMMARY_modules} threads"
  15887. fi
  15888. # Check whether --enable-timers was given.
  15889. if test "${enable_timers+set}" = set; then :
  15890. enableval=$enable_timers;
  15891. else
  15892. enable_timers=yes
  15893. fi
  15894. if test x$enable_timers != xyes; then
  15895. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15896. else
  15897. SUMMARY_modules="${SUMMARY_modules} timers"
  15898. fi
  15899. # Check whether --enable-file was given.
  15900. if test "${enable_file+set}" = set; then :
  15901. enableval=$enable_file;
  15902. else
  15903. enable_file=yes
  15904. fi
  15905. if test x$enable_file != xyes; then
  15906. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15907. else
  15908. SUMMARY_modules="${SUMMARY_modules} file"
  15909. fi
  15910. # Check whether --enable-misc was given.
  15911. if test "${enable_misc+set}" = set; then :
  15912. enableval=$enable_misc;
  15913. else
  15914. enable_misc=yes
  15915. fi
  15916. if test x$enable_misc != xyes; then
  15917. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15918. else
  15919. SUMMARY_modules="${SUMMARY_modules} misc"
  15920. fi
  15921. # Check whether --enable-locale was given.
  15922. if test "${enable_locale+set}" = set; then :
  15923. enableval=$enable_locale;
  15924. else
  15925. enable_locale=yes
  15926. fi
  15927. if test x$enable_locale != xyes; then
  15928. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15929. else
  15930. SUMMARY_modules="${SUMMARY_modules} locale"
  15931. fi
  15932. # Check whether --enable-loadso was given.
  15933. if test "${enable_loadso+set}" = set; then :
  15934. enableval=$enable_loadso;
  15935. else
  15936. enable_loadso=yes
  15937. fi
  15938. if test x$enable_loadso != xyes; then
  15939. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15940. else
  15941. SUMMARY_modules="${SUMMARY_modules} loadso"
  15942. fi
  15943. # Check whether --enable-cpuinfo was given.
  15944. if test "${enable_cpuinfo+set}" = set; then :
  15945. enableval=$enable_cpuinfo;
  15946. else
  15947. enable_cpuinfo=yes
  15948. fi
  15949. if test x$enable_cpuinfo != xyes; then
  15950. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15951. else
  15952. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15953. fi
  15954. # Check whether --enable-assembly was given.
  15955. if test "${enable_assembly+set}" = set; then :
  15956. enableval=$enable_assembly;
  15957. else
  15958. enable_assembly=yes
  15959. fi
  15960. if test x$enable_assembly = xyes; then
  15961. SUMMARY_modules="${SUMMARY_modules} assembly"
  15962. # Make sure that we don't generate floating point code that would
  15963. # cause illegal instruction exceptions on older processors
  15964. case "$host" in
  15965. *-*-darwin*)
  15966. # Don't need to worry about Apple hardware, it's all SSE capable
  15967. default_ssemath=yes
  15968. ;;
  15969. *64-*-*)
  15970. # x86 64-bit architectures all have SSE instructions
  15971. default_ssemath=yes
  15972. ;;
  15973. *)
  15974. default_ssemath=no
  15975. ;;
  15976. esac
  15977. # Check whether --enable-ssemath was given.
  15978. if test "${enable_ssemath+set}" = set; then :
  15979. enableval=$enable_ssemath;
  15980. else
  15981. enable_ssemath=$default_ssemath
  15982. fi
  15983. if test x$enable_ssemath = xno; then
  15984. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15985. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15986. fi
  15987. fi
  15988. # Check whether --enable-mmx was given.
  15989. if test "${enable_mmx+set}" = set; then :
  15990. enableval=$enable_mmx;
  15991. else
  15992. enable_mmx=yes
  15993. fi
  15994. if test x$enable_mmx = xyes; then
  15995. save_CFLAGS="$CFLAGS"
  15996. have_gcc_mmx=no
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15998. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15999. mmx_CFLAGS="-mmmx"
  16000. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  16001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16002. /* end confdefs.h. */
  16003. #ifdef __MINGW32__
  16004. #include <_mingw.h>
  16005. #ifdef __MINGW64_VERSION_MAJOR
  16006. #include <intrin.h>
  16007. #else
  16008. #include <mmintrin.h>
  16009. #endif
  16010. #else
  16011. #include <mmintrin.h>
  16012. #endif
  16013. #ifndef __MMX__
  16014. #error Assembler CPP flag not enabled
  16015. #endif
  16016. int
  16017. main ()
  16018. {
  16019. ;
  16020. return 0;
  16021. }
  16022. _ACEOF
  16023. if ac_fn_c_try_compile "$LINENO"; then :
  16024. have_gcc_mmx=yes
  16025. fi
  16026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  16028. $as_echo "$have_gcc_mmx" >&6; }
  16029. CFLAGS="$save_CFLAGS"
  16030. if test x$have_gcc_mmx = xyes; then
  16031. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  16032. SUMMARY_math="${SUMMARY_math} mmx"
  16033. fi
  16034. fi
  16035. # Check whether --enable-3dnow was given.
  16036. if test "${enable_3dnow+set}" = set; then :
  16037. enableval=$enable_3dnow;
  16038. else
  16039. enable_3dnow=yes
  16040. fi
  16041. if test x$enable_3dnow = xyes; then
  16042. save_CFLAGS="$CFLAGS"
  16043. have_gcc_3dnow=no
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  16045. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  16046. amd3dnow_CFLAGS="-m3dnow"
  16047. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  16048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16049. /* end confdefs.h. */
  16050. #include <mm3dnow.h>
  16051. #ifndef __3dNOW__
  16052. #error Assembler CPP flag not enabled
  16053. #endif
  16054. int
  16055. main ()
  16056. {
  16057. void *p = 0;
  16058. _m_prefetch(p);
  16059. ;
  16060. return 0;
  16061. }
  16062. _ACEOF
  16063. if ac_fn_c_try_link "$LINENO"; then :
  16064. have_gcc_3dnow=yes
  16065. fi
  16066. rm -f core conftest.err conftest.$ac_objext \
  16067. conftest$ac_exeext conftest.$ac_ext
  16068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  16069. $as_echo "$have_gcc_3dnow" >&6; }
  16070. CFLAGS="$save_CFLAGS"
  16071. if test x$have_gcc_3dnow = xyes; then
  16072. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  16073. SUMMARY_math="${SUMMARY_math} 3dnow"
  16074. fi
  16075. fi
  16076. # Check whether --enable-sse was given.
  16077. if test "${enable_sse+set}" = set; then :
  16078. enableval=$enable_sse;
  16079. else
  16080. enable_sse=yes
  16081. fi
  16082. if test x$enable_sse = xyes; then
  16083. save_CFLAGS="$CFLAGS"
  16084. have_gcc_sse=no
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  16086. $as_echo_n "checking for GCC -msse option... " >&6; }
  16087. sse_CFLAGS="-msse"
  16088. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  16089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16090. /* end confdefs.h. */
  16091. #ifdef __MINGW32__
  16092. #include <_mingw.h>
  16093. #ifdef __MINGW64_VERSION_MAJOR
  16094. #include <intrin.h>
  16095. #else
  16096. #include <xmmintrin.h>
  16097. #endif
  16098. #else
  16099. #include <xmmintrin.h>
  16100. #endif
  16101. #ifndef __SSE__
  16102. #error Assembler CPP flag not enabled
  16103. #endif
  16104. int
  16105. main ()
  16106. {
  16107. ;
  16108. return 0;
  16109. }
  16110. _ACEOF
  16111. if ac_fn_c_try_compile "$LINENO"; then :
  16112. have_gcc_sse=yes
  16113. fi
  16114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  16116. $as_echo "$have_gcc_sse" >&6; }
  16117. CFLAGS="$save_CFLAGS"
  16118. if test x$have_gcc_sse = xyes; then
  16119. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  16120. SUMMARY_math="${SUMMARY_math} sse"
  16121. fi
  16122. fi
  16123. # Check whether --enable-sse2 was given.
  16124. if test "${enable_sse2+set}" = set; then :
  16125. enableval=$enable_sse2;
  16126. else
  16127. enable_sse2=$default_ssemath
  16128. fi
  16129. if test x$enable_sse2 = xyes; then
  16130. save_CFLAGS="$CFLAGS"
  16131. have_gcc_sse2=no
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  16133. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  16134. sse2_CFLAGS="-msse2"
  16135. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  16136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16137. /* end confdefs.h. */
  16138. #ifdef __MINGW32__
  16139. #include <_mingw.h>
  16140. #ifdef __MINGW64_VERSION_MAJOR
  16141. #include <intrin.h>
  16142. #else
  16143. #include <emmintrin.h>
  16144. #endif
  16145. #else
  16146. #include <emmintrin.h>
  16147. #endif
  16148. #ifndef __SSE2__
  16149. #error Assembler CPP flag not enabled
  16150. #endif
  16151. int
  16152. main ()
  16153. {
  16154. ;
  16155. return 0;
  16156. }
  16157. _ACEOF
  16158. if ac_fn_c_try_compile "$LINENO"; then :
  16159. have_gcc_sse2=yes
  16160. fi
  16161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  16163. $as_echo "$have_gcc_sse2" >&6; }
  16164. CFLAGS="$save_CFLAGS"
  16165. if test x$have_gcc_sse2 = xyes; then
  16166. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  16167. SUMMARY_math="${SUMMARY_math} sse2"
  16168. fi
  16169. fi
  16170. # Check whether --enable-sse3 was given.
  16171. if test "${enable_sse3+set}" = set; then :
  16172. enableval=$enable_sse3;
  16173. else
  16174. enable_sse3=$default_ssemath
  16175. fi
  16176. if test x$enable_sse3 = xyes; then
  16177. save_CFLAGS="$CFLAGS"
  16178. have_gcc_sse3=no
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  16180. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  16181. sse3_CFLAGS="-msse3"
  16182. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  16183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16184. /* end confdefs.h. */
  16185. #ifdef __MINGW32__
  16186. #include <_mingw.h>
  16187. #ifdef __MINGW64_VERSION_MAJOR
  16188. #include <intrin.h>
  16189. #else
  16190. #include <pmmintrin.h>
  16191. #endif
  16192. #else
  16193. #include <pmmintrin.h>
  16194. #endif
  16195. #ifndef __SSE2__
  16196. #error Assembler CPP flag not enabled
  16197. #endif
  16198. int
  16199. main ()
  16200. {
  16201. ;
  16202. return 0;
  16203. }
  16204. _ACEOF
  16205. if ac_fn_c_try_compile "$LINENO"; then :
  16206. have_gcc_sse3=yes
  16207. fi
  16208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16210. $as_echo "$have_gcc_sse3" >&6; }
  16211. CFLAGS="$save_CFLAGS"
  16212. if test x$have_gcc_sse3 = xyes; then
  16213. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16214. SUMMARY_math="${SUMMARY_math} sse3"
  16215. fi
  16216. fi
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16218. $as_echo_n "checking for immintrin.h... " >&6; }
  16219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16220. /* end confdefs.h. */
  16221. #include <immintrin.h>
  16222. int
  16223. main ()
  16224. {
  16225. ;
  16226. return 0;
  16227. }
  16228. _ACEOF
  16229. if ac_fn_c_try_compile "$LINENO"; then :
  16230. have_immintrin_h_hdr=yes
  16231. else
  16232. have_immintrin_h_hdr=no
  16233. fi
  16234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16236. $as_echo "$have_immintrin_h_hdr" >&6; }
  16237. if test x$have_immintrin_h_hdr = xyes; then
  16238. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16239. fi
  16240. # Check whether --enable-altivec was given.
  16241. if test "${enable_altivec+set}" = set; then :
  16242. enableval=$enable_altivec;
  16243. else
  16244. enable_altivec=yes
  16245. fi
  16246. if test x$enable_altivec = xyes; then
  16247. save_CFLAGS="$CFLAGS"
  16248. have_gcc_altivec=no
  16249. have_altivec_h_hdr=no
  16250. altivec_CFLAGS="-maltivec"
  16251. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16253. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16255. /* end confdefs.h. */
  16256. #include <altivec.h>
  16257. vector unsigned int vzero() {
  16258. return vec_splat_u32(0);
  16259. }
  16260. int
  16261. main ()
  16262. {
  16263. ;
  16264. return 0;
  16265. }
  16266. _ACEOF
  16267. if ac_fn_c_try_compile "$LINENO"; then :
  16268. have_gcc_altivec=yes
  16269. have_altivec_h_hdr=yes
  16270. fi
  16271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16273. $as_echo "$have_gcc_altivec" >&6; }
  16274. if test x$have_gcc_altivec = xno; then
  16275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16276. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16278. /* end confdefs.h. */
  16279. vector unsigned int vzero() {
  16280. return vec_splat_u32(0);
  16281. }
  16282. int
  16283. main ()
  16284. {
  16285. ;
  16286. return 0;
  16287. }
  16288. _ACEOF
  16289. if ac_fn_c_try_compile "$LINENO"; then :
  16290. have_gcc_altivec=yes
  16291. fi
  16292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16294. $as_echo "$have_gcc_altivec" >&6; }
  16295. fi
  16296. if test x$have_gcc_altivec = xno; then
  16297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16298. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16299. altivec_CFLAGS="-faltivec"
  16300. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16302. /* end confdefs.h. */
  16303. #include <altivec.h>
  16304. vector unsigned int vzero() {
  16305. return vec_splat_u32(0);
  16306. }
  16307. int
  16308. main ()
  16309. {
  16310. ;
  16311. return 0;
  16312. }
  16313. _ACEOF
  16314. if ac_fn_c_try_compile "$LINENO"; then :
  16315. have_gcc_altivec=yes
  16316. have_altivec_h_hdr=yes
  16317. fi
  16318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16320. $as_echo "$have_gcc_altivec" >&6; }
  16321. fi
  16322. if test x$have_gcc_altivec = xno; then
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16324. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16326. /* end confdefs.h. */
  16327. vector unsigned int vzero() {
  16328. return vec_splat_u32(0);
  16329. }
  16330. int
  16331. main ()
  16332. {
  16333. ;
  16334. return 0;
  16335. }
  16336. _ACEOF
  16337. if ac_fn_c_try_compile "$LINENO"; then :
  16338. have_gcc_altivec=yes
  16339. fi
  16340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16342. $as_echo "$have_gcc_altivec" >&6; }
  16343. fi
  16344. CFLAGS="$save_CFLAGS"
  16345. if test x$have_gcc_altivec = xyes; then
  16346. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16347. if test x$have_altivec_h_hdr = xyes; then
  16348. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16349. fi
  16350. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16351. SUMMARY_math="${SUMMARY_math} altivec"
  16352. fi
  16353. fi
  16354. fi
  16355. # Check whether --enable-lsx was given.
  16356. if test "${enable_lsx+set}" = set; then :
  16357. enableval=$enable_lsx;
  16358. else
  16359. enable_lsx=yes
  16360. fi
  16361. if test x$enable_lsx = xyes; then
  16362. save_CFLAGS="$CFLAGS"
  16363. have_gcc_lsx=no
  16364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  16365. $as_echo_n "checking for GCC -mlsx option... " >&6; }
  16366. lsx_CFLAGS="-mlsx"
  16367. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  16368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16369. /* end confdefs.h. */
  16370. #ifndef __loongarch_sx
  16371. #error Assembler CPP flag not enabled
  16372. #endif
  16373. int
  16374. main ()
  16375. {
  16376. ;
  16377. return 0;
  16378. }
  16379. _ACEOF
  16380. if ac_fn_c_try_compile "$LINENO"; then :
  16381. have_gcc_lsx=yes
  16382. fi
  16383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  16385. $as_echo "$have_gcc_lsx" >&6; }
  16386. CFLAGS="$save_CFLAGS"
  16387. if test x$have_gcc_lsx = xyes; then
  16388. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  16389. SUMMARY_math="${SUMMARY_math} lsx"
  16390. fi
  16391. fi
  16392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  16393. $as_echo_n "checking for lsxintrin.h... " >&6; }
  16394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16395. /* end confdefs.h. */
  16396. #include <lsxintrin.h>
  16397. int
  16398. main ()
  16399. {
  16400. ;
  16401. return 0;
  16402. }
  16403. _ACEOF
  16404. if ac_fn_c_try_compile "$LINENO"; then :
  16405. have_lsxintrin_h_hdr=yes
  16406. else
  16407. have_lsxintrin_h_hdr=no
  16408. fi
  16409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  16411. $as_echo "$have_lsxintrin_h_hdr" >&6; }
  16412. if test x$have_lsxintrin_h_hdr = xyes; then
  16413. $as_echo "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  16414. fi
  16415. # Check whether --enable-lasx was given.
  16416. if test "${enable_lasx+set}" = set; then :
  16417. enableval=$enable_lasx;
  16418. else
  16419. enable_LASX=yes
  16420. fi
  16421. if test x$enable_LASX = xyes; then
  16422. save_CFLAGS="$CFLAGS"
  16423. have_gcc_lasx=no
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  16425. $as_echo_n "checking for GCC -mlasx option... " >&6; }
  16426. lasx_CFLAGS="-mlasx"
  16427. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  16428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16429. /* end confdefs.h. */
  16430. #ifndef __loongarch_asx
  16431. #error Assembler CPP flag not enabled
  16432. #endif
  16433. int
  16434. main ()
  16435. {
  16436. ;
  16437. return 0;
  16438. }
  16439. _ACEOF
  16440. if ac_fn_c_try_compile "$LINENO"; then :
  16441. have_gcc_lasx=yes
  16442. fi
  16443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  16445. $as_echo "$have_gcc_lasx" >&6; }
  16446. CFLAGS="$save_CFLAGS"
  16447. if test x$have_gcc_lasx = xyes; then
  16448. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  16449. SUMMARY_math="${SUMMARY_math} lasx"
  16450. fi
  16451. fi
  16452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  16453. $as_echo_n "checking for lasxintrin.h... " >&6; }
  16454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16455. /* end confdefs.h. */
  16456. #include <lasxintrin.h>
  16457. int
  16458. main ()
  16459. {
  16460. ;
  16461. return 0;
  16462. }
  16463. _ACEOF
  16464. if ac_fn_c_try_compile "$LINENO"; then :
  16465. have_lasxintrin_h_hdr=yes
  16466. else
  16467. have_lasxintrin_h_hdr=no
  16468. fi
  16469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  16471. $as_echo "$have_lasxintrin_h_hdr" >&6; }
  16472. if test x$have_lasxintrin_h_hdr = xyes; then
  16473. $as_echo "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  16474. fi
  16475. CheckOSS()
  16476. {
  16477. # Check whether --enable-oss was given.
  16478. if test "${enable_oss+set}" = set; then :
  16479. enableval=$enable_oss;
  16480. else
  16481. enable_oss=maybe
  16482. fi
  16483. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16484. # use sndio instead. So on there, we default to disabled. You can force
  16485. # it on if you really want, though.
  16486. if test x$enable_oss = xmaybe; then
  16487. enable_oss=yes
  16488. case "$host" in
  16489. *-*-openbsd*)
  16490. enable_oss=no;;
  16491. esac
  16492. fi
  16493. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16495. $as_echo_n "checking for OSS audio support... " >&6; }
  16496. have_oss=no
  16497. if test x$have_oss != xyes; then
  16498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16499. /* end confdefs.h. */
  16500. #include <sys/soundcard.h>
  16501. int
  16502. main ()
  16503. {
  16504. int arg = SNDCTL_DSP_SETFRAGMENT;
  16505. ;
  16506. return 0;
  16507. }
  16508. _ACEOF
  16509. if ac_fn_c_try_compile "$LINENO"; then :
  16510. have_oss=yes
  16511. fi
  16512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16513. fi
  16514. if test x$have_oss != xyes; then
  16515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16516. /* end confdefs.h. */
  16517. #include <soundcard.h>
  16518. int
  16519. main ()
  16520. {
  16521. int arg = SNDCTL_DSP_SETFRAGMENT;
  16522. ;
  16523. return 0;
  16524. }
  16525. _ACEOF
  16526. if ac_fn_c_try_compile "$LINENO"; then :
  16527. have_oss=yes
  16528. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16529. fi
  16530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16531. fi
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16533. $as_echo "$have_oss" >&6; }
  16534. if test x$have_oss = xyes; then
  16535. SUMMARY_audio="${SUMMARY_audio} oss"
  16536. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16537. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16538. have_audio=yes
  16539. # We may need to link with ossaudio emulation library
  16540. case "$host" in
  16541. *-*-openbsd*|*-*-netbsd*)
  16542. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16543. esac
  16544. fi
  16545. fi
  16546. }
  16547. CheckALSA()
  16548. {
  16549. # Check whether --enable-alsa was given.
  16550. if test "${enable_alsa+set}" = set; then :
  16551. enableval=$enable_alsa;
  16552. else
  16553. enable_alsa=yes
  16554. fi
  16555. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16556. alsa_save_CFLAGS="$CFLAGS"
  16557. alsa_save_LDFLAGS="$LDFLAGS"
  16558. alsa_save_LIBS="$LIBS"
  16559. alsa_found=yes
  16560. # Check whether --with-alsa-prefix was given.
  16561. if test "${with_alsa_prefix+set}" = set; then :
  16562. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16563. else
  16564. alsa_prefix=""
  16565. fi
  16566. # Check whether --with-alsa-inc-prefix was given.
  16567. if test "${with_alsa_inc_prefix+set}" = set; then :
  16568. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16569. else
  16570. alsa_inc_prefix=""
  16571. fi
  16572. # Check whether --enable-alsatest was given.
  16573. if test "${enable_alsatest+set}" = set; then :
  16574. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16575. else
  16576. enable_alsatest=yes
  16577. fi
  16578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16579. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16580. if test "$alsa_inc_prefix" != "" ; then
  16581. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16582. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16583. fi
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16585. $as_echo "$ALSA_CFLAGS" >&6; }
  16586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16587. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16588. if test "$alsa_prefix" != "" ; then
  16589. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16590. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16591. fi
  16592. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16593. LIBS=`echo $LIBS | sed 's/-lm//'`
  16594. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16595. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16596. LIBS=`echo $LIBS | sed 's/ //'`
  16597. LIBS="$ALSA_LIBS $LIBS"
  16598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16599. $as_echo "$ALSA_LIBS" >&6; }
  16600. min_alsa_version=1.0.11
  16601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16602. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16603. no_alsa=""
  16604. alsa_min_major_version=`echo $min_alsa_version | \
  16605. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16606. alsa_min_minor_version=`echo $min_alsa_version | \
  16607. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16608. alsa_min_micro_version=`echo $min_alsa_version | \
  16609. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16610. ac_ext=c
  16611. ac_cpp='$CPP $CPPFLAGS'
  16612. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16613. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16614. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16616. /* end confdefs.h. */
  16617. #include <alsa/asoundlib.h>
  16618. int
  16619. main ()
  16620. {
  16621. /* ensure backward compatibility */
  16622. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16623. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16624. #endif
  16625. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16626. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16627. #endif
  16628. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16629. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16630. #endif
  16631. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16632. exit(0);
  16633. # else
  16634. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16635. # error not present
  16636. # endif
  16637. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16638. exit(0);
  16639. # else
  16640. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16641. # error not present
  16642. # endif
  16643. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16644. # error not present
  16645. # endif
  16646. # endif
  16647. # endif
  16648. exit(0);
  16649. ;
  16650. return 0;
  16651. }
  16652. _ACEOF
  16653. if ac_fn_c_try_compile "$LINENO"; then :
  16654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16655. $as_echo "found." >&6; }
  16656. else
  16657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16658. $as_echo "not present." >&6; }
  16659. alsa_found=no
  16660. fi
  16661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16662. ac_ext=c
  16663. ac_cpp='$CPP $CPPFLAGS'
  16664. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16665. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16666. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16667. if test "x$enable_alsatest" = "xyes"; then
  16668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16669. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16670. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16671. $as_echo_n "(cached) " >&6
  16672. else
  16673. ac_check_lib_save_LIBS=$LIBS
  16674. LIBS="-lasound $LIBS"
  16675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16676. /* end confdefs.h. */
  16677. /* Override any GCC internal prototype to avoid an error.
  16678. Use char because int might match the return type of a GCC
  16679. builtin and then its argument prototype would still apply. */
  16680. #ifdef __cplusplus
  16681. extern "C"
  16682. #endif
  16683. char snd_ctl_open ();
  16684. int
  16685. main ()
  16686. {
  16687. return snd_ctl_open ();
  16688. ;
  16689. return 0;
  16690. }
  16691. _ACEOF
  16692. if ac_fn_c_try_link "$LINENO"; then :
  16693. ac_cv_lib_asound_snd_ctl_open=yes
  16694. else
  16695. ac_cv_lib_asound_snd_ctl_open=no
  16696. fi
  16697. rm -f core conftest.err conftest.$ac_objext \
  16698. conftest$ac_exeext conftest.$ac_ext
  16699. LIBS=$ac_check_lib_save_LIBS
  16700. fi
  16701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16702. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16703. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16704. cat >>confdefs.h <<_ACEOF
  16705. #define HAVE_LIBASOUND 1
  16706. _ACEOF
  16707. LIBS="-lasound $LIBS"
  16708. else
  16709. alsa_found=no
  16710. fi
  16711. fi
  16712. if test "x$alsa_found" = "xyes" ; then
  16713. have_alsa=yes
  16714. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16715. LIBS=`echo $LIBS | sed 's/ //'`
  16716. LIBS="-lasound $LIBS"
  16717. fi
  16718. if test "x$alsa_found" = "xno" ; then
  16719. have_alsa=no
  16720. CFLAGS="$alsa_save_CFLAGS"
  16721. LDFLAGS="$alsa_save_LDFLAGS"
  16722. LIBS="$alsa_save_LIBS"
  16723. ALSA_CFLAGS=""
  16724. ALSA_LIBS=""
  16725. fi
  16726. # Restore all flags from before the ALSA detection runs
  16727. CFLAGS="$alsa_save_CFLAGS"
  16728. LDFLAGS="$alsa_save_LDFLAGS"
  16729. LIBS="$alsa_save_LIBS"
  16730. if test x$have_alsa = xyes; then
  16731. # Check whether --enable-alsa-shared was given.
  16732. if test "${enable_alsa_shared+set}" = set; then :
  16733. enableval=$enable_alsa_shared;
  16734. else
  16735. enable_alsa_shared=yes
  16736. fi
  16737. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16738. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16739. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16740. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16741. if test x$have_loadso != xyes && \
  16742. test x$enable_alsa_shared = xyes; then
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16744. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16745. fi
  16746. if test x$have_loadso = xyes && \
  16747. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16748. echo "-- dynamic libasound -> $alsa_lib"
  16749. cat >>confdefs.h <<_ACEOF
  16750. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16751. _ACEOF
  16752. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16753. else
  16754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16755. SUMMARY_audio="${SUMMARY_audio} alsa"
  16756. fi
  16757. have_audio=yes
  16758. fi
  16759. fi
  16760. }
  16761. CheckJACK()
  16762. {
  16763. # Check whether --enable-jack was given.
  16764. if test "${enable_jack+set}" = set; then :
  16765. enableval=$enable_jack;
  16766. else
  16767. enable_jack=yes
  16768. fi
  16769. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16770. pkg_failed=no
  16771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16772. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16773. if test -n "$JACK_CFLAGS"; then
  16774. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16775. elif test -n "$PKG_CONFIG"; then
  16776. if test -n "$PKG_CONFIG" && \
  16777. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16778. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16779. ac_status=$?
  16780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16781. test $ac_status = 0; }; then
  16782. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16783. test "x$?" != "x0" && pkg_failed=yes
  16784. else
  16785. pkg_failed=yes
  16786. fi
  16787. else
  16788. pkg_failed=untried
  16789. fi
  16790. if test -n "$JACK_LIBS"; then
  16791. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16792. elif test -n "$PKG_CONFIG"; then
  16793. if test -n "$PKG_CONFIG" && \
  16794. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16795. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16796. ac_status=$?
  16797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16798. test $ac_status = 0; }; then
  16799. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16800. test "x$?" != "x0" && pkg_failed=yes
  16801. else
  16802. pkg_failed=yes
  16803. fi
  16804. else
  16805. pkg_failed=untried
  16806. fi
  16807. if test $pkg_failed = yes; then
  16808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16809. $as_echo "no" >&6; }
  16810. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16811. _pkg_short_errors_supported=yes
  16812. else
  16813. _pkg_short_errors_supported=no
  16814. fi
  16815. if test $_pkg_short_errors_supported = yes; then
  16816. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16817. else
  16818. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16819. fi
  16820. # Put the nasty error message in config.log where it belongs
  16821. echo "$JACK_PKG_ERRORS" >&5
  16822. audio_jack=no
  16823. elif test $pkg_failed = untried; then
  16824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16825. $as_echo "no" >&6; }
  16826. audio_jack=no
  16827. else
  16828. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16829. JACK_LIBS=$pkg_cv_JACK_LIBS
  16830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16831. $as_echo "yes" >&6; }
  16832. audio_jack=yes
  16833. fi
  16834. if test x$audio_jack = xyes; then
  16835. # Check whether --enable-jack-shared was given.
  16836. if test "${enable_jack_shared+set}" = set; then :
  16837. enableval=$enable_jack_shared;
  16838. else
  16839. enable_jack_shared=yes
  16840. fi
  16841. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16842. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16843. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16844. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16845. if test x$have_loadso != xyes && \
  16846. test x$enable_jack_shared = xyes; then
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16848. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16849. fi
  16850. if test x$have_loadso = xyes && \
  16851. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16852. echo "-- dynamic libjack -> $jack_lib"
  16853. cat >>confdefs.h <<_ACEOF
  16854. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16855. _ACEOF
  16856. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16857. case "$host" in
  16858. # On Solaris, jack must be linked deferred explicitly
  16859. # to prevent undefined symbol failures.
  16860. *-*-solaris*)
  16861. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16863. esac
  16864. else
  16865. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16866. SUMMARY_audio="${SUMMARY_audio} jack"
  16867. fi
  16868. have_audio=yes
  16869. fi
  16870. fi
  16871. }
  16872. CheckESD()
  16873. {
  16874. # Check whether --enable-esd was given.
  16875. if test "${enable_esd+set}" = set; then :
  16876. enableval=$enable_esd;
  16877. else
  16878. enable_esd=yes
  16879. fi
  16880. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16881. # Check whether --with-esd-prefix was given.
  16882. if test "${with_esd_prefix+set}" = set; then :
  16883. withval=$with_esd_prefix; esd_prefix="$withval"
  16884. else
  16885. esd_prefix=""
  16886. fi
  16887. # Check whether --with-esd-exec-prefix was given.
  16888. if test "${with_esd_exec_prefix+set}" = set; then :
  16889. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16890. else
  16891. esd_exec_prefix=""
  16892. fi
  16893. # Check whether --enable-esdtest was given.
  16894. if test "${enable_esdtest+set}" = set; then :
  16895. enableval=$enable_esdtest;
  16896. else
  16897. enable_esdtest=yes
  16898. fi
  16899. if test x$esd_exec_prefix != x ; then
  16900. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16901. if test x${ESD_CONFIG+set} != xset ; then
  16902. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16903. fi
  16904. fi
  16905. if test x$esd_prefix != x ; then
  16906. esd_args="$esd_args --prefix=$esd_prefix"
  16907. if test x${ESD_CONFIG+set} != xset ; then
  16908. ESD_CONFIG=$esd_prefix/bin/esd-config
  16909. fi
  16910. fi
  16911. # Extract the first word of "esd-config", so it can be a program name with args.
  16912. set dummy esd-config; ac_word=$2
  16913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16914. $as_echo_n "checking for $ac_word... " >&6; }
  16915. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16916. $as_echo_n "(cached) " >&6
  16917. else
  16918. case $ESD_CONFIG in
  16919. [\\/]* | ?:[\\/]*)
  16920. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16921. ;;
  16922. *)
  16923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16924. for as_dir in $PATH
  16925. do
  16926. IFS=$as_save_IFS
  16927. test -z "$as_dir" && as_dir=.
  16928. for ac_exec_ext in '' $ac_executable_extensions; do
  16929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16930. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16932. break 2
  16933. fi
  16934. done
  16935. done
  16936. IFS=$as_save_IFS
  16937. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16938. ;;
  16939. esac
  16940. fi
  16941. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16942. if test -n "$ESD_CONFIG"; then
  16943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16944. $as_echo "$ESD_CONFIG" >&6; }
  16945. else
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16947. $as_echo "no" >&6; }
  16948. fi
  16949. min_esd_version=0.2.8
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16951. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16952. no_esd=""
  16953. if test "$ESD_CONFIG" = "no" ; then
  16954. no_esd=yes
  16955. else
  16956. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16957. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16958. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16959. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16960. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16961. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16962. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16963. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16964. if test "x$enable_esdtest" = "xyes" ; then
  16965. ac_ext=c
  16966. ac_cpp='$CPP $CPPFLAGS'
  16967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16970. ac_save_CFLAGS="$CFLAGS"
  16971. ac_save_LIBS="$LIBS"
  16972. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16973. LIBS="$LIBS $ESD_LIBS"
  16974. rm -f conf.esdtest
  16975. if test "$cross_compiling" = yes; then :
  16976. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16977. else
  16978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16979. /* end confdefs.h. */
  16980. #include <stdio.h>
  16981. #include <stdlib.h>
  16982. #include <esd.h>
  16983. int main (void)
  16984. {
  16985. int major, minor, micro;
  16986. FILE *fp = fopen("conf.esdtest", "w");
  16987. if (fp) fclose(fp);
  16988. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16989. printf("%s, bad version string\n", "$min_esd_version");
  16990. exit(1);
  16991. }
  16992. if (($esd_major_version > major) ||
  16993. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16994. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16995. {
  16996. return 0;
  16997. }
  16998. else
  16999. {
  17000. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  17001. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  17002. printf("*** best to upgrade to the required version.\n");
  17003. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  17004. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  17005. printf("*** config.cache before re-running configure\n");
  17006. return 1;
  17007. }
  17008. }
  17009. _ACEOF
  17010. if ac_fn_c_try_run "$LINENO"; then :
  17011. else
  17012. no_esd=yes
  17013. fi
  17014. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17015. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17016. fi
  17017. CFLAGS="$ac_save_CFLAGS"
  17018. LIBS="$ac_save_LIBS"
  17019. ac_ext=c
  17020. ac_cpp='$CPP $CPPFLAGS'
  17021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17022. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17023. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17024. fi
  17025. fi
  17026. if test "x$no_esd" = x ; then
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17028. $as_echo "yes" >&6; }
  17029. have_esd=yes
  17030. else
  17031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17032. $as_echo "no" >&6; }
  17033. if test "$ESD_CONFIG" = "no" ; then
  17034. echo "*** The esd-config script installed by ESD could not be found"
  17035. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  17036. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  17037. echo "*** full path to esd-config."
  17038. else
  17039. if test -f conf.esdtest ; then
  17040. :
  17041. else
  17042. echo "*** Could not run ESD test program, checking why..."
  17043. CFLAGS="$CFLAGS $ESD_CFLAGS"
  17044. LIBS="$LIBS $ESD_LIBS"
  17045. ac_ext=c
  17046. ac_cpp='$CPP $CPPFLAGS'
  17047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17051. /* end confdefs.h. */
  17052. #include <stdio.h>
  17053. #include <esd.h>
  17054. int
  17055. main ()
  17056. {
  17057. return 0;
  17058. ;
  17059. return 0;
  17060. }
  17061. _ACEOF
  17062. if ac_fn_c_try_link "$LINENO"; then :
  17063. echo "*** The test program compiled, but did not run. This usually means"
  17064. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  17065. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  17066. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  17067. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  17068. echo "*** is required on your system"
  17069. echo "***"
  17070. echo "*** If you have an old version installed, it is best to remove it, although"
  17071. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  17072. else
  17073. echo "*** The test program failed to compile or link. See the file config.log for the"
  17074. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  17075. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  17076. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  17077. fi
  17078. rm -f core conftest.err conftest.$ac_objext \
  17079. conftest$ac_exeext conftest.$ac_ext
  17080. CFLAGS="$ac_save_CFLAGS"
  17081. LIBS="$ac_save_LIBS"
  17082. ac_ext=c
  17083. ac_cpp='$CPP $CPPFLAGS'
  17084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17087. fi
  17088. fi
  17089. ESD_CFLAGS=""
  17090. ESD_LIBS=""
  17091. have_esd=no
  17092. fi
  17093. rm -f conf.esdtest
  17094. if test x$have_esd = xyes; then
  17095. # Check whether --enable-esd-shared was given.
  17096. if test "${enable_esd_shared+set}" = set; then :
  17097. enableval=$enable_esd_shared;
  17098. else
  17099. enable_esd_shared=yes
  17100. fi
  17101. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17102. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  17103. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  17104. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  17105. if test x$have_loadso != xyes && \
  17106. test x$enable_esd_shared = xyes; then
  17107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  17108. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  17109. fi
  17110. if test x$have_loadso = xyes && \
  17111. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  17112. echo "-- dynamic libesd -> $esd_lib"
  17113. cat >>confdefs.h <<_ACEOF
  17114. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  17115. _ACEOF
  17116. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  17117. else
  17118. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  17119. SUMMARY_audio="${SUMMARY_audio} esd"
  17120. fi
  17121. have_audio=yes
  17122. fi
  17123. fi
  17124. }
  17125. CheckPipewire()
  17126. {
  17127. # Check whether --enable-pipewire was given.
  17128. if test "${enable_pipewire+set}" = set; then :
  17129. enableval=$enable_pipewire;
  17130. else
  17131. enable_pipewire=yes
  17132. fi
  17133. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  17134. pkg_failed=no
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  17136. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  17137. if test -n "$PIPEWIRE_CFLAGS"; then
  17138. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  17139. elif test -n "$PKG_CONFIG"; then
  17140. if test -n "$PKG_CONFIG" && \
  17141. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  17142. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  17143. ac_status=$?
  17144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17145. test $ac_status = 0; }; then
  17146. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  17147. test "x$?" != "x0" && pkg_failed=yes
  17148. else
  17149. pkg_failed=yes
  17150. fi
  17151. else
  17152. pkg_failed=untried
  17153. fi
  17154. if test -n "$PIPEWIRE_LIBS"; then
  17155. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  17156. elif test -n "$PKG_CONFIG"; then
  17157. if test -n "$PKG_CONFIG" && \
  17158. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  17159. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  17160. ac_status=$?
  17161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17162. test $ac_status = 0; }; then
  17163. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  17164. test "x$?" != "x0" && pkg_failed=yes
  17165. else
  17166. pkg_failed=yes
  17167. fi
  17168. else
  17169. pkg_failed=untried
  17170. fi
  17171. if test $pkg_failed = yes; then
  17172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17173. $as_echo "no" >&6; }
  17174. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17175. _pkg_short_errors_supported=yes
  17176. else
  17177. _pkg_short_errors_supported=no
  17178. fi
  17179. if test $_pkg_short_errors_supported = yes; then
  17180. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  17181. else
  17182. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  17183. fi
  17184. # Put the nasty error message in config.log where it belongs
  17185. echo "$PIPEWIRE_PKG_ERRORS" >&5
  17186. audio_pipewire=no
  17187. elif test $pkg_failed = untried; then
  17188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17189. $as_echo "no" >&6; }
  17190. audio_pipewire=no
  17191. else
  17192. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  17193. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  17194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17195. $as_echo "yes" >&6; }
  17196. audio_pipewire=yes
  17197. fi
  17198. if test x$audio_pipewire = xyes; then
  17199. # Check whether --enable-pipewire-shared was given.
  17200. if test "${enable_pipewire_shared+set}" = set; then :
  17201. enableval=$enable_pipewire_shared;
  17202. else
  17203. enable_pipewire_shared=yes
  17204. fi
  17205. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17206. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  17207. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  17208. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  17209. if test x$have_loadso != xyes && \
  17210. test x$enable_pipewire_shared = xyes; then
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  17212. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  17213. fi
  17214. if test x$have_loadso = xyes && \
  17215. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  17216. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  17217. cat >>confdefs.h <<_ACEOF
  17218. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  17219. _ACEOF
  17220. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  17221. else
  17222. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  17223. SUMMARY_audio="${SUMMARY_audio} pipewire"
  17224. fi
  17225. have_audio=yes
  17226. fi
  17227. fi
  17228. }
  17229. CheckPulseAudio()
  17230. {
  17231. # Check whether --enable-pulseaudio was given.
  17232. if test "${enable_pulseaudio+set}" = set; then :
  17233. enableval=$enable_pulseaudio;
  17234. else
  17235. enable_pulseaudio=yes
  17236. fi
  17237. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  17238. pkg_failed=no
  17239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  17240. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  17241. if test -n "$PULSEAUDIO_CFLAGS"; then
  17242. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  17243. elif test -n "$PKG_CONFIG"; then
  17244. if test -n "$PKG_CONFIG" && \
  17245. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  17246. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  17247. ac_status=$?
  17248. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17249. test $ac_status = 0; }; then
  17250. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  17251. test "x$?" != "x0" && pkg_failed=yes
  17252. else
  17253. pkg_failed=yes
  17254. fi
  17255. else
  17256. pkg_failed=untried
  17257. fi
  17258. if test -n "$PULSEAUDIO_LIBS"; then
  17259. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  17260. elif test -n "$PKG_CONFIG"; then
  17261. if test -n "$PKG_CONFIG" && \
  17262. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  17263. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  17264. ac_status=$?
  17265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17266. test $ac_status = 0; }; then
  17267. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  17268. test "x$?" != "x0" && pkg_failed=yes
  17269. else
  17270. pkg_failed=yes
  17271. fi
  17272. else
  17273. pkg_failed=untried
  17274. fi
  17275. if test $pkg_failed = yes; then
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17277. $as_echo "no" >&6; }
  17278. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17279. _pkg_short_errors_supported=yes
  17280. else
  17281. _pkg_short_errors_supported=no
  17282. fi
  17283. if test $_pkg_short_errors_supported = yes; then
  17284. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  17285. else
  17286. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  17287. fi
  17288. # Put the nasty error message in config.log where it belongs
  17289. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  17290. audio_pulseaudio=no
  17291. elif test $pkg_failed = untried; then
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17293. $as_echo "no" >&6; }
  17294. audio_pulseaudio=no
  17295. else
  17296. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  17297. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  17298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17299. $as_echo "yes" >&6; }
  17300. audio_pulseaudio=yes
  17301. fi
  17302. if test x$audio_pulseaudio = xyes; then
  17303. # Check whether --enable-pulseaudio-shared was given.
  17304. if test "${enable_pulseaudio_shared+set}" = set; then :
  17305. enableval=$enable_pulseaudio_shared;
  17306. else
  17307. enable_pulseaudio_shared=yes
  17308. fi
  17309. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17310. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  17311. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  17312. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  17313. if test x$have_loadso != xyes && \
  17314. test x$enable_pulseaudio_shared = xyes; then
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  17316. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  17317. fi
  17318. if test x$have_loadso = xyes && \
  17319. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  17320. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  17321. cat >>confdefs.h <<_ACEOF
  17322. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  17323. _ACEOF
  17324. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  17325. case "$host" in
  17326. # On Solaris, pulseaudio must be linked deferred explicitly
  17327. # to prevent undefined symbol failures.
  17328. *-*-solaris*)
  17329. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17330. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17331. esac
  17332. else
  17333. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17334. SUMMARY_audio="${SUMMARY_audio} pulse"
  17335. fi
  17336. have_audio=yes
  17337. fi
  17338. fi
  17339. }
  17340. CheckARTSC()
  17341. {
  17342. # Check whether --enable-arts was given.
  17343. if test "${enable_arts+set}" = set; then :
  17344. enableval=$enable_arts;
  17345. else
  17346. enable_arts=yes
  17347. fi
  17348. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17349. # Extract the first word of "artsc-config", so it can be a program name with args.
  17350. set dummy artsc-config; ac_word=$2
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17352. $as_echo_n "checking for $ac_word... " >&6; }
  17353. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17354. $as_echo_n "(cached) " >&6
  17355. else
  17356. case $ARTSCONFIG in
  17357. [\\/]* | ?:[\\/]*)
  17358. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17359. ;;
  17360. *)
  17361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17362. for as_dir in $PATH
  17363. do
  17364. IFS=$as_save_IFS
  17365. test -z "$as_dir" && as_dir=.
  17366. for ac_exec_ext in '' $ac_executable_extensions; do
  17367. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17368. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17370. break 2
  17371. fi
  17372. done
  17373. done
  17374. IFS=$as_save_IFS
  17375. ;;
  17376. esac
  17377. fi
  17378. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17379. if test -n "$ARTSCONFIG"; then
  17380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17381. $as_echo "$ARTSCONFIG" >&6; }
  17382. else
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17384. $as_echo "no" >&6; }
  17385. fi
  17386. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17387. : # arts isn't installed
  17388. else
  17389. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17390. ARTS_LIBS=`$ARTSCONFIG --libs`
  17391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17392. $as_echo_n "checking for aRts development environment... " >&6; }
  17393. audio_arts=no
  17394. save_CFLAGS="$CFLAGS"
  17395. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17397. /* end confdefs.h. */
  17398. #include <artsc.h>
  17399. int
  17400. main ()
  17401. {
  17402. arts_stream_t stream;
  17403. ;
  17404. return 0;
  17405. }
  17406. _ACEOF
  17407. if ac_fn_c_try_compile "$LINENO"; then :
  17408. audio_arts=yes
  17409. fi
  17410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17411. CFLAGS="$save_CFLAGS"
  17412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17413. $as_echo "$audio_arts" >&6; }
  17414. if test x$audio_arts = xyes; then
  17415. # Check whether --enable-arts-shared was given.
  17416. if test "${enable_arts_shared+set}" = set; then :
  17417. enableval=$enable_arts_shared;
  17418. else
  17419. enable_arts_shared=yes
  17420. fi
  17421. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17422. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17423. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17424. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17425. if test x$have_loadso != xyes && \
  17426. test x$enable_arts_shared = xyes; then
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17428. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17429. fi
  17430. if test x$have_loadso = xyes && \
  17431. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17432. echo "-- dynamic libartsc -> $arts_lib"
  17433. cat >>confdefs.h <<_ACEOF
  17434. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17435. _ACEOF
  17436. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17437. else
  17438. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17439. SUMMARY_audio="${SUMMARY_audio} arts"
  17440. fi
  17441. have_audio=yes
  17442. fi
  17443. fi
  17444. fi
  17445. }
  17446. CheckNAS()
  17447. {
  17448. # Check whether --enable-nas was given.
  17449. if test "${enable_nas+set}" = set; then :
  17450. enableval=$enable_nas;
  17451. else
  17452. enable_nas=yes
  17453. fi
  17454. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17455. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17456. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17457. have_nas_hdr=yes
  17458. fi
  17459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17460. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17461. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17462. $as_echo_n "(cached) " >&6
  17463. else
  17464. ac_check_lib_save_LIBS=$LIBS
  17465. LIBS="-laudio $LIBS"
  17466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17467. /* end confdefs.h. */
  17468. /* Override any GCC internal prototype to avoid an error.
  17469. Use char because int might match the return type of a GCC
  17470. builtin and then its argument prototype would still apply. */
  17471. #ifdef __cplusplus
  17472. extern "C"
  17473. #endif
  17474. char AuOpenServer ();
  17475. int
  17476. main ()
  17477. {
  17478. return AuOpenServer ();
  17479. ;
  17480. return 0;
  17481. }
  17482. _ACEOF
  17483. if ac_fn_c_try_link "$LINENO"; then :
  17484. ac_cv_lib_audio_AuOpenServer=yes
  17485. else
  17486. ac_cv_lib_audio_AuOpenServer=no
  17487. fi
  17488. rm -f core conftest.err conftest.$ac_objext \
  17489. conftest$ac_exeext conftest.$ac_ext
  17490. LIBS=$ac_check_lib_save_LIBS
  17491. fi
  17492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17493. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17494. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17495. have_nas_lib=yes
  17496. fi
  17497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17498. $as_echo_n "checking for NAS audio support... " >&6; }
  17499. have_nas=no
  17500. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17501. have_nas=yes
  17502. NAS_LIBS="-laudio"
  17503. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17504. have_nas=yes
  17505. NAS_CFLAGS="-I/usr/X11R6/include/"
  17506. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17507. fi
  17508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17509. $as_echo "$have_nas" >&6; }
  17510. if test x$have_nas = xyes; then
  17511. # Check whether --enable-nas-shared was given.
  17512. if test "${enable_nas_shared+set}" = set; then :
  17513. enableval=$enable_nas_shared;
  17514. else
  17515. enable_nas_shared=yes
  17516. fi
  17517. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17518. if test x$have_loadso != xyes && \
  17519. test x$enable_nas_shared = xyes; then
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17521. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17522. fi
  17523. if test x$have_loadso = xyes && \
  17524. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17525. echo "-- dynamic libaudio -> $nas_lib"
  17526. cat >>confdefs.h <<_ACEOF
  17527. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17528. _ACEOF
  17529. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17530. else
  17531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17532. SUMMARY_audio="${SUMMARY_audio} nas"
  17533. fi
  17534. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17535. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17536. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17537. have_audio=yes
  17538. fi
  17539. fi
  17540. }
  17541. CheckSNDIO()
  17542. {
  17543. # Check whether --enable-sndio was given.
  17544. if test "${enable_sndio+set}" = set; then :
  17545. enableval=$enable_sndio;
  17546. else
  17547. enable_sndio=yes
  17548. fi
  17549. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17550. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17551. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17552. have_sndio_hdr=yes
  17553. fi
  17554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17555. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17556. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17557. $as_echo_n "(cached) " >&6
  17558. else
  17559. ac_check_lib_save_LIBS=$LIBS
  17560. LIBS="-lsndio $LIBS"
  17561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17562. /* end confdefs.h. */
  17563. /* Override any GCC internal prototype to avoid an error.
  17564. Use char because int might match the return type of a GCC
  17565. builtin and then its argument prototype would still apply. */
  17566. #ifdef __cplusplus
  17567. extern "C"
  17568. #endif
  17569. char sio_open ();
  17570. int
  17571. main ()
  17572. {
  17573. return sio_open ();
  17574. ;
  17575. return 0;
  17576. }
  17577. _ACEOF
  17578. if ac_fn_c_try_link "$LINENO"; then :
  17579. ac_cv_lib_sndio_sio_open=yes
  17580. else
  17581. ac_cv_lib_sndio_sio_open=no
  17582. fi
  17583. rm -f core conftest.err conftest.$ac_objext \
  17584. conftest$ac_exeext conftest.$ac_ext
  17585. LIBS=$ac_check_lib_save_LIBS
  17586. fi
  17587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17588. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17589. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17590. have_sndio_lib=yes
  17591. fi
  17592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17593. $as_echo_n "checking for sndio audio support... " >&6; }
  17594. have_sndio=no
  17595. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17596. have_sndio=yes
  17597. SNDIO_LIBS="-lsndio"
  17598. fi
  17599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17600. $as_echo "$have_sndio" >&6; }
  17601. if test x$have_sndio = xyes; then
  17602. # Check whether --enable-sndio-shared was given.
  17603. if test "${enable_sndio_shared+set}" = set; then :
  17604. enableval=$enable_sndio_shared;
  17605. else
  17606. enable_sndio_shared=yes
  17607. fi
  17608. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17609. if test x$have_loadso != xyes && \
  17610. test x$enable_sndio_shared = xyes; then
  17611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17612. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17613. fi
  17614. if test x$have_loadso = xyes && \
  17615. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17616. echo "-- dynamic libsndio -> $sndio_lib"
  17617. cat >>confdefs.h <<_ACEOF
  17618. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17619. _ACEOF
  17620. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17621. else
  17622. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17623. SUMMARY_audio="${SUMMARY_audio} sndio"
  17624. fi
  17625. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17626. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17627. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17628. have_audio=yes
  17629. fi
  17630. fi
  17631. }
  17632. CheckFusionSound()
  17633. {
  17634. # Check whether --enable-fusionsound was given.
  17635. if test "${enable_fusionsound+set}" = set; then :
  17636. enableval=$enable_fusionsound;
  17637. else
  17638. enable_fusionsound=no
  17639. fi
  17640. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17641. pkg_failed=no
  17642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17643. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17644. if test -n "$FUSIONSOUND_CFLAGS"; then
  17645. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17646. elif test -n "$PKG_CONFIG"; then
  17647. if test -n "$PKG_CONFIG" && \
  17648. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17649. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17650. ac_status=$?
  17651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17652. test $ac_status = 0; }; then
  17653. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17654. test "x$?" != "x0" && pkg_failed=yes
  17655. else
  17656. pkg_failed=yes
  17657. fi
  17658. else
  17659. pkg_failed=untried
  17660. fi
  17661. if test -n "$FUSIONSOUND_LIBS"; then
  17662. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17663. elif test -n "$PKG_CONFIG"; then
  17664. if test -n "$PKG_CONFIG" && \
  17665. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17666. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17667. ac_status=$?
  17668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17669. test $ac_status = 0; }; then
  17670. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17671. test "x$?" != "x0" && pkg_failed=yes
  17672. else
  17673. pkg_failed=yes
  17674. fi
  17675. else
  17676. pkg_failed=untried
  17677. fi
  17678. if test $pkg_failed = yes; then
  17679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17680. $as_echo "no" >&6; }
  17681. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17682. _pkg_short_errors_supported=yes
  17683. else
  17684. _pkg_short_errors_supported=no
  17685. fi
  17686. if test $_pkg_short_errors_supported = yes; then
  17687. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17688. else
  17689. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17690. fi
  17691. # Put the nasty error message in config.log where it belongs
  17692. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17693. fusionsound=no
  17694. elif test $pkg_failed = untried; then
  17695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17696. $as_echo "no" >&6; }
  17697. fusionsound=no
  17698. else
  17699. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17700. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17702. $as_echo "yes" >&6; }
  17703. fusionsound=yes
  17704. fi
  17705. if test x$fusionsound = xyes; then
  17706. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17707. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17708. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17709. # Check whether --enable-fusionsound-shared was given.
  17710. if test "${enable_fusionsound_shared+set}" = set; then :
  17711. enableval=$enable_fusionsound_shared;
  17712. else
  17713. enable_fusionsound_shared=yes
  17714. fi
  17715. fusionsound_shared=no
  17716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17717. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17718. if test x$have_loadso != xyes && \
  17719. test x$enable_fusionsound_shared = xyes; then
  17720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17721. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17722. fi
  17723. if test x$have_loadso = xyes && \
  17724. test x$enable_fusionsound_shared = xyes; then
  17725. cat >>confdefs.h <<_ACEOF
  17726. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17727. _ACEOF
  17728. fusionsound_shared=yes
  17729. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17730. else
  17731. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17732. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17733. fi
  17734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17735. $as_echo "$fusionsound_shared" >&6; }
  17736. have_audio=yes
  17737. fi
  17738. fi
  17739. }
  17740. CheckDiskAudio()
  17741. {
  17742. # Check whether --enable-diskaudio was given.
  17743. if test "${enable_diskaudio+set}" = set; then :
  17744. enableval=$enable_diskaudio;
  17745. else
  17746. enable_diskaudio=yes
  17747. fi
  17748. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17749. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17750. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17751. SUMMARY_audio="${SUMMARY_audio} disk"
  17752. have_audio=yes
  17753. fi
  17754. }
  17755. CheckDummyAudio()
  17756. {
  17757. # Check whether --enable-dummyaudio was given.
  17758. if test "${enable_dummyaudio+set}" = set; then :
  17759. enableval=$enable_dummyaudio;
  17760. else
  17761. enable_dummyaudio=yes
  17762. fi
  17763. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17764. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17765. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17766. SUMMARY_audio="${SUMMARY_audio} dummy"
  17767. have_audio=yes
  17768. fi
  17769. }
  17770. CheckLibSampleRate()
  17771. {
  17772. # Check whether --enable-libsamplerate was given.
  17773. if test "${enable_libsamplerate+set}" = set; then :
  17774. enableval=$enable_libsamplerate;
  17775. else
  17776. enable_libsamplerate=yes
  17777. fi
  17778. if test x$enable_libsamplerate = xyes; then
  17779. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17780. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17781. have_samplerate_h_hdr=yes
  17782. else
  17783. have_samplerate_h_hdr=no
  17784. fi
  17785. if test x$have_samplerate_h_hdr = xyes; then
  17786. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17787. # Check whether --enable-libsamplerate-shared was given.
  17788. if test "${enable_libsamplerate_shared+set}" = set; then :
  17789. enableval=$enable_libsamplerate_shared;
  17790. else
  17791. enable_libsamplerate_shared=yes
  17792. fi
  17793. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17794. if test x$have_loadso != xyes && \
  17795. test x$enable_libsamplerate_shared = xyes; then
  17796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17797. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17798. fi
  17799. if test x$have_loadso = xyes && \
  17800. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17801. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17802. cat >>confdefs.h <<_ACEOF
  17803. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17804. _ACEOF
  17805. else
  17806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17807. fi
  17808. fi
  17809. fi
  17810. }
  17811. CheckARM()
  17812. {
  17813. # Check whether --enable-arm-simd was given.
  17814. if test "${enable_arm_simd+set}" = set; then :
  17815. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17816. else
  17817. enable_arm_simd=no
  17818. fi
  17819. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17820. save_CFLAGS="$CFLAGS"
  17821. have_arm_simd=no
  17822. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17824. $as_echo_n "checking for ARM SIMD... " >&6; }
  17825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17826. /* end confdefs.h. */
  17827. .text
  17828. .arch armv6
  17829. .object_arch armv4
  17830. .arm
  17831. .altmacro
  17832. #ifndef __ARM_EABI__
  17833. #error EABI is required (to be sure that calling conventions are compatible)
  17834. #endif
  17835. pld [r0]
  17836. uqadd8 r0, r0, r0
  17837. _ACEOF
  17838. if ac_fn_c_try_compile "$LINENO"; then :
  17839. have_arm_simd=yes
  17840. fi
  17841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17843. $as_echo "$have_arm_simd" >&6; }
  17844. CFLAGS="$save_CFLAGS"
  17845. if test x$have_arm_simd = xyes; then
  17846. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17847. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17848. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17849. fi
  17850. fi
  17851. }
  17852. CheckNEON()
  17853. {
  17854. # Check whether --enable-arm-neon was given.
  17855. if test "${enable_arm_neon+set}" = set; then :
  17856. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17857. else
  17858. enable_arm_neon=no
  17859. fi
  17860. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17861. save_CFLAGS="$CFLAGS"
  17862. have_arm_neon=no
  17863. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17865. $as_echo_n "checking for ARM NEON... " >&6; }
  17866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17867. /* end confdefs.h. */
  17868. .text
  17869. .fpu neon
  17870. .arch armv7a
  17871. .object_arch armv4
  17872. .eabi_attribute 10, 0
  17873. .arm
  17874. .altmacro
  17875. #ifndef __ARM_EABI__
  17876. #error EABI is required (to be sure that calling conventions are compatible)
  17877. #endif
  17878. pld [r0]
  17879. vmovn.u16 d0, q0
  17880. _ACEOF
  17881. if ac_fn_c_try_compile "$LINENO"; then :
  17882. have_arm_neon=yes
  17883. fi
  17884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17886. $as_echo "$have_arm_neon" >&6; }
  17887. CFLAGS="$save_CFLAGS"
  17888. if test x$have_arm_neon = xyes; then
  17889. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17890. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17891. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17892. fi
  17893. fi
  17894. }
  17895. CheckObjectiveCARC()
  17896. {
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  17898. $as_echo_n "checking for clang -fobjc-arc option... " >&6; }
  17899. have_clang_objc_arc=no
  17900. save_CFLAGS="$CFLAGS"
  17901. CFLAGS="$save_CFLAGS -fobjc-arc"
  17902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17903. /* end confdefs.h. */
  17904. int x = 0;
  17905. int
  17906. main ()
  17907. {
  17908. ;
  17909. return 0;
  17910. }
  17911. _ACEOF
  17912. if ac_fn_c_try_compile "$LINENO"; then :
  17913. have_clang_objc_arc=yes
  17914. fi
  17915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  17917. $as_echo "$have_clang_objc_arc" >&6; }
  17918. CFLAGS="$save_CFLAGS"
  17919. if test x$have_clang_objc_arc = xyes; then
  17920. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  17921. fi
  17922. }
  17923. CheckVisibilityHidden()
  17924. {
  17925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17926. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17927. have_gcc_fvisibility=no
  17928. visibility_CFLAGS="-fvisibility=hidden"
  17929. save_CFLAGS="$CFLAGS"
  17930. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17932. /* end confdefs.h. */
  17933. #if !defined(__GNUC__) || __GNUC__ < 4
  17934. #error SDL only uses visibility attributes in GCC 4 or newer
  17935. #endif
  17936. int
  17937. main ()
  17938. {
  17939. ;
  17940. return 0;
  17941. }
  17942. _ACEOF
  17943. if ac_fn_c_try_compile "$LINENO"; then :
  17944. have_gcc_fvisibility=yes
  17945. fi
  17946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17948. $as_echo "$have_gcc_fvisibility" >&6; }
  17949. CFLAGS="$save_CFLAGS"
  17950. if test x$have_gcc_fvisibility = xyes; then
  17951. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17952. fi
  17953. }
  17954. CheckNoStrictAliasing()
  17955. {
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17957. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17958. have_gcc_no_strict_aliasing=no
  17959. save_CFLAGS="$CFLAGS"
  17960. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17962. /* end confdefs.h. */
  17963. int x = 0;
  17964. int
  17965. main ()
  17966. {
  17967. ;
  17968. return 0;
  17969. }
  17970. _ACEOF
  17971. if ac_fn_c_try_compile "$LINENO"; then :
  17972. have_gcc_no_strict_aliasing=yes
  17973. fi
  17974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17976. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17977. CFLAGS="$save_CFLAGS"
  17978. if test x$have_gcc_no_strict_aliasing = xyes; then
  17979. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17980. fi
  17981. }
  17982. CheckStackBoundary()
  17983. {
  17984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17985. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17986. have_gcc_preferred_stack_boundary=no
  17987. save_CFLAGS="$CFLAGS"
  17988. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17990. /* end confdefs.h. */
  17991. int x = 0;
  17992. int
  17993. main ()
  17994. {
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_compile "$LINENO"; then :
  18000. have_gcc_preferred_stack_boundary=yes
  18001. fi
  18002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  18004. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  18005. CFLAGS="$save_CFLAGS"
  18006. if test x$have_gcc_preferred_stack_boundary = xyes; then
  18007. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  18008. fi
  18009. }
  18010. CheckDeclarationAfterStatement()
  18011. {
  18012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  18013. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  18014. have_gcc_declaration_after_statement=no
  18015. save_CFLAGS="$CFLAGS"
  18016. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  18017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18018. /* end confdefs.h. */
  18019. int x = 0;
  18020. int
  18021. main ()
  18022. {
  18023. ;
  18024. return 0;
  18025. }
  18026. _ACEOF
  18027. if ac_fn_c_try_compile "$LINENO"; then :
  18028. have_gcc_declaration_after_statement=yes
  18029. fi
  18030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  18032. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  18033. CFLAGS="$save_CFLAGS"
  18034. if test x$have_gcc_declaration_after_statement = xyes; then
  18035. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  18036. fi
  18037. }
  18038. CheckWarnAll()
  18039. {
  18040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  18041. $as_echo_n "checking for GCC -Wall option... " >&6; }
  18042. have_gcc_Wall=no
  18043. save_CFLAGS="$CFLAGS"
  18044. CFLAGS="$save_CFLAGS -Wall"
  18045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18046. /* end confdefs.h. */
  18047. int x = 0;
  18048. int
  18049. main ()
  18050. {
  18051. ;
  18052. return 0;
  18053. }
  18054. _ACEOF
  18055. if ac_fn_c_try_compile "$LINENO"; then :
  18056. have_gcc_Wall=yes
  18057. fi
  18058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  18060. $as_echo "$have_gcc_Wall" >&6; }
  18061. CFLAGS="$save_CFLAGS"
  18062. if test x$have_gcc_Wall = xyes; then
  18063. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  18064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  18065. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  18066. need_gcc_Wno_multichar=no
  18067. case "$host" in
  18068. *-*-haiku*)
  18069. need_gcc_Wno_multichar=yes
  18070. ;;
  18071. esac
  18072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  18073. $as_echo "$need_gcc_Wno_multichar" >&6; }
  18074. if test x$need_gcc_Wno_multichar = xyes; then
  18075. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  18076. fi
  18077. fi
  18078. }
  18079. CheckWayland()
  18080. {
  18081. # Check whether --enable-video-wayland was given.
  18082. if test "${enable_video_wayland+set}" = set; then :
  18083. enableval=$enable_video_wayland;
  18084. else
  18085. enable_video_wayland=yes
  18086. fi
  18087. # Check whether --enable-video-wayland-qt-touch was given.
  18088. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  18089. enableval=$enable_video_wayland_qt_touch;
  18090. else
  18091. enable_video_wayland_qt_touch=yes
  18092. fi
  18093. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  18094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  18095. $as_echo_n "checking for Wayland support... " >&6; }
  18096. video_wayland=no
  18097. if test x$video_opengl_egl = xyes && \
  18098. test x$video_opengles_v2 = xyes; then
  18099. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  18100. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  18101. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  18102. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  18103. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  18104. WAYLAND_SCANNER_CODE_MODE=private-code
  18105. else
  18106. WAYLAND_SCANNER_CODE_MODE=code
  18107. fi
  18108. video_wayland=yes
  18109. fi
  18110. fi
  18111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  18112. $as_echo "$video_wayland" >&6; }
  18113. if test x$video_wayland = xyes; then
  18114. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  18115. if test x$enable_video_wayland_qt_touch = xyes; then
  18116. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  18117. fi
  18118. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  18119. SOURCES="$SOURCES $WAYLAND_SOURCES"
  18120. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  18121. # Check whether --enable-wayland-shared was given.
  18122. if test "${enable_wayland_shared+set}" = set; then :
  18123. enableval=$enable_wayland_shared;
  18124. else
  18125. enable_wayland_shared=maybe
  18126. fi
  18127. case "$host" in
  18128. *)
  18129. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18130. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18131. if test x$wayland_egl_lib = x; then
  18132. # This works in Ubuntu 13.10, maybe others
  18133. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18134. fi
  18135. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18136. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18137. ;;
  18138. esac
  18139. if test x$enable_wayland_shared = xmaybe; then
  18140. enable_wayland_shared=yes
  18141. fi
  18142. if test x$have_loadso != xyes && \
  18143. test x$enable_wayland_shared = xyes; then
  18144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  18145. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  18146. enable_wayland_shared=no
  18147. fi
  18148. if test x$have_loadso = xyes && \
  18149. test x$enable_wayland_shared = xyes && \
  18150. test x$wayland_client_lib != x && \
  18151. test x$wayland_egl_lib != x && \
  18152. test x$wayland_cursor_lib != x && \
  18153. test x$xkbcommon_lib != x; then
  18154. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  18155. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  18156. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  18157. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  18158. cat >>confdefs.h <<_ACEOF
  18159. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  18160. _ACEOF
  18161. cat >>confdefs.h <<_ACEOF
  18162. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  18163. _ACEOF
  18164. cat >>confdefs.h <<_ACEOF
  18165. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  18166. _ACEOF
  18167. cat >>confdefs.h <<_ACEOF
  18168. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  18169. _ACEOF
  18170. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  18171. else
  18172. enable_wayland_shared=no
  18173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  18174. SUMMARY_video="${SUMMARY_video} wayland"
  18175. fi
  18176. have_video=yes
  18177. # Check whether --enable-libdecor was given.
  18178. if test "${enable_libdecor+set}" = set; then :
  18179. enableval=$enable_libdecor;
  18180. else
  18181. enable_libdecor=yes
  18182. fi
  18183. if test x$enable_libdecor = xyes; then
  18184. pkg_failed=no
  18185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  18186. $as_echo_n "checking for libdecor-0... " >&6; }
  18187. if test -n "$DECOR_CFLAGS"; then
  18188. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  18189. elif test -n "$PKG_CONFIG"; then
  18190. if test -n "$PKG_CONFIG" && \
  18191. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  18192. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  18193. ac_status=$?
  18194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18195. test $ac_status = 0; }; then
  18196. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  18197. test "x$?" != "x0" && pkg_failed=yes
  18198. else
  18199. pkg_failed=yes
  18200. fi
  18201. else
  18202. pkg_failed=untried
  18203. fi
  18204. if test -n "$DECOR_LIBS"; then
  18205. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  18206. elif test -n "$PKG_CONFIG"; then
  18207. if test -n "$PKG_CONFIG" && \
  18208. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  18209. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  18210. ac_status=$?
  18211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18212. test $ac_status = 0; }; then
  18213. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  18214. test "x$?" != "x0" && pkg_failed=yes
  18215. else
  18216. pkg_failed=yes
  18217. fi
  18218. else
  18219. pkg_failed=untried
  18220. fi
  18221. if test $pkg_failed = yes; then
  18222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18223. $as_echo "no" >&6; }
  18224. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18225. _pkg_short_errors_supported=yes
  18226. else
  18227. _pkg_short_errors_supported=no
  18228. fi
  18229. if test $_pkg_short_errors_supported = yes; then
  18230. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  18231. else
  18232. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  18233. fi
  18234. # Put the nasty error message in config.log where it belongs
  18235. echo "$DECOR_PKG_ERRORS" >&5
  18236. video_libdecor=no
  18237. elif test $pkg_failed = untried; then
  18238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18239. $as_echo "no" >&6; }
  18240. video_libdecor=no
  18241. else
  18242. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  18243. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18245. $as_echo "yes" >&6; }
  18246. video_libdecor=yes
  18247. fi
  18248. if test x$video_libdecor = xyes; then
  18249. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  18250. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  18251. # Check whether --enable-libdecor-shared was given.
  18252. if test "${enable_libdecor_shared+set}" = set; then :
  18253. enableval=$enable_libdecor_shared;
  18254. else
  18255. enable_libdecor_shared=yes
  18256. fi
  18257. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18258. if test x$enable_wayland_shared != xyes; then
  18259. enable_libdecor_shared=no
  18260. fi
  18261. if test x$have_loadso != xyes && \
  18262. test x$enable_libdecor_shared = xyes; then
  18263. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  18264. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  18265. fi
  18266. if test x$have_loadso = xyes && \
  18267. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  18268. echo "-- dynamic libdecor -> $decor_lib"
  18269. cat >>confdefs.h <<_ACEOF
  18270. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  18271. _ACEOF
  18272. else
  18273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  18274. fi
  18275. fi
  18276. fi
  18277. fi
  18278. fi
  18279. }
  18280. CheckNativeClient()
  18281. {
  18282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18283. /* end confdefs.h. */
  18284. #if !defined(__native_client__)
  18285. #error "NO NACL"
  18286. #endif
  18287. int
  18288. main ()
  18289. {
  18290. ;
  18291. return 0;
  18292. }
  18293. _ACEOF
  18294. if ac_fn_c_try_compile "$LINENO"; then :
  18295. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  18296. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  18297. $as_echo "#define HAVE_POW 1" >>confdefs.h
  18298. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  18299. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18300. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18301. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  18302. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  18303. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  18304. SUMMARY_audio="${SUMMARY_audio} nacl"
  18305. have_audio=yes
  18306. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  18307. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  18308. have_video=yes
  18309. fi
  18310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18311. }
  18312. CheckRPI()
  18313. {
  18314. # Check whether --enable-video-rpi was given.
  18315. if test "${enable_video_rpi+set}" = set; then :
  18316. enableval=$enable_video_rpi;
  18317. else
  18318. enable_video_rpi=yes
  18319. fi
  18320. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  18321. pkg_failed=no
  18322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  18323. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  18324. if test -n "$RPI_CFLAGS"; then
  18325. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  18326. elif test -n "$PKG_CONFIG"; then
  18327. if test -n "$PKG_CONFIG" && \
  18328. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18329. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18330. ac_status=$?
  18331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18332. test $ac_status = 0; }; then
  18333. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  18334. test "x$?" != "x0" && pkg_failed=yes
  18335. else
  18336. pkg_failed=yes
  18337. fi
  18338. else
  18339. pkg_failed=untried
  18340. fi
  18341. if test -n "$RPI_LIBS"; then
  18342. pkg_cv_RPI_LIBS="$RPI_LIBS"
  18343. elif test -n "$PKG_CONFIG"; then
  18344. if test -n "$PKG_CONFIG" && \
  18345. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18346. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18347. ac_status=$?
  18348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18349. test $ac_status = 0; }; then
  18350. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  18351. test "x$?" != "x0" && pkg_failed=yes
  18352. else
  18353. pkg_failed=yes
  18354. fi
  18355. else
  18356. pkg_failed=untried
  18357. fi
  18358. if test $pkg_failed = yes; then
  18359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18360. $as_echo "no" >&6; }
  18361. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18362. _pkg_short_errors_supported=yes
  18363. else
  18364. _pkg_short_errors_supported=no
  18365. fi
  18366. if test $_pkg_short_errors_supported = yes; then
  18367. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18368. else
  18369. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18370. fi
  18371. # Put the nasty error message in config.log where it belongs
  18372. echo "$RPI_PKG_ERRORS" >&5
  18373. video_rpi=no
  18374. elif test $pkg_failed = untried; then
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18376. $as_echo "no" >&6; }
  18377. video_rpi=no
  18378. else
  18379. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18380. RPI_LIBS=$pkg_cv_RPI_LIBS
  18381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18382. $as_echo "yes" >&6; }
  18383. video_rpi=yes
  18384. fi
  18385. if test x$video_rpi = xno; then
  18386. if test x$ARCH = xnetbsd; then
  18387. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18388. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18389. else
  18390. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18391. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18392. fi
  18393. fi
  18394. # Save the original compiler flags and libraries
  18395. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18396. # Add the Raspberry Pi compiler flags and libraries
  18397. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18399. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18400. have_video_rpi=no
  18401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18402. /* end confdefs.h. */
  18403. #include <bcm_host.h>
  18404. #include <EGL/eglplatform.h>
  18405. int
  18406. main ()
  18407. {
  18408. EGL_DISPMANX_WINDOW_T window;
  18409. bcm_host_init();
  18410. ;
  18411. return 0;
  18412. }
  18413. _ACEOF
  18414. if ac_fn_c_try_link "$LINENO"; then :
  18415. have_video_rpi=yes
  18416. fi
  18417. rm -f core conftest.err conftest.$ac_objext \
  18418. conftest$ac_exeext conftest.$ac_ext
  18419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18420. $as_echo "$have_video_rpi" >&6; }
  18421. # Restore the compiler flags and libraries
  18422. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18423. if test x$have_video_rpi = xyes; then
  18424. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18425. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18426. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18427. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18428. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18429. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18430. SUMMARY_video="${SUMMARY_video} rpi"
  18431. have_video=yes
  18432. fi
  18433. fi
  18434. }
  18435. CheckX11()
  18436. {
  18437. # Check whether --enable-video-x11 was given.
  18438. if test "${enable_video_x11+set}" = set; then :
  18439. enableval=$enable_video_x11;
  18440. else
  18441. enable_video_x11=yes
  18442. fi
  18443. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18444. case "$host" in
  18445. *-*-darwin*)
  18446. # This isn't necessary for X11, but fixes GLX detection
  18447. if test "x$x_includes" = xNONE && \
  18448. test "x$x_libraries" = xNONE && \
  18449. test -d /opt/X11/include && \
  18450. test -d /opt/X11/lib; then
  18451. x_includes="/opt/X11/include"
  18452. x_libraries="/opt/X11/lib"
  18453. fi
  18454. ;;
  18455. esac
  18456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18457. $as_echo_n "checking for X... " >&6; }
  18458. # Check whether --with-x was given.
  18459. if test "${with_x+set}" = set; then :
  18460. withval=$with_x;
  18461. fi
  18462. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18463. if test "x$with_x" = xno; then
  18464. # The user explicitly disabled X.
  18465. have_x=disabled
  18466. else
  18467. case $x_includes,$x_libraries in #(
  18468. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18469. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18470. $as_echo_n "(cached) " >&6
  18471. else
  18472. # One or both of the vars are not set, and there is no cached value.
  18473. ac_x_includes=no
  18474. ac_x_libraries=no
  18475. # Do we need to do anything special at all?
  18476. ac_save_LIBS=$LIBS
  18477. LIBS="-lX11 $LIBS"
  18478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18479. /* end confdefs.h. */
  18480. #include <X11/Xlib.h>
  18481. int
  18482. main ()
  18483. {
  18484. XrmInitialize ()
  18485. ;
  18486. return 0;
  18487. }
  18488. _ACEOF
  18489. if ac_fn_c_try_link "$LINENO"; then :
  18490. # We can compile and link X programs with no special options.
  18491. ac_x_includes=
  18492. ac_x_libraries=
  18493. fi
  18494. rm -f core conftest.err conftest.$ac_objext \
  18495. conftest$ac_exeext conftest.$ac_ext
  18496. LIBS="$ac_save_LIBS"
  18497. # If that didn't work, only try xmkmf and filesystem searches
  18498. # for native compilation.
  18499. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18500. rm -f -r conftest.dir
  18501. if mkdir conftest.dir; then
  18502. cd conftest.dir
  18503. cat >Imakefile <<'_ACEOF'
  18504. incroot:
  18505. @echo incroot='${INCROOT}'
  18506. usrlibdir:
  18507. @echo usrlibdir='${USRLIBDIR}'
  18508. libdir:
  18509. @echo libdir='${LIBDIR}'
  18510. _ACEOF
  18511. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18512. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18513. for ac_var in incroot usrlibdir libdir; do
  18514. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18515. done
  18516. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18517. for ac_extension in a so sl dylib la dll; do
  18518. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18519. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18520. ac_im_usrlibdir=$ac_im_libdir; break
  18521. fi
  18522. done
  18523. # Screen out bogus values from the imake configuration. They are
  18524. # bogus both because they are the default anyway, and because
  18525. # using them would break gcc on systems where it needs fixed includes.
  18526. case $ac_im_incroot in
  18527. /usr/include) ac_x_includes= ;;
  18528. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18529. esac
  18530. case $ac_im_usrlibdir in
  18531. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18532. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18533. esac
  18534. fi
  18535. cd ..
  18536. rm -f -r conftest.dir
  18537. fi
  18538. # Standard set of common directories for X headers.
  18539. # Check X11 before X11Rn because it is often a symlink to the current release.
  18540. ac_x_header_dirs='
  18541. /usr/X11/include
  18542. /usr/X11R7/include
  18543. /usr/X11R6/include
  18544. /usr/X11R5/include
  18545. /usr/X11R4/include
  18546. /usr/include/X11
  18547. /usr/include/X11R7
  18548. /usr/include/X11R6
  18549. /usr/include/X11R5
  18550. /usr/include/X11R4
  18551. /usr/local/X11/include
  18552. /usr/local/X11R7/include
  18553. /usr/local/X11R6/include
  18554. /usr/local/X11R5/include
  18555. /usr/local/X11R4/include
  18556. /usr/local/include/X11
  18557. /usr/local/include/X11R7
  18558. /usr/local/include/X11R6
  18559. /usr/local/include/X11R5
  18560. /usr/local/include/X11R4
  18561. /opt/X11/include
  18562. /usr/X386/include
  18563. /usr/x386/include
  18564. /usr/XFree86/include/X11
  18565. /usr/include
  18566. /usr/local/include
  18567. /usr/unsupported/include
  18568. /usr/athena/include
  18569. /usr/local/x11r5/include
  18570. /usr/lpp/Xamples/include
  18571. /usr/openwin/include
  18572. /usr/openwin/share/include'
  18573. if test "$ac_x_includes" = no; then
  18574. # Guess where to find include files, by looking for Xlib.h.
  18575. # First, try using that file with no special directory specified.
  18576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18577. /* end confdefs.h. */
  18578. #include <X11/Xlib.h>
  18579. _ACEOF
  18580. if ac_fn_c_try_cpp "$LINENO"; then :
  18581. # We can compile using X headers with no special include directory.
  18582. ac_x_includes=
  18583. else
  18584. for ac_dir in $ac_x_header_dirs; do
  18585. if test -r "$ac_dir/X11/Xlib.h"; then
  18586. ac_x_includes=$ac_dir
  18587. break
  18588. fi
  18589. done
  18590. fi
  18591. rm -f conftest.err conftest.i conftest.$ac_ext
  18592. fi # $ac_x_includes = no
  18593. if test "$ac_x_libraries" = no; then
  18594. # Check for the libraries.
  18595. # See if we find them without any special options.
  18596. # Don't add to $LIBS permanently.
  18597. ac_save_LIBS=$LIBS
  18598. LIBS="-lX11 $LIBS"
  18599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18600. /* end confdefs.h. */
  18601. #include <X11/Xlib.h>
  18602. int
  18603. main ()
  18604. {
  18605. XrmInitialize ()
  18606. ;
  18607. return 0;
  18608. }
  18609. _ACEOF
  18610. if ac_fn_c_try_link "$LINENO"; then :
  18611. LIBS=$ac_save_LIBS
  18612. # We can link X programs with no special library path.
  18613. ac_x_libraries=
  18614. else
  18615. LIBS=$ac_save_LIBS
  18616. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18617. do
  18618. # Don't even attempt the hair of trying to link an X program!
  18619. for ac_extension in a so sl dylib la dll; do
  18620. if test -r "$ac_dir/libX11.$ac_extension"; then
  18621. ac_x_libraries=$ac_dir
  18622. break 2
  18623. fi
  18624. done
  18625. done
  18626. fi
  18627. rm -f core conftest.err conftest.$ac_objext \
  18628. conftest$ac_exeext conftest.$ac_ext
  18629. fi # $ac_x_libraries = no
  18630. fi
  18631. # Record the results.
  18632. case $ac_x_includes,$ac_x_libraries in #(
  18633. no,* | *,no | *\'*) :
  18634. # Didn't find X, or a directory has "'" in its name.
  18635. ac_cv_have_x="have_x=no" ;; #(
  18636. *) :
  18637. # Record where we found X for the cache.
  18638. ac_cv_have_x="have_x=yes\
  18639. ac_x_includes='$ac_x_includes'\
  18640. ac_x_libraries='$ac_x_libraries'" ;;
  18641. esac
  18642. fi
  18643. ;; #(
  18644. *) have_x=yes;;
  18645. esac
  18646. eval "$ac_cv_have_x"
  18647. fi # $with_x != no
  18648. if test "$have_x" != yes; then
  18649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18650. $as_echo "$have_x" >&6; }
  18651. no_x=yes
  18652. else
  18653. # If each of the values was on the command line, it overrides each guess.
  18654. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18655. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18656. # Update the cache value to reflect the command line values.
  18657. ac_cv_have_x="have_x=yes\
  18658. ac_x_includes='$x_includes'\
  18659. ac_x_libraries='$x_libraries'"
  18660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18661. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18662. fi
  18663. if test "$no_x" = yes; then
  18664. # Not all programs may use this symbol, but it does not hurt to define it.
  18665. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18666. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18667. else
  18668. if test -n "$x_includes"; then
  18669. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18670. fi
  18671. # It would also be nice to do this for all -L options, not just this one.
  18672. if test -n "$x_libraries"; then
  18673. X_LIBS="$X_LIBS -L$x_libraries"
  18674. # For Solaris; some versions of Sun CC require a space after -R and
  18675. # others require no space. Words are not sufficient . . . .
  18676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18677. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18678. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18679. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18680. ac_c_werror_flag=yes
  18681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18682. /* end confdefs.h. */
  18683. int
  18684. main ()
  18685. {
  18686. ;
  18687. return 0;
  18688. }
  18689. _ACEOF
  18690. if ac_fn_c_try_link "$LINENO"; then :
  18691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18692. $as_echo "no" >&6; }
  18693. X_LIBS="$X_LIBS -R$x_libraries"
  18694. else
  18695. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18697. /* end confdefs.h. */
  18698. int
  18699. main ()
  18700. {
  18701. ;
  18702. return 0;
  18703. }
  18704. _ACEOF
  18705. if ac_fn_c_try_link "$LINENO"; then :
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18707. $as_echo "yes" >&6; }
  18708. X_LIBS="$X_LIBS -R $x_libraries"
  18709. else
  18710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18711. $as_echo "neither works" >&6; }
  18712. fi
  18713. rm -f core conftest.err conftest.$ac_objext \
  18714. conftest$ac_exeext conftest.$ac_ext
  18715. fi
  18716. rm -f core conftest.err conftest.$ac_objext \
  18717. conftest$ac_exeext conftest.$ac_ext
  18718. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18719. LIBS=$ac_xsave_LIBS
  18720. fi
  18721. # Check for system-dependent libraries X programs must link with.
  18722. # Do this before checking for the system-independent R6 libraries
  18723. # (-lICE), since we may need -lsocket or whatever for X linking.
  18724. if test "$ISC" = yes; then
  18725. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18726. else
  18727. # Martyn Johnson says this is needed for Ultrix, if the X
  18728. # libraries were built with DECnet support. And Karl Berry says
  18729. # the Alpha needs dnet_stub (dnet does not exist).
  18730. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18732. /* end confdefs.h. */
  18733. /* Override any GCC internal prototype to avoid an error.
  18734. Use char because int might match the return type of a GCC
  18735. builtin and then its argument prototype would still apply. */
  18736. #ifdef __cplusplus
  18737. extern "C"
  18738. #endif
  18739. char XOpenDisplay ();
  18740. int
  18741. main ()
  18742. {
  18743. return XOpenDisplay ();
  18744. ;
  18745. return 0;
  18746. }
  18747. _ACEOF
  18748. if ac_fn_c_try_link "$LINENO"; then :
  18749. else
  18750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18751. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18752. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18753. $as_echo_n "(cached) " >&6
  18754. else
  18755. ac_check_lib_save_LIBS=$LIBS
  18756. LIBS="-ldnet $LIBS"
  18757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18758. /* end confdefs.h. */
  18759. /* Override any GCC internal prototype to avoid an error.
  18760. Use char because int might match the return type of a GCC
  18761. builtin and then its argument prototype would still apply. */
  18762. #ifdef __cplusplus
  18763. extern "C"
  18764. #endif
  18765. char dnet_ntoa ();
  18766. int
  18767. main ()
  18768. {
  18769. return dnet_ntoa ();
  18770. ;
  18771. return 0;
  18772. }
  18773. _ACEOF
  18774. if ac_fn_c_try_link "$LINENO"; then :
  18775. ac_cv_lib_dnet_dnet_ntoa=yes
  18776. else
  18777. ac_cv_lib_dnet_dnet_ntoa=no
  18778. fi
  18779. rm -f core conftest.err conftest.$ac_objext \
  18780. conftest$ac_exeext conftest.$ac_ext
  18781. LIBS=$ac_check_lib_save_LIBS
  18782. fi
  18783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18784. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18785. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18786. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18787. fi
  18788. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18790. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18791. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18792. $as_echo_n "(cached) " >&6
  18793. else
  18794. ac_check_lib_save_LIBS=$LIBS
  18795. LIBS="-ldnet_stub $LIBS"
  18796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18797. /* end confdefs.h. */
  18798. /* Override any GCC internal prototype to avoid an error.
  18799. Use char because int might match the return type of a GCC
  18800. builtin and then its argument prototype would still apply. */
  18801. #ifdef __cplusplus
  18802. extern "C"
  18803. #endif
  18804. char dnet_ntoa ();
  18805. int
  18806. main ()
  18807. {
  18808. return dnet_ntoa ();
  18809. ;
  18810. return 0;
  18811. }
  18812. _ACEOF
  18813. if ac_fn_c_try_link "$LINENO"; then :
  18814. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18815. else
  18816. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18817. fi
  18818. rm -f core conftest.err conftest.$ac_objext \
  18819. conftest$ac_exeext conftest.$ac_ext
  18820. LIBS=$ac_check_lib_save_LIBS
  18821. fi
  18822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18823. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18824. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18825. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18826. fi
  18827. fi
  18828. fi
  18829. rm -f core conftest.err conftest.$ac_objext \
  18830. conftest$ac_exeext conftest.$ac_ext
  18831. LIBS="$ac_xsave_LIBS"
  18832. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18833. # to get the SysV transport functions.
  18834. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18835. # needs -lnsl.
  18836. # The nsl library prevents programs from opening the X display
  18837. # on Irix 5.2, according to T.E. Dickey.
  18838. # The functions gethostbyname, getservbyname, and inet_addr are
  18839. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18840. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18841. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18842. fi
  18843. if test $ac_cv_func_gethostbyname = no; then
  18844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18845. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18846. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18847. $as_echo_n "(cached) " >&6
  18848. else
  18849. ac_check_lib_save_LIBS=$LIBS
  18850. LIBS="-lnsl $LIBS"
  18851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18852. /* end confdefs.h. */
  18853. /* Override any GCC internal prototype to avoid an error.
  18854. Use char because int might match the return type of a GCC
  18855. builtin and then its argument prototype would still apply. */
  18856. #ifdef __cplusplus
  18857. extern "C"
  18858. #endif
  18859. char gethostbyname ();
  18860. int
  18861. main ()
  18862. {
  18863. return gethostbyname ();
  18864. ;
  18865. return 0;
  18866. }
  18867. _ACEOF
  18868. if ac_fn_c_try_link "$LINENO"; then :
  18869. ac_cv_lib_nsl_gethostbyname=yes
  18870. else
  18871. ac_cv_lib_nsl_gethostbyname=no
  18872. fi
  18873. rm -f core conftest.err conftest.$ac_objext \
  18874. conftest$ac_exeext conftest.$ac_ext
  18875. LIBS=$ac_check_lib_save_LIBS
  18876. fi
  18877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18878. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18879. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18880. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18881. fi
  18882. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18884. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18885. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18886. $as_echo_n "(cached) " >&6
  18887. else
  18888. ac_check_lib_save_LIBS=$LIBS
  18889. LIBS="-lbsd $LIBS"
  18890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18891. /* end confdefs.h. */
  18892. /* Override any GCC internal prototype to avoid an error.
  18893. Use char because int might match the return type of a GCC
  18894. builtin and then its argument prototype would still apply. */
  18895. #ifdef __cplusplus
  18896. extern "C"
  18897. #endif
  18898. char gethostbyname ();
  18899. int
  18900. main ()
  18901. {
  18902. return gethostbyname ();
  18903. ;
  18904. return 0;
  18905. }
  18906. _ACEOF
  18907. if ac_fn_c_try_link "$LINENO"; then :
  18908. ac_cv_lib_bsd_gethostbyname=yes
  18909. else
  18910. ac_cv_lib_bsd_gethostbyname=no
  18911. fi
  18912. rm -f core conftest.err conftest.$ac_objext \
  18913. conftest$ac_exeext conftest.$ac_ext
  18914. LIBS=$ac_check_lib_save_LIBS
  18915. fi
  18916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18917. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18918. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18919. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18920. fi
  18921. fi
  18922. fi
  18923. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18924. # socket/setsockopt and other routines are undefined under SCO ODT
  18925. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18926. # on later versions), says Simon Leinen: it contains gethostby*
  18927. # variants that don't use the name server (or something). -lsocket
  18928. # must be given before -lnsl if both are needed. We assume that
  18929. # if connect needs -lnsl, so does gethostbyname.
  18930. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18931. if test "x$ac_cv_func_connect" = xyes; then :
  18932. fi
  18933. if test $ac_cv_func_connect = no; then
  18934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18935. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18936. if ${ac_cv_lib_socket_connect+:} false; then :
  18937. $as_echo_n "(cached) " >&6
  18938. else
  18939. ac_check_lib_save_LIBS=$LIBS
  18940. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18942. /* end confdefs.h. */
  18943. /* Override any GCC internal prototype to avoid an error.
  18944. Use char because int might match the return type of a GCC
  18945. builtin and then its argument prototype would still apply. */
  18946. #ifdef __cplusplus
  18947. extern "C"
  18948. #endif
  18949. char connect ();
  18950. int
  18951. main ()
  18952. {
  18953. return connect ();
  18954. ;
  18955. return 0;
  18956. }
  18957. _ACEOF
  18958. if ac_fn_c_try_link "$LINENO"; then :
  18959. ac_cv_lib_socket_connect=yes
  18960. else
  18961. ac_cv_lib_socket_connect=no
  18962. fi
  18963. rm -f core conftest.err conftest.$ac_objext \
  18964. conftest$ac_exeext conftest.$ac_ext
  18965. LIBS=$ac_check_lib_save_LIBS
  18966. fi
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18968. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18969. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18970. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18971. fi
  18972. fi
  18973. # Guillermo Gomez says -lposix is necessary on A/UX.
  18974. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18975. if test "x$ac_cv_func_remove" = xyes; then :
  18976. fi
  18977. if test $ac_cv_func_remove = no; then
  18978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18979. $as_echo_n "checking for remove in -lposix... " >&6; }
  18980. if ${ac_cv_lib_posix_remove+:} false; then :
  18981. $as_echo_n "(cached) " >&6
  18982. else
  18983. ac_check_lib_save_LIBS=$LIBS
  18984. LIBS="-lposix $LIBS"
  18985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18986. /* end confdefs.h. */
  18987. /* Override any GCC internal prototype to avoid an error.
  18988. Use char because int might match the return type of a GCC
  18989. builtin and then its argument prototype would still apply. */
  18990. #ifdef __cplusplus
  18991. extern "C"
  18992. #endif
  18993. char remove ();
  18994. int
  18995. main ()
  18996. {
  18997. return remove ();
  18998. ;
  18999. return 0;
  19000. }
  19001. _ACEOF
  19002. if ac_fn_c_try_link "$LINENO"; then :
  19003. ac_cv_lib_posix_remove=yes
  19004. else
  19005. ac_cv_lib_posix_remove=no
  19006. fi
  19007. rm -f core conftest.err conftest.$ac_objext \
  19008. conftest$ac_exeext conftest.$ac_ext
  19009. LIBS=$ac_check_lib_save_LIBS
  19010. fi
  19011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  19012. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  19013. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  19014. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  19015. fi
  19016. fi
  19017. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  19018. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  19019. if test "x$ac_cv_func_shmat" = xyes; then :
  19020. fi
  19021. if test $ac_cv_func_shmat = no; then
  19022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  19023. $as_echo_n "checking for shmat in -lipc... " >&6; }
  19024. if ${ac_cv_lib_ipc_shmat+:} false; then :
  19025. $as_echo_n "(cached) " >&6
  19026. else
  19027. ac_check_lib_save_LIBS=$LIBS
  19028. LIBS="-lipc $LIBS"
  19029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19030. /* end confdefs.h. */
  19031. /* Override any GCC internal prototype to avoid an error.
  19032. Use char because int might match the return type of a GCC
  19033. builtin and then its argument prototype would still apply. */
  19034. #ifdef __cplusplus
  19035. extern "C"
  19036. #endif
  19037. char shmat ();
  19038. int
  19039. main ()
  19040. {
  19041. return shmat ();
  19042. ;
  19043. return 0;
  19044. }
  19045. _ACEOF
  19046. if ac_fn_c_try_link "$LINENO"; then :
  19047. ac_cv_lib_ipc_shmat=yes
  19048. else
  19049. ac_cv_lib_ipc_shmat=no
  19050. fi
  19051. rm -f core conftest.err conftest.$ac_objext \
  19052. conftest$ac_exeext conftest.$ac_ext
  19053. LIBS=$ac_check_lib_save_LIBS
  19054. fi
  19055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  19056. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  19057. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  19058. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  19059. fi
  19060. fi
  19061. fi
  19062. # Check for libraries that X11R6 Xt/Xaw programs need.
  19063. ac_save_LDFLAGS=$LDFLAGS
  19064. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  19065. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  19066. # check for ICE first), but we must link in the order -lSM -lICE or
  19067. # we get undefined symbols. So assume we have SM if we have ICE.
  19068. # These have to be linked with before -lX11, unlike the other
  19069. # libraries we check for below, so use a different variable.
  19070. # John Interrante, Karl Berry
  19071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  19072. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  19073. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  19074. $as_echo_n "(cached) " >&6
  19075. else
  19076. ac_check_lib_save_LIBS=$LIBS
  19077. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  19078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19079. /* end confdefs.h. */
  19080. /* Override any GCC internal prototype to avoid an error.
  19081. Use char because int might match the return type of a GCC
  19082. builtin and then its argument prototype would still apply. */
  19083. #ifdef __cplusplus
  19084. extern "C"
  19085. #endif
  19086. char IceConnectionNumber ();
  19087. int
  19088. main ()
  19089. {
  19090. return IceConnectionNumber ();
  19091. ;
  19092. return 0;
  19093. }
  19094. _ACEOF
  19095. if ac_fn_c_try_link "$LINENO"; then :
  19096. ac_cv_lib_ICE_IceConnectionNumber=yes
  19097. else
  19098. ac_cv_lib_ICE_IceConnectionNumber=no
  19099. fi
  19100. rm -f core conftest.err conftest.$ac_objext \
  19101. conftest$ac_exeext conftest.$ac_ext
  19102. LIBS=$ac_check_lib_save_LIBS
  19103. fi
  19104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  19105. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  19106. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  19107. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  19108. fi
  19109. LDFLAGS=$ac_save_LDFLAGS
  19110. fi
  19111. if test x$have_x = xyes; then
  19112. # Check whether --enable-x11-shared was given.
  19113. if test "${enable_x11_shared+set}" = set; then :
  19114. enableval=$enable_x11_shared;
  19115. else
  19116. enable_x11_shared=maybe
  19117. fi
  19118. case "$host" in
  19119. *-*-darwin*)
  19120. # Apple now puts this in /opt/X11
  19121. x11_lib='/opt/X11/lib/libX11.6.dylib'
  19122. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  19123. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  19124. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  19125. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  19126. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  19127. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  19128. xss_lib='/opt/X11/lib/libXss.1.dylib'
  19129. ;;
  19130. *-*-openbsd*)
  19131. x11_lib='libX11.so'
  19132. x11ext_lib='libXext.so'
  19133. xcursor_lib='libXcursor.so'
  19134. xinput_lib='libXi.so'
  19135. xfixes_lib='libXfixes.so'
  19136. xrandr_lib='libXrandr.so'
  19137. xrender_lib='libXrender.so'
  19138. xss_lib='libXss.so'
  19139. ;;
  19140. *)
  19141. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19142. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19143. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19144. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19145. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19146. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19147. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19148. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19149. ;;
  19150. esac
  19151. if test x$ac_cv_func_shmat != xyes; then
  19152. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  19153. fi
  19154. CFLAGS="$CFLAGS $X_CFLAGS"
  19155. LDFLAGS="$LDFLAGS $X_LIBS"
  19156. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  19157. #include <X11/Xproto.h>
  19158. "
  19159. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  19160. have_xext_h_hdr=yes
  19161. else
  19162. have_xext_h_hdr=no
  19163. fi
  19164. if test x$have_xext_h_hdr != xyes; then
  19165. as_fn_error $? "
  19166. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  19167. " "$LINENO" 5
  19168. fi
  19169. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  19170. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  19171. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  19172. # Needed so SDL applications can include SDL_syswm.h
  19173. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  19174. if test x$enable_x11_shared = xmaybe; then
  19175. enable_x11_shared=yes
  19176. fi
  19177. if test x$have_loadso != xyes && \
  19178. test x$enable_x11_shared = xyes; then
  19179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  19180. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  19181. enable_x11_shared=no
  19182. fi
  19183. if test x$have_loadso = xyes && \
  19184. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  19185. echo "-- dynamic libX11 -> $x11_lib"
  19186. echo "-- dynamic libX11ext -> $x11ext_lib"
  19187. cat >>confdefs.h <<_ACEOF
  19188. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  19189. _ACEOF
  19190. cat >>confdefs.h <<_ACEOF
  19191. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  19192. _ACEOF
  19193. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  19194. else
  19195. enable_x11_shared=no
  19196. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  19197. SUMMARY_video="${SUMMARY_video} x11"
  19198. fi
  19199. have_video=yes
  19200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  19201. $as_echo_n "checking for XGenericEvent... " >&6; }
  19202. have_XGenericEvent=no
  19203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19204. /* end confdefs.h. */
  19205. #include <X11/Xlib.h>
  19206. int
  19207. main ()
  19208. {
  19209. Display *display;
  19210. XEvent event;
  19211. XGenericEventCookie *cookie = &event.xcookie;
  19212. XNextEvent(display, &event);
  19213. XGetEventData(display, cookie);
  19214. XFreeEventData(display, cookie);
  19215. ;
  19216. return 0;
  19217. }
  19218. _ACEOF
  19219. if ac_fn_c_try_compile "$LINENO"; then :
  19220. have_XGenericEvent=yes
  19221. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  19222. fi
  19223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  19225. $as_echo "$have_XGenericEvent" >&6; }
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  19227. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  19228. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  19229. $as_echo_n "(cached) " >&6
  19230. else
  19231. ac_check_lib_save_LIBS=$LIBS
  19232. LIBS="-lX11 $LIBS"
  19233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19234. /* end confdefs.h. */
  19235. /* Override any GCC internal prototype to avoid an error.
  19236. Use char because int might match the return type of a GCC
  19237. builtin and then its argument prototype would still apply. */
  19238. #ifdef __cplusplus
  19239. extern "C"
  19240. #endif
  19241. char XkbKeycodeToKeysym ();
  19242. int
  19243. main ()
  19244. {
  19245. return XkbKeycodeToKeysym ();
  19246. ;
  19247. return 0;
  19248. }
  19249. _ACEOF
  19250. if ac_fn_c_try_link "$LINENO"; then :
  19251. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  19252. else
  19253. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  19254. fi
  19255. rm -f core conftest.err conftest.$ac_objext \
  19256. conftest$ac_exeext conftest.$ac_ext
  19257. LIBS=$ac_check_lib_save_LIBS
  19258. fi
  19259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  19260. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  19261. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  19262. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  19263. fi
  19264. # Check whether --enable-video-x11-xcursor was given.
  19265. if test "${enable_video_x11_xcursor+set}" = set; then :
  19266. enableval=$enable_video_x11_xcursor;
  19267. else
  19268. enable_video_x11_xcursor=yes
  19269. fi
  19270. if test x$enable_video_x11_xcursor = xyes; then
  19271. definitely_enable_video_x11_xcursor=no
  19272. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  19273. "
  19274. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  19275. have_xcursor_h_hdr=yes
  19276. else
  19277. have_xcursor_h_hdr=no
  19278. fi
  19279. if test x$have_xcursor_h_hdr = xyes; then
  19280. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  19281. echo "-- dynamic libXcursor -> $xcursor_lib"
  19282. cat >>confdefs.h <<_ACEOF
  19283. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  19284. _ACEOF
  19285. definitely_enable_video_x11_xcursor=yes
  19286. else
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  19288. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  19289. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  19290. $as_echo_n "(cached) " >&6
  19291. else
  19292. ac_check_lib_save_LIBS=$LIBS
  19293. LIBS="-lXcursor $LIBS"
  19294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19295. /* end confdefs.h. */
  19296. /* Override any GCC internal prototype to avoid an error.
  19297. Use char because int might match the return type of a GCC
  19298. builtin and then its argument prototype would still apply. */
  19299. #ifdef __cplusplus
  19300. extern "C"
  19301. #endif
  19302. char XcursorImageCreate ();
  19303. int
  19304. main ()
  19305. {
  19306. return XcursorImageCreate ();
  19307. ;
  19308. return 0;
  19309. }
  19310. _ACEOF
  19311. if ac_fn_c_try_link "$LINENO"; then :
  19312. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  19313. else
  19314. ac_cv_lib_Xcursor_XcursorImageCreate=no
  19315. fi
  19316. rm -f core conftest.err conftest.$ac_objext \
  19317. conftest$ac_exeext conftest.$ac_ext
  19318. LIBS=$ac_check_lib_save_LIBS
  19319. fi
  19320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  19321. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  19322. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  19323. have_xcursor_lib=yes
  19324. fi
  19325. if test x$have_xcursor_lib = xyes ; then
  19326. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  19327. definitely_enable_video_x11_xcursor=yes
  19328. fi
  19329. fi
  19330. fi
  19331. fi
  19332. if test x$definitely_enable_video_x11_xcursor = xyes; then
  19333. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  19334. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  19335. fi
  19336. # Check whether --enable-video-x11-xdbe was given.
  19337. if test "${enable_video_x11_xdbe+set}" = set; then :
  19338. enableval=$enable_video_x11_xdbe;
  19339. else
  19340. enable_video_x11_xdbe=yes
  19341. fi
  19342. if test x$enable_video_x11_xdbe = xyes; then
  19343. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  19344. "
  19345. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  19346. have_dbe_h_hdr=yes
  19347. else
  19348. have_dbe_h_hdr=no
  19349. fi
  19350. if test x$have_dbe_h_hdr = xyes; then
  19351. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19352. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19353. fi
  19354. fi
  19355. # Check whether --enable-video-x11-xinput was given.
  19356. if test "${enable_video_x11_xinput+set}" = set; then :
  19357. enableval=$enable_video_x11_xinput;
  19358. else
  19359. enable_video_x11_xinput=yes
  19360. fi
  19361. if test x$enable_video_x11_xinput = xyes; then
  19362. definitely_enable_video_x11_xinput=no
  19363. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19364. "
  19365. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19366. have_xinput_h_hdr=yes
  19367. else
  19368. have_xinput_h_hdr=no
  19369. fi
  19370. if test x$have_xinput_h_hdr = xyes; then
  19371. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19372. echo "-- dynamic libXi -> $xinput_lib"
  19373. cat >>confdefs.h <<_ACEOF
  19374. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19375. _ACEOF
  19376. definitely_enable_video_x11_xinput=yes
  19377. else
  19378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19379. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19380. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19381. $as_echo_n "(cached) " >&6
  19382. else
  19383. ac_check_lib_save_LIBS=$LIBS
  19384. LIBS="-lXi $LIBS"
  19385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19386. /* end confdefs.h. */
  19387. /* Override any GCC internal prototype to avoid an error.
  19388. Use char because int might match the return type of a GCC
  19389. builtin and then its argument prototype would still apply. */
  19390. #ifdef __cplusplus
  19391. extern "C"
  19392. #endif
  19393. char XOpenDevice ();
  19394. int
  19395. main ()
  19396. {
  19397. return XOpenDevice ();
  19398. ;
  19399. return 0;
  19400. }
  19401. _ACEOF
  19402. if ac_fn_c_try_link "$LINENO"; then :
  19403. ac_cv_lib_Xi_XOpenDevice=yes
  19404. else
  19405. ac_cv_lib_Xi_XOpenDevice=no
  19406. fi
  19407. rm -f core conftest.err conftest.$ac_objext \
  19408. conftest$ac_exeext conftest.$ac_ext
  19409. LIBS=$ac_check_lib_save_LIBS
  19410. fi
  19411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19412. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19413. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19414. have_xinput_lib=yes
  19415. fi
  19416. if test x$have_xinput_lib = xyes ; then
  19417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19418. definitely_enable_video_x11_xinput=yes
  19419. fi
  19420. fi
  19421. fi
  19422. fi
  19423. if test x$definitely_enable_video_x11_xinput = xyes; then
  19424. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19425. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19427. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19428. have_xinput2_multitouch=no
  19429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19430. /* end confdefs.h. */
  19431. #include <X11/Xlib.h>
  19432. #include <X11/Xproto.h>
  19433. #include <X11/extensions/XInput2.h>
  19434. int
  19435. main ()
  19436. {
  19437. int event_type = XI_TouchBegin;
  19438. XITouchClassInfo *t;
  19439. ;
  19440. return 0;
  19441. }
  19442. _ACEOF
  19443. if ac_fn_c_try_compile "$LINENO"; then :
  19444. have_xinput2_multitouch=yes
  19445. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19446. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19447. fi
  19448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19450. $as_echo "$have_xinput2_multitouch" >&6; }
  19451. fi
  19452. # Check whether --enable-video-x11-xfixes was given.
  19453. if test "${enable_video_x11_xfixes+set}" = set; then :
  19454. enableval=$enable_video_x11_xfixes;
  19455. else
  19456. enable_video_x11_xfixes=yes
  19457. fi
  19458. if test x$enable_video_x11_xfixes = xyes; then
  19459. definitely_enable_video_x11_xfixes=no
  19460. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19462. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19464. /* end confdefs.h. */
  19465. #include <X11/Xlib.h>
  19466. #include <X11/Xproto.h>
  19467. #include <X11/extensions/XInput2.h>
  19468. #include <X11/extensions/Xfixes.h>
  19469. int
  19470. main ()
  19471. {
  19472. BarrierEventID b;
  19473. ;
  19474. return 0;
  19475. }
  19476. _ACEOF
  19477. if ac_fn_c_try_compile "$LINENO"; then :
  19478. have_xfixes_h_hdr=yes
  19479. else
  19480. have_xfixes_h_hdr=no
  19481. fi
  19482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19484. $as_echo "$have_xfixes_h_hdr" >&6; }
  19485. if test x$have_xfixes_h_hdr = xyes; then
  19486. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19487. echo "-- dynamic libXfixes -> $xfixes_lib"
  19488. cat >>confdefs.h <<_ACEOF
  19489. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19490. _ACEOF
  19491. definitely_enable_video_x11_xfixes=yes
  19492. else
  19493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19494. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19495. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19496. $as_echo_n "(cached) " >&6
  19497. else
  19498. ac_check_lib_save_LIBS=$LIBS
  19499. LIBS="-lXfixes $LIBS"
  19500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19501. /* end confdefs.h. */
  19502. /* Override any GCC internal prototype to avoid an error.
  19503. Use char because int might match the return type of a GCC
  19504. builtin and then its argument prototype would still apply. */
  19505. #ifdef __cplusplus
  19506. extern "C"
  19507. #endif
  19508. char XFixesCreatePointerBarrier ();
  19509. int
  19510. main ()
  19511. {
  19512. return XFixesCreatePointerBarrier ();
  19513. ;
  19514. return 0;
  19515. }
  19516. _ACEOF
  19517. if ac_fn_c_try_link "$LINENO"; then :
  19518. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19519. else
  19520. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19521. fi
  19522. rm -f core conftest.err conftest.$ac_objext \
  19523. conftest$ac_exeext conftest.$ac_ext
  19524. LIBS=$ac_check_lib_save_LIBS
  19525. fi
  19526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19527. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19528. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19529. have_xfixes_lib=yes
  19530. fi
  19531. if test x$have_xfixes_lib = xyes ; then
  19532. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19533. definitely_enable_video_x11_xfixes=yes
  19534. fi
  19535. fi
  19536. fi
  19537. fi
  19538. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19539. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19540. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19541. fi
  19542. # Check whether --enable-video-x11-xrandr was given.
  19543. if test "${enable_video_x11_xrandr+set}" = set; then :
  19544. enableval=$enable_video_x11_xrandr;
  19545. else
  19546. enable_video_x11_xrandr=yes
  19547. fi
  19548. if test x$enable_video_x11_xrandr = xyes; then
  19549. definitely_enable_video_x11_xrandr=no
  19550. have_xrandr_h_hdr=no
  19551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19552. /* end confdefs.h. */
  19553. #include <X11/Xlib.h>
  19554. #include <X11/extensions/Xrandr.h>
  19555. int
  19556. main ()
  19557. {
  19558. XRRScreenResources *res = NULL;
  19559. ;
  19560. return 0;
  19561. }
  19562. _ACEOF
  19563. if ac_fn_c_try_compile "$LINENO"; then :
  19564. have_xrandr_h_hdr=yes
  19565. fi
  19566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19567. if test x$have_xrandr_h_hdr = xyes; then
  19568. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19569. echo "-- dynamic libXrandr -> $xrandr_lib"
  19570. cat >>confdefs.h <<_ACEOF
  19571. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19572. _ACEOF
  19573. definitely_enable_video_x11_xrandr=yes
  19574. else
  19575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19576. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19577. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19578. $as_echo_n "(cached) " >&6
  19579. else
  19580. ac_check_lib_save_LIBS=$LIBS
  19581. LIBS="-lXrandr $LIBS"
  19582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19583. /* end confdefs.h. */
  19584. /* Override any GCC internal prototype to avoid an error.
  19585. Use char because int might match the return type of a GCC
  19586. builtin and then its argument prototype would still apply. */
  19587. #ifdef __cplusplus
  19588. extern "C"
  19589. #endif
  19590. char XRRQueryExtension ();
  19591. int
  19592. main ()
  19593. {
  19594. return XRRQueryExtension ();
  19595. ;
  19596. return 0;
  19597. }
  19598. _ACEOF
  19599. if ac_fn_c_try_link "$LINENO"; then :
  19600. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19601. else
  19602. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19603. fi
  19604. rm -f core conftest.err conftest.$ac_objext \
  19605. conftest$ac_exeext conftest.$ac_ext
  19606. LIBS=$ac_check_lib_save_LIBS
  19607. fi
  19608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19609. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19610. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19611. have_xrandr_lib=yes
  19612. fi
  19613. if test x$have_xrandr_lib = xyes ; then
  19614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19615. definitely_enable_video_x11_xrandr=yes
  19616. fi
  19617. fi
  19618. fi
  19619. fi
  19620. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19621. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19622. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19623. fi
  19624. # Check whether --enable-video-x11-scrnsaver was given.
  19625. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19626. enableval=$enable_video_x11_scrnsaver;
  19627. else
  19628. enable_video_x11_scrnsaver=yes
  19629. fi
  19630. if test x$enable_video_x11_scrnsaver = xyes; then
  19631. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19632. "
  19633. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19634. have_scrnsaver_h_hdr=yes
  19635. else
  19636. have_scrnsaver_h_hdr=no
  19637. fi
  19638. if test x$have_scrnsaver_h_hdr = xyes; then
  19639. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19640. echo "-- dynamic libXss -> $xss_lib"
  19641. cat >>confdefs.h <<_ACEOF
  19642. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19643. _ACEOF
  19644. definitely_enable_video_x11_scrnsaver=yes
  19645. else
  19646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19647. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19648. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19649. $as_echo_n "(cached) " >&6
  19650. else
  19651. ac_check_lib_save_LIBS=$LIBS
  19652. LIBS="-lXss $LIBS"
  19653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19654. /* end confdefs.h. */
  19655. /* Override any GCC internal prototype to avoid an error.
  19656. Use char because int might match the return type of a GCC
  19657. builtin and then its argument prototype would still apply. */
  19658. #ifdef __cplusplus
  19659. extern "C"
  19660. #endif
  19661. char XScreenSaverSuspend ();
  19662. int
  19663. main ()
  19664. {
  19665. return XScreenSaverSuspend ();
  19666. ;
  19667. return 0;
  19668. }
  19669. _ACEOF
  19670. if ac_fn_c_try_link "$LINENO"; then :
  19671. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19672. else
  19673. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19674. fi
  19675. rm -f core conftest.err conftest.$ac_objext \
  19676. conftest$ac_exeext conftest.$ac_ext
  19677. LIBS=$ac_check_lib_save_LIBS
  19678. fi
  19679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19680. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19681. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19682. have_xss_lib=yes
  19683. fi
  19684. if test x$have_xss_lib = xyes ; then
  19685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19686. definitely_enable_video_x11_scrnsaver=yes
  19687. fi
  19688. fi
  19689. fi
  19690. fi
  19691. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19692. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19693. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19694. fi
  19695. # Check whether --enable-video-x11-xshape was given.
  19696. if test "${enable_video_x11_xshape+set}" = set; then :
  19697. enableval=$enable_video_x11_xshape;
  19698. else
  19699. enable_video_x11_xshape=yes
  19700. fi
  19701. if test x$enable_video_x11_xshape = xyes; then
  19702. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19703. "
  19704. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19705. have_shape_h_hdr=yes
  19706. else
  19707. have_shape_h_hdr=no
  19708. fi
  19709. if test x$have_shape_h_hdr = xyes; then
  19710. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19711. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19712. fi
  19713. fi
  19714. fi
  19715. fi
  19716. if test x$have_x != xyes; then
  19717. # Prevent Mesa from including X11 headers
  19718. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19719. fi
  19720. }
  19721. CheckVivanteVideo()
  19722. {
  19723. # Check whether --enable-video-vivante was given.
  19724. if test "${enable_video_vivante+set}" = set; then :
  19725. enableval=$enable_video_vivante;
  19726. else
  19727. enable_video_vivante=yes
  19728. fi
  19729. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19731. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19732. have_vivante_vdk=no
  19733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19734. /* end confdefs.h. */
  19735. #define LINUX
  19736. #define EGL_API_FB
  19737. #include <gc_vdk.h>
  19738. int
  19739. main ()
  19740. {
  19741. ;
  19742. return 0;
  19743. }
  19744. _ACEOF
  19745. if ac_fn_c_try_compile "$LINENO"; then :
  19746. have_vivante_vdk=yes
  19747. fi
  19748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19750. $as_echo "$have_vivante_vdk" >&6; }
  19751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19752. $as_echo_n "checking for Vivante FB API... " >&6; }
  19753. have_vivante_egl=no
  19754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19755. /* end confdefs.h. */
  19756. #define LINUX
  19757. #define EGL_API_FB
  19758. #include <EGL/eglvivante.h>
  19759. int
  19760. main ()
  19761. {
  19762. ;
  19763. return 0;
  19764. }
  19765. _ACEOF
  19766. if ac_fn_c_try_compile "$LINENO"; then :
  19767. have_vivante_egl=yes
  19768. fi
  19769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19771. $as_echo "$have_vivante_egl" >&6; }
  19772. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19773. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19774. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19775. if test x$have_vivante_vdk = xyes; then
  19776. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19778. fi
  19779. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19780. SUMMARY_video="${SUMMARY_video} vivante"
  19781. have_video=yes
  19782. fi
  19783. fi
  19784. }
  19785. CheckHaikuVideo()
  19786. {
  19787. if test x$enable_video = xyes; then
  19788. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19789. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19790. have_video=yes
  19791. SUMMARY_video="${SUMMARY_video} haiku"
  19792. fi
  19793. }
  19794. CheckCOCOA()
  19795. {
  19796. # Check whether --enable-video-cocoa was given.
  19797. if test "${enable_video_cocoa+set}" = set; then :
  19798. enableval=$enable_video_cocoa;
  19799. else
  19800. enable_video_cocoa=yes
  19801. fi
  19802. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19803. save_CFLAGS="$CFLAGS"
  19804. CFLAGS="$CFLAGS -x objective-c"
  19805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19806. $as_echo_n "checking for Cocoa framework... " >&6; }
  19807. have_cocoa=no
  19808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19809. /* end confdefs.h. */
  19810. #import <Cocoa/Cocoa.h>
  19811. int
  19812. main ()
  19813. {
  19814. ;
  19815. return 0;
  19816. }
  19817. _ACEOF
  19818. if ac_fn_c_try_compile "$LINENO"; then :
  19819. have_cocoa=yes
  19820. fi
  19821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19823. $as_echo "$have_cocoa" >&6; }
  19824. CFLAGS="$save_CFLAGS"
  19825. if test x$have_cocoa = xyes; then
  19826. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19827. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19828. SUMMARY_video="${SUMMARY_video} cocoa"
  19829. have_video=yes
  19830. fi
  19831. fi
  19832. }
  19833. CheckMETAL()
  19834. {
  19835. # Check whether --enable-video-metal was given.
  19836. if test "${enable_video_metal+set}" = set; then :
  19837. enableval=$enable_video_metal;
  19838. else
  19839. enable_video_metal=yes
  19840. fi
  19841. # Check whether --enable-render-metal was given.
  19842. if test "${enable_render_metal+set}" = set; then :
  19843. enableval=$enable_render_metal;
  19844. else
  19845. enable_render_metal=yes
  19846. fi
  19847. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19848. save_CFLAGS="$CFLAGS"
  19849. CFLAGS="$CFLAGS -x objective-c"
  19850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19851. $as_echo_n "checking for Metal framework... " >&6; }
  19852. have_metal=no
  19853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19854. /* end confdefs.h. */
  19855. #import <Cocoa/Cocoa.h>
  19856. #import <Metal/Metal.h>
  19857. #import <QuartzCore/CAMetalLayer.h>
  19858. #if TARGET_CPU_X86
  19859. #error Metal doesn't work on this configuration
  19860. #endif
  19861. int
  19862. main ()
  19863. {
  19864. ;
  19865. return 0;
  19866. }
  19867. _ACEOF
  19868. if ac_fn_c_try_compile "$LINENO"; then :
  19869. have_metal=yes
  19870. fi
  19871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19872. CFLAGS="$save_CFLAGS"
  19873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19874. $as_echo "$have_metal" >&6; }
  19875. if test x$have_metal = xyes; then
  19876. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19877. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19878. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19879. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19880. fi
  19881. SUMMARY_video="${SUMMARY_video} metal"
  19882. else
  19883. enable_video_metal=no
  19884. enable_render_metal=no
  19885. fi
  19886. fi
  19887. }
  19888. CheckDirectFB()
  19889. {
  19890. # Check whether --enable-video-directfb was given.
  19891. if test "${enable_video_directfb+set}" = set; then :
  19892. enableval=$enable_video_directfb;
  19893. else
  19894. enable_video_directfb=no
  19895. fi
  19896. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19897. pkg_failed=no
  19898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19899. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19900. if test -n "$DIRECTFB_CFLAGS"; then
  19901. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19902. elif test -n "$PKG_CONFIG"; then
  19903. if test -n "$PKG_CONFIG" && \
  19904. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19905. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19906. ac_status=$?
  19907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19908. test $ac_status = 0; }; then
  19909. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19910. test "x$?" != "x0" && pkg_failed=yes
  19911. else
  19912. pkg_failed=yes
  19913. fi
  19914. else
  19915. pkg_failed=untried
  19916. fi
  19917. if test -n "$DIRECTFB_LIBS"; then
  19918. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19919. elif test -n "$PKG_CONFIG"; then
  19920. if test -n "$PKG_CONFIG" && \
  19921. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19922. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19923. ac_status=$?
  19924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19925. test $ac_status = 0; }; then
  19926. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19927. test "x$?" != "x0" && pkg_failed=yes
  19928. else
  19929. pkg_failed=yes
  19930. fi
  19931. else
  19932. pkg_failed=untried
  19933. fi
  19934. if test $pkg_failed = yes; then
  19935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19936. $as_echo "no" >&6; }
  19937. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19938. _pkg_short_errors_supported=yes
  19939. else
  19940. _pkg_short_errors_supported=no
  19941. fi
  19942. if test $_pkg_short_errors_supported = yes; then
  19943. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19944. else
  19945. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19946. fi
  19947. # Put the nasty error message in config.log where it belongs
  19948. echo "$DIRECTFB_PKG_ERRORS" >&5
  19949. video_directfb=no
  19950. elif test $pkg_failed = untried; then
  19951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19952. $as_echo "no" >&6; }
  19953. video_directfb=no
  19954. else
  19955. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19956. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19958. $as_echo "yes" >&6; }
  19959. video_directfb=yes
  19960. fi
  19961. if test x$video_directfb = xyes; then
  19962. # SuSE 11.1 installs directfb-config without directfb-devel
  19963. save_CPPFLAGS="$CPPFLAGS"
  19964. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19965. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19966. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19967. have_directfb_hdr=yes
  19968. else
  19969. have_directfb_hdr=no
  19970. fi
  19971. CPPFLAGS="$save_CPPFLAGS"
  19972. video_directfb=$have_directfb_hdr
  19973. fi
  19974. if test x$video_directfb = xyes; then
  19975. # Check whether --enable-directfb-shared was given.
  19976. if test "${enable_directfb_shared+set}" = set; then :
  19977. enableval=$enable_directfb_shared;
  19978. else
  19979. enable_directfb_shared=yes
  19980. fi
  19981. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19982. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19983. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19984. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19985. directfb_shared=no
  19986. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19987. if test x$have_loadso != xyes && \
  19988. test x$enable_directfb_shared = xyes; then
  19989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19990. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19991. fi
  19992. if test x$have_loadso = xyes && \
  19993. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19994. directfb_shared=yes
  19995. echo "-- dynamic libdirectfb -> $directfb_lib"
  19996. cat >>confdefs.h <<_ACEOF
  19997. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19998. _ACEOF
  19999. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  20000. else
  20001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  20002. SUMMARY_video="${SUMMARY_video} directfb"
  20003. fi
  20004. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  20005. have_video=yes
  20006. fi
  20007. fi
  20008. }
  20009. CheckKMSDRM()
  20010. {
  20011. # Check whether --enable-video-kmsdrm was given.
  20012. if test "${enable_video_kmsdrm+set}" = set; then :
  20013. enableval=$enable_video_kmsdrm;
  20014. else
  20015. enable_video_kmsdrm=yes
  20016. fi
  20017. if test x$enable_video = xyes && \
  20018. test x$enable_video_kmsdrm = xyes && \
  20019. test x$video_opengl_egl = xyes; then
  20020. video_kmsdrm=no
  20021. pkg_failed=no
  20022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  20023. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  20024. if test -n "$LIBDRM_CFLAGS"; then
  20025. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  20026. elif test -n "$PKG_CONFIG"; then
  20027. if test -n "$PKG_CONFIG" && \
  20028. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  20029. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  20030. ac_status=$?
  20031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20032. test $ac_status = 0; }; then
  20033. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  20034. test "x$?" != "x0" && pkg_failed=yes
  20035. else
  20036. pkg_failed=yes
  20037. fi
  20038. else
  20039. pkg_failed=untried
  20040. fi
  20041. if test -n "$LIBDRM_LIBS"; then
  20042. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  20043. elif test -n "$PKG_CONFIG"; then
  20044. if test -n "$PKG_CONFIG" && \
  20045. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  20046. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  20047. ac_status=$?
  20048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20049. test $ac_status = 0; }; then
  20050. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  20051. test "x$?" != "x0" && pkg_failed=yes
  20052. else
  20053. pkg_failed=yes
  20054. fi
  20055. else
  20056. pkg_failed=untried
  20057. fi
  20058. if test $pkg_failed = yes; then
  20059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20060. $as_echo "no" >&6; }
  20061. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20062. _pkg_short_errors_supported=yes
  20063. else
  20064. _pkg_short_errors_supported=no
  20065. fi
  20066. if test $_pkg_short_errors_supported = yes; then
  20067. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  20068. else
  20069. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  20070. fi
  20071. # Put the nasty error message in config.log where it belongs
  20072. echo "$LIBDRM_PKG_ERRORS" >&5
  20073. libdrm_avail=no
  20074. elif test $pkg_failed = untried; then
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20076. $as_echo "no" >&6; }
  20077. libdrm_avail=no
  20078. else
  20079. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  20080. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  20081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20082. $as_echo "yes" >&6; }
  20083. libdrm_avail=yes
  20084. fi
  20085. pkg_failed=no
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  20087. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  20088. if test -n "$LIBGBM_CFLAGS"; then
  20089. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  20090. elif test -n "$PKG_CONFIG"; then
  20091. if test -n "$PKG_CONFIG" && \
  20092. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  20093. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  20094. ac_status=$?
  20095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20096. test $ac_status = 0; }; then
  20097. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  20098. test "x$?" != "x0" && pkg_failed=yes
  20099. else
  20100. pkg_failed=yes
  20101. fi
  20102. else
  20103. pkg_failed=untried
  20104. fi
  20105. if test -n "$LIBGBM_LIBS"; then
  20106. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  20107. elif test -n "$PKG_CONFIG"; then
  20108. if test -n "$PKG_CONFIG" && \
  20109. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  20110. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  20111. ac_status=$?
  20112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20113. test $ac_status = 0; }; then
  20114. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  20115. test "x$?" != "x0" && pkg_failed=yes
  20116. else
  20117. pkg_failed=yes
  20118. fi
  20119. else
  20120. pkg_failed=untried
  20121. fi
  20122. if test $pkg_failed = yes; then
  20123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20124. $as_echo "no" >&6; }
  20125. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20126. _pkg_short_errors_supported=yes
  20127. else
  20128. _pkg_short_errors_supported=no
  20129. fi
  20130. if test $_pkg_short_errors_supported = yes; then
  20131. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  20132. else
  20133. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  20134. fi
  20135. # Put the nasty error message in config.log where it belongs
  20136. echo "$LIBGBM_PKG_ERRORS" >&5
  20137. libgbm_avail=no
  20138. elif test $pkg_failed = untried; then
  20139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20140. $as_echo "no" >&6; }
  20141. libgbm_avail=no
  20142. else
  20143. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  20144. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  20145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20146. $as_echo "yes" >&6; }
  20147. libgbm_avail=yes
  20148. fi
  20149. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  20150. video_kmsdrm=yes
  20151. fi
  20152. if test x$video_kmsdrm = xyes; then
  20153. # Check whether --enable-kmsdrm-shared was given.
  20154. if test "${enable_kmsdrm_shared+set}" = set; then :
  20155. enableval=$enable_kmsdrm_shared;
  20156. else
  20157. enable_kmsdrm_shared=yes
  20158. fi
  20159. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  20160. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  20161. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  20162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  20163. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  20164. kmsdrm_shared=no
  20165. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  20166. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  20167. if test x$have_loadso != xyes && \
  20168. test x$enable_kmsdrm_shared = xyes; then
  20169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  20170. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  20171. fi
  20172. if test x$have_loadso = xyes && \
  20173. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  20174. kmsdrm_shared=yes
  20175. cat >>confdefs.h <<_ACEOF
  20176. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  20177. _ACEOF
  20178. cat >>confdefs.h <<_ACEOF
  20179. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  20180. _ACEOF
  20181. cat >>confdefs.h <<_ACEOF
  20182. #define HAVE_KMSDRM_SHARED "TRUE"
  20183. _ACEOF
  20184. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  20185. else
  20186. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  20187. SUMMARY_video="${SUMMARY_video} kmsdrm"
  20188. fi
  20189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  20190. $as_echo "$kmsdrm_shared" >&6; }
  20191. if test x$kmsdrm_shared = xyes; then
  20192. echo "-- dynamic libdrm -> $drm_lib"
  20193. echo "-- dynamic libgbm -> $gbm_lib"
  20194. fi
  20195. have_video=yes
  20196. fi
  20197. fi
  20198. }
  20199. CheckDummyVideo()
  20200. {
  20201. # Check whether --enable-video-dummy was given.
  20202. if test "${enable_video_dummy+set}" = set; then :
  20203. enableval=$enable_video_dummy;
  20204. else
  20205. enable_video_dummy=yes
  20206. fi
  20207. if test x$enable_video_dummy = xyes; then
  20208. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  20209. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  20210. have_video=yes
  20211. SUMMARY_video="${SUMMARY_video} dummy"
  20212. fi
  20213. }
  20214. CheckOffscreenVideo()
  20215. {
  20216. # Check whether --enable-video-offscreen was given.
  20217. if test "${enable_video_offscreen+set}" = set; then :
  20218. enableval=$enable_video_offscreen;
  20219. else
  20220. enable_video_offscreen=no
  20221. fi
  20222. if test x$enable_video_offscreen = xyes; then
  20223. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  20224. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  20225. have_video=yes
  20226. SUMMARY_video="${SUMMARY_video} offscreen"
  20227. fi
  20228. }
  20229. CheckQNXVideo()
  20230. {
  20231. if test x$enable_video = xyes; then
  20232. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  20233. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  20234. have_video=yes
  20235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  20236. SUMMARY_video="${SUMMARY_video} qnx"
  20237. fi
  20238. }
  20239. CheckQNXAudio()
  20240. {
  20241. if test x$enable_audio = xyes; then
  20242. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  20243. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  20244. have_audio=yes
  20245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  20246. SUMMARY_audio="${SUMMARY_audio} qsa"
  20247. fi
  20248. }
  20249. # Check whether --enable-video-opengl was given.
  20250. if test "${enable_video_opengl+set}" = set; then :
  20251. enableval=$enable_video_opengl;
  20252. else
  20253. enable_video_opengl=yes
  20254. fi
  20255. CheckGLX()
  20256. {
  20257. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  20259. $as_echo_n "checking for GLX support... " >&6; }
  20260. video_opengl_glx=no
  20261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20262. /* end confdefs.h. */
  20263. #include <GL/glx.h>
  20264. int
  20265. main ()
  20266. {
  20267. ;
  20268. return 0;
  20269. }
  20270. _ACEOF
  20271. if ac_fn_c_try_compile "$LINENO"; then :
  20272. video_opengl_glx=yes
  20273. fi
  20274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  20276. $as_echo "$video_opengl_glx" >&6; }
  20277. if test x$video_opengl_glx = xyes; then
  20278. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20279. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  20280. fi
  20281. fi
  20282. }
  20283. # Check whether --enable-video-opengles was given.
  20284. if test "${enable_video_opengles+set}" = set; then :
  20285. enableval=$enable_video_opengles;
  20286. else
  20287. enable_video_opengles=yes
  20288. fi
  20289. # Check whether --enable-video-opengles1 was given.
  20290. if test "${enable_video_opengles1+set}" = set; then :
  20291. enableval=$enable_video_opengles1;
  20292. else
  20293. enable_video_opengles1=yes
  20294. fi
  20295. # Check whether --enable-video-opengles2 was given.
  20296. if test "${enable_video_opengles2+set}" = set; then :
  20297. enableval=$enable_video_opengles2;
  20298. else
  20299. enable_video_opengles2=yes
  20300. fi
  20301. CheckEGL()
  20302. {
  20303. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20305. $as_echo_n "checking for EGL support... " >&6; }
  20306. video_opengl_egl=no
  20307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20308. /* end confdefs.h. */
  20309. #define LINUX
  20310. #define EGL_API_FB
  20311. #define MESA_EGL_NO_X11_HEADERS
  20312. #define EGL_NO_X11
  20313. #include <EGL/egl.h>
  20314. #include <EGL/eglext.h>
  20315. int
  20316. main ()
  20317. {
  20318. ;
  20319. return 0;
  20320. }
  20321. _ACEOF
  20322. if ac_fn_c_try_compile "$LINENO"; then :
  20323. video_opengl_egl=yes
  20324. fi
  20325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20327. $as_echo "$video_opengl_egl" >&6; }
  20328. if test x$video_opengl_egl = xyes; then
  20329. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20330. fi
  20331. fi
  20332. }
  20333. CheckOpenGL()
  20334. {
  20335. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20337. $as_echo_n "checking for OpenGL headers... " >&6; }
  20338. video_opengl=no
  20339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20340. /* end confdefs.h. */
  20341. #include <GL/gl.h>
  20342. #include <GL/glext.h>
  20343. int
  20344. main ()
  20345. {
  20346. ;
  20347. return 0;
  20348. }
  20349. _ACEOF
  20350. if ac_fn_c_try_compile "$LINENO"; then :
  20351. video_opengl=yes
  20352. fi
  20353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20355. $as_echo "$video_opengl" >&6; }
  20356. if test x$video_opengl = xyes; then
  20357. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20358. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20359. SUMMARY_video="${SUMMARY_video} opengl"
  20360. fi
  20361. fi
  20362. }
  20363. CheckOpenGLES()
  20364. {
  20365. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20366. if test x$enable_video_opengles1 = xyes; then
  20367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20368. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20369. video_opengles_v1=no
  20370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20371. /* end confdefs.h. */
  20372. #include <GLES/gl.h>
  20373. #include <GLES/glext.h>
  20374. int
  20375. main ()
  20376. {
  20377. ;
  20378. return 0;
  20379. }
  20380. _ACEOF
  20381. if ac_fn_c_try_compile "$LINENO"; then :
  20382. video_opengles_v1=yes
  20383. fi
  20384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20386. $as_echo "$video_opengles_v1" >&6; }
  20387. if test x$video_opengles_v1 = xyes; then
  20388. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20389. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20390. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20391. fi
  20392. fi
  20393. if test x$enable_video_opengles2 = xyes; then
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20395. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20396. video_opengles_v2=no
  20397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20398. /* end confdefs.h. */
  20399. #include <GLES2/gl2.h>
  20400. #include <GLES2/gl2ext.h>
  20401. int
  20402. main ()
  20403. {
  20404. ;
  20405. return 0;
  20406. }
  20407. _ACEOF
  20408. if ac_fn_c_try_compile "$LINENO"; then :
  20409. video_opengles_v2=yes
  20410. fi
  20411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20413. $as_echo "$video_opengles_v2" >&6; }
  20414. if test x$video_opengles_v2 = xyes; then
  20415. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20416. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20417. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20418. fi
  20419. fi
  20420. fi
  20421. }
  20422. CheckWINDOWSGL()
  20423. {
  20424. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20425. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20426. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20427. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20428. SUMMARY_video="${SUMMARY_video} opengl"
  20429. fi
  20430. }
  20431. CheckWINDOWSGLES()
  20432. {
  20433. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20435. $as_echo_n "checking for EGL support... " >&6; }
  20436. video_opengl_egl=no
  20437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20438. /* end confdefs.h. */
  20439. #include <EGL/egl.h>
  20440. int
  20441. main ()
  20442. {
  20443. ;
  20444. return 0;
  20445. }
  20446. _ACEOF
  20447. if ac_fn_c_try_compile "$LINENO"; then :
  20448. video_opengl_egl=yes
  20449. fi
  20450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20452. $as_echo "$video_opengl_egl" >&6; }
  20453. if test x$video_opengl_egl = xyes; then
  20454. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20455. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20456. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20457. fi
  20458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20459. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20460. video_opengles_v2=no
  20461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20462. /* end confdefs.h. */
  20463. #include <GLES2/gl2.h>
  20464. #include <GLES2/gl2ext.h>
  20465. int
  20466. main ()
  20467. {
  20468. ;
  20469. return 0;
  20470. }
  20471. _ACEOF
  20472. if ac_fn_c_try_compile "$LINENO"; then :
  20473. video_opengles_v2=yes
  20474. fi
  20475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20477. $as_echo "$video_opengles_v2" >&6; }
  20478. if test x$video_opengles_v2 = xyes; then
  20479. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20480. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20481. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20482. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20483. fi
  20484. fi
  20485. }
  20486. CheckHaikuGL()
  20487. {
  20488. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20489. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20490. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20491. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20492. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20493. SUMMARY_video="${SUMMARY_video} opengl"
  20494. fi
  20495. }
  20496. CheckMacGL()
  20497. {
  20498. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20499. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20500. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20501. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20502. SUMMARY_video="${SUMMARY_video} opengl"
  20503. fi
  20504. }
  20505. CheckMacGLES()
  20506. {
  20507. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20508. video_opengl_egl=yes
  20509. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20510. video_opengles_v2=yes
  20511. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20512. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20513. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20514. fi
  20515. }
  20516. CheckEmscriptenGLES()
  20517. {
  20518. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20520. $as_echo_n "checking for EGL support... " >&6; }
  20521. video_opengl_egl=no
  20522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20523. /* end confdefs.h. */
  20524. #include <EGL/egl.h>
  20525. int
  20526. main ()
  20527. {
  20528. ;
  20529. return 0;
  20530. }
  20531. _ACEOF
  20532. if ac_fn_c_try_compile "$LINENO"; then :
  20533. video_opengl_egl=yes
  20534. fi
  20535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20537. $as_echo "$video_opengl_egl" >&6; }
  20538. if test x$video_opengl_egl = xyes; then
  20539. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20540. fi
  20541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20542. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20543. video_opengles_v2=no
  20544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20545. /* end confdefs.h. */
  20546. #include <GLES2/gl2.h>
  20547. #include <GLES2/gl2ext.h>
  20548. int
  20549. main ()
  20550. {
  20551. ;
  20552. return 0;
  20553. }
  20554. _ACEOF
  20555. if ac_fn_c_try_compile "$LINENO"; then :
  20556. video_opengles_v2=yes
  20557. fi
  20558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20560. $as_echo "$video_opengles_v2" >&6; }
  20561. if test x$video_opengles_v2 = xyes; then
  20562. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20563. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20564. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20565. fi
  20566. fi
  20567. }
  20568. # Check whether --enable-video-vulkan was given.
  20569. if test "${enable_video_vulkan+set}" = set; then :
  20570. enableval=$enable_video_vulkan;
  20571. else
  20572. enable_video_vulkan=yes
  20573. fi
  20574. CheckVulkan()
  20575. {
  20576. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20577. case "$host" in
  20578. *-*-android*)
  20579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20580. /* end confdefs.h. */
  20581. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20582. #error Vulkan doesn't work on this configuration
  20583. #endif
  20584. int
  20585. main ()
  20586. {
  20587. ;
  20588. return 0;
  20589. }
  20590. _ACEOF
  20591. if ac_fn_c_try_compile "$LINENO"; then :
  20592. else
  20593. enable_video_vulkan=no
  20594. fi
  20595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20596. ;;
  20597. *-*-darwin*)
  20598. save_CFLAGS="$CFLAGS"
  20599. CFLAGS="$CFLAGS -x objective-c"
  20600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20601. /* end confdefs.h. */
  20602. #include <Cocoa/Cocoa.h>
  20603. #include <Metal/Metal.h>
  20604. #include <QuartzCore/CAMetalLayer.h>
  20605. #if TARGET_CPU_X86
  20606. #error Vulkan doesn't work on this configuration
  20607. #endif
  20608. int
  20609. main ()
  20610. {
  20611. ;
  20612. return 0;
  20613. }
  20614. _ACEOF
  20615. if ac_fn_c_try_compile "$LINENO"; then :
  20616. else
  20617. enable_video_vulkan=no
  20618. fi
  20619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20620. CFLAGS="$save_CFLAGS"
  20621. ;;
  20622. *)
  20623. ;;
  20624. esac
  20625. if test x$enable_video_vulkan = xno; then
  20626. # For reasons I am totally unable to see, I get an undefined macro error if
  20627. # I put this in the AC_TRY_COMPILE.
  20628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20629. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20630. fi
  20631. fi
  20632. if test x$have_loadso != xyes; then
  20633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20634. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20635. enable_video_vulkan=no
  20636. fi
  20637. if test x$enable_video_vulkan = xyes; then
  20638. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20639. SUMMARY_video="${SUMMARY_video} vulkan"
  20640. fi
  20641. }
  20642. CheckInputEvents()
  20643. {
  20644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20645. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20646. use_input_events=no
  20647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20648. /* end confdefs.h. */
  20649. #include <linux/input.h>
  20650. int
  20651. main ()
  20652. {
  20653. #ifndef EVIOCGNAME
  20654. #error EVIOCGNAME() ioctl not available
  20655. #endif
  20656. ;
  20657. return 0;
  20658. }
  20659. _ACEOF
  20660. if ac_fn_c_try_compile "$LINENO"; then :
  20661. use_input_events=yes
  20662. fi
  20663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20665. $as_echo "$use_input_events" >&6; }
  20666. if test x$use_input_events = xyes; then
  20667. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20668. SUMMARY_input="${SUMMARY_input} linuxev"
  20669. fi
  20670. }
  20671. CheckInputKD()
  20672. {
  20673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20674. $as_echo_n "checking for Linux kd.h... " >&6; }
  20675. use_input_kd=no
  20676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20677. /* end confdefs.h. */
  20678. #include <linux/kd.h>
  20679. #include <linux/keyboard.h>
  20680. int
  20681. main ()
  20682. {
  20683. struct kbentry kbe;
  20684. kbe.kb_table = KG_CTRL;
  20685. ioctl(0, KDGKBENT, &kbe);
  20686. ;
  20687. return 0;
  20688. }
  20689. _ACEOF
  20690. if ac_fn_c_try_compile "$LINENO"; then :
  20691. use_input_kd=yes
  20692. fi
  20693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20695. $as_echo "$use_input_kd" >&6; }
  20696. if test x$use_input_kd = xyes; then
  20697. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20698. SUMMARY_input="${SUMMARY_input} linuxkd"
  20699. fi
  20700. }
  20701. CheckInputKBIO()
  20702. {
  20703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20704. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20705. use_input_kbio=no
  20706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20707. /* end confdefs.h. */
  20708. #include <sys/kbio.h>
  20709. #include <sys/ioctl.h>
  20710. int
  20711. main ()
  20712. {
  20713. accentmap_t accTable;
  20714. ioctl(0, KDENABIO, 1);
  20715. ;
  20716. return 0;
  20717. }
  20718. _ACEOF
  20719. if ac_fn_c_try_compile "$LINENO"; then :
  20720. use_input_kbio=yes
  20721. fi
  20722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20724. $as_echo "$use_input_kbio" >&6; }
  20725. if test x$use_input_kbio = xyes; then
  20726. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20727. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20728. fi
  20729. }
  20730. CheckInputWSCONS()
  20731. {
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20733. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20734. use_input_wscons=no
  20735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20736. /* end confdefs.h. */
  20737. #include <sys/time.h>
  20738. #include <dev/wscons/wsconsio.h>
  20739. #include <dev/wscons/wsksymdef.h>
  20740. #include <dev/wscons/wsksymvar.h>
  20741. #include <sys/ioctl.h>
  20742. int
  20743. main ()
  20744. {
  20745. struct wskbd_map_data data;
  20746. ioctl(0, WSKBDIO_GETMAP, &data);
  20747. ;
  20748. return 0;
  20749. }
  20750. _ACEOF
  20751. if ac_fn_c_try_compile "$LINENO"; then :
  20752. use_input_wscons=yes
  20753. fi
  20754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20756. $as_echo "$use_input_wscons" >&6; }
  20757. if test x$use_input_wscons = xyes; then
  20758. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20759. SUMMARY_input="${SUMMARY_input} wscons"
  20760. fi
  20761. }
  20762. CheckLibUDev()
  20763. {
  20764. # Check whether --enable-libudev was given.
  20765. if test "${enable_libudev+set}" = set; then :
  20766. enableval=$enable_libudev;
  20767. else
  20768. enable_libudev=yes
  20769. fi
  20770. if test x$enable_libudev = xyes; then
  20771. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20772. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20773. have_libudev_h_hdr=yes
  20774. else
  20775. have_libudev_h_hdr=no
  20776. fi
  20777. if test x$have_libudev_h_hdr = xyes; then
  20778. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20779. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20780. if test x$udev_lib != x; then
  20781. echo "-- dynamic udev -> $udev_lib"
  20782. cat >>confdefs.h <<_ACEOF
  20783. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20784. _ACEOF
  20785. fi
  20786. fi
  20787. fi
  20788. }
  20789. CheckDBus()
  20790. {
  20791. # Check whether --enable-dbus was given.
  20792. if test "${enable_dbus+set}" = set; then :
  20793. enableval=$enable_dbus;
  20794. else
  20795. enable_dbus=yes
  20796. fi
  20797. if test x$enable_dbus = xyes; then
  20798. pkg_failed=no
  20799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20800. $as_echo_n "checking for dbus-1... " >&6; }
  20801. if test -n "$DBUS_CFLAGS"; then
  20802. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20803. elif test -n "$PKG_CONFIG"; then
  20804. if test -n "$PKG_CONFIG" && \
  20805. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20806. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20807. ac_status=$?
  20808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20809. test $ac_status = 0; }; then
  20810. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20811. test "x$?" != "x0" && pkg_failed=yes
  20812. else
  20813. pkg_failed=yes
  20814. fi
  20815. else
  20816. pkg_failed=untried
  20817. fi
  20818. if test -n "$DBUS_LIBS"; then
  20819. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20820. elif test -n "$PKG_CONFIG"; then
  20821. if test -n "$PKG_CONFIG" && \
  20822. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20823. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20824. ac_status=$?
  20825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20826. test $ac_status = 0; }; then
  20827. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20828. test "x$?" != "x0" && pkg_failed=yes
  20829. else
  20830. pkg_failed=yes
  20831. fi
  20832. else
  20833. pkg_failed=untried
  20834. fi
  20835. if test $pkg_failed = yes; then
  20836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20837. $as_echo "no" >&6; }
  20838. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20839. _pkg_short_errors_supported=yes
  20840. else
  20841. _pkg_short_errors_supported=no
  20842. fi
  20843. if test $_pkg_short_errors_supported = yes; then
  20844. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20845. else
  20846. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20847. fi
  20848. # Put the nasty error message in config.log where it belongs
  20849. echo "$DBUS_PKG_ERRORS" >&5
  20850. have_dbus=no
  20851. elif test $pkg_failed = untried; then
  20852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20853. $as_echo "no" >&6; }
  20854. have_dbus=no
  20855. else
  20856. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20857. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20859. $as_echo "yes" >&6; }
  20860. have_dbus=yes
  20861. fi
  20862. save_CPPFLAGS="$CPPFLAGS"
  20863. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20864. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20865. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20866. have_dbus_dbus_h_hdr=yes
  20867. else
  20868. have_dbus_dbus_h_hdr=no
  20869. fi
  20870. CPPFLAGS="$save_CPPFLAGS"
  20871. if test x$have_dbus_dbus_h_hdr = xyes; then
  20872. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20873. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20874. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20875. fi
  20876. fi
  20877. }
  20878. CheckIME()
  20879. {
  20880. # Check whether --enable-ime was given.
  20881. if test "${enable_ime+set}" = set; then :
  20882. enableval=$enable_ime;
  20883. else
  20884. enable_ime=yes
  20885. fi
  20886. if test x$enable_ime = xyes; then
  20887. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20888. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20889. fi
  20890. }
  20891. CheckInotify()
  20892. {
  20893. save_LIBS="$LIBS"
  20894. case "$host" in
  20895. *-*-freebsd*) LIBS="$LIBS -linotify"
  20896. ;;
  20897. esac
  20898. for ac_header in sys/inotify.h
  20899. do :
  20900. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20901. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20902. cat >>confdefs.h <<_ACEOF
  20903. #define HAVE_SYS_INOTIFY_H 1
  20904. _ACEOF
  20905. have_inotify_inotify_h_hdr=yes
  20906. fi
  20907. done
  20908. for ac_func in inotify_init
  20909. do :
  20910. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20911. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20912. cat >>confdefs.h <<_ACEOF
  20913. #define HAVE_INOTIFY_INIT 1
  20914. _ACEOF
  20915. have_inotify=yes
  20916. fi
  20917. done
  20918. for ac_func in inotify_init1
  20919. do :
  20920. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20921. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20922. cat >>confdefs.h <<_ACEOF
  20923. #define HAVE_INOTIFY_INIT1 1
  20924. _ACEOF
  20925. fi
  20926. done
  20927. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20928. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20929. case "$host" in
  20930. *-*-freebsd*)
  20931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20932. ;;
  20933. esac
  20934. fi
  20935. LIBS="$save_LIBS"
  20936. }
  20937. CheckIBus()
  20938. {
  20939. # Check whether --enable-ibus was given.
  20940. if test "${enable_ibus+set}" = set; then :
  20941. enableval=$enable_ibus;
  20942. else
  20943. enable_ibus=yes
  20944. fi
  20945. if test x$enable_ibus = xyes; then
  20946. pkg_failed=no
  20947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20948. $as_echo_n "checking for ibus-1.0... " >&6; }
  20949. if test -n "$IBUS_CFLAGS"; then
  20950. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20951. elif test -n "$PKG_CONFIG"; then
  20952. if test -n "$PKG_CONFIG" && \
  20953. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20954. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20955. ac_status=$?
  20956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20957. test $ac_status = 0; }; then
  20958. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20959. test "x$?" != "x0" && pkg_failed=yes
  20960. else
  20961. pkg_failed=yes
  20962. fi
  20963. else
  20964. pkg_failed=untried
  20965. fi
  20966. if test -n "$IBUS_LIBS"; then
  20967. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20968. elif test -n "$PKG_CONFIG"; then
  20969. if test -n "$PKG_CONFIG" && \
  20970. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20971. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20972. ac_status=$?
  20973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20974. test $ac_status = 0; }; then
  20975. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20976. test "x$?" != "x0" && pkg_failed=yes
  20977. else
  20978. pkg_failed=yes
  20979. fi
  20980. else
  20981. pkg_failed=untried
  20982. fi
  20983. if test $pkg_failed = yes; then
  20984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20985. $as_echo "no" >&6; }
  20986. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20987. _pkg_short_errors_supported=yes
  20988. else
  20989. _pkg_short_errors_supported=no
  20990. fi
  20991. if test $_pkg_short_errors_supported = yes; then
  20992. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20993. else
  20994. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20995. fi
  20996. # Put the nasty error message in config.log where it belongs
  20997. echo "$IBUS_PKG_ERRORS" >&5
  20998. have_ibus=no
  20999. elif test $pkg_failed = untried; then
  21000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21001. $as_echo "no" >&6; }
  21002. have_ibus=no
  21003. else
  21004. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  21005. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  21006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21007. $as_echo "yes" >&6; }
  21008. have_ibus=yes
  21009. fi
  21010. save_CPPFLAGS="$CPPFLAGS"
  21011. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  21012. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  21013. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  21014. have_ibus_ibus_h_hdr=yes
  21015. else
  21016. have_ibus_ibus_h_hdr=no
  21017. fi
  21018. CPPFLAGS="$save_CPPFLAGS"
  21019. if test x$have_ibus_ibus_h_hdr = xyes; then
  21020. if test x$enable_ime != xyes; then
  21021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  21022. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  21023. have_ibus_ibus_h_hdr=no
  21024. elif test x$enable_dbus != xyes; then
  21025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  21026. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  21027. have_ibus_ibus_h_hdr=no
  21028. elif test x$have_inotify_inotify_h_hdr != xyes; then
  21029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  21030. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  21031. have_ibus_ibus_h_hdr=no
  21032. else
  21033. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  21034. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  21035. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  21036. fi
  21037. fi
  21038. fi
  21039. }
  21040. CheckFcitx()
  21041. {
  21042. # Check whether --enable-fcitx was given.
  21043. if test "${enable_fcitx+set}" = set; then :
  21044. enableval=$enable_fcitx;
  21045. else
  21046. enable_fcitx=yes
  21047. fi
  21048. if test x$enable_fcitx = xyes; then
  21049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  21050. $as_echo_n "checking for fcitx support... " >&6; }
  21051. have_fcitx=no
  21052. if test x$enable_ime != xyes; then
  21053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  21054. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  21055. elif test x$have_dbus_dbus_h_hdr != xyes; then
  21056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  21057. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  21058. else
  21059. have_fcitx=yes
  21060. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  21061. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  21062. fi
  21063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  21064. $as_echo "$have_fcitx" >&6; }
  21065. fi
  21066. }
  21067. CheckJoystickMFI()
  21068. {
  21069. # Check whether --enable-joystick-mfi was given.
  21070. if test "${enable_joystick_mfi+set}" = set; then :
  21071. enableval=$enable_joystick_mfi;
  21072. else
  21073. enable_joystick_mfi=yes
  21074. fi
  21075. if test x$enable_joystick_mfi = xyes; then
  21076. save_CFLAGS="$CFLAGS"
  21077. save_LDFLAGS="$LDFLAGS"
  21078. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  21079. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  21081. $as_echo_n "checking for GameController framework... " >&6; }
  21082. enable_joystick_mfi=no
  21083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21084. /* end confdefs.h. */
  21085. #include <AvailabilityMacros.h>
  21086. #include <TargetConditionals.h>
  21087. #import <GameController/GameController.h>
  21088. int
  21089. main ()
  21090. {
  21091. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  21092. #error GameController framework doesn't work on this configuration
  21093. #endif
  21094. #if TARGET_CPU_X86
  21095. #error GameController framework doesn't work on this configuration
  21096. #endif
  21097. ;
  21098. return 0;
  21099. }
  21100. _ACEOF
  21101. if ac_fn_c_try_link "$LINENO"; then :
  21102. enable_joystick_mfi=yes
  21103. fi
  21104. rm -f core conftest.err conftest.$ac_objext \
  21105. conftest$ac_exeext conftest.$ac_ext
  21106. CFLAGS="$save_CFLAGS"
  21107. LDFLAGS="$save_LDFLAGS"
  21108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  21109. $as_echo "$enable_joystick_mfi" >&6; }
  21110. if test x$enable_joystick_mfi = xyes; then
  21111. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21112. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  21113. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21114. fi
  21115. fi
  21116. }
  21117. CheckPTHREAD()
  21118. {
  21119. case "$host" in
  21120. *-*-emscripten*)
  21121. enable_pthreads_default=no
  21122. ;;
  21123. *)
  21124. enable_pthreads_default=yes
  21125. ;;
  21126. esac
  21127. # Check whether --enable-pthreads was given.
  21128. if test "${enable_pthreads+set}" = set; then :
  21129. enableval=$enable_pthreads;
  21130. else
  21131. enable_pthreads=maybe
  21132. fi
  21133. # Check whether --enable-pthread-sem was given.
  21134. if test "${enable_pthread_sem+set}" = set; then :
  21135. enableval=$enable_pthread_sem;
  21136. else
  21137. enable_pthread_sem=maybe
  21138. fi
  21139. if test x$enable_pthreads = xmaybe; then
  21140. enable_pthreads=$enable_pthreads_default
  21141. fi
  21142. if test x$enable_pthread_sem = xmaybe; then
  21143. enable_pthread_sem=$enable_pthreads
  21144. fi
  21145. case "$host" in
  21146. *-*-android*)
  21147. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21148. pthread_lib=""
  21149. ;;
  21150. *-*-linux*|*-*-uclinux*)
  21151. pthread_cflags="-D_REENTRANT"
  21152. pthread_lib="-lpthread"
  21153. ;;
  21154. *-*-bsdi*)
  21155. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21156. pthread_lib=""
  21157. ;;
  21158. *-*-darwin*)
  21159. pthread_cflags="-D_THREAD_SAFE"
  21160. # causes Carbon.p complaints?
  21161. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21162. ;;
  21163. *-*-freebsd*|*-*-dragonfly*)
  21164. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21165. pthread_lib="-pthread"
  21166. ;;
  21167. *-*-netbsd*)
  21168. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21169. pthread_lib="-lpthread"
  21170. ;;
  21171. *-*-openbsd*)
  21172. pthread_cflags="-D_REENTRANT"
  21173. pthread_lib="-pthread"
  21174. ;;
  21175. *-*-solaris2.9)
  21176. # From Solaris 9+, posix4's preferred name is rt.
  21177. pthread_cflags="-D_REENTRANT"
  21178. pthread_lib="-lpthread -lrt"
  21179. ;;
  21180. *-*-solaris2.10)
  21181. # Solaris 10+ merged pthread into libc.
  21182. pthread_cflags="-D_REENTRANT"
  21183. pthread_lib="-lrt"
  21184. ;;
  21185. *-*-solaris*)
  21186. # Solaris 11+ merged rt into libc.
  21187. pthread_cflags="-D_REENTRANT"
  21188. pthread_lib=""
  21189. ;;
  21190. *-*-sysv5*)
  21191. pthread_cflags="-D_REENTRANT -Kthread"
  21192. pthread_lib=""
  21193. ;;
  21194. *-*-aix*)
  21195. pthread_cflags="-D_REENTRANT -mthreads"
  21196. pthread_lib="-lpthread"
  21197. ;;
  21198. *-*-hpux11*)
  21199. pthread_cflags="-D_REENTRANT"
  21200. pthread_lib="-L/usr/lib -lpthread"
  21201. ;;
  21202. *-*-haiku*)
  21203. pthread_cflags="-D_REENTRANT"
  21204. pthread_lib=""
  21205. ;;
  21206. *-*-nto*)
  21207. pthread_cflags="-D_REENTRANT"
  21208. pthread_lib=""
  21209. ;;
  21210. *-*-emscripten*)
  21211. pthread_cflags="-D_REENTRANT -pthread"
  21212. pthread_lib="-pthread"
  21213. ;;
  21214. *)
  21215. pthread_cflags="-D_REENTRANT"
  21216. pthread_lib="-lpthread"
  21217. ;;
  21218. esac
  21219. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  21220. # Save the original compiler flags and libraries
  21221. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21222. # Add the pthread compiler flags and libraries
  21223. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21224. # Check to see if we have pthread support on this system
  21225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  21226. $as_echo_n "checking for pthreads... " >&6; }
  21227. use_pthreads=no
  21228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21229. /* end confdefs.h. */
  21230. #include <pthread.h>
  21231. int
  21232. main ()
  21233. {
  21234. pthread_attr_t type;
  21235. pthread_attr_init(&type);
  21236. ;
  21237. return 0;
  21238. }
  21239. _ACEOF
  21240. if ac_fn_c_try_link "$LINENO"; then :
  21241. use_pthreads=yes
  21242. fi
  21243. rm -f core conftest.err conftest.$ac_objext \
  21244. conftest$ac_exeext conftest.$ac_ext
  21245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  21246. $as_echo "$use_pthreads" >&6; }
  21247. # Restore the compiler flags and libraries
  21248. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21249. # Do futher testing if we have pthread support...
  21250. if test x$use_pthreads = xyes; then
  21251. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  21252. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  21253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  21254. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  21255. # Save the original compiler flags and libraries
  21256. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21257. # Add the pthread compiler flags and libraries
  21258. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21259. # Check to see if recursive mutexes are available
  21260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  21261. $as_echo_n "checking for recursive mutexes... " >&6; }
  21262. has_recursive_mutexes=no
  21263. if test x$has_recursive_mutexes = xno; then
  21264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21265. /* end confdefs.h. */
  21266. #define _GNU_SOURCE 1
  21267. #include <pthread.h>
  21268. int
  21269. main ()
  21270. {
  21271. pthread_mutexattr_t attr;
  21272. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  21273. ;
  21274. return 0;
  21275. }
  21276. _ACEOF
  21277. if ac_fn_c_try_link "$LINENO"; then :
  21278. has_recursive_mutexes=yes
  21279. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  21280. fi
  21281. rm -f core conftest.err conftest.$ac_objext \
  21282. conftest$ac_exeext conftest.$ac_ext
  21283. fi
  21284. if test x$has_recursive_mutexes = xno; then
  21285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21286. /* end confdefs.h. */
  21287. #define _GNU_SOURCE 1
  21288. #include <pthread.h>
  21289. int
  21290. main ()
  21291. {
  21292. pthread_mutexattr_t attr;
  21293. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  21294. ;
  21295. return 0;
  21296. }
  21297. _ACEOF
  21298. if ac_fn_c_try_link "$LINENO"; then :
  21299. has_recursive_mutexes=yes
  21300. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21301. fi
  21302. rm -f core conftest.err conftest.$ac_objext \
  21303. conftest$ac_exeext conftest.$ac_ext
  21304. fi
  21305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21306. $as_echo "$has_recursive_mutexes" >&6; }
  21307. # Check to see if pthread semaphore support is missing
  21308. if test x$enable_pthread_sem = xyes; then
  21309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21310. $as_echo_n "checking for pthread semaphores... " >&6; }
  21311. have_pthread_sem=no
  21312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21313. /* end confdefs.h. */
  21314. #include <pthread.h>
  21315. #include <semaphore.h>
  21316. int
  21317. main ()
  21318. {
  21319. ;
  21320. return 0;
  21321. }
  21322. _ACEOF
  21323. if ac_fn_c_try_compile "$LINENO"; then :
  21324. have_pthread_sem=yes
  21325. fi
  21326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21328. $as_echo "$have_pthread_sem" >&6; }
  21329. fi
  21330. if test x$have_pthread_sem = xyes; then
  21331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21332. $as_echo_n "checking for sem_timedwait... " >&6; }
  21333. have_sem_timedwait=no
  21334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21335. /* end confdefs.h. */
  21336. #include <pthread.h>
  21337. #include <semaphore.h>
  21338. int
  21339. main ()
  21340. {
  21341. sem_timedwait(NULL, NULL);
  21342. ;
  21343. return 0;
  21344. }
  21345. _ACEOF
  21346. if ac_fn_c_try_link "$LINENO"; then :
  21347. have_sem_timedwait=yes
  21348. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21349. fi
  21350. rm -f core conftest.err conftest.$ac_objext \
  21351. conftest$ac_exeext conftest.$ac_ext
  21352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21353. $as_echo "$have_sem_timedwait" >&6; }
  21354. fi
  21355. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21356. "
  21357. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21358. have_pthread_np_h=yes
  21359. else
  21360. have_pthread_np_h=no
  21361. fi
  21362. if test x$have_pthread_np_h = xyes; then
  21363. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21364. fi
  21365. # Check to see if pthread naming is available
  21366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21367. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21369. /* end confdefs.h. */
  21370. /* Override any GCC internal prototype to avoid an error.
  21371. Use char because int might match the return type of a GCC
  21372. builtin and then its argument prototype would still apply. */
  21373. #ifdef __cplusplus
  21374. extern "C"
  21375. #endif
  21376. char pthread_setname_np ();
  21377. int
  21378. main ()
  21379. {
  21380. return pthread_setname_np ();
  21381. ;
  21382. return 0;
  21383. }
  21384. _ACEOF
  21385. if ac_fn_c_try_link "$LINENO"; then :
  21386. has_pthread_setname_np=yes
  21387. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21388. else
  21389. has_pthread_setname_np=no
  21390. fi
  21391. rm -f core conftest.err conftest.$ac_objext \
  21392. conftest$ac_exeext conftest.$ac_ext
  21393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21394. $as_echo "$has_pthread_setname_np" >&6; }
  21395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21396. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21398. /* end confdefs.h. */
  21399. /* Override any GCC internal prototype to avoid an error.
  21400. Use char because int might match the return type of a GCC
  21401. builtin and then its argument prototype would still apply. */
  21402. #ifdef __cplusplus
  21403. extern "C"
  21404. #endif
  21405. char pthread_set_name_np ();
  21406. int
  21407. main ()
  21408. {
  21409. return pthread_set_name_np ();
  21410. ;
  21411. return 0;
  21412. }
  21413. _ACEOF
  21414. if ac_fn_c_try_link "$LINENO"; then :
  21415. has_pthread_set_name_np=yes
  21416. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21417. else
  21418. has_pthread_set_name_np=no
  21419. fi
  21420. rm -f core conftest.err conftest.$ac_objext \
  21421. conftest$ac_exeext conftest.$ac_ext
  21422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21423. $as_echo "$has_pthread_set_name_np" >&6; }
  21424. # Restore the compiler flags and libraries
  21425. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21426. # Basic thread creation functions
  21427. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21428. # Semaphores
  21429. # We can fake these with mutexes and condition variables if necessary
  21430. if test x$have_pthread_sem = xyes; then
  21431. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21432. else
  21433. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21434. fi
  21435. # Mutexes
  21436. # We can fake these with semaphores if necessary
  21437. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21438. # Condition variables
  21439. # We can fake these with semaphores and mutexes if necessary
  21440. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21441. # Thread local storage
  21442. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21443. have_threads=yes
  21444. fi
  21445. fi
  21446. }
  21447. CheckWINDOWS()
  21448. {
  21449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21450. $as_echo_n "checking Windows compiler... " >&6; }
  21451. have_win32_gcc=no
  21452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21453. /* end confdefs.h. */
  21454. #include <windows.h>
  21455. int
  21456. main ()
  21457. {
  21458. ;
  21459. return 0;
  21460. }
  21461. _ACEOF
  21462. if ac_fn_c_try_compile "$LINENO"; then :
  21463. have_win32_gcc=yes
  21464. fi
  21465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21467. $as_echo "$have_win32_gcc" >&6; }
  21468. if test x$have_win32_gcc != xyes; then
  21469. as_fn_error $? "
  21470. *** Your compiler ($CC) does not produce Windows executables!
  21471. " "$LINENO" 5
  21472. fi
  21473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21474. $as_echo_n "checking Windows CE... " >&6; }
  21475. have_wince=no
  21476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21477. /* end confdefs.h. */
  21478. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21479. #error This is not Windows CE
  21480. #endif
  21481. int
  21482. main ()
  21483. {
  21484. ;
  21485. return 0;
  21486. }
  21487. _ACEOF
  21488. if ac_fn_c_try_compile "$LINENO"; then :
  21489. have_wince=yes
  21490. as_fn_error $? "
  21491. *** Sorry, Windows CE is no longer supported.
  21492. " "$LINENO" 5
  21493. fi
  21494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21496. $as_echo "$have_wince" >&6; }
  21497. # This fixes Windows stack alignment with newer GCC
  21498. CheckStackBoundary
  21499. # headers needed elsewhere
  21500. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21501. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21502. have_tpcshrd_h=yes
  21503. fi
  21504. if test x$have_tpcshrd_h = xyes; then
  21505. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21506. fi
  21507. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21508. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21509. have_roapi_h=yes
  21510. fi
  21511. if test x$have_roapi_h = xyes; then
  21512. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21513. fi
  21514. }
  21515. CheckOS2()
  21516. {
  21517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21518. $as_echo_n "checking OS/2 compiler... " >&6; }
  21519. have_os2_gcc=no
  21520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21521. /* end confdefs.h. */
  21522. #include <os2.h>
  21523. int
  21524. main ()
  21525. {
  21526. ;
  21527. return 0;
  21528. }
  21529. _ACEOF
  21530. if ac_fn_c_try_compile "$LINENO"; then :
  21531. have_os2_gcc=yes
  21532. fi
  21533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21535. $as_echo "$have_os2_gcc" >&6; }
  21536. if test x$have_os2_gcc != xyes; then
  21537. as_fn_error $? "
  21538. *** Your compiler ($CC) does not produce OS/2 executables!
  21539. " "$LINENO" 5
  21540. fi
  21541. }
  21542. CheckDIRECTX()
  21543. {
  21544. # Check whether --enable-directx was given.
  21545. if test "${enable_directx+set}" = set; then :
  21546. enableval=$enable_directx;
  21547. else
  21548. enable_directx=yes
  21549. fi
  21550. if test x$enable_directx = xyes; then
  21551. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21552. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21553. have_d3d=yes
  21554. fi
  21555. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21556. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21557. have_d3d11=yes
  21558. fi
  21559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  21560. $as_echo_n "checking for d3d12 Windows SDK version... " >&6; }
  21561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21562. /* end confdefs.h. */
  21563. #include <winsdkver.h>
  21564. #include <sdkddkver.h>
  21565. #if WDK_NTDDI_VERSION < 0x0A000008
  21566. asdf
  21567. #endif
  21568. int
  21569. main ()
  21570. {
  21571. ;
  21572. return 0;
  21573. }
  21574. _ACEOF
  21575. if ac_fn_c_try_compile "$LINENO"; then :
  21576. have_d3d12=yes
  21577. fi
  21578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: have_d3d12" >&5
  21580. $as_echo "have_d3d12" >&6; }
  21581. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21582. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21583. have_ddraw=yes
  21584. fi
  21585. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21586. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21587. have_dsound=yes
  21588. fi
  21589. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21590. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21591. have_dinput=yes
  21592. fi
  21593. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21594. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21595. have_dxgi=yes
  21596. fi
  21597. if test x$have_ddraw = xyes; then
  21598. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21599. fi
  21600. if test x$have_dinput = xyes; then
  21601. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21602. fi
  21603. if test x$have_dsound = xyes; then
  21604. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21605. fi
  21606. if test x$have_dxgi = xyes; then
  21607. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21608. fi
  21609. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21610. # FIXME: ...so force it off for now.
  21611. case "$host" in
  21612. *-*-cygwin*)
  21613. have_dinput=false
  21614. ;;
  21615. esac
  21616. fi
  21617. # Check whether --enable-xinput was given.
  21618. if test "${enable_xinput+set}" = set; then :
  21619. enableval=$enable_xinput;
  21620. else
  21621. enable_xinput=yes
  21622. fi
  21623. if test x$enable_xinput = xyes; then
  21624. have_xinput_gamepadex=no
  21625. have_xinput_stateex=no
  21626. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21627. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21628. have_xinput=yes
  21629. fi
  21630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21631. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21633. /* end confdefs.h. */
  21634. #include <windows.h>
  21635. #include <xinput.h>
  21636. XINPUT_GAMEPAD_EX x1;
  21637. int
  21638. main ()
  21639. {
  21640. ;
  21641. return 0;
  21642. }
  21643. _ACEOF
  21644. if ac_fn_c_try_compile "$LINENO"; then :
  21645. have_xinput_gamepadex=yes
  21646. fi
  21647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21649. $as_echo "$have_xinput_gamepadex" >&6; }
  21650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21651. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21653. /* end confdefs.h. */
  21654. #include <windows.h>
  21655. #include <xinput.h>
  21656. XINPUT_STATE_EX s1;
  21657. int
  21658. main ()
  21659. {
  21660. ;
  21661. return 0;
  21662. }
  21663. _ACEOF
  21664. if ac_fn_c_try_compile "$LINENO"; then :
  21665. have_xinput_stateex=yes
  21666. fi
  21667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21669. $as_echo "$have_xinput_stateex" >&6; }
  21670. if test x$have_xinput = xyes; then
  21671. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21672. fi
  21673. if test x$have_xinput_gamepadex = xyes; then
  21674. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21675. fi
  21676. if test x$have_xinput_stateex = xyes; then
  21677. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21678. fi
  21679. fi
  21680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21681. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21683. /* end confdefs.h. */
  21684. #define COBJMACROS
  21685. #include <windows.gaming.input.h>
  21686. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21687. int
  21688. main ()
  21689. {
  21690. ;
  21691. return 0;
  21692. }
  21693. _ACEOF
  21694. if ac_fn_c_try_compile "$LINENO"; then :
  21695. have_wgi=yes
  21696. else
  21697. have_wgi=no
  21698. fi
  21699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21701. $as_echo "$have_wgi" >&6; }
  21702. if test x$have_wgi = xyes; then
  21703. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21704. fi
  21705. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21706. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21707. have_wasapi=yes
  21708. fi
  21709. if test x$have_wasapi = xyes; then
  21710. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21711. fi
  21712. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21713. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21714. else
  21715. have_wasapi=no
  21716. fi
  21717. if test x$have_wasapi = xyes; then
  21718. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21719. fi
  21720. # Check whether --enable-wasapi was given.
  21721. if test "${enable_wasapi+set}" = set; then :
  21722. enableval=$enable_wasapi;
  21723. else
  21724. enable_wasapi=yes
  21725. fi
  21726. }
  21727. CheckDLOPEN()
  21728. {
  21729. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21730. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21731. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21732. have_dlfcn_h=yes
  21733. else
  21734. have_dlfcn_h=no
  21735. fi
  21736. have_dlopen=no
  21737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21738. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21739. if ${ac_cv_lib_c_dlopen+:} false; then :
  21740. $as_echo_n "(cached) " >&6
  21741. else
  21742. ac_check_lib_save_LIBS=$LIBS
  21743. LIBS="-lc $LIBS"
  21744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21745. /* end confdefs.h. */
  21746. /* Override any GCC internal prototype to avoid an error.
  21747. Use char because int might match the return type of a GCC
  21748. builtin and then its argument prototype would still apply. */
  21749. #ifdef __cplusplus
  21750. extern "C"
  21751. #endif
  21752. char dlopen ();
  21753. int
  21754. main ()
  21755. {
  21756. return dlopen ();
  21757. ;
  21758. return 0;
  21759. }
  21760. _ACEOF
  21761. if ac_fn_c_try_link "$LINENO"; then :
  21762. ac_cv_lib_c_dlopen=yes
  21763. else
  21764. ac_cv_lib_c_dlopen=no
  21765. fi
  21766. rm -f core conftest.err conftest.$ac_objext \
  21767. conftest$ac_exeext conftest.$ac_ext
  21768. LIBS=$ac_check_lib_save_LIBS
  21769. fi
  21770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21771. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21772. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21773. have_dlopen=yes
  21774. else
  21775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21776. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21777. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21778. $as_echo_n "(cached) " >&6
  21779. else
  21780. ac_check_lib_save_LIBS=$LIBS
  21781. LIBS="-ldl $LIBS"
  21782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21783. /* end confdefs.h. */
  21784. /* Override any GCC internal prototype to avoid an error.
  21785. Use char because int might match the return type of a GCC
  21786. builtin and then its argument prototype would still apply. */
  21787. #ifdef __cplusplus
  21788. extern "C"
  21789. #endif
  21790. char dlopen ();
  21791. int
  21792. main ()
  21793. {
  21794. return dlopen ();
  21795. ;
  21796. return 0;
  21797. }
  21798. _ACEOF
  21799. if ac_fn_c_try_link "$LINENO"; then :
  21800. ac_cv_lib_dl_dlopen=yes
  21801. else
  21802. ac_cv_lib_dl_dlopen=no
  21803. fi
  21804. rm -f core conftest.err conftest.$ac_objext \
  21805. conftest$ac_exeext conftest.$ac_ext
  21806. LIBS=$ac_check_lib_save_LIBS
  21807. fi
  21808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21809. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21810. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21811. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21812. fi
  21813. fi
  21814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21815. $as_echo_n "checking for dlopen... " >&6; }
  21816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21817. $as_echo "$have_dlopen" >&6; }
  21818. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21819. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21820. if test x$enable_loadso = xyes; then
  21821. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21822. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21823. have_loadso=yes
  21824. fi
  21825. fi
  21826. }
  21827. CheckO_CLOEXEC()
  21828. {
  21829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21830. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21832. /* end confdefs.h. */
  21833. #include <fcntl.h>
  21834. int flag = O_CLOEXEC;
  21835. int
  21836. main ()
  21837. {
  21838. ;
  21839. return 0;
  21840. }
  21841. _ACEOF
  21842. if ac_fn_c_try_compile "$LINENO"; then :
  21843. have_o_cloexec=yes
  21844. else
  21845. have_o_cloexec=no
  21846. fi
  21847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21849. $as_echo "$have_o_cloexec" >&6; }
  21850. if test $have_o_cloexec = yes; then
  21851. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21852. fi
  21853. }
  21854. CheckUSBHID()
  21855. {
  21856. case "$host" in
  21857. *-*-*bsd*|*-*-dragonfly*)
  21858. if test x$enable_joystick = xyes; then
  21859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21860. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21861. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21862. $as_echo_n "(cached) " >&6
  21863. else
  21864. ac_check_lib_save_LIBS=$LIBS
  21865. LIBS="-lusbhid $LIBS"
  21866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21867. /* end confdefs.h. */
  21868. /* Override any GCC internal prototype to avoid an error.
  21869. Use char because int might match the return type of a GCC
  21870. builtin and then its argument prototype would still apply. */
  21871. #ifdef __cplusplus
  21872. extern "C"
  21873. #endif
  21874. char hid_init ();
  21875. int
  21876. main ()
  21877. {
  21878. return hid_init ();
  21879. ;
  21880. return 0;
  21881. }
  21882. _ACEOF
  21883. if ac_fn_c_try_link "$LINENO"; then :
  21884. ac_cv_lib_usbhid_hid_init=yes
  21885. else
  21886. ac_cv_lib_usbhid_hid_init=no
  21887. fi
  21888. rm -f core conftest.err conftest.$ac_objext \
  21889. conftest$ac_exeext conftest.$ac_ext
  21890. LIBS=$ac_check_lib_save_LIBS
  21891. fi
  21892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21893. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21894. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21895. have_libusbhid=yes
  21896. fi
  21897. if test x$have_libusbhid = xyes; then
  21898. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21899. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21900. USB_CFLAGS="-DHAVE_USBHID_H"
  21901. fi
  21902. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21903. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21904. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21905. fi
  21906. USB_LIBS="$USB_LIBS -lusbhid"
  21907. else
  21908. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21909. if test "x$ac_cv_header_usb_h" = xyes; then :
  21910. USB_CFLAGS="-DHAVE_USB_H"
  21911. fi
  21912. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21913. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21914. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21915. fi
  21916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21917. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21918. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21919. $as_echo_n "(cached) " >&6
  21920. else
  21921. ac_check_lib_save_LIBS=$LIBS
  21922. LIBS="-lusb $LIBS"
  21923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21924. /* end confdefs.h. */
  21925. /* Override any GCC internal prototype to avoid an error.
  21926. Use char because int might match the return type of a GCC
  21927. builtin and then its argument prototype would still apply. */
  21928. #ifdef __cplusplus
  21929. extern "C"
  21930. #endif
  21931. char hid_init ();
  21932. int
  21933. main ()
  21934. {
  21935. return hid_init ();
  21936. ;
  21937. return 0;
  21938. }
  21939. _ACEOF
  21940. if ac_fn_c_try_link "$LINENO"; then :
  21941. ac_cv_lib_usb_hid_init=yes
  21942. else
  21943. ac_cv_lib_usb_hid_init=no
  21944. fi
  21945. rm -f core conftest.err conftest.$ac_objext \
  21946. conftest$ac_exeext conftest.$ac_ext
  21947. LIBS=$ac_check_lib_save_LIBS
  21948. fi
  21949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21950. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21951. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21952. USB_LIBS="$USB_LIBS -lusb"
  21953. fi
  21954. fi
  21955. save_CFLAGS="$CFLAGS"
  21956. CFLAGS="$CFLAGS $USB_CFLAGS"
  21957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21958. $as_echo_n "checking for usbhid... " >&6; }
  21959. have_usbhid=no
  21960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21961. /* end confdefs.h. */
  21962. #include <sys/types.h>
  21963. #if defined(HAVE_USB_H)
  21964. #include <usb.h>
  21965. #endif
  21966. #ifdef __DragonFly__
  21967. # include <bus/u4b/usb.h>
  21968. # include <bus/u4b/usbhid.h>
  21969. #else
  21970. # include <dev/usb/usb.h>
  21971. # include <dev/usb/usbhid.h>
  21972. #endif
  21973. #if defined(HAVE_USBHID_H)
  21974. #include <usbhid.h>
  21975. #elif defined(HAVE_LIBUSB_H)
  21976. #include <libusb.h>
  21977. #elif defined(HAVE_LIBUSBHID_H)
  21978. #include <libusbhid.h>
  21979. #endif
  21980. int
  21981. main ()
  21982. {
  21983. struct report_desc *repdesc;
  21984. struct usb_ctl_report *repbuf;
  21985. hid_kind_t hidkind;
  21986. ;
  21987. return 0;
  21988. }
  21989. _ACEOF
  21990. if ac_fn_c_try_compile "$LINENO"; then :
  21991. have_usbhid=yes
  21992. fi
  21993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21995. $as_echo "$have_usbhid" >&6; }
  21996. if test x$have_usbhid = xyes; then
  21997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21998. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21999. have_usbhid_ucr_data=no
  22000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22001. /* end confdefs.h. */
  22002. #include <sys/types.h>
  22003. #if defined(HAVE_USB_H)
  22004. #include <usb.h>
  22005. #endif
  22006. #ifdef __DragonFly__
  22007. # include <bus/u4b/usb.h>
  22008. # include <bus/u4b/usbhid.h>
  22009. #else
  22010. # include <dev/usb/usb.h>
  22011. # include <dev/usb/usbhid.h>
  22012. #endif
  22013. #if defined(HAVE_USBHID_H)
  22014. #include <usbhid.h>
  22015. #elif defined(HAVE_LIBUSB_H)
  22016. #include <libusb.h>
  22017. #elif defined(HAVE_LIBUSBHID_H)
  22018. #include <libusbhid.h>
  22019. #endif
  22020. int
  22021. main ()
  22022. {
  22023. struct usb_ctl_report buf;
  22024. if (buf.ucr_data) { }
  22025. ;
  22026. return 0;
  22027. }
  22028. _ACEOF
  22029. if ac_fn_c_try_compile "$LINENO"; then :
  22030. have_usbhid_ucr_data=yes
  22031. fi
  22032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22033. if test x$have_usbhid_ucr_data = xyes; then
  22034. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  22035. fi
  22036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  22037. $as_echo "$have_usbhid_ucr_data" >&6; }
  22038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  22039. $as_echo_n "checking for new usbhid API... " >&6; }
  22040. have_usbhid_new=no
  22041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22042. /* end confdefs.h. */
  22043. #include <sys/types.h>
  22044. #if defined(HAVE_USB_H)
  22045. #include <usb.h>
  22046. #endif
  22047. #ifdef __DragonFly__
  22048. #include <bus/u4b/usb.h>
  22049. #include <bus/u4b/usbhid.h>
  22050. #else
  22051. #include <dev/usb/usb.h>
  22052. #include <dev/usb/usbhid.h>
  22053. #endif
  22054. #if defined(HAVE_USBHID_H)
  22055. #include <usbhid.h>
  22056. #elif defined(HAVE_LIBUSB_H)
  22057. #include <libusb.h>
  22058. #elif defined(HAVE_LIBUSBHID_H)
  22059. #include <libusbhid.h>
  22060. #endif
  22061. int
  22062. main ()
  22063. {
  22064. report_desc_t d;
  22065. hid_start_parse(d, 1, 1);
  22066. ;
  22067. return 0;
  22068. }
  22069. _ACEOF
  22070. if ac_fn_c_try_compile "$LINENO"; then :
  22071. have_usbhid_new=yes
  22072. fi
  22073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22074. if test x$have_usbhid_new = xyes; then
  22075. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  22076. fi
  22077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  22078. $as_echo "$have_usbhid_new" >&6; }
  22079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  22080. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  22081. have_machine_joystick=no
  22082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22083. /* end confdefs.h. */
  22084. #include <machine/joystick.h>
  22085. int
  22086. main ()
  22087. {
  22088. struct joystick t;
  22089. ;
  22090. return 0;
  22091. }
  22092. _ACEOF
  22093. if ac_fn_c_try_compile "$LINENO"; then :
  22094. have_machine_joystick=yes
  22095. fi
  22096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22097. if test x$have_machine_joystick = xyes; then
  22098. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  22099. fi
  22100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  22101. $as_echo "$have_machine_joystick" >&6; }
  22102. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  22103. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  22104. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  22105. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  22106. have_joystick=yes
  22107. fi
  22108. CFLAGS="$save_CFLAGS"
  22109. fi
  22110. ;;
  22111. esac
  22112. }
  22113. CheckHIDAPI()
  22114. {
  22115. # Check whether --enable-hidapi-joystick was given.
  22116. if test "${enable_hidapi_joystick+set}" = set; then :
  22117. enableval=$enable_hidapi_joystick;
  22118. else
  22119. enable_hidapi_joystick=yes
  22120. fi
  22121. # Check whether --enable-hidapi-libusb was given.
  22122. if test "${enable_hidapi_libusb+set}" = set; then :
  22123. enableval=$enable_hidapi_libusb;
  22124. else
  22125. enable_hidapi_libusb=maybe
  22126. fi
  22127. if test x$enable_hidapi = xyes; then
  22128. case "$host" in
  22129. # libusb does not support iOS
  22130. *-ios-* )
  22131. enable_hidapi_libusb=no
  22132. ;;
  22133. # On the other hand, *BSD specifically uses libusb only
  22134. *-*-*bsd* )
  22135. enable_hidapi_libusb=yes
  22136. require_hidapi_libusb=yes
  22137. ;;
  22138. *-*-os2* )
  22139. enable_hidapi_libusb=yes
  22140. ;;
  22141. esac
  22142. hidapi_support=yes
  22143. if test x$enable_hidapi_libusb = xyes; then
  22144. pkg_failed=no
  22145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  22146. $as_echo_n "checking for libusb-1.0... " >&6; }
  22147. if test -n "$LIBUSB_CFLAGS"; then
  22148. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  22149. elif test -n "$PKG_CONFIG"; then
  22150. if test -n "$PKG_CONFIG" && \
  22151. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  22152. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  22153. ac_status=$?
  22154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22155. test $ac_status = 0; }; then
  22156. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  22157. test "x$?" != "x0" && pkg_failed=yes
  22158. else
  22159. pkg_failed=yes
  22160. fi
  22161. else
  22162. pkg_failed=untried
  22163. fi
  22164. if test -n "$LIBUSB_LIBS"; then
  22165. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  22166. elif test -n "$PKG_CONFIG"; then
  22167. if test -n "$PKG_CONFIG" && \
  22168. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  22169. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  22170. ac_status=$?
  22171. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22172. test $ac_status = 0; }; then
  22173. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  22174. test "x$?" != "x0" && pkg_failed=yes
  22175. else
  22176. pkg_failed=yes
  22177. fi
  22178. else
  22179. pkg_failed=untried
  22180. fi
  22181. if test $pkg_failed = yes; then
  22182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22183. $as_echo "no" >&6; }
  22184. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22185. _pkg_short_errors_supported=yes
  22186. else
  22187. _pkg_short_errors_supported=no
  22188. fi
  22189. if test $_pkg_short_errors_supported = yes; then
  22190. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  22191. else
  22192. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  22193. fi
  22194. # Put the nasty error message in config.log where it belongs
  22195. echo "$LIBUSB_PKG_ERRORS" >&5
  22196. have_libusb=no
  22197. elif test $pkg_failed = untried; then
  22198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22199. $as_echo "no" >&6; }
  22200. have_libusb=no
  22201. else
  22202. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  22203. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  22204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22205. $as_echo "yes" >&6; }
  22206. have_libusb=yes
  22207. fi
  22208. save_CPPFLAGS="$CPPFLAGS"
  22209. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  22210. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22211. if test "x$ac_cv_header_libusb_h" = xyes; then :
  22212. have_libusb_h=yes
  22213. else
  22214. have_libusb_h=no
  22215. fi
  22216. CPPFLAGS="$save_CPPFLAGS"
  22217. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  22218. hidapi_support=no
  22219. fi
  22220. fi
  22221. if test x$hidapi_support = xyes; then
  22222. if test x$have_libusb_h = xyes; then
  22223. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  22224. if test x$require_hidapi_libusb = xyes; then
  22225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  22226. else
  22227. if test x$have_loadso != xyes; then
  22228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  22229. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  22230. fi
  22231. # libusb is loaded dynamically, so don't add it to LDFLAGS
  22232. libusb_lib=""
  22233. case "$host" in
  22234. *-*-darwin* )
  22235. libusb_lib="libusb-1.0.0.dylib"
  22236. ;;
  22237. *-*-cygwin* | *-*-mingw* )
  22238. libusb_lib="libusb-1.0.dll"
  22239. ;;
  22240. *-*-os2* )
  22241. libusb_lib="usb100.dll"
  22242. ;;
  22243. esac
  22244. if test x$libusb_lib = x; then
  22245. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22246. fi
  22247. cat >>confdefs.h <<_ACEOF
  22248. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  22249. _ACEOF
  22250. fi
  22251. fi
  22252. fi
  22253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  22254. $as_echo_n "checking for hidapi joystick support... " >&6; }
  22255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  22256. $as_echo "$hidapi_support" >&6; }
  22257. fi
  22258. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  22259. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  22260. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  22261. fi
  22262. }
  22263. CheckClockGettime()
  22264. {
  22265. # Check whether --enable-clock_gettime was given.
  22266. if test "${enable_clock_gettime+set}" = set; then :
  22267. enableval=$enable_clock_gettime;
  22268. else
  22269. enable_clock_gettime=yes
  22270. fi
  22271. if test x$enable_clock_gettime = xyes; then
  22272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  22273. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  22274. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  22275. $as_echo_n "(cached) " >&6
  22276. else
  22277. ac_check_lib_save_LIBS=$LIBS
  22278. LIBS="-lrt $LIBS"
  22279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22280. /* end confdefs.h. */
  22281. /* Override any GCC internal prototype to avoid an error.
  22282. Use char because int might match the return type of a GCC
  22283. builtin and then its argument prototype would still apply. */
  22284. #ifdef __cplusplus
  22285. extern "C"
  22286. #endif
  22287. char clock_gettime ();
  22288. int
  22289. main ()
  22290. {
  22291. return clock_gettime ();
  22292. ;
  22293. return 0;
  22294. }
  22295. _ACEOF
  22296. if ac_fn_c_try_link "$LINENO"; then :
  22297. ac_cv_lib_rt_clock_gettime=yes
  22298. else
  22299. ac_cv_lib_rt_clock_gettime=no
  22300. fi
  22301. rm -f core conftest.err conftest.$ac_objext \
  22302. conftest$ac_exeext conftest.$ac_ext
  22303. LIBS=$ac_check_lib_save_LIBS
  22304. fi
  22305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  22306. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  22307. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  22308. have_clock_gettime=yes
  22309. fi
  22310. if test x$have_clock_gettime = xyes; then
  22311. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22312. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  22313. else
  22314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  22315. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  22316. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  22317. $as_echo_n "(cached) " >&6
  22318. else
  22319. ac_check_lib_save_LIBS=$LIBS
  22320. LIBS="-lc $LIBS"
  22321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22322. /* end confdefs.h. */
  22323. /* Override any GCC internal prototype to avoid an error.
  22324. Use char because int might match the return type of a GCC
  22325. builtin and then its argument prototype would still apply. */
  22326. #ifdef __cplusplus
  22327. extern "C"
  22328. #endif
  22329. char clock_gettime ();
  22330. int
  22331. main ()
  22332. {
  22333. return clock_gettime ();
  22334. ;
  22335. return 0;
  22336. }
  22337. _ACEOF
  22338. if ac_fn_c_try_link "$LINENO"; then :
  22339. ac_cv_lib_c_clock_gettime=yes
  22340. else
  22341. ac_cv_lib_c_clock_gettime=no
  22342. fi
  22343. rm -f core conftest.err conftest.$ac_objext \
  22344. conftest$ac_exeext conftest.$ac_ext
  22345. LIBS=$ac_check_lib_save_LIBS
  22346. fi
  22347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22348. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22349. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22350. have_clock_gettime=yes
  22351. fi
  22352. if test x$have_clock_gettime = xyes; then
  22353. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22355. fi
  22356. fi
  22357. fi
  22358. }
  22359. CheckLinuxVersion()
  22360. {
  22361. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22362. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22363. have_linux_version_h=yes
  22364. fi
  22365. if test x$have_linux_version_h = xyes; then
  22366. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22367. fi
  22368. }
  22369. CheckRPATH()
  22370. {
  22371. # Check whether --enable-rpath was given.
  22372. if test "${enable_rpath+set}" = set; then :
  22373. enableval=$enable_rpath;
  22374. else
  22375. enable_rpath=yes
  22376. fi
  22377. }
  22378. CheckEventSignals()
  22379. {
  22380. # Check whether --enable-backgrounding-signal was given.
  22381. if test "${enable_backgrounding_signal+set}" = set; then :
  22382. enableval=$enable_backgrounding_signal;
  22383. else
  22384. enable_backgrounding_signal=no
  22385. fi
  22386. if test x$enable_backgrounding_signal != xno; then
  22387. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22388. fi
  22389. # Check whether --enable-foregrounding-signal was given.
  22390. if test "${enable_foregrounding_signal+set}" = set; then :
  22391. enableval=$enable_foregrounding_signal;
  22392. else
  22393. enable_foregrounding_signal=no
  22394. fi
  22395. if test x$enable_foregrounding_signal != xno; then
  22396. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22397. fi
  22398. }
  22399. CheckVirtualJoystick()
  22400. {
  22401. # Check whether --enable-joystick-virtual was given.
  22402. if test "${enable_joystick_virtual+set}" = set; then :
  22403. enableval=$enable_joystick_virtual;
  22404. else
  22405. enable_joystick_virtual=yes
  22406. fi
  22407. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22408. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22409. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22410. have_joystick_virtual=yes
  22411. fi
  22412. }
  22413. CheckWarnAll
  22414. CheckNoStrictAliasing
  22415. CheckEventSignals
  22416. have_locale=no
  22417. case "$host" in
  22418. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22419. case "$host" in
  22420. *-*-android*)
  22421. # Android
  22422. ARCH=android
  22423. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22424. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22425. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22426. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22427. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22428. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22429. if test x$enable_video = xyes; then
  22430. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22431. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22432. SUMMARY_video="${SUMMARY_video} android"
  22433. have_video=yes
  22434. fi
  22435. ;;
  22436. *-*-linux*) ARCH=linux ;;
  22437. *-*-uclinux*) ARCH=linux ;;
  22438. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22439. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22440. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22441. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22442. *-*-bsdi*) ARCH=bsdi ;;
  22443. *-*-freebsd*) ARCH=freebsd ;;
  22444. *-*-dragonfly*) ARCH=freebsd ;;
  22445. *-*-netbsd*) ARCH=netbsd ;;
  22446. *-*-openbsd*) ARCH=openbsd ;;
  22447. *-*-sysv5*) ARCH=sysv5 ;;
  22448. *-*-solaris*) ARCH=solaris ;;
  22449. *-*-hpux*) ARCH=hpux ;;
  22450. *-*-aix*) ARCH=aix ;;
  22451. *-*-minix*) ARCH=minix ;;
  22452. *-*-nto*) ARCH=nto
  22453. CheckQNXVideo
  22454. ;;
  22455. esac
  22456. CheckVisibilityHidden
  22457. CheckDeclarationAfterStatement
  22458. CheckDummyVideo
  22459. CheckOffscreenVideo
  22460. CheckDiskAudio
  22461. CheckDummyAudio
  22462. CheckDLOPEN
  22463. CheckARM
  22464. CheckNEON
  22465. CheckO_CLOEXEC
  22466. CheckOSS
  22467. CheckALSA
  22468. CheckPipewire
  22469. CheckPulseAudio
  22470. CheckJACK
  22471. CheckARTSC
  22472. CheckESD
  22473. CheckNAS
  22474. CheckSNDIO
  22475. CheckFusionSound
  22476. CheckLibSampleRate
  22477. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22478. CheckRPI
  22479. CheckX11
  22480. CheckDirectFB
  22481. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22482. CheckEGL
  22483. CheckKMSDRM
  22484. CheckGLX
  22485. CheckOpenGL
  22486. CheckOpenGLES
  22487. CheckVulkan
  22488. CheckWayland
  22489. CheckInputEvents
  22490. CheckLibUDev
  22491. CheckDBus
  22492. CheckIME
  22493. CheckInotify
  22494. CheckIBus
  22495. CheckFcitx
  22496. case $ARCH in
  22497. linux)
  22498. CheckInputKD
  22499. ;;
  22500. freebsd)
  22501. CheckInputKBIO
  22502. ;;
  22503. openbsd|netbsd)
  22504. CheckInputWSCONS
  22505. ;;
  22506. esac
  22507. CheckUSBHID
  22508. CheckHIDAPI
  22509. CheckPTHREAD
  22510. CheckClockGettime
  22511. CheckLinuxVersion
  22512. CheckRPATH
  22513. CheckVivanteVideo
  22514. # Set up files for the misc library
  22515. if test x$enable_misc = xyes; then
  22516. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22517. have_misc=yes
  22518. fi
  22519. # Set up files for the locale library
  22520. if test x$enable_locale = xyes; then
  22521. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22522. have_locale=yes
  22523. fi
  22524. # Set up files for the audio library
  22525. if test x$enable_audio = xyes; then
  22526. case $ARCH in
  22527. sysv5|solaris|hpux)
  22528. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22529. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22530. SUMMARY_audio="${SUMMARY_audio} sun"
  22531. have_audio=yes
  22532. ;;
  22533. netbsd) # Don't use this on OpenBSD, it's busted.
  22534. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22535. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22536. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22537. have_audio=yes
  22538. ;;
  22539. aix)
  22540. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22541. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22542. SUMMARY_audio="${SUMMARY_audio} paudio"
  22543. have_audio=yes
  22544. ;;
  22545. android)
  22546. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22547. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22548. SUMMARY_audio="${SUMMARY_audio} android"
  22549. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22550. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22551. SUMMARY_audio="${SUMMARY_audio} openslES"
  22552. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22553. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22554. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22555. have_audio=yes
  22556. ;;
  22557. nto)
  22558. CheckQNXAudio
  22559. ;;
  22560. esac
  22561. fi
  22562. # Set up files for the joystick library
  22563. if test x$enable_joystick = xyes; then
  22564. case $ARCH in
  22565. linux)
  22566. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22567. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22568. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22569. have_joystick=yes
  22570. ;;
  22571. freebsd)
  22572. if test x$use_input_events = xyes; then
  22573. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22574. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22575. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22576. have_joystick=yes
  22577. fi
  22578. ;;
  22579. android)
  22580. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22581. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22582. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22583. have_joystick=yes
  22584. ;;
  22585. esac
  22586. fi
  22587. # Set up files for the haptic library
  22588. if test x$enable_haptic = xyes; then
  22589. case $ARCH in
  22590. linux|freebsd)
  22591. if test x$use_input_events = xyes; then
  22592. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22593. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22594. have_haptic=yes
  22595. fi
  22596. ;;
  22597. android)
  22598. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22599. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22600. have_haptic=yes
  22601. ;;
  22602. esac
  22603. fi
  22604. # Set up files for the sensor library
  22605. if test x$enable_sensor = xyes; then
  22606. case $ARCH in
  22607. android)
  22608. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22609. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22610. have_sensor=yes
  22611. ;;
  22612. esac
  22613. fi
  22614. # Set up files for the power library
  22615. if test x$enable_power = xyes; then
  22616. case $ARCH in
  22617. linux)
  22618. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22619. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22620. have_power=yes
  22621. ;;
  22622. android)
  22623. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22624. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22625. have_power=yes
  22626. ;;
  22627. esac
  22628. fi
  22629. # Set up files for the filesystem library
  22630. if test x$enable_filesystem = xyes; then
  22631. case $ARCH in
  22632. android)
  22633. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22634. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22635. have_filesystem=yes
  22636. ;;
  22637. *)
  22638. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22639. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22640. have_filesystem=yes
  22641. ;;
  22642. esac
  22643. fi
  22644. # Set up files for the timer library
  22645. if test x$enable_timers = xyes; then
  22646. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22647. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22648. have_timers=yes
  22649. fi
  22650. # Set up files for udev hotplugging support
  22651. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22652. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22653. fi
  22654. # Set up files for evdev input
  22655. if test x$use_input_events = xyes; then
  22656. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22657. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22658. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22659. fi
  22660. # Set up files for wscons input
  22661. if test x$use_input_wscons = xyes; then
  22662. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22663. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22664. fi
  22665. # Set up other core UNIX files
  22666. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22667. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22668. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22669. ;;
  22670. *-*-cygwin* | *-*-mingw*)
  22671. ARCH=win32
  22672. if test "$build" != "$host"; then # cross-compiling
  22673. # Default cross-compile location
  22674. ac_default_prefix=/usr/local/cross-tools/$host
  22675. else
  22676. # Look for the location of the tools and install there
  22677. if test "$BUILD_PREFIX" != ""; then
  22678. ac_default_prefix=$BUILD_PREFIX
  22679. fi
  22680. fi
  22681. if test x$enable_loadso = xyes; then
  22682. have_loadso=yes
  22683. fi
  22684. CheckDeclarationAfterStatement
  22685. CheckDummyVideo
  22686. CheckOffscreenVideo
  22687. CheckDiskAudio
  22688. CheckDummyAudio
  22689. CheckWINDOWS
  22690. CheckWINDOWSGL
  22691. CheckWINDOWSGLES
  22692. CheckVulkan
  22693. CheckDIRECTX
  22694. CheckHIDAPI
  22695. # Set up the core platform files
  22696. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22697. # Set up files for the misc library
  22698. if test x$enable_misc = xyes; then
  22699. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22700. have_misc=yes
  22701. fi
  22702. # Use the Windows locale APIs.
  22703. if test x$enable_locale = xyes; then
  22704. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22705. have_locale=yes
  22706. fi
  22707. # Set up files for the video library
  22708. if test x$enable_video = xyes; then
  22709. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22710. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22711. have_video=yes
  22712. # Check whether --enable-render-d3d was given.
  22713. if test "${enable_render_d3d+set}" = set; then :
  22714. enableval=$enable_render_d3d;
  22715. else
  22716. enable_render_d3d=yes
  22717. fi
  22718. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22719. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22720. SUMMARY_video="${SUMMARY_video} d3d9"
  22721. fi
  22722. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22723. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22724. SUMMARY_video="${SUMMARY_video} d3d11"
  22725. fi
  22726. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  22727. $as_echo "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  22728. SUMMARY_video="${SUMMARY_video} d3d12"
  22729. fi
  22730. fi
  22731. # Set up files for the audio library
  22732. if test x$enable_audio = xyes; then
  22733. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22734. SUMMARY_audio="${SUMMARY_audio} winmm"
  22735. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22736. if test x$have_dsound = xyes; then
  22737. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22738. SUMMARY_audio="${SUMMARY_audio} directsound"
  22739. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22740. fi
  22741. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22742. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22743. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22744. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22745. fi
  22746. have_audio=yes
  22747. fi
  22748. # Set up files for the joystick library
  22749. if test x$enable_joystick = xyes; then
  22750. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22751. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22752. if test x$have_xinput = xyes; then
  22753. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22754. fi
  22755. if test x$have_wgi = xyes; then
  22756. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22757. fi
  22758. if test x$have_dinput = xyes; then
  22759. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22760. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22761. fi
  22762. fi
  22763. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22764. have_joystick=yes
  22765. fi
  22766. if test x$enable_haptic = xyes; then
  22767. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22768. if test x$have_xinput = xyes; then
  22769. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22770. fi
  22771. if test x$have_dinput = xyes; then
  22772. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22773. fi
  22774. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22775. have_haptic=yes
  22776. fi
  22777. fi
  22778. # Set up files for the sensor library
  22779. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22780. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22781. have_winsensors=yes
  22782. else
  22783. have_winsensors=no
  22784. fi
  22785. if test x$have_winsensors = xyes; then
  22786. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22787. fi
  22788. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22789. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22790. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22791. have_sensor=yes
  22792. fi
  22793. # Set up files for the power library
  22794. if test x$enable_power = xyes; then
  22795. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22796. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22797. have_power=yes
  22798. fi
  22799. # Set up files for the filesystem library
  22800. if test x$enable_filesystem = xyes; then
  22801. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22802. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22803. have_filesystem=yes
  22804. fi
  22805. # Set up files for the thread library
  22806. if test x$enable_threads = xyes; then
  22807. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22808. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22809. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22810. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22811. have_threads=yes
  22812. fi
  22813. # Set up files for the timer library
  22814. if test x$enable_timers = xyes; then
  22815. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22816. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22817. have_timers=yes
  22818. fi
  22819. # Set up files for the shared object loading library
  22820. if test x$enable_loadso = xyes; then
  22821. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22822. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22823. fi
  22824. # Set up the system libraries we need
  22825. if test -f /lib/w32api/libuuid.a; then
  22826. LIBUUID=/lib/w32api/libuuid.a
  22827. else
  22828. LIBUUID=-luuid
  22829. fi
  22830. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22831. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22832. # The Windows platform requires special setup
  22833. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22834. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22835. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22836. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22837. # Check to see if this is a mingw or cygwin build
  22838. have_mingw32=
  22839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22840. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22841. if ${ac_cv_lib_mingw32_main+:} false; then :
  22842. $as_echo_n "(cached) " >&6
  22843. else
  22844. ac_check_lib_save_LIBS=$LIBS
  22845. LIBS="-lmingw32 $LIBS"
  22846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22847. /* end confdefs.h. */
  22848. int
  22849. main ()
  22850. {
  22851. return main ();
  22852. ;
  22853. return 0;
  22854. }
  22855. _ACEOF
  22856. if ac_fn_c_try_link "$LINENO"; then :
  22857. ac_cv_lib_mingw32_main=yes
  22858. else
  22859. ac_cv_lib_mingw32_main=no
  22860. fi
  22861. rm -f core conftest.err conftest.$ac_objext \
  22862. conftest$ac_exeext conftest.$ac_ext
  22863. LIBS=$ac_check_lib_save_LIBS
  22864. fi
  22865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22866. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22867. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22868. have_mingw32=yes
  22869. fi
  22870. if test x$have_mingw32 = xyes; then
  22871. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22872. else
  22873. SDL_LIBS="-lcygwin $SDL_LIBS"
  22874. fi
  22875. ;;
  22876. *-*-beos*)
  22877. as_fn_error $? "
  22878. *** BeOS support has been removed as of SDL 2.0.2.
  22879. " "$LINENO" 5
  22880. ;;
  22881. *-*-haiku*)
  22882. ARCH=haiku
  22883. ac_default_prefix=/boot/system
  22884. CheckDummyVideo
  22885. CheckOffscreenVideo
  22886. CheckDiskAudio
  22887. CheckDummyAudio
  22888. CheckDLOPEN
  22889. CheckO_CLOEXEC
  22890. CheckHaikuVideo
  22891. CheckHaikuGL
  22892. CheckPTHREAD
  22893. # Set up files for the audio library
  22894. if test x$enable_audio = xyes; then
  22895. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22896. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22897. SUMMARY_audio="${SUMMARY_audio} haiku"
  22898. have_audio=yes
  22899. fi
  22900. # Set up files for the joystick library
  22901. if test x$enable_joystick = xyes; then
  22902. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22903. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22904. have_joystick=yes
  22905. fi
  22906. # Set up files for the timer library
  22907. if test x$enable_timers = xyes; then
  22908. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22909. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22910. have_timers=yes
  22911. fi
  22912. # Set up files for the system power library
  22913. if test x$enable_power = xyes; then
  22914. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22915. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22916. have_power=yes
  22917. fi
  22918. # Set up files for the system filesystem library
  22919. if test x$enable_filesystem = xyes; then
  22920. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22921. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22922. have_filesystem=yes
  22923. fi
  22924. # Set up files for the misc library
  22925. if test x$enable_misc = xyes; then
  22926. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22927. have_misc=yes
  22928. fi
  22929. # Set up files for the locale library
  22930. if test x$enable_locale = xyes; then
  22931. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22932. have_locale=yes
  22933. fi
  22934. # The Haiku platform requires special setup.
  22935. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22937. ;;
  22938. *-ios-*)
  22939. ARCH=ios
  22940. CheckVisibilityHidden
  22941. CheckDeclarationAfterStatement
  22942. CheckDummyVideo
  22943. CheckOffscreenVideo
  22944. CheckDiskAudio
  22945. CheckDummyAudio
  22946. CheckDLOPEN
  22947. CheckO_CLOEXEC
  22948. CheckMETAL
  22949. CheckVulkan
  22950. CheckPTHREAD
  22951. # Set up files for the misc library
  22952. if test x$enable_misc = xyes; then
  22953. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22954. have_misc=yes
  22955. fi
  22956. # Set up files for the locale library
  22957. if test x$enable_locale = xyes; then
  22958. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22959. have_locale=yes
  22960. fi
  22961. # Set up files for the audio library
  22962. if test x$enable_audio = xyes; then
  22963. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22964. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22965. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22966. have_audio=yes
  22967. fi
  22968. # Set up files for the joystick library
  22969. if test x$enable_joystick = xyes; then
  22970. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22971. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22972. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22973. have_joystick=yes
  22974. else
  22975. # Need this code for accelerometer as joystick support
  22976. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22977. fi
  22978. # Set up files for the haptic library
  22979. #if test x$enable_haptic = xyes; then
  22980. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22981. # have_haptic=yes
  22982. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22983. #fi
  22984. # Set up files for the sensor library
  22985. if test x$enable_sensor = xyes; then
  22986. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22987. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22988. have_sensor=yes
  22989. fi
  22990. # Set up files for the power library
  22991. if test x$enable_power = xyes; then
  22992. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22993. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22994. have_power=yes
  22995. fi
  22996. # Set up files for the filesystem library
  22997. if test x$enable_filesystem = xyes; then
  22998. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22999. have_filesystem=yes
  23000. fi
  23001. # Set up additional files for the file library
  23002. if test x$enable_file = xyes; then
  23003. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23004. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23005. fi
  23006. # Set up files for the timer library
  23007. if test x$enable_timers = xyes; then
  23008. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23009. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23010. have_timers=yes
  23011. fi
  23012. # Set up other core UNIX files
  23013. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23014. # The iOS platform requires special setup.
  23015. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  23016. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  23017. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  23018. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  23019. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  23020. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  23021. SUMMARY_video="${SUMMARY_video} uikit"
  23022. have_video=yes
  23023. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  23024. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  23025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  23026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  23027. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  23028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  23029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  23030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  23031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  23032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  23033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  23034. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  23035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  23036. fi
  23037. ;;
  23038. *-*-darwin* )
  23039. # This could be either full "Mac OS X", or plain "Darwin" which is
  23040. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  23041. # Next line is broken, and a few files below require Mac OS X (full)
  23042. ARCH=macosx
  23043. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  23044. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  23045. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  23046. CheckObjectiveCARC
  23047. CheckVisibilityHidden
  23048. CheckDeclarationAfterStatement
  23049. CheckDummyVideo
  23050. CheckOffscreenVideo
  23051. CheckDiskAudio
  23052. CheckDummyAudio
  23053. CheckDLOPEN
  23054. CheckO_CLOEXEC
  23055. CheckCOCOA
  23056. CheckMETAL
  23057. CheckX11
  23058. CheckMacGL
  23059. CheckMacGLES
  23060. CheckGLX
  23061. CheckOpenGL
  23062. CheckVulkan
  23063. CheckPTHREAD
  23064. CheckHIDAPI
  23065. # Set up files for the misc library
  23066. if test x$enable_misc = xyes; then
  23067. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  23068. have_misc=yes
  23069. fi
  23070. # Set up files for the locale library
  23071. if test x$enable_locale = xyes; then
  23072. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  23073. have_locale=yes
  23074. fi
  23075. # Set up files for the audio library
  23076. if test x$enable_audio = xyes; then
  23077. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23078. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  23079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  23080. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23081. have_audio=yes
  23082. fi
  23083. # Set up files for the joystick library
  23084. if test x$enable_joystick = xyes; then
  23085. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  23086. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  23087. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23088. CheckJoystickMFI
  23089. have_joystick=yes
  23090. fi
  23091. # Set up files for the haptic library
  23092. if test x$enable_haptic = xyes; then
  23093. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  23094. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23095. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23096. have_haptic=yes
  23097. fi
  23098. # Set up files for the power library
  23099. if test x$enable_power = xyes; then
  23100. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  23101. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  23102. have_power=yes
  23103. fi
  23104. # Set up files for the filesystem library
  23105. if test x$enable_filesystem = xyes; then
  23106. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23107. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23108. have_filesystem=yes
  23109. fi
  23110. # Set up files for the timer library
  23111. if test x$enable_timers = xyes; then
  23112. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23113. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23114. have_timers=yes
  23115. fi
  23116. # Set up additional files for the file library
  23117. if test x$enable_file = xyes; then
  23118. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23119. fi
  23120. # Set up other core UNIX files
  23121. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23122. # The Mac OS X platform requires special setup.
  23123. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  23124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  23125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  23126. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  23127. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  23128. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  23129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  23130. fi
  23131. ;;
  23132. *-nacl|*-pnacl)
  23133. ARCH=nacl
  23134. CheckNativeClient
  23135. CheckDummyAudio
  23136. CheckDummyVideo
  23137. CheckOffscreenVideo
  23138. CheckInputEvents
  23139. CheckPTHREAD
  23140. CheckO_CLOEXEC
  23141. # Set up files for the timer library
  23142. if test x$enable_timers = xyes; then
  23143. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23144. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23145. have_timers=yes
  23146. fi
  23147. if test x$enable_filesystem = xyes; then
  23148. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  23149. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  23150. have_filesystem=yes
  23151. fi
  23152. ;;
  23153. *-*-emscripten* )
  23154. if test x$enable_video = xyes; then
  23155. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  23156. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  23157. have_video=yes
  23158. SUMMARY_video="${SUMMARY_video} emscripten"
  23159. fi
  23160. if test x$enable_audio = xyes; then
  23161. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  23162. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  23163. have_audio=yes
  23164. SUMMARY_audio="${SUMMARY_audio} emscripten"
  23165. fi
  23166. CheckVisibilityHidden
  23167. CheckDeclarationAfterStatement
  23168. CheckDummyVideo
  23169. CheckOffscreenVideo
  23170. CheckDiskAudio
  23171. CheckDummyAudio
  23172. CheckPTHREAD
  23173. CheckDLOPEN
  23174. CheckClockGettime
  23175. CheckEmscriptenGLES
  23176. # Set up files for the misc library
  23177. if test x$enable_misc = xyes; then
  23178. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  23179. have_misc=yes
  23180. fi
  23181. # Set up files for the power library
  23182. if test x$enable_power = xyes; then
  23183. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  23184. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  23185. have_power=yes
  23186. fi
  23187. # Set up files for the joystick library
  23188. if test x$enable_joystick = xyes; then
  23189. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  23190. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  23191. have_joystick=yes
  23192. fi
  23193. # Set up files for the filesystem library
  23194. if test x$enable_filesystem = xyes; then
  23195. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  23196. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  23197. have_filesystem=yes
  23198. fi
  23199. # Set up files for the timer library
  23200. if test x$enable_timers = xyes; then
  23201. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23202. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23203. have_timers=yes
  23204. fi
  23205. # Set up files for the locale library
  23206. if test x$enable_locale = xyes; then
  23207. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  23208. have_locale=yes
  23209. fi
  23210. ;;
  23211. *-*-riscos*)
  23212. ARCH=riscos
  23213. CheckVisibilityHidden
  23214. CheckDeclarationAfterStatement
  23215. CheckDummyVideo
  23216. CheckOffscreenVideo
  23217. CheckDiskAudio
  23218. CheckDummyAudio
  23219. CheckDLOPEN
  23220. CheckO_CLOEXEC
  23221. CheckOSS
  23222. CheckPTHREAD
  23223. CheckClockGettime
  23224. # Set up files for the misc library
  23225. if test x$enable_misc = xyes; then
  23226. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  23227. have_misc=yes
  23228. fi
  23229. # Set up files for the video library
  23230. if test x$enable_video = xyes; then
  23231. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  23232. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  23233. have_video=yes
  23234. SUMMARY_video="${SUMMARY_video} riscos"
  23235. fi
  23236. # Set up files for the filesystem library
  23237. if test x$enable_filesystem = xyes; then
  23238. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  23239. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  23240. have_filesystem=yes
  23241. fi
  23242. # Set up files for the timer library
  23243. if test x$enable_timers = xyes; then
  23244. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23245. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23246. have_timers=yes
  23247. fi
  23248. ;;
  23249. *-*-os2*)
  23250. ARCH=os2
  23251. if test "$build" != "$host"; then # cross-compiling
  23252. # Default cross-compile location
  23253. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  23254. else
  23255. # Look for the location of the tools and install there
  23256. if test "$BUILD_PREFIX" != ""; then
  23257. ac_default_prefix=$BUILD_PREFIX
  23258. fi
  23259. fi
  23260. enable_static=no # disable static builds
  23261. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  23262. CheckOS2
  23263. CheckDeclarationAfterStatement
  23264. CheckDummyVideo
  23265. CheckDiskAudio
  23266. CheckDummyAudio
  23267. CheckHIDAPI
  23268. # Set up the core platform files
  23269. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  23270. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  23271. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  23272. fi
  23273. # Use the Unix locale APIs.
  23274. if test x$enable_locale = xyes; then
  23275. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23276. have_locale=yes
  23277. fi
  23278. # Set up files for the video library
  23279. if test x$enable_video = xyes; then
  23280. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  23281. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  23282. have_video=yes
  23283. SUMMARY_video="${SUMMARY_video} os/2"
  23284. fi
  23285. # Set up files for the audio library
  23286. if test x$enable_audio = xyes; then
  23287. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  23288. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  23289. have_audio=yes
  23290. SUMMARY_audio="${SUMMARY_audio} os/2"
  23291. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  23292. fi
  23293. # Set up files for the thread library
  23294. if test x$enable_threads = xyes; then
  23295. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  23296. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  23297. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23298. have_threads=yes
  23299. fi
  23300. # Set up files for the timer library
  23301. if test x$enable_timers = xyes; then
  23302. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  23303. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  23304. have_timers=yes
  23305. fi
  23306. # Set up files for the shared object loading library
  23307. if test x$enable_loadso = xyes; then
  23308. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  23309. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  23310. have_loadso=yes
  23311. fi
  23312. # Set up files for the filesystem library
  23313. if test x$enable_filesystem = xyes; then
  23314. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  23315. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  23316. have_filesystem=yes
  23317. fi
  23318. # Set up files for the joystick library
  23319. if test x$enable_joystick = xyes; then
  23320. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  23321. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  23322. have_joystick=yes
  23323. fi
  23324. ;;
  23325. *)
  23326. as_fn_error $? "
  23327. *** Unsupported host: Please add to configure.ac
  23328. " "$LINENO" 5
  23329. ;;
  23330. esac
  23331. CheckVirtualJoystick
  23332. # Check whether to install sdl2-config
  23333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  23334. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  23335. # Check whether --enable-sdl2-config was given.
  23336. if test "${enable_sdl2_config+set}" = set; then :
  23337. enableval=$enable_sdl2_config; case "${enableval}" in
  23338. yes) enable_sdl2_config="TRUE" ;;
  23339. no) enable_sdl2_config="FALSE" ;;
  23340. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  23341. esac
  23342. else
  23343. enable_sdl2_config="TRUE"
  23344. fi
  23345. if test "$enable_sdl2_config" = "TRUE"; then
  23346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23347. $as_echo "yes" >&6; }
  23348. else
  23349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23350. $as_echo "no" >&6; }
  23351. fi
  23352. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23353. # Verify that we have all the platform specific files we need
  23354. if test x$have_audio != xyes; then
  23355. if test x$enable_audio = xyes; then
  23356. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23357. fi
  23358. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23359. fi
  23360. if test x$have_video != xyes; then
  23361. if test x$enable_video = xyes; then
  23362. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23363. fi
  23364. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23365. fi
  23366. if test x$have_misc != xyes; then
  23367. if test x$enable_misc = xyes; then
  23368. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23369. fi
  23370. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23371. fi
  23372. if test x$have_locale != xyes; then
  23373. if test x$enable_locale = xyes; then
  23374. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23375. fi
  23376. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23377. fi
  23378. if test x$have_joystick != xyes; then
  23379. if test x$enable_joystick = xyes; then
  23380. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23381. fi
  23382. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23383. fi
  23384. if test x$have_haptic != xyes; then
  23385. if test x$enable_haptic = xyes; then
  23386. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23387. fi
  23388. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23389. fi
  23390. if test x$have_sensor != xyes; then
  23391. if test x$enable_sensor = xyes; then
  23392. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23393. fi
  23394. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23395. fi
  23396. if test x$have_threads != xyes; then
  23397. if test x$enable_threads = xyes; then
  23398. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23399. fi
  23400. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23401. fi
  23402. if test x$have_timers != xyes; then
  23403. if test x$enable_timers = xyes; then
  23404. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23405. fi
  23406. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23407. fi
  23408. if test x$have_filesystem != xyes; then
  23409. if test x$enable_filesystem = xyes; then
  23410. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23411. fi
  23412. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23413. fi
  23414. if test x$have_loadso != xyes; then
  23415. if test x$enable_loadso = xyes; then
  23416. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23417. fi
  23418. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23419. fi
  23420. if test x$SDLMAIN_SOURCES = x; then
  23421. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23422. fi
  23423. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23424. if test x$video_wayland = xyes; then
  23425. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23426. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23427. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23428. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23429. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23430. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23431. echo ;\
  23432. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23433. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23434. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23435. echo ;\
  23436. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23437. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23438. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23439. echo ;\
  23440. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23441. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23442. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23443. done ;\
  23444. echo ;\
  23445. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23446. fi
  23447. OBJECTS=`echo $SOURCES`
  23448. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23449. for EXT in asm cc m c S; do
  23450. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23451. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23452. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23453. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23454. done
  23455. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23456. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23457. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23458. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23459. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23460. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23461. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23462. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23463. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23464. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23465. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23466. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23467. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23468. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23469. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23470. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23471. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23472. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23473. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23474. # Set runtime shared library paths as needed
  23475. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23476. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23477. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23479. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23480. have_enable_new_dtags=no
  23481. save_LDFLAGS="$LDFLAGS"
  23482. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23484. /* end confdefs.h. */
  23485. int
  23486. main ()
  23487. {
  23488. ;
  23489. return 0;
  23490. }
  23491. _ACEOF
  23492. if ac_fn_c_try_link "$LINENO"; then :
  23493. have_enable_new_dtags=yes
  23494. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23495. fi
  23496. rm -f core conftest.err conftest.$ac_objext \
  23497. conftest$ac_exeext conftest.$ac_ext
  23498. LDFLAGS="$save_LDFLAGS"
  23499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23500. $as_echo "$have_enable_new_dtags" >&6; }
  23501. fi
  23502. if test $ARCH = solaris; then
  23503. SDL_RLD_FLAGS="-R\${libdir}"
  23504. fi
  23505. else
  23506. SDL_RLD_FLAGS=""
  23507. fi
  23508. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23509. eval pkg_prefix=$prefix
  23510. eval pkg_cmakedir=$libdir/cmake/SDL2
  23511. cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23512. eval pkg_bindir=$bindir
  23513. bin_prefix_relpath="$(echo -n "pkg_bindir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23514. if test x$enable_shared = xyes; then
  23515. PKGCONFIG_LIBS_PRIV="
  23516. Libs.private:"
  23517. ENABLE_SHARED_TRUE=
  23518. ENABLE_SHARED_FALSE="#"
  23519. else
  23520. PKGCONFIG_LIBS_PRIV=
  23521. ENABLE_SHARED_TRUE="#"
  23522. ENABLE_SHARED_FALSE=
  23523. fi
  23524. if test x$enable_static = xyes; then
  23525. ENABLE_STATIC_TRUE=
  23526. ENABLE_STATIC_FALSE="#"
  23527. else
  23528. ENABLE_STATIC_TRUE="#"
  23529. ENABLE_STATIC_FALSE=
  23530. fi
  23531. cat >Makefile.rules <<__EOF__
  23532. # Build rules for objects
  23533. -include \$(OBJECTS:.lo=.d)
  23534. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23535. $srcdir/src/SDL.c: update-revision
  23536. $DEPENDS
  23537. $VERSION_DEPENDS
  23538. $SDLMAIN_DEPENDS
  23539. $SDLTEST_DEPENDS
  23540. $WAYLAND_PROTOCOLS_DEPENDS
  23541. __EOF__
  23542. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23543. ac_config_commands="$ac_config_commands sdl2_config"
  23544. SUMMARY="SDL2 Configure Summary:\n"
  23545. if test x$enable_shared = xyes; then
  23546. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23547. fi
  23548. if test x$enable_static = xyes; then
  23549. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23550. fi
  23551. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23552. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23553. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23554. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23555. if test x$have_x = xyes; then
  23556. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23557. fi
  23558. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23559. if test x$have_joystick_virtual = xyes; then
  23560. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23561. else
  23562. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23563. fi
  23564. if test x$have_samplerate_h_hdr = xyes; then
  23565. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23566. else
  23567. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23568. fi
  23569. if test x$have_libudev_h_hdr = xyes; then
  23570. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23571. else
  23572. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23573. fi
  23574. if test x$have_dbus_dbus_h_hdr = xyes; then
  23575. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23576. else
  23577. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23578. fi
  23579. if test x$enable_ime = xyes; then
  23580. SUMMARY="${SUMMARY}Using ime : YES\n"
  23581. else
  23582. SUMMARY="${SUMMARY}Using ime : NO\n"
  23583. fi
  23584. if test x$have_ibus_ibus_h_hdr = xyes; then
  23585. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23586. else
  23587. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23588. fi
  23589. if test x$have_fcitx = xyes; then
  23590. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23591. else
  23592. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23593. fi
  23594. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23595. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23596. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23597. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23598. SUMMARY="${SUMMARY}configure script with:\n"
  23599. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23600. fi
  23601. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23602. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23603. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23604. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23605. SUMMARY="${SUMMARY}configure script with:\n"
  23606. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23607. fi
  23608. ac_config_commands="$ac_config_commands summary"
  23609. cat >confcache <<\_ACEOF
  23610. # This file is a shell script that caches the results of configure
  23611. # tests run on this system so they can be shared between configure
  23612. # scripts and configure runs, see configure's option --config-cache.
  23613. # It is not useful on other systems. If it contains results you don't
  23614. # want to keep, you may remove or edit it.
  23615. #
  23616. # config.status only pays attention to the cache file if you give it
  23617. # the --recheck option to rerun configure.
  23618. #
  23619. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23620. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23621. # following values.
  23622. _ACEOF
  23623. # The following way of writing the cache mishandles newlines in values,
  23624. # but we know of no workaround that is simple, portable, and efficient.
  23625. # So, we kill variables containing newlines.
  23626. # Ultrix sh set writes to stderr and can't be redirected directly,
  23627. # and sets the high bit in the cache file unless we assign to the vars.
  23628. (
  23629. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23630. eval ac_val=\$$ac_var
  23631. case $ac_val in #(
  23632. *${as_nl}*)
  23633. case $ac_var in #(
  23634. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23635. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23636. esac
  23637. case $ac_var in #(
  23638. _ | IFS | as_nl) ;; #(
  23639. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23640. *) { eval $ac_var=; unset $ac_var;} ;;
  23641. esac ;;
  23642. esac
  23643. done
  23644. (set) 2>&1 |
  23645. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23646. *${as_nl}ac_space=\ *)
  23647. # `set' does not quote correctly, so add quotes: double-quote
  23648. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23649. sed -n \
  23650. "s/'/'\\\\''/g;
  23651. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23652. ;; #(
  23653. *)
  23654. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23655. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23656. ;;
  23657. esac |
  23658. sort
  23659. ) |
  23660. sed '
  23661. /^ac_cv_env_/b end
  23662. t clear
  23663. :clear
  23664. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23665. t end
  23666. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23667. :end' >>confcache
  23668. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23669. if test -w "$cache_file"; then
  23670. if test "x$cache_file" != "x/dev/null"; then
  23671. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23672. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23673. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23674. cat confcache >"$cache_file"
  23675. else
  23676. case $cache_file in #(
  23677. */* | ?:*)
  23678. mv -f confcache "$cache_file"$$ &&
  23679. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23680. *)
  23681. mv -f confcache "$cache_file" ;;
  23682. esac
  23683. fi
  23684. fi
  23685. else
  23686. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23687. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23688. fi
  23689. fi
  23690. rm -f confcache
  23691. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23692. # Let make expand exec_prefix.
  23693. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23694. DEFS=-DHAVE_CONFIG_H
  23695. ac_libobjs=
  23696. ac_ltlibobjs=
  23697. U=
  23698. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23699. # 1. Remove the extension, and $U if already installed.
  23700. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23701. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23702. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23703. # will be set to the directory where LIBOBJS objects are built.
  23704. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23705. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23706. done
  23707. LIBOBJS=$ac_libobjs
  23708. LTLIBOBJS=$ac_ltlibobjs
  23709. : "${CONFIG_STATUS=./config.status}"
  23710. ac_write_fail=0
  23711. ac_clean_files_save=$ac_clean_files
  23712. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23713. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23714. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23715. as_write_fail=0
  23716. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23717. #! $SHELL
  23718. # Generated by $as_me.
  23719. # Run this file to recreate the current configuration.
  23720. # Compiler output produced by configure, useful for debugging
  23721. # configure, is in config.log if it exists.
  23722. debug=false
  23723. ac_cs_recheck=false
  23724. ac_cs_silent=false
  23725. SHELL=\${CONFIG_SHELL-$SHELL}
  23726. export SHELL
  23727. _ASEOF
  23728. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23729. ## -------------------- ##
  23730. ## M4sh Initialization. ##
  23731. ## -------------------- ##
  23732. # Be more Bourne compatible
  23733. DUALCASE=1; export DUALCASE # for MKS sh
  23734. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23735. emulate sh
  23736. NULLCMD=:
  23737. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23738. # is contrary to our usage. Disable this feature.
  23739. alias -g '${1+"$@"}'='"$@"'
  23740. setopt NO_GLOB_SUBST
  23741. else
  23742. case `(set -o) 2>/dev/null` in #(
  23743. *posix*) :
  23744. set -o posix ;; #(
  23745. *) :
  23746. ;;
  23747. esac
  23748. fi
  23749. as_nl='
  23750. '
  23751. export as_nl
  23752. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23753. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23754. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23755. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23756. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23757. # but without wasting forks for bash or zsh.
  23758. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23759. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23760. as_echo='print -r --'
  23761. as_echo_n='print -rn --'
  23762. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23763. as_echo='printf %s\n'
  23764. as_echo_n='printf %s'
  23765. else
  23766. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23767. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23768. as_echo_n='/usr/ucb/echo -n'
  23769. else
  23770. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23771. as_echo_n_body='eval
  23772. arg=$1;
  23773. case $arg in #(
  23774. *"$as_nl"*)
  23775. expr "X$arg" : "X\\(.*\\)$as_nl";
  23776. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23777. esac;
  23778. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23779. '
  23780. export as_echo_n_body
  23781. as_echo_n='sh -c $as_echo_n_body as_echo'
  23782. fi
  23783. export as_echo_body
  23784. as_echo='sh -c $as_echo_body as_echo'
  23785. fi
  23786. # The user is always right.
  23787. if test "${PATH_SEPARATOR+set}" != set; then
  23788. PATH_SEPARATOR=:
  23789. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23790. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23791. PATH_SEPARATOR=';'
  23792. }
  23793. fi
  23794. # IFS
  23795. # We need space, tab and new line, in precisely that order. Quoting is
  23796. # there to prevent editors from complaining about space-tab.
  23797. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23798. # splitting by setting IFS to empty value.)
  23799. IFS=" "" $as_nl"
  23800. # Find who we are. Look in the path if we contain no directory separator.
  23801. as_myself=
  23802. case $0 in #((
  23803. *[\\/]* ) as_myself=$0 ;;
  23804. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23805. for as_dir in $PATH
  23806. do
  23807. IFS=$as_save_IFS
  23808. test -z "$as_dir" && as_dir=.
  23809. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23810. done
  23811. IFS=$as_save_IFS
  23812. ;;
  23813. esac
  23814. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23815. # in which case we are not to be found in the path.
  23816. if test "x$as_myself" = x; then
  23817. as_myself=$0
  23818. fi
  23819. if test ! -f "$as_myself"; then
  23820. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23821. exit 1
  23822. fi
  23823. # Unset variables that we do not need and which cause bugs (e.g. in
  23824. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23825. # suppresses any "Segmentation fault" message there. '((' could
  23826. # trigger a bug in pdksh 5.2.14.
  23827. for as_var in BASH_ENV ENV MAIL MAILPATH
  23828. do eval test x\${$as_var+set} = xset \
  23829. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23830. done
  23831. PS1='$ '
  23832. PS2='> '
  23833. PS4='+ '
  23834. # NLS nuisances.
  23835. LC_ALL=C
  23836. export LC_ALL
  23837. LANGUAGE=C
  23838. export LANGUAGE
  23839. # CDPATH.
  23840. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23841. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23842. # ----------------------------------------
  23843. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23844. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23845. # script with STATUS, using 1 if that was 0.
  23846. as_fn_error ()
  23847. {
  23848. as_status=$1; test $as_status -eq 0 && as_status=1
  23849. if test "$4"; then
  23850. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23851. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23852. fi
  23853. $as_echo "$as_me: error: $2" >&2
  23854. as_fn_exit $as_status
  23855. } # as_fn_error
  23856. # as_fn_set_status STATUS
  23857. # -----------------------
  23858. # Set $? to STATUS, without forking.
  23859. as_fn_set_status ()
  23860. {
  23861. return $1
  23862. } # as_fn_set_status
  23863. # as_fn_exit STATUS
  23864. # -----------------
  23865. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23866. as_fn_exit ()
  23867. {
  23868. set +e
  23869. as_fn_set_status $1
  23870. exit $1
  23871. } # as_fn_exit
  23872. # as_fn_unset VAR
  23873. # ---------------
  23874. # Portably unset VAR.
  23875. as_fn_unset ()
  23876. {
  23877. { eval $1=; unset $1;}
  23878. }
  23879. as_unset=as_fn_unset
  23880. # as_fn_append VAR VALUE
  23881. # ----------------------
  23882. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23883. # advantage of any shell optimizations that allow amortized linear growth over
  23884. # repeated appends, instead of the typical quadratic growth present in naive
  23885. # implementations.
  23886. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23887. eval 'as_fn_append ()
  23888. {
  23889. eval $1+=\$2
  23890. }'
  23891. else
  23892. as_fn_append ()
  23893. {
  23894. eval $1=\$$1\$2
  23895. }
  23896. fi # as_fn_append
  23897. # as_fn_arith ARG...
  23898. # ------------------
  23899. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23900. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23901. # must be portable across $(()) and expr.
  23902. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23903. eval 'as_fn_arith ()
  23904. {
  23905. as_val=$(( $* ))
  23906. }'
  23907. else
  23908. as_fn_arith ()
  23909. {
  23910. as_val=`expr "$@" || test $? -eq 1`
  23911. }
  23912. fi # as_fn_arith
  23913. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23914. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23915. as_expr=expr
  23916. else
  23917. as_expr=false
  23918. fi
  23919. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23920. as_basename=basename
  23921. else
  23922. as_basename=false
  23923. fi
  23924. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23925. as_dirname=dirname
  23926. else
  23927. as_dirname=false
  23928. fi
  23929. as_me=`$as_basename -- "$0" ||
  23930. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23931. X"$0" : 'X\(//\)$' \| \
  23932. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23933. $as_echo X/"$0" |
  23934. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23935. s//\1/
  23936. q
  23937. }
  23938. /^X\/\(\/\/\)$/{
  23939. s//\1/
  23940. q
  23941. }
  23942. /^X\/\(\/\).*/{
  23943. s//\1/
  23944. q
  23945. }
  23946. s/.*/./; q'`
  23947. # Avoid depending upon Character Ranges.
  23948. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23949. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23950. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23951. as_cr_digits='0123456789'
  23952. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23953. ECHO_C= ECHO_N= ECHO_T=
  23954. case `echo -n x` in #(((((
  23955. -n*)
  23956. case `echo 'xy\c'` in
  23957. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23958. xy) ECHO_C='\c';;
  23959. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23960. ECHO_T=' ';;
  23961. esac;;
  23962. *)
  23963. ECHO_N='-n';;
  23964. esac
  23965. rm -f conf$$ conf$$.exe conf$$.file
  23966. if test -d conf$$.dir; then
  23967. rm -f conf$$.dir/conf$$.file
  23968. else
  23969. rm -f conf$$.dir
  23970. mkdir conf$$.dir 2>/dev/null
  23971. fi
  23972. if (echo >conf$$.file) 2>/dev/null; then
  23973. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23974. as_ln_s='ln -s'
  23975. # ... but there are two gotchas:
  23976. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23977. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23978. # In both cases, we have to default to `cp -pR'.
  23979. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23980. as_ln_s='cp -pR'
  23981. elif ln conf$$.file conf$$ 2>/dev/null; then
  23982. as_ln_s=ln
  23983. else
  23984. as_ln_s='cp -pR'
  23985. fi
  23986. else
  23987. as_ln_s='cp -pR'
  23988. fi
  23989. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23990. rmdir conf$$.dir 2>/dev/null
  23991. # as_fn_mkdir_p
  23992. # -------------
  23993. # Create "$as_dir" as a directory, including parents if necessary.
  23994. as_fn_mkdir_p ()
  23995. {
  23996. case $as_dir in #(
  23997. -*) as_dir=./$as_dir;;
  23998. esac
  23999. test -d "$as_dir" || eval $as_mkdir_p || {
  24000. as_dirs=
  24001. while :; do
  24002. case $as_dir in #(
  24003. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  24004. *) as_qdir=$as_dir;;
  24005. esac
  24006. as_dirs="'$as_qdir' $as_dirs"
  24007. as_dir=`$as_dirname -- "$as_dir" ||
  24008. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24009. X"$as_dir" : 'X\(//\)[^/]' \| \
  24010. X"$as_dir" : 'X\(//\)$' \| \
  24011. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24012. $as_echo X"$as_dir" |
  24013. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24014. s//\1/
  24015. q
  24016. }
  24017. /^X\(\/\/\)[^/].*/{
  24018. s//\1/
  24019. q
  24020. }
  24021. /^X\(\/\/\)$/{
  24022. s//\1/
  24023. q
  24024. }
  24025. /^X\(\/\).*/{
  24026. s//\1/
  24027. q
  24028. }
  24029. s/.*/./; q'`
  24030. test -d "$as_dir" && break
  24031. done
  24032. test -z "$as_dirs" || eval "mkdir $as_dirs"
  24033. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  24034. } # as_fn_mkdir_p
  24035. if mkdir -p . 2>/dev/null; then
  24036. as_mkdir_p='mkdir -p "$as_dir"'
  24037. else
  24038. test -d ./-p && rmdir ./-p
  24039. as_mkdir_p=false
  24040. fi
  24041. # as_fn_executable_p FILE
  24042. # -----------------------
  24043. # Test if FILE is an executable regular file.
  24044. as_fn_executable_p ()
  24045. {
  24046. test -f "$1" && test -x "$1"
  24047. } # as_fn_executable_p
  24048. as_test_x='test -x'
  24049. as_executable_p=as_fn_executable_p
  24050. # Sed expression to map a string onto a valid CPP name.
  24051. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24052. # Sed expression to map a string onto a valid variable name.
  24053. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24054. exec 6>&1
  24055. ## ----------------------------------- ##
  24056. ## Main body of $CONFIG_STATUS script. ##
  24057. ## ----------------------------------- ##
  24058. _ASEOF
  24059. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  24060. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24061. # Save the log message, to keep $0 and so on meaningful, and to
  24062. # report actual input values of CONFIG_FILES etc. instead of their
  24063. # values after options handling.
  24064. ac_log="
  24065. This file was extended by $as_me, which was
  24066. generated by GNU Autoconf 2.69. Invocation command line was
  24067. CONFIG_FILES = $CONFIG_FILES
  24068. CONFIG_HEADERS = $CONFIG_HEADERS
  24069. CONFIG_LINKS = $CONFIG_LINKS
  24070. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24071. $ $0 $@
  24072. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24073. "
  24074. _ACEOF
  24075. case $ac_config_files in *"
  24076. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  24077. esac
  24078. case $ac_config_headers in *"
  24079. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  24080. esac
  24081. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24082. # Files that config.status was made for.
  24083. config_files="$ac_config_files"
  24084. config_headers="$ac_config_headers"
  24085. config_commands="$ac_config_commands"
  24086. _ACEOF
  24087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24088. ac_cs_usage="\
  24089. \`$as_me' instantiates files and other configuration actions
  24090. from templates according to the current configuration. Unless the files
  24091. and actions are specified as TAGs, all are instantiated by default.
  24092. Usage: $0 [OPTION]... [TAG]...
  24093. -h, --help print this help, then exit
  24094. -V, --version print version number and configuration settings, then exit
  24095. --config print configuration, then exit
  24096. -q, --quiet, --silent
  24097. do not print progress messages
  24098. -d, --debug don't remove temporary files
  24099. --recheck update $as_me by reconfiguring in the same conditions
  24100. --file=FILE[:TEMPLATE]
  24101. instantiate the configuration file FILE
  24102. --header=FILE[:TEMPLATE]
  24103. instantiate the configuration header FILE
  24104. Configuration files:
  24105. $config_files
  24106. Configuration headers:
  24107. $config_headers
  24108. Configuration commands:
  24109. $config_commands
  24110. Report bugs to the package provider."
  24111. _ACEOF
  24112. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24113. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  24114. ac_cs_version="\\
  24115. config.status
  24116. configured by $0, generated by GNU Autoconf 2.69,
  24117. with options \\"\$ac_cs_config\\"
  24118. Copyright (C) 2012 Free Software Foundation, Inc.
  24119. This config.status script is free software; the Free Software Foundation
  24120. gives unlimited permission to copy, distribute and modify it."
  24121. ac_pwd='$ac_pwd'
  24122. srcdir='$srcdir'
  24123. INSTALL='$INSTALL'
  24124. AWK='$AWK'
  24125. test -n "\$AWK" || AWK=awk
  24126. _ACEOF
  24127. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24128. # The default lists apply if the user does not specify any file.
  24129. ac_need_defaults=:
  24130. while test $# != 0
  24131. do
  24132. case $1 in
  24133. --*=?*)
  24134. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24135. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  24136. ac_shift=:
  24137. ;;
  24138. --*=)
  24139. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24140. ac_optarg=
  24141. ac_shift=:
  24142. ;;
  24143. *)
  24144. ac_option=$1
  24145. ac_optarg=$2
  24146. ac_shift=shift
  24147. ;;
  24148. esac
  24149. case $ac_option in
  24150. # Handling of the options.
  24151. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24152. ac_cs_recheck=: ;;
  24153. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24154. $as_echo "$ac_cs_version"; exit ;;
  24155. --config | --confi | --conf | --con | --co | --c )
  24156. $as_echo "$ac_cs_config"; exit ;;
  24157. --debug | --debu | --deb | --de | --d | -d )
  24158. debug=: ;;
  24159. --file | --fil | --fi | --f )
  24160. $ac_shift
  24161. case $ac_optarg in
  24162. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24163. '') as_fn_error $? "missing file argument" ;;
  24164. esac
  24165. as_fn_append CONFIG_FILES " '$ac_optarg'"
  24166. ac_need_defaults=false;;
  24167. --header | --heade | --head | --hea )
  24168. $ac_shift
  24169. case $ac_optarg in
  24170. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24171. esac
  24172. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  24173. ac_need_defaults=false;;
  24174. --he | --h)
  24175. # Conflict between --help and --header
  24176. as_fn_error $? "ambiguous option: \`$1'
  24177. Try \`$0 --help' for more information.";;
  24178. --help | --hel | -h )
  24179. $as_echo "$ac_cs_usage"; exit ;;
  24180. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24181. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24182. ac_cs_silent=: ;;
  24183. # This is an error.
  24184. -*) as_fn_error $? "unrecognized option: \`$1'
  24185. Try \`$0 --help' for more information." ;;
  24186. *) as_fn_append ac_config_targets " $1"
  24187. ac_need_defaults=false ;;
  24188. esac
  24189. shift
  24190. done
  24191. ac_configure_extra_args=
  24192. if $ac_cs_silent; then
  24193. exec 6>/dev/null
  24194. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24195. fi
  24196. _ACEOF
  24197. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24198. if \$ac_cs_recheck; then
  24199. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24200. shift
  24201. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  24202. CONFIG_SHELL='$SHELL'
  24203. export CONFIG_SHELL
  24204. exec "\$@"
  24205. fi
  24206. _ACEOF
  24207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24208. exec 5>>config.log
  24209. {
  24210. echo
  24211. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24212. ## Running $as_me. ##
  24213. _ASBOX
  24214. $as_echo "$ac_log"
  24215. } >&5
  24216. _ACEOF
  24217. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24218. #
  24219. # INIT-COMMANDS
  24220. #
  24221. # The HP-UX ksh and POSIX shell print the target directory to stdout
  24222. # if CDPATH is set.
  24223. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  24224. sed_quote_subst='$sed_quote_subst'
  24225. double_quote_subst='$double_quote_subst'
  24226. delay_variable_subst='$delay_variable_subst'
  24227. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  24228. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  24229. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  24230. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  24231. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  24232. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  24233. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  24234. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  24235. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  24236. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  24237. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  24238. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  24239. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  24240. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  24241. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  24242. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  24243. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  24244. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  24245. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  24246. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  24247. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  24248. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  24249. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  24250. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  24251. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  24252. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  24253. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  24254. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  24255. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  24256. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  24257. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  24258. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  24259. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  24260. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  24261. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  24262. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  24263. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  24264. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  24265. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  24266. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  24267. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  24268. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  24269. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  24270. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  24271. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  24272. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  24273. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  24274. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24275. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24276. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  24277. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  24278. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  24279. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  24280. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  24281. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  24282. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  24283. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  24284. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  24285. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  24286. 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"`'
  24287. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  24288. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  24289. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  24290. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  24291. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  24292. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  24293. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  24294. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  24295. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  24296. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  24297. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  24298. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  24299. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  24300. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  24301. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  24302. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  24303. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  24304. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  24305. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  24306. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  24307. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24308. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  24309. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  24310. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24311. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24312. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24313. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24314. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24315. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24316. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24317. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24318. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24319. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24320. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24321. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24322. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24323. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24324. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24325. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24326. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24327. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24328. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24329. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24330. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24331. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24332. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24333. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24334. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24335. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24336. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24337. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24338. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24339. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24340. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24341. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24342. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24343. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24344. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24345. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24346. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24347. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24348. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24349. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24350. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24351. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24352. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24353. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24354. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24355. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24356. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24357. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24358. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24359. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24360. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24361. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24362. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24363. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24364. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24365. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24366. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24367. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24368. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24369. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24370. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24371. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24372. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24373. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24374. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24375. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24376. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24377. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24378. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24379. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24380. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24381. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24382. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24383. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24384. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24385. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24386. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24387. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24388. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24389. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24390. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24391. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24392. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24393. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24394. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24395. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24396. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24397. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24398. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24399. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24400. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24401. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24402. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24403. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24404. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24405. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24406. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24407. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24408. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24409. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24410. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24411. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24412. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24413. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24414. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24415. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24416. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24417. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24418. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24419. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24420. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24421. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24422. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24423. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24424. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24425. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24426. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24427. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24428. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24429. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24430. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24431. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24432. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24433. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24434. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24435. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24436. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24437. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24438. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24439. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24440. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24441. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24442. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24443. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24444. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24445. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24446. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24447. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24448. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24449. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24450. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24451. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24452. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24453. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24454. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24455. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24456. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24457. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24458. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24459. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24460. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24461. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24462. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24463. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24464. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24465. LTCC='$LTCC'
  24466. LTCFLAGS='$LTCFLAGS'
  24467. compiler='$compiler_DEFAULT'
  24468. # A function that is used when there is no print builtin or printf.
  24469. func_fallback_echo ()
  24470. {
  24471. eval 'cat <<_LTECHO_EOF
  24472. \$1
  24473. _LTECHO_EOF'
  24474. }
  24475. # Quote evaled strings.
  24476. for var in AS \
  24477. DLLTOOL \
  24478. OBJDUMP \
  24479. SHELL \
  24480. ECHO \
  24481. PATH_SEPARATOR \
  24482. SED \
  24483. GREP \
  24484. EGREP \
  24485. FGREP \
  24486. LD \
  24487. NM \
  24488. LN_S \
  24489. lt_SP2NL \
  24490. lt_NL2SP \
  24491. reload_flag \
  24492. deplibs_check_method \
  24493. file_magic_cmd \
  24494. file_magic_glob \
  24495. want_nocaseglob \
  24496. sharedlib_from_linklib_cmd \
  24497. AR \
  24498. AR_FLAGS \
  24499. archiver_list_spec \
  24500. STRIP \
  24501. RANLIB \
  24502. CC \
  24503. CFLAGS \
  24504. compiler \
  24505. lt_cv_sys_global_symbol_pipe \
  24506. lt_cv_sys_global_symbol_to_cdecl \
  24507. lt_cv_sys_global_symbol_to_import \
  24508. lt_cv_sys_global_symbol_to_c_name_address \
  24509. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24510. lt_cv_nm_interface \
  24511. nm_file_list_spec \
  24512. lt_cv_truncate_bin \
  24513. lt_prog_compiler_no_builtin_flag \
  24514. lt_prog_compiler_pic \
  24515. lt_prog_compiler_wl \
  24516. lt_prog_compiler_static \
  24517. lt_cv_prog_compiler_c_o \
  24518. need_locks \
  24519. MANIFEST_TOOL \
  24520. DSYMUTIL \
  24521. NMEDIT \
  24522. LIPO \
  24523. OTOOL \
  24524. OTOOL64 \
  24525. shrext_cmds \
  24526. export_dynamic_flag_spec \
  24527. whole_archive_flag_spec \
  24528. compiler_needs_object \
  24529. with_gnu_ld \
  24530. allow_undefined_flag \
  24531. no_undefined_flag \
  24532. hardcode_libdir_flag_spec \
  24533. hardcode_libdir_separator \
  24534. exclude_expsyms \
  24535. include_expsyms \
  24536. file_list_spec \
  24537. variables_saved_for_relink \
  24538. libname_spec \
  24539. library_names_spec \
  24540. soname_spec \
  24541. install_override_mode \
  24542. finish_eval \
  24543. old_striplib \
  24544. striplib \
  24545. compiler_lib_search_dirs \
  24546. predep_objects \
  24547. postdep_objects \
  24548. predeps \
  24549. postdeps \
  24550. compiler_lib_search_path \
  24551. LD_RC \
  24552. LD_CXX \
  24553. reload_flag_RC \
  24554. reload_flag_CXX \
  24555. compiler_RC \
  24556. compiler_CXX \
  24557. lt_prog_compiler_no_builtin_flag_RC \
  24558. lt_prog_compiler_no_builtin_flag_CXX \
  24559. lt_prog_compiler_pic_RC \
  24560. lt_prog_compiler_pic_CXX \
  24561. lt_prog_compiler_wl_RC \
  24562. lt_prog_compiler_wl_CXX \
  24563. lt_prog_compiler_static_RC \
  24564. lt_prog_compiler_static_CXX \
  24565. lt_cv_prog_compiler_c_o_RC \
  24566. lt_cv_prog_compiler_c_o_CXX \
  24567. export_dynamic_flag_spec_RC \
  24568. export_dynamic_flag_spec_CXX \
  24569. whole_archive_flag_spec_RC \
  24570. whole_archive_flag_spec_CXX \
  24571. compiler_needs_object_RC \
  24572. compiler_needs_object_CXX \
  24573. with_gnu_ld_RC \
  24574. with_gnu_ld_CXX \
  24575. allow_undefined_flag_RC \
  24576. allow_undefined_flag_CXX \
  24577. no_undefined_flag_RC \
  24578. no_undefined_flag_CXX \
  24579. hardcode_libdir_flag_spec_RC \
  24580. hardcode_libdir_flag_spec_CXX \
  24581. hardcode_libdir_separator_RC \
  24582. hardcode_libdir_separator_CXX \
  24583. exclude_expsyms_RC \
  24584. exclude_expsyms_CXX \
  24585. include_expsyms_RC \
  24586. include_expsyms_CXX \
  24587. file_list_spec_RC \
  24588. file_list_spec_CXX \
  24589. compiler_lib_search_dirs_RC \
  24590. compiler_lib_search_dirs_CXX \
  24591. predep_objects_RC \
  24592. predep_objects_CXX \
  24593. postdep_objects_RC \
  24594. postdep_objects_CXX \
  24595. predeps_RC \
  24596. predeps_CXX \
  24597. postdeps_RC \
  24598. postdeps_CXX \
  24599. compiler_lib_search_path_RC \
  24600. compiler_lib_search_path_CXX; do
  24601. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24602. *[\\\\\\\`\\"\\\$]*)
  24603. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24604. ;;
  24605. *)
  24606. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24607. ;;
  24608. esac
  24609. done
  24610. # Double-quote double-evaled strings.
  24611. for var in reload_cmds \
  24612. old_postinstall_cmds \
  24613. old_postuninstall_cmds \
  24614. old_archive_cmds \
  24615. extract_expsyms_cmds \
  24616. old_archive_from_new_cmds \
  24617. old_archive_from_expsyms_cmds \
  24618. archive_cmds \
  24619. archive_expsym_cmds \
  24620. module_cmds \
  24621. module_expsym_cmds \
  24622. export_symbols_cmds \
  24623. prelink_cmds \
  24624. postlink_cmds \
  24625. postinstall_cmds \
  24626. postuninstall_cmds \
  24627. finish_cmds \
  24628. sys_lib_search_path_spec \
  24629. configure_time_dlsearch_path \
  24630. configure_time_lt_sys_library_path \
  24631. reload_cmds_RC \
  24632. reload_cmds_CXX \
  24633. old_archive_cmds_RC \
  24634. old_archive_cmds_CXX \
  24635. old_archive_from_new_cmds_RC \
  24636. old_archive_from_new_cmds_CXX \
  24637. old_archive_from_expsyms_cmds_RC \
  24638. old_archive_from_expsyms_cmds_CXX \
  24639. archive_cmds_RC \
  24640. archive_cmds_CXX \
  24641. archive_expsym_cmds_RC \
  24642. archive_expsym_cmds_CXX \
  24643. module_cmds_RC \
  24644. module_cmds_CXX \
  24645. module_expsym_cmds_RC \
  24646. module_expsym_cmds_CXX \
  24647. export_symbols_cmds_RC \
  24648. export_symbols_cmds_CXX \
  24649. prelink_cmds_RC \
  24650. prelink_cmds_CXX \
  24651. postlink_cmds_RC \
  24652. postlink_cmds_CXX; do
  24653. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24654. *[\\\\\\\`\\"\\\$]*)
  24655. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24656. ;;
  24657. *)
  24658. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24659. ;;
  24660. esac
  24661. done
  24662. ac_aux_dir='$ac_aux_dir'
  24663. # See if we are running on zsh, and set the options that allow our
  24664. # commands through without removal of \ escapes INIT.
  24665. if test -n "\${ZSH_VERSION+set}"; then
  24666. setopt NO_GLOB_SUBST
  24667. fi
  24668. PACKAGE='$PACKAGE'
  24669. VERSION='$VERSION'
  24670. RM='$RM'
  24671. ofile='$ofile'
  24672. SUMMARY="$SUMMARY"
  24673. _ACEOF
  24674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24675. # Handling of arguments.
  24676. for ac_config_target in $ac_config_targets
  24677. do
  24678. case $ac_config_target in
  24679. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24680. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24681. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24682. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24683. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24684. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24685. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24686. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24687. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24688. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24689. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24690. esac
  24691. done
  24692. # If the user did not use the arguments to specify the items to instantiate,
  24693. # then the envvar interface is used. Set only those that are not.
  24694. # We use the long form for the default assignment because of an extremely
  24695. # bizarre bug on SunOS 4.1.3.
  24696. if $ac_need_defaults; then
  24697. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24698. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24699. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24700. fi
  24701. # Have a temporary directory for convenience. Make it in the build tree
  24702. # simply because there is no reason against having it here, and in addition,
  24703. # creating and moving files from /tmp can sometimes cause problems.
  24704. # Hook for its removal unless debugging.
  24705. # Note that there is a small window in which the directory will not be cleaned:
  24706. # after its creation but before its name has been assigned to `$tmp'.
  24707. $debug ||
  24708. {
  24709. tmp= ac_tmp=
  24710. trap 'exit_status=$?
  24711. : "${ac_tmp:=$tmp}"
  24712. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24713. ' 0
  24714. trap 'as_fn_exit 1' 1 2 13 15
  24715. }
  24716. # Create a (secure) tmp directory for tmp files.
  24717. {
  24718. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24719. test -d "$tmp"
  24720. } ||
  24721. {
  24722. tmp=./conf$$-$RANDOM
  24723. (umask 077 && mkdir "$tmp")
  24724. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24725. ac_tmp=$tmp
  24726. # Set up the scripts for CONFIG_FILES section.
  24727. # No need to generate them if there are no CONFIG_FILES.
  24728. # This happens for instance with `./config.status config.h'.
  24729. if test -n "$CONFIG_FILES"; then
  24730. ac_cr=`echo X | tr X '\015'`
  24731. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24732. # But we know of no other shell where ac_cr would be empty at this
  24733. # point, so we can use a bashism as a fallback.
  24734. if test "x$ac_cr" = x; then
  24735. eval ac_cr=\$\'\\r\'
  24736. fi
  24737. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24738. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24739. ac_cs_awk_cr='\\r'
  24740. else
  24741. ac_cs_awk_cr=$ac_cr
  24742. fi
  24743. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24744. _ACEOF
  24745. {
  24746. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24747. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24748. echo "_ACEOF"
  24749. } >conf$$subs.sh ||
  24750. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24751. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24752. ac_delim='%!_!# '
  24753. for ac_last_try in false false false false false :; do
  24754. . ./conf$$subs.sh ||
  24755. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24756. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24757. if test $ac_delim_n = $ac_delim_num; then
  24758. break
  24759. elif $ac_last_try; then
  24760. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24761. else
  24762. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24763. fi
  24764. done
  24765. rm -f conf$$subs.sh
  24766. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24767. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24768. _ACEOF
  24769. sed -n '
  24770. h
  24771. s/^/S["/; s/!.*/"]=/
  24772. p
  24773. g
  24774. s/^[^!]*!//
  24775. :repl
  24776. t repl
  24777. s/'"$ac_delim"'$//
  24778. t delim
  24779. :nl
  24780. h
  24781. s/\(.\{148\}\)..*/\1/
  24782. t more1
  24783. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24784. p
  24785. n
  24786. b repl
  24787. :more1
  24788. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24789. p
  24790. g
  24791. s/.\{148\}//
  24792. t nl
  24793. :delim
  24794. h
  24795. s/\(.\{148\}\)..*/\1/
  24796. t more2
  24797. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24798. p
  24799. b
  24800. :more2
  24801. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24802. p
  24803. g
  24804. s/.\{148\}//
  24805. t delim
  24806. ' <conf$$subs.awk | sed '
  24807. /^[^""]/{
  24808. N
  24809. s/\n//
  24810. }
  24811. ' >>$CONFIG_STATUS || ac_write_fail=1
  24812. rm -f conf$$subs.awk
  24813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24814. _ACAWK
  24815. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24816. for (key in S) S_is_set[key] = 1
  24817. FS = ""
  24818. }
  24819. {
  24820. line = $ 0
  24821. nfields = split(line, field, "@")
  24822. substed = 0
  24823. len = length(field[1])
  24824. for (i = 2; i < nfields; i++) {
  24825. key = field[i]
  24826. keylen = length(key)
  24827. if (S_is_set[key]) {
  24828. value = S[key]
  24829. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24830. len += length(value) + length(field[++i])
  24831. substed = 1
  24832. } else
  24833. len += 1 + keylen
  24834. }
  24835. print line
  24836. }
  24837. _ACAWK
  24838. _ACEOF
  24839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24840. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24841. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24842. else
  24843. cat
  24844. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24845. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24846. _ACEOF
  24847. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24848. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24849. # trailing colons and then remove the whole line if VPATH becomes empty
  24850. # (actually we leave an empty line to preserve line numbers).
  24851. if test "x$srcdir" = x.; then
  24852. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24853. h
  24854. s///
  24855. s/^/:/
  24856. s/[ ]*$/:/
  24857. s/:\$(srcdir):/:/g
  24858. s/:\${srcdir}:/:/g
  24859. s/:@srcdir@:/:/g
  24860. s/^:*//
  24861. s/:*$//
  24862. x
  24863. s/\(=[ ]*\).*/\1/
  24864. G
  24865. s/\n//
  24866. s/^[^=]*=[ ]*$//
  24867. }'
  24868. fi
  24869. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24870. fi # test -n "$CONFIG_FILES"
  24871. # Set up the scripts for CONFIG_HEADERS section.
  24872. # No need to generate them if there are no CONFIG_HEADERS.
  24873. # This happens for instance with `./config.status Makefile'.
  24874. if test -n "$CONFIG_HEADERS"; then
  24875. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24876. BEGIN {
  24877. _ACEOF
  24878. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24879. # here-document in config.status, that substitutes the proper values into
  24880. # config.h.in to produce config.h.
  24881. # Create a delimiter string that does not exist in confdefs.h, to ease
  24882. # handling of long lines.
  24883. ac_delim='%!_!# '
  24884. for ac_last_try in false false :; do
  24885. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24886. if test -z "$ac_tt"; then
  24887. break
  24888. elif $ac_last_try; then
  24889. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24890. else
  24891. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24892. fi
  24893. done
  24894. # For the awk script, D is an array of macro values keyed by name,
  24895. # likewise P contains macro parameters if any. Preserve backslash
  24896. # newline sequences.
  24897. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24898. sed -n '
  24899. s/.\{148\}/&'"$ac_delim"'/g
  24900. t rset
  24901. :rset
  24902. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24903. t def
  24904. d
  24905. :def
  24906. s/\\$//
  24907. t bsnl
  24908. s/["\\]/\\&/g
  24909. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24910. D["\1"]=" \3"/p
  24911. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24912. d
  24913. :bsnl
  24914. s/["\\]/\\&/g
  24915. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24916. D["\1"]=" \3\\\\\\n"\\/p
  24917. t cont
  24918. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24919. t cont
  24920. d
  24921. :cont
  24922. n
  24923. s/.\{148\}/&'"$ac_delim"'/g
  24924. t clear
  24925. :clear
  24926. s/\\$//
  24927. t bsnlc
  24928. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24929. d
  24930. :bsnlc
  24931. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24932. b cont
  24933. ' <confdefs.h | sed '
  24934. s/'"$ac_delim"'/"\\\
  24935. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24936. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24937. for (key in D) D_is_set[key] = 1
  24938. FS = ""
  24939. }
  24940. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24941. line = \$ 0
  24942. split(line, arg, " ")
  24943. if (arg[1] == "#") {
  24944. defundef = arg[2]
  24945. mac1 = arg[3]
  24946. } else {
  24947. defundef = substr(arg[1], 2)
  24948. mac1 = arg[2]
  24949. }
  24950. split(mac1, mac2, "(") #)
  24951. macro = mac2[1]
  24952. prefix = substr(line, 1, index(line, defundef) - 1)
  24953. if (D_is_set[macro]) {
  24954. # Preserve the white space surrounding the "#".
  24955. print prefix "define", macro P[macro] D[macro]
  24956. next
  24957. } else {
  24958. # Replace #undef with comments. This is necessary, for example,
  24959. # in the case of _POSIX_SOURCE, which is predefined and required
  24960. # on some systems where configure will not decide to define it.
  24961. if (defundef == "undef") {
  24962. print "/*", prefix defundef, macro, "*/"
  24963. next
  24964. }
  24965. }
  24966. }
  24967. { print }
  24968. _ACAWK
  24969. _ACEOF
  24970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24971. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24972. fi # test -n "$CONFIG_HEADERS"
  24973. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24974. shift
  24975. for ac_tag
  24976. do
  24977. case $ac_tag in
  24978. :[FHLC]) ac_mode=$ac_tag; continue;;
  24979. esac
  24980. case $ac_mode$ac_tag in
  24981. :[FHL]*:*);;
  24982. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24983. :[FH]-) ac_tag=-:-;;
  24984. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24985. esac
  24986. ac_save_IFS=$IFS
  24987. IFS=:
  24988. set x $ac_tag
  24989. IFS=$ac_save_IFS
  24990. shift
  24991. ac_file=$1
  24992. shift
  24993. case $ac_mode in
  24994. :L) ac_source=$1;;
  24995. :[FH])
  24996. ac_file_inputs=
  24997. for ac_f
  24998. do
  24999. case $ac_f in
  25000. -) ac_f="$ac_tmp/stdin";;
  25001. *) # Look for the file first in the build tree, then in the source tree
  25002. # (if the path is not absolute). The absolute path cannot be DOS-style,
  25003. # because $ac_f cannot contain `:'.
  25004. test -f "$ac_f" ||
  25005. case $ac_f in
  25006. [\\/$]*) false;;
  25007. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  25008. esac ||
  25009. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  25010. esac
  25011. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  25012. as_fn_append ac_file_inputs " '$ac_f'"
  25013. done
  25014. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25015. # use $as_me), people would be surprised to read:
  25016. # /* config.h. Generated by config.status. */
  25017. configure_input='Generated from '`
  25018. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  25019. `' by configure.'
  25020. if test x"$ac_file" != x-; then
  25021. configure_input="$ac_file. $configure_input"
  25022. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  25023. $as_echo "$as_me: creating $ac_file" >&6;}
  25024. fi
  25025. # Neutralize special characters interpreted by sed in replacement strings.
  25026. case $configure_input in #(
  25027. *\&* | *\|* | *\\* )
  25028. ac_sed_conf_input=`$as_echo "$configure_input" |
  25029. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  25030. *) ac_sed_conf_input=$configure_input;;
  25031. esac
  25032. case $ac_tag in
  25033. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  25034. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  25035. esac
  25036. ;;
  25037. esac
  25038. ac_dir=`$as_dirname -- "$ac_file" ||
  25039. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25040. X"$ac_file" : 'X\(//\)[^/]' \| \
  25041. X"$ac_file" : 'X\(//\)$' \| \
  25042. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25043. $as_echo X"$ac_file" |
  25044. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25045. s//\1/
  25046. q
  25047. }
  25048. /^X\(\/\/\)[^/].*/{
  25049. s//\1/
  25050. q
  25051. }
  25052. /^X\(\/\/\)$/{
  25053. s//\1/
  25054. q
  25055. }
  25056. /^X\(\/\).*/{
  25057. s//\1/
  25058. q
  25059. }
  25060. s/.*/./; q'`
  25061. as_dir="$ac_dir"; as_fn_mkdir_p
  25062. ac_builddir=.
  25063. case "$ac_dir" in
  25064. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25065. *)
  25066. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  25067. # A ".." for each directory in $ac_dir_suffix.
  25068. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  25069. case $ac_top_builddir_sub in
  25070. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25071. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25072. esac ;;
  25073. esac
  25074. ac_abs_top_builddir=$ac_pwd
  25075. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25076. # for backward compatibility:
  25077. ac_top_builddir=$ac_top_build_prefix
  25078. case $srcdir in
  25079. .) # We are building in place.
  25080. ac_srcdir=.
  25081. ac_top_srcdir=$ac_top_builddir_sub
  25082. ac_abs_top_srcdir=$ac_pwd ;;
  25083. [\\/]* | ?:[\\/]* ) # Absolute name.
  25084. ac_srcdir=$srcdir$ac_dir_suffix;
  25085. ac_top_srcdir=$srcdir
  25086. ac_abs_top_srcdir=$srcdir ;;
  25087. *) # Relative name.
  25088. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25089. ac_top_srcdir=$ac_top_build_prefix$srcdir
  25090. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25091. esac
  25092. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25093. case $ac_mode in
  25094. :F)
  25095. #
  25096. # CONFIG_FILE
  25097. #
  25098. case $INSTALL in
  25099. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25100. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25101. esac
  25102. _ACEOF
  25103. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25104. # If the template does not know about datarootdir, expand it.
  25105. # FIXME: This hack should be removed a few years after 2.60.
  25106. ac_datarootdir_hack=; ac_datarootdir_seen=
  25107. ac_sed_dataroot='
  25108. /datarootdir/ {
  25109. p
  25110. q
  25111. }
  25112. /@datadir@/p
  25113. /@docdir@/p
  25114. /@infodir@/p
  25115. /@localedir@/p
  25116. /@mandir@/p'
  25117. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  25118. *datarootdir*) ac_datarootdir_seen=yes;;
  25119. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25121. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25122. _ACEOF
  25123. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25124. ac_datarootdir_hack='
  25125. s&@datadir@&$datadir&g
  25126. s&@docdir@&$docdir&g
  25127. s&@infodir@&$infodir&g
  25128. s&@localedir@&$localedir&g
  25129. s&@mandir@&$mandir&g
  25130. s&\\\${datarootdir}&$datarootdir&g' ;;
  25131. esac
  25132. _ACEOF
  25133. # Neutralize VPATH when `$srcdir' = `.'.
  25134. # Shell code in configure.ac might set extrasub.
  25135. # FIXME: do we really want to maintain this feature?
  25136. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25137. ac_sed_extra="$ac_vpsub
  25138. $extrasub
  25139. _ACEOF
  25140. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25141. :t
  25142. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25143. s|@configure_input@|$ac_sed_conf_input|;t t
  25144. s&@top_builddir@&$ac_top_builddir_sub&;t t
  25145. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  25146. s&@srcdir@&$ac_srcdir&;t t
  25147. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25148. s&@top_srcdir@&$ac_top_srcdir&;t t
  25149. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25150. s&@builddir@&$ac_builddir&;t t
  25151. s&@abs_builddir@&$ac_abs_builddir&;t t
  25152. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25153. s&@INSTALL@&$ac_INSTALL&;t t
  25154. $ac_datarootdir_hack
  25155. "
  25156. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  25157. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25158. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25159. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  25160. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  25161. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  25162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25163. which seems to be undefined. Please make sure it is defined" >&5
  25164. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25165. which seems to be undefined. Please make sure it is defined" >&2;}
  25166. rm -f "$ac_tmp/stdin"
  25167. case $ac_file in
  25168. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  25169. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  25170. esac \
  25171. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25172. ;;
  25173. :H)
  25174. #
  25175. # CONFIG_HEADER
  25176. #
  25177. if test x"$ac_file" != x-; then
  25178. {
  25179. $as_echo "/* $configure_input */" \
  25180. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  25181. } >"$ac_tmp/config.h" \
  25182. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25183. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  25184. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  25185. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  25186. else
  25187. rm -f "$ac_file"
  25188. mv "$ac_tmp/config.h" "$ac_file" \
  25189. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25190. fi
  25191. else
  25192. $as_echo "/* $configure_input */" \
  25193. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  25194. || as_fn_error $? "could not create -" "$LINENO" 5
  25195. fi
  25196. ;;
  25197. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  25198. $as_echo "$as_me: executing $ac_file commands" >&6;}
  25199. ;;
  25200. esac
  25201. case $ac_file$ac_mode in
  25202. "libtool":C)
  25203. # See if we are running on zsh, and set the options that allow our
  25204. # commands through without removal of \ escapes.
  25205. if test -n "${ZSH_VERSION+set}"; then
  25206. setopt NO_GLOB_SUBST
  25207. fi
  25208. cfgfile=${ofile}T
  25209. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  25210. $RM "$cfgfile"
  25211. cat <<_LT_EOF >> "$cfgfile"
  25212. #! $SHELL
  25213. # Generated automatically by $as_me ($PACKAGE) $VERSION
  25214. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25215. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  25216. # Provide generalized library-building support services.
  25217. # Written by Gordon Matzigkeit, 1996
  25218. # Copyright (C) 2014 Free Software Foundation, Inc.
  25219. # This is free software; see the source for copying conditions. There is NO
  25220. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  25221. # GNU Libtool is free software; you can redistribute it and/or modify
  25222. # it under the terms of the GNU General Public License as published by
  25223. # the Free Software Foundation; either version 2 of of the License, or
  25224. # (at your option) any later version.
  25225. #
  25226. # As a special exception to the GNU General Public License, if you
  25227. # distribute this file as part of a program or library that is built
  25228. # using GNU Libtool, you may include this file under the same
  25229. # distribution terms that you use for the rest of that program.
  25230. #
  25231. # GNU Libtool is distributed in the hope that it will be useful, but
  25232. # WITHOUT ANY WARRANTY; without even the implied warranty of
  25233. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25234. # GNU General Public License for more details.
  25235. #
  25236. # You should have received a copy of the GNU General Public License
  25237. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  25238. # The names of the tagged configurations supported by this script.
  25239. available_tags='RC CXX '
  25240. # Configured defaults for sys_lib_dlsearch_path munging.
  25241. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  25242. # ### BEGIN LIBTOOL CONFIG
  25243. # Which release of libtool.m4 was used?
  25244. macro_version=$macro_version
  25245. macro_revision=$macro_revision
  25246. # Assembler program.
  25247. AS=$lt_AS
  25248. # DLL creation program.
  25249. DLLTOOL=$lt_DLLTOOL
  25250. # Object dumper program.
  25251. OBJDUMP=$lt_OBJDUMP
  25252. # Whether or not to build shared libraries.
  25253. build_libtool_libs=$enable_shared
  25254. # Whether or not to build static libraries.
  25255. build_old_libs=$enable_static
  25256. # What type of objects to build.
  25257. pic_mode=$pic_mode
  25258. # Whether or not to optimize for fast installation.
  25259. fast_install=$enable_fast_install
  25260. # Shared archive member basename,for filename based shared library versioning on AIX.
  25261. shared_archive_member_spec=$shared_archive_member_spec
  25262. # Shell to use when invoking shell scripts.
  25263. SHELL=$lt_SHELL
  25264. # An echo program that protects backslashes.
  25265. ECHO=$lt_ECHO
  25266. # The PATH separator for the build system.
  25267. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  25268. # The host system.
  25269. host_alias=$host_alias
  25270. host=$host
  25271. host_os=$host_os
  25272. # The build system.
  25273. build_alias=$build_alias
  25274. build=$build
  25275. build_os=$build_os
  25276. # A sed program that does not truncate output.
  25277. SED=$lt_SED
  25278. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  25279. Xsed="\$SED -e 1s/^X//"
  25280. # A grep program that handles long lines.
  25281. GREP=$lt_GREP
  25282. # An ERE matcher.
  25283. EGREP=$lt_EGREP
  25284. # A literal string matcher.
  25285. FGREP=$lt_FGREP
  25286. # A BSD- or MS-compatible name lister.
  25287. NM=$lt_NM
  25288. # Whether we need soft or hard links.
  25289. LN_S=$lt_LN_S
  25290. # What is the maximum length of a command?
  25291. max_cmd_len=$max_cmd_len
  25292. # Object file suffix (normally "o").
  25293. objext=$ac_objext
  25294. # Executable file suffix (normally "").
  25295. exeext=$exeext
  25296. # whether the shell understands "unset".
  25297. lt_unset=$lt_unset
  25298. # turn spaces into newlines.
  25299. SP2NL=$lt_lt_SP2NL
  25300. # turn newlines into spaces.
  25301. NL2SP=$lt_lt_NL2SP
  25302. # convert \$build file names to \$host format.
  25303. to_host_file_cmd=$lt_cv_to_host_file_cmd
  25304. # convert \$build files to toolchain format.
  25305. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  25306. # Method to check whether dependent libraries are shared objects.
  25307. deplibs_check_method=$lt_deplibs_check_method
  25308. # Command to use when deplibs_check_method = "file_magic".
  25309. file_magic_cmd=$lt_file_magic_cmd
  25310. # How to find potential files when deplibs_check_method = "file_magic".
  25311. file_magic_glob=$lt_file_magic_glob
  25312. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25313. want_nocaseglob=$lt_want_nocaseglob
  25314. # Command to associate shared and link libraries.
  25315. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25316. # The archiver.
  25317. AR=$lt_AR
  25318. # Flags to create an archive.
  25319. AR_FLAGS=$lt_AR_FLAGS
  25320. # How to feed a file listing to the archiver.
  25321. archiver_list_spec=$lt_archiver_list_spec
  25322. # A symbol stripping program.
  25323. STRIP=$lt_STRIP
  25324. # Commands used to install an old-style archive.
  25325. RANLIB=$lt_RANLIB
  25326. old_postinstall_cmds=$lt_old_postinstall_cmds
  25327. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25328. # Whether to use a lock for old archive extraction.
  25329. lock_old_archive_extraction=$lock_old_archive_extraction
  25330. # A C compiler.
  25331. LTCC=$lt_CC
  25332. # LTCC compiler flags.
  25333. LTCFLAGS=$lt_CFLAGS
  25334. # Take the output of nm and produce a listing of raw symbols and C names.
  25335. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25336. # Transform the output of nm in a proper C declaration.
  25337. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25338. # Transform the output of nm into a list of symbols to manually relocate.
  25339. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  25340. # Transform the output of nm in a C name address pair.
  25341. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25342. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25343. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25344. # The name lister interface.
  25345. nm_interface=$lt_lt_cv_nm_interface
  25346. # Specify filename containing input files for \$NM.
  25347. nm_file_list_spec=$lt_nm_file_list_spec
  25348. # The root where to search for dependent libraries,and where our libraries should be installed.
  25349. lt_sysroot=$lt_sysroot
  25350. # Command to truncate a binary pipe.
  25351. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25352. # The name of the directory that contains temporary libtool files.
  25353. objdir=$objdir
  25354. # Used to examine libraries when file_magic_cmd begins with "file".
  25355. MAGIC_CMD=$MAGIC_CMD
  25356. # Must we lock files when doing compilation?
  25357. need_locks=$lt_need_locks
  25358. # Manifest tool.
  25359. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25360. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25361. DSYMUTIL=$lt_DSYMUTIL
  25362. # Tool to change global to local symbols on Mac OS X.
  25363. NMEDIT=$lt_NMEDIT
  25364. # Tool to manipulate fat objects and archives on Mac OS X.
  25365. LIPO=$lt_LIPO
  25366. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25367. OTOOL=$lt_OTOOL
  25368. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25369. OTOOL64=$lt_OTOOL64
  25370. # Old archive suffix (normally "a").
  25371. libext=$libext
  25372. # Shared library suffix (normally ".so").
  25373. shrext_cmds=$lt_shrext_cmds
  25374. # The commands to extract the exported symbol list from a shared archive.
  25375. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25376. # Variables whose values should be saved in libtool wrapper scripts and
  25377. # restored at link time.
  25378. variables_saved_for_relink=$lt_variables_saved_for_relink
  25379. # Do we need the "lib" prefix for modules?
  25380. need_lib_prefix=$need_lib_prefix
  25381. # Do we need a version for libraries?
  25382. need_version=$need_version
  25383. # Library versioning type.
  25384. version_type=$version_type
  25385. # Shared library runtime path variable.
  25386. runpath_var=$runpath_var
  25387. # Shared library path variable.
  25388. shlibpath_var=$shlibpath_var
  25389. # Is shlibpath searched before the hard-coded library search path?
  25390. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25391. # Format of library name prefix.
  25392. libname_spec=$lt_libname_spec
  25393. # List of archive names. First name is the real one, the rest are links.
  25394. # The last name is the one that the linker finds with -lNAME
  25395. library_names_spec=$lt_library_names_spec
  25396. # The coded name of the library, if different from the real name.
  25397. soname_spec=$lt_soname_spec
  25398. # Permission mode override for installation of shared libraries.
  25399. install_override_mode=$lt_install_override_mode
  25400. # Command to use after installation of a shared archive.
  25401. postinstall_cmds=$lt_postinstall_cmds
  25402. # Command to use after uninstallation of a shared archive.
  25403. postuninstall_cmds=$lt_postuninstall_cmds
  25404. # Commands used to finish a libtool library installation in a directory.
  25405. finish_cmds=$lt_finish_cmds
  25406. # As "finish_cmds", except a single script fragment to be evaled but
  25407. # not shown.
  25408. finish_eval=$lt_finish_eval
  25409. # Whether we should hardcode library paths into libraries.
  25410. hardcode_into_libs=$hardcode_into_libs
  25411. # Compile-time system search path for libraries.
  25412. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25413. # Detected run-time system search path for libraries.
  25414. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25415. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25416. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25417. # Whether dlopen is supported.
  25418. dlopen_support=$enable_dlopen
  25419. # Whether dlopen of programs is supported.
  25420. dlopen_self=$enable_dlopen_self
  25421. # Whether dlopen of statically linked programs is supported.
  25422. dlopen_self_static=$enable_dlopen_self_static
  25423. # Commands to strip libraries.
  25424. old_striplib=$lt_old_striplib
  25425. striplib=$lt_striplib
  25426. # The linker used to build libraries.
  25427. LD=$lt_LD
  25428. # How to create reloadable object files.
  25429. reload_flag=$lt_reload_flag
  25430. reload_cmds=$lt_reload_cmds
  25431. # Commands used to build an old-style archive.
  25432. old_archive_cmds=$lt_old_archive_cmds
  25433. # A language specific compiler.
  25434. CC=$lt_compiler
  25435. # Is the compiler the GNU compiler?
  25436. with_gcc=$GCC
  25437. # Compiler flag to turn off builtin functions.
  25438. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25439. # Additional compiler flags for building library objects.
  25440. pic_flag=$lt_lt_prog_compiler_pic
  25441. # How to pass a linker flag through the compiler.
  25442. wl=$lt_lt_prog_compiler_wl
  25443. # Compiler flag to prevent dynamic linking.
  25444. link_static_flag=$lt_lt_prog_compiler_static
  25445. # Does compiler simultaneously support -c and -o options?
  25446. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25447. # Whether or not to add -lc for building shared libraries.
  25448. build_libtool_need_lc=$archive_cmds_need_lc
  25449. # Whether or not to disallow shared libs when runtime libs are static.
  25450. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25451. # Compiler flag to allow reflexive dlopens.
  25452. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25453. # Compiler flag to generate shared objects directly from archives.
  25454. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25455. # Whether the compiler copes with passing no objects directly.
  25456. compiler_needs_object=$lt_compiler_needs_object
  25457. # Create an old-style archive from a shared archive.
  25458. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25459. # Create a temporary old-style archive to link instead of a shared archive.
  25460. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25461. # Commands used to build a shared archive.
  25462. archive_cmds=$lt_archive_cmds
  25463. archive_expsym_cmds=$lt_archive_expsym_cmds
  25464. # Commands used to build a loadable module if different from building
  25465. # a shared archive.
  25466. module_cmds=$lt_module_cmds
  25467. module_expsym_cmds=$lt_module_expsym_cmds
  25468. # Whether we are building with GNU ld or not.
  25469. with_gnu_ld=$lt_with_gnu_ld
  25470. # Flag that allows shared libraries with undefined symbols to be built.
  25471. allow_undefined_flag=$lt_allow_undefined_flag
  25472. # Flag that enforces no undefined symbols.
  25473. no_undefined_flag=$lt_no_undefined_flag
  25474. # Flag to hardcode \$libdir into a binary during linking.
  25475. # This must work even if \$libdir does not exist
  25476. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25477. # Whether we need a single "-rpath" flag with a separated argument.
  25478. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25479. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25480. # DIR into the resulting binary.
  25481. hardcode_direct=$hardcode_direct
  25482. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25483. # DIR into the resulting binary and the resulting library dependency is
  25484. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25485. # library is relocated.
  25486. hardcode_direct_absolute=$hardcode_direct_absolute
  25487. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25488. # into the resulting binary.
  25489. hardcode_minus_L=$hardcode_minus_L
  25490. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25491. # into the resulting binary.
  25492. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25493. # Set to "yes" if building a shared library automatically hardcodes DIR
  25494. # into the library and all subsequent libraries and executables linked
  25495. # against it.
  25496. hardcode_automatic=$hardcode_automatic
  25497. # Set to yes if linker adds runtime paths of dependent libraries
  25498. # to runtime path list.
  25499. inherit_rpath=$inherit_rpath
  25500. # Whether libtool must link a program against all its dependency libraries.
  25501. link_all_deplibs=$link_all_deplibs
  25502. # Set to "yes" if exported symbols are required.
  25503. always_export_symbols=$always_export_symbols
  25504. # The commands to list exported symbols.
  25505. export_symbols_cmds=$lt_export_symbols_cmds
  25506. # Symbols that should not be listed in the preloaded symbols.
  25507. exclude_expsyms=$lt_exclude_expsyms
  25508. # Symbols that must always be exported.
  25509. include_expsyms=$lt_include_expsyms
  25510. # Commands necessary for linking programs (against libraries) with templates.
  25511. prelink_cmds=$lt_prelink_cmds
  25512. # Commands necessary for finishing linking programs.
  25513. postlink_cmds=$lt_postlink_cmds
  25514. # Specify filename containing input files.
  25515. file_list_spec=$lt_file_list_spec
  25516. # How to hardcode a shared library path into an executable.
  25517. hardcode_action=$hardcode_action
  25518. # The directories searched by this compiler when creating a shared library.
  25519. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25520. # Dependencies to place before and after the objects being linked to
  25521. # create a shared library.
  25522. predep_objects=$lt_predep_objects
  25523. postdep_objects=$lt_postdep_objects
  25524. predeps=$lt_predeps
  25525. postdeps=$lt_postdeps
  25526. # The library search path used internally by the compiler when linking
  25527. # a shared library.
  25528. compiler_lib_search_path=$lt_compiler_lib_search_path
  25529. # ### END LIBTOOL CONFIG
  25530. _LT_EOF
  25531. cat <<'_LT_EOF' >> "$cfgfile"
  25532. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25533. # func_munge_path_list VARIABLE PATH
  25534. # -----------------------------------
  25535. # VARIABLE is name of variable containing _space_ separated list of
  25536. # directories to be munged by the contents of PATH, which is string
  25537. # having a format:
  25538. # "DIR[:DIR]:"
  25539. # string "DIR[ DIR]" will be prepended to VARIABLE
  25540. # ":DIR[:DIR]"
  25541. # string "DIR[ DIR]" will be appended to VARIABLE
  25542. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25543. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25544. # "DIRA[ DIRA]" will be appended to VARIABLE
  25545. # "DIR[:DIR]"
  25546. # VARIABLE will be replaced by "DIR[ DIR]"
  25547. func_munge_path_list ()
  25548. {
  25549. case x$2 in
  25550. x)
  25551. ;;
  25552. *:)
  25553. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25554. ;;
  25555. x:*)
  25556. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25557. ;;
  25558. *::*)
  25559. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25560. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25561. ;;
  25562. *)
  25563. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25564. ;;
  25565. esac
  25566. }
  25567. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25568. func_cc_basename ()
  25569. {
  25570. for cc_temp in $*""; do
  25571. case $cc_temp in
  25572. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25573. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25574. \-*) ;;
  25575. *) break;;
  25576. esac
  25577. done
  25578. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25579. }
  25580. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25581. _LT_EOF
  25582. case $host_os in
  25583. aix3*)
  25584. cat <<\_LT_EOF >> "$cfgfile"
  25585. # AIX sometimes has problems with the GCC collect2 program. For some
  25586. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25587. # vanish in a puff of smoke.
  25588. if test set != "${COLLECT_NAMES+set}"; then
  25589. COLLECT_NAMES=
  25590. export COLLECT_NAMES
  25591. fi
  25592. _LT_EOF
  25593. ;;
  25594. esac
  25595. ltmain=$ac_aux_dir/ltmain.sh
  25596. # We use sed instead of cat because bash on DJGPP gets confused if
  25597. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25598. # text mode, it properly converts lines to CR/LF. This bash problem
  25599. # is reportedly fixed, but why not run on old versions too?
  25600. sed '$q' "$ltmain" >> "$cfgfile" \
  25601. || (rm -f "$cfgfile"; exit 1)
  25602. mv -f "$cfgfile" "$ofile" ||
  25603. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25604. chmod +x "$ofile"
  25605. cat <<_LT_EOF >> "$ofile"
  25606. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25607. # The linker used to build libraries.
  25608. LD=$lt_LD_RC
  25609. # How to create reloadable object files.
  25610. reload_flag=$lt_reload_flag_RC
  25611. reload_cmds=$lt_reload_cmds_RC
  25612. # Commands used to build an old-style archive.
  25613. old_archive_cmds=$lt_old_archive_cmds_RC
  25614. # A language specific compiler.
  25615. CC=$lt_compiler_RC
  25616. # Is the compiler the GNU compiler?
  25617. with_gcc=$GCC_RC
  25618. # Compiler flag to turn off builtin functions.
  25619. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25620. # Additional compiler flags for building library objects.
  25621. pic_flag=$lt_lt_prog_compiler_pic_RC
  25622. # How to pass a linker flag through the compiler.
  25623. wl=$lt_lt_prog_compiler_wl_RC
  25624. # Compiler flag to prevent dynamic linking.
  25625. link_static_flag=$lt_lt_prog_compiler_static_RC
  25626. # Does compiler simultaneously support -c and -o options?
  25627. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25628. # Whether or not to add -lc for building shared libraries.
  25629. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25630. # Whether or not to disallow shared libs when runtime libs are static.
  25631. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25632. # Compiler flag to allow reflexive dlopens.
  25633. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25634. # Compiler flag to generate shared objects directly from archives.
  25635. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25636. # Whether the compiler copes with passing no objects directly.
  25637. compiler_needs_object=$lt_compiler_needs_object_RC
  25638. # Create an old-style archive from a shared archive.
  25639. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25640. # Create a temporary old-style archive to link instead of a shared archive.
  25641. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25642. # Commands used to build a shared archive.
  25643. archive_cmds=$lt_archive_cmds_RC
  25644. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25645. # Commands used to build a loadable module if different from building
  25646. # a shared archive.
  25647. module_cmds=$lt_module_cmds_RC
  25648. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25649. # Whether we are building with GNU ld or not.
  25650. with_gnu_ld=$lt_with_gnu_ld_RC
  25651. # Flag that allows shared libraries with undefined symbols to be built.
  25652. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25653. # Flag that enforces no undefined symbols.
  25654. no_undefined_flag=$lt_no_undefined_flag_RC
  25655. # Flag to hardcode \$libdir into a binary during linking.
  25656. # This must work even if \$libdir does not exist
  25657. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25658. # Whether we need a single "-rpath" flag with a separated argument.
  25659. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25660. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25661. # DIR into the resulting binary.
  25662. hardcode_direct=$hardcode_direct_RC
  25663. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25664. # DIR into the resulting binary and the resulting library dependency is
  25665. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25666. # library is relocated.
  25667. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25668. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25669. # into the resulting binary.
  25670. hardcode_minus_L=$hardcode_minus_L_RC
  25671. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25672. # into the resulting binary.
  25673. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25674. # Set to "yes" if building a shared library automatically hardcodes DIR
  25675. # into the library and all subsequent libraries and executables linked
  25676. # against it.
  25677. hardcode_automatic=$hardcode_automatic_RC
  25678. # Set to yes if linker adds runtime paths of dependent libraries
  25679. # to runtime path list.
  25680. inherit_rpath=$inherit_rpath_RC
  25681. # Whether libtool must link a program against all its dependency libraries.
  25682. link_all_deplibs=$link_all_deplibs_RC
  25683. # Set to "yes" if exported symbols are required.
  25684. always_export_symbols=$always_export_symbols_RC
  25685. # The commands to list exported symbols.
  25686. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25687. # Symbols that should not be listed in the preloaded symbols.
  25688. exclude_expsyms=$lt_exclude_expsyms_RC
  25689. # Symbols that must always be exported.
  25690. include_expsyms=$lt_include_expsyms_RC
  25691. # Commands necessary for linking programs (against libraries) with templates.
  25692. prelink_cmds=$lt_prelink_cmds_RC
  25693. # Commands necessary for finishing linking programs.
  25694. postlink_cmds=$lt_postlink_cmds_RC
  25695. # Specify filename containing input files.
  25696. file_list_spec=$lt_file_list_spec_RC
  25697. # How to hardcode a shared library path into an executable.
  25698. hardcode_action=$hardcode_action_RC
  25699. # The directories searched by this compiler when creating a shared library.
  25700. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25701. # Dependencies to place before and after the objects being linked to
  25702. # create a shared library.
  25703. predep_objects=$lt_predep_objects_RC
  25704. postdep_objects=$lt_postdep_objects_RC
  25705. predeps=$lt_predeps_RC
  25706. postdeps=$lt_postdeps_RC
  25707. # The library search path used internally by the compiler when linking
  25708. # a shared library.
  25709. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25710. # ### END LIBTOOL TAG CONFIG: RC
  25711. _LT_EOF
  25712. cat <<_LT_EOF >> "$ofile"
  25713. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25714. # The linker used to build libraries.
  25715. LD=$lt_LD_CXX
  25716. # How to create reloadable object files.
  25717. reload_flag=$lt_reload_flag_CXX
  25718. reload_cmds=$lt_reload_cmds_CXX
  25719. # Commands used to build an old-style archive.
  25720. old_archive_cmds=$lt_old_archive_cmds_CXX
  25721. # A language specific compiler.
  25722. CC=$lt_compiler_CXX
  25723. # Is the compiler the GNU compiler?
  25724. with_gcc=$GCC_CXX
  25725. # Compiler flag to turn off builtin functions.
  25726. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25727. # Additional compiler flags for building library objects.
  25728. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25729. # How to pass a linker flag through the compiler.
  25730. wl=$lt_lt_prog_compiler_wl_CXX
  25731. # Compiler flag to prevent dynamic linking.
  25732. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25733. # Does compiler simultaneously support -c and -o options?
  25734. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25735. # Whether or not to add -lc for building shared libraries.
  25736. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25737. # Whether or not to disallow shared libs when runtime libs are static.
  25738. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25739. # Compiler flag to allow reflexive dlopens.
  25740. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25741. # Compiler flag to generate shared objects directly from archives.
  25742. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25743. # Whether the compiler copes with passing no objects directly.
  25744. compiler_needs_object=$lt_compiler_needs_object_CXX
  25745. # Create an old-style archive from a shared archive.
  25746. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25747. # Create a temporary old-style archive to link instead of a shared archive.
  25748. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25749. # Commands used to build a shared archive.
  25750. archive_cmds=$lt_archive_cmds_CXX
  25751. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25752. # Commands used to build a loadable module if different from building
  25753. # a shared archive.
  25754. module_cmds=$lt_module_cmds_CXX
  25755. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25756. # Whether we are building with GNU ld or not.
  25757. with_gnu_ld=$lt_with_gnu_ld_CXX
  25758. # Flag that allows shared libraries with undefined symbols to be built.
  25759. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25760. # Flag that enforces no undefined symbols.
  25761. no_undefined_flag=$lt_no_undefined_flag_CXX
  25762. # Flag to hardcode \$libdir into a binary during linking.
  25763. # This must work even if \$libdir does not exist
  25764. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25765. # Whether we need a single "-rpath" flag with a separated argument.
  25766. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25767. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25768. # DIR into the resulting binary.
  25769. hardcode_direct=$hardcode_direct_CXX
  25770. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25771. # DIR into the resulting binary and the resulting library dependency is
  25772. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25773. # library is relocated.
  25774. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25775. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25776. # into the resulting binary.
  25777. hardcode_minus_L=$hardcode_minus_L_CXX
  25778. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25779. # into the resulting binary.
  25780. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25781. # Set to "yes" if building a shared library automatically hardcodes DIR
  25782. # into the library and all subsequent libraries and executables linked
  25783. # against it.
  25784. hardcode_automatic=$hardcode_automatic_CXX
  25785. # Set to yes if linker adds runtime paths of dependent libraries
  25786. # to runtime path list.
  25787. inherit_rpath=$inherit_rpath_CXX
  25788. # Whether libtool must link a program against all its dependency libraries.
  25789. link_all_deplibs=$link_all_deplibs_CXX
  25790. # Set to "yes" if exported symbols are required.
  25791. always_export_symbols=$always_export_symbols_CXX
  25792. # The commands to list exported symbols.
  25793. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25794. # Symbols that should not be listed in the preloaded symbols.
  25795. exclude_expsyms=$lt_exclude_expsyms_CXX
  25796. # Symbols that must always be exported.
  25797. include_expsyms=$lt_include_expsyms_CXX
  25798. # Commands necessary for linking programs (against libraries) with templates.
  25799. prelink_cmds=$lt_prelink_cmds_CXX
  25800. # Commands necessary for finishing linking programs.
  25801. postlink_cmds=$lt_postlink_cmds_CXX
  25802. # Specify filename containing input files.
  25803. file_list_spec=$lt_file_list_spec_CXX
  25804. # How to hardcode a shared library path into an executable.
  25805. hardcode_action=$hardcode_action_CXX
  25806. # The directories searched by this compiler when creating a shared library.
  25807. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25808. # Dependencies to place before and after the objects being linked to
  25809. # create a shared library.
  25810. predep_objects=$lt_predep_objects_CXX
  25811. postdep_objects=$lt_postdep_objects_CXX
  25812. predeps=$lt_predeps_CXX
  25813. postdeps=$lt_postdeps_CXX
  25814. # The library search path used internally by the compiler when linking
  25815. # a shared library.
  25816. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25817. # ### END LIBTOOL TAG CONFIG: CXX
  25818. _LT_EOF
  25819. ;;
  25820. "sdl2_config":C) chmod a+x sdl2-config ;;
  25821. "summary":C) printf "$SUMMARY" ;;
  25822. esac
  25823. done # for ac_tag
  25824. as_fn_exit 0
  25825. _ACEOF
  25826. ac_clean_files=$ac_clean_files_save
  25827. test $ac_write_fail = 0 ||
  25828. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25829. # configure is writing to config.log, and then calls config.status.
  25830. # config.status does its own redirection, appending to config.log.
  25831. # Unfortunately, on DOS this fails, as config.log is still kept open
  25832. # by configure, so config.status won't be able to write to it; its
  25833. # output is simply discarded. So we exec the FD to /dev/null,
  25834. # effectively closing config.log, so it can be properly (re)opened and
  25835. # appended to by config.status. When coming back to configure, we
  25836. # need to make the FD available again.
  25837. if test "$no_create" != yes; then
  25838. ac_cs_success=:
  25839. ac_config_status_args=
  25840. test "$silent" = yes &&
  25841. ac_config_status_args="$ac_config_status_args --quiet"
  25842. exec 5>/dev/null
  25843. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25844. exec 5>>config.log
  25845. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25846. # would make configure fail if this is the last instruction.
  25847. $ac_cs_success || as_fn_exit 1
  25848. fi
  25849. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25851. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25852. fi