configure 848 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838
  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. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. PKG_CONFIG_LIBDIR
  642. PKG_CONFIG_PATH
  643. PKG_CONFIG
  644. SET_MAKE
  645. INSTALL_DATA
  646. INSTALL_SCRIPT
  647. INSTALL_PROGRAM
  648. CXXCPP
  649. ac_ct_CXX
  650. CXXFLAGS
  651. CXX
  652. LT_AGE
  653. LT_REVISION
  654. LT_CURRENT
  655. LT_RELEASE
  656. RC
  657. CPP
  658. OTOOL64
  659. OTOOL
  660. LIPO
  661. NMEDIT
  662. DSYMUTIL
  663. MANIFEST_TOOL
  664. AWK
  665. RANLIB
  666. STRIP
  667. ac_ct_AR
  668. AR
  669. LN_S
  670. NM
  671. ac_ct_DUMPBIN
  672. DUMPBIN
  673. LD
  674. FGREP
  675. EGREP
  676. GREP
  677. SED
  678. OBJEXT
  679. EXEEXT
  680. ac_ct_CC
  681. CPPFLAGS
  682. LDFLAGS
  683. CFLAGS
  684. CC
  685. host_os
  686. host_vendor
  687. host_cpu
  688. host
  689. build_os
  690. build_vendor
  691. build_cpu
  692. build
  693. LIBTOOL
  694. OBJDUMP
  695. DLLTOOL
  696. AS
  697. SDL_VERSION
  698. SDL_BINARY_AGE
  699. SDL_INTERFACE_AGE
  700. SDL_MICRO_VERSION
  701. SDL_MINOR_VERSION
  702. SDL_MAJOR_VERSION
  703. target_alias
  704. host_alias
  705. build_alias
  706. LIBS
  707. ECHO_T
  708. ECHO_N
  709. ECHO_C
  710. DEFS
  711. mandir
  712. localedir
  713. libdir
  714. psdir
  715. pdfdir
  716. dvidir
  717. htmldir
  718. infodir
  719. docdir
  720. oldincludedir
  721. includedir
  722. localstatedir
  723. sharedstatedir
  724. sysconfdir
  725. datadir
  726. datarootdir
  727. libexecdir
  728. sbindir
  729. bindir
  730. program_transform_name
  731. prefix
  732. exec_prefix
  733. PACKAGE_URL
  734. PACKAGE_BUGREPORT
  735. PACKAGE_STRING
  736. PACKAGE_VERSION
  737. PACKAGE_TARNAME
  738. PACKAGE_NAME
  739. PATH_SEPARATOR
  740. SHELL'
  741. ac_subst_files=''
  742. ac_user_opts='
  743. enable_option_checking
  744. enable_shared
  745. enable_static
  746. with_pic
  747. enable_fast_install
  748. with_gnu_ld
  749. with_sysroot
  750. enable_libtool_lock
  751. enable_assertions
  752. enable_dependency_tracking
  753. enable_libc
  754. enable_gcc_atomics
  755. enable_atomic
  756. enable_audio
  757. enable_video
  758. enable_render
  759. enable_events
  760. enable_joystick
  761. enable_haptic
  762. enable_sensor
  763. enable_power
  764. enable_filesystem
  765. enable_threads
  766. enable_timers
  767. enable_file
  768. enable_loadso
  769. enable_cpuinfo
  770. enable_assembly
  771. enable_ssemath
  772. enable_mmx
  773. enable_3dnow
  774. enable_sse
  775. enable_sse2
  776. enable_sse3
  777. enable_altivec
  778. enable_oss
  779. enable_alsa
  780. with_alsa_prefix
  781. with_alsa_inc_prefix
  782. enable_alsatest
  783. enable_alsa_shared
  784. enable_jack
  785. enable_jack_shared
  786. enable_esd
  787. with_esd_prefix
  788. with_esd_exec_prefix
  789. enable_esdtest
  790. enable_esd_shared
  791. enable_pipewire
  792. enable_pipewire_shared
  793. enable_pulseaudio
  794. enable_pulseaudio_shared
  795. enable_arts
  796. enable_arts_shared
  797. enable_nas
  798. enable_nas_shared
  799. enable_sndio
  800. enable_sndio_shared
  801. enable_fusionsound
  802. enable_fusionsound_shared
  803. enable_diskaudio
  804. enable_dummyaudio
  805. enable_libsamplerate
  806. enable_libsamplerate_shared
  807. enable_arm_simd
  808. enable_arm_neon
  809. enable_video_wayland
  810. enable_video_wayland_qt_touch
  811. enable_wayland_shared
  812. enable_video_rpi
  813. enable_video_x11
  814. with_x
  815. enable_x11_shared
  816. enable_video_x11_xcursor
  817. enable_video_x11_xdbe
  818. enable_video_x11_xinerama
  819. enable_video_x11_xinput
  820. enable_video_x11_xrandr
  821. enable_video_x11_scrnsaver
  822. enable_video_x11_xshape
  823. enable_video_x11_vm
  824. enable_video_vivante
  825. enable_video_cocoa
  826. enable_video_metal
  827. enable_render_metal
  828. enable_video_directfb
  829. enable_directfb_shared
  830. enable_video_kmsdrm
  831. enable_kmsdrm_shared
  832. enable_video_dummy
  833. enable_video_opengl
  834. enable_video_opengles
  835. enable_video_opengles1
  836. enable_video_opengles2
  837. enable_video_vulkan
  838. enable_libudev
  839. enable_dbus
  840. enable_ime
  841. enable_ibus
  842. enable_fcitx
  843. enable_joystick_mfi
  844. enable_pthreads
  845. enable_pthread_sem
  846. enable_directx
  847. enable_xinput
  848. enable_wasapi
  849. enable_sdl_dlopen
  850. enable_hidapi
  851. enable_hidapi_libusb
  852. enable_clock_gettime
  853. enable_rpath
  854. enable_backgrounding_signal
  855. enable_foregrounding_signal
  856. enable_joystick_virtual
  857. enable_render_d3d
  858. enable_sdl2_config
  859. '
  860. ac_precious_vars='build_alias
  861. host_alias
  862. target_alias
  863. CC
  864. CFLAGS
  865. LDFLAGS
  866. LIBS
  867. CPPFLAGS
  868. CPP
  869. CXX
  870. CXXFLAGS
  871. CCC
  872. CXXCPP
  873. PKG_CONFIG
  874. PKG_CONFIG_PATH
  875. PKG_CONFIG_LIBDIR
  876. JACK_CFLAGS
  877. JACK_LIBS
  878. PIPEWIRE_CFLAGS
  879. PIPEWIRE_LIBS
  880. PULSEAUDIO_CFLAGS
  881. PULSEAUDIO_LIBS
  882. FUSIONSOUND_CFLAGS
  883. FUSIONSOUND_LIBS
  884. RPI_CFLAGS
  885. RPI_LIBS
  886. XMKMF
  887. DIRECTFB_CFLAGS
  888. DIRECTFB_LIBS
  889. LIBDRM_CFLAGS
  890. LIBDRM_LIBS
  891. LIBGBM_CFLAGS
  892. LIBGBM_LIBS
  893. DBUS_CFLAGS
  894. DBUS_LIBS
  895. IBUS_CFLAGS
  896. IBUS_LIBS
  897. LIBUSB_CFLAGS
  898. LIBUSB_LIBS'
  899. # Initialize some variables set by options.
  900. ac_init_help=
  901. ac_init_version=false
  902. ac_unrecognized_opts=
  903. ac_unrecognized_sep=
  904. # The variables have the same names as the options, with
  905. # dashes changed to underlines.
  906. cache_file=/dev/null
  907. exec_prefix=NONE
  908. no_create=
  909. no_recursion=
  910. prefix=NONE
  911. program_prefix=NONE
  912. program_suffix=NONE
  913. program_transform_name=s,x,x,
  914. silent=
  915. site=
  916. srcdir=
  917. verbose=
  918. x_includes=NONE
  919. x_libraries=NONE
  920. # Installation directory options.
  921. # These are left unexpanded so users can "make install exec_prefix=/foo"
  922. # and all the variables that are supposed to be based on exec_prefix
  923. # by default will actually change.
  924. # Use braces instead of parens because sh, perl, etc. also accept them.
  925. # (The list follows the same order as the GNU Coding Standards.)
  926. bindir='${exec_prefix}/bin'
  927. sbindir='${exec_prefix}/sbin'
  928. libexecdir='${exec_prefix}/libexec'
  929. datarootdir='${prefix}/share'
  930. datadir='${datarootdir}'
  931. sysconfdir='${prefix}/etc'
  932. sharedstatedir='${prefix}/com'
  933. localstatedir='${prefix}/var'
  934. includedir='${prefix}/include'
  935. oldincludedir='/usr/include'
  936. docdir='${datarootdir}/doc/${PACKAGE}'
  937. infodir='${datarootdir}/info'
  938. htmldir='${docdir}'
  939. dvidir='${docdir}'
  940. pdfdir='${docdir}'
  941. psdir='${docdir}'
  942. libdir='${exec_prefix}/lib'
  943. localedir='${datarootdir}/locale'
  944. mandir='${datarootdir}/man'
  945. ac_prev=
  946. ac_dashdash=
  947. for ac_option
  948. do
  949. # If the previous option needs an argument, assign it.
  950. if test -n "$ac_prev"; then
  951. eval $ac_prev=\$ac_option
  952. ac_prev=
  953. continue
  954. fi
  955. case $ac_option in
  956. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  957. *=) ac_optarg= ;;
  958. *) ac_optarg=yes ;;
  959. esac
  960. # Accept the important Cygnus configure options, so we can diagnose typos.
  961. case $ac_dashdash$ac_option in
  962. --)
  963. ac_dashdash=yes ;;
  964. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  965. ac_prev=bindir ;;
  966. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  967. bindir=$ac_optarg ;;
  968. -build | --build | --buil | --bui | --bu)
  969. ac_prev=build_alias ;;
  970. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  971. build_alias=$ac_optarg ;;
  972. -cache-file | --cache-file | --cache-fil | --cache-fi \
  973. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  974. ac_prev=cache_file ;;
  975. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  976. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  977. cache_file=$ac_optarg ;;
  978. --config-cache | -C)
  979. cache_file=config.cache ;;
  980. -datadir | --datadir | --datadi | --datad)
  981. ac_prev=datadir ;;
  982. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  983. datadir=$ac_optarg ;;
  984. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  985. | --dataroo | --dataro | --datar)
  986. ac_prev=datarootdir ;;
  987. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  988. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  989. datarootdir=$ac_optarg ;;
  990. -disable-* | --disable-*)
  991. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  994. as_fn_error $? "invalid feature name: $ac_useropt"
  995. ac_useropt_orig=$ac_useropt
  996. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  997. case $ac_user_opts in
  998. *"
  999. "enable_$ac_useropt"
  1000. "*) ;;
  1001. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1002. ac_unrecognized_sep=', ';;
  1003. esac
  1004. eval enable_$ac_useropt=no ;;
  1005. -docdir | --docdir | --docdi | --doc | --do)
  1006. ac_prev=docdir ;;
  1007. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1008. docdir=$ac_optarg ;;
  1009. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1010. ac_prev=dvidir ;;
  1011. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1012. dvidir=$ac_optarg ;;
  1013. -enable-* | --enable-*)
  1014. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1015. # Reject names that are not valid shell variable names.
  1016. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1017. as_fn_error $? "invalid feature name: $ac_useropt"
  1018. ac_useropt_orig=$ac_useropt
  1019. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1020. case $ac_user_opts in
  1021. *"
  1022. "enable_$ac_useropt"
  1023. "*) ;;
  1024. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1025. ac_unrecognized_sep=', ';;
  1026. esac
  1027. eval enable_$ac_useropt=\$ac_optarg ;;
  1028. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1029. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1030. | --exec | --exe | --ex)
  1031. ac_prev=exec_prefix ;;
  1032. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1033. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1034. | --exec=* | --exe=* | --ex=*)
  1035. exec_prefix=$ac_optarg ;;
  1036. -gas | --gas | --ga | --g)
  1037. # Obsolete; use --with-gas.
  1038. with_gas=yes ;;
  1039. -help | --help | --hel | --he | -h)
  1040. ac_init_help=long ;;
  1041. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1042. ac_init_help=recursive ;;
  1043. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1044. ac_init_help=short ;;
  1045. -host | --host | --hos | --ho)
  1046. ac_prev=host_alias ;;
  1047. -host=* | --host=* | --hos=* | --ho=*)
  1048. host_alias=$ac_optarg ;;
  1049. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1050. ac_prev=htmldir ;;
  1051. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1052. | --ht=*)
  1053. htmldir=$ac_optarg ;;
  1054. -includedir | --includedir | --includedi | --included | --include \
  1055. | --includ | --inclu | --incl | --inc)
  1056. ac_prev=includedir ;;
  1057. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1058. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1059. includedir=$ac_optarg ;;
  1060. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1061. ac_prev=infodir ;;
  1062. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1063. infodir=$ac_optarg ;;
  1064. -libdir | --libdir | --libdi | --libd)
  1065. ac_prev=libdir ;;
  1066. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1067. libdir=$ac_optarg ;;
  1068. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1069. | --libexe | --libex | --libe)
  1070. ac_prev=libexecdir ;;
  1071. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1072. | --libexe=* | --libex=* | --libe=*)
  1073. libexecdir=$ac_optarg ;;
  1074. -localedir | --localedir | --localedi | --localed | --locale)
  1075. ac_prev=localedir ;;
  1076. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1077. localedir=$ac_optarg ;;
  1078. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1079. | --localstate | --localstat | --localsta | --localst | --locals)
  1080. ac_prev=localstatedir ;;
  1081. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1082. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1083. localstatedir=$ac_optarg ;;
  1084. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1085. ac_prev=mandir ;;
  1086. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1087. mandir=$ac_optarg ;;
  1088. -nfp | --nfp | --nf)
  1089. # Obsolete; use --without-fp.
  1090. with_fp=no ;;
  1091. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1092. | --no-cr | --no-c | -n)
  1093. no_create=yes ;;
  1094. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1095. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1096. no_recursion=yes ;;
  1097. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1098. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1099. | --oldin | --oldi | --old | --ol | --o)
  1100. ac_prev=oldincludedir ;;
  1101. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1102. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1103. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1104. oldincludedir=$ac_optarg ;;
  1105. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1106. ac_prev=prefix ;;
  1107. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1108. prefix=$ac_optarg ;;
  1109. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1110. | --program-pre | --program-pr | --program-p)
  1111. ac_prev=program_prefix ;;
  1112. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1113. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1114. program_prefix=$ac_optarg ;;
  1115. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1116. | --program-suf | --program-su | --program-s)
  1117. ac_prev=program_suffix ;;
  1118. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1119. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1120. program_suffix=$ac_optarg ;;
  1121. -program-transform-name | --program-transform-name \
  1122. | --program-transform-nam | --program-transform-na \
  1123. | --program-transform-n | --program-transform- \
  1124. | --program-transform | --program-transfor \
  1125. | --program-transfo | --program-transf \
  1126. | --program-trans | --program-tran \
  1127. | --progr-tra | --program-tr | --program-t)
  1128. ac_prev=program_transform_name ;;
  1129. -program-transform-name=* | --program-transform-name=* \
  1130. | --program-transform-nam=* | --program-transform-na=* \
  1131. | --program-transform-n=* | --program-transform-=* \
  1132. | --program-transform=* | --program-transfor=* \
  1133. | --program-transfo=* | --program-transf=* \
  1134. | --program-trans=* | --program-tran=* \
  1135. | --progr-tra=* | --program-tr=* | --program-t=*)
  1136. program_transform_name=$ac_optarg ;;
  1137. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1138. ac_prev=pdfdir ;;
  1139. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1140. pdfdir=$ac_optarg ;;
  1141. -psdir | --psdir | --psdi | --psd | --ps)
  1142. ac_prev=psdir ;;
  1143. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1144. psdir=$ac_optarg ;;
  1145. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1146. | -silent | --silent | --silen | --sile | --sil)
  1147. silent=yes ;;
  1148. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1149. ac_prev=sbindir ;;
  1150. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1151. | --sbi=* | --sb=*)
  1152. sbindir=$ac_optarg ;;
  1153. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1154. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1155. | --sharedst | --shareds | --shared | --share | --shar \
  1156. | --sha | --sh)
  1157. ac_prev=sharedstatedir ;;
  1158. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1159. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1160. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1161. | --sha=* | --sh=*)
  1162. sharedstatedir=$ac_optarg ;;
  1163. -site | --site | --sit)
  1164. ac_prev=site ;;
  1165. -site=* | --site=* | --sit=*)
  1166. site=$ac_optarg ;;
  1167. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1168. ac_prev=srcdir ;;
  1169. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1170. srcdir=$ac_optarg ;;
  1171. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1172. | --syscon | --sysco | --sysc | --sys | --sy)
  1173. ac_prev=sysconfdir ;;
  1174. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1175. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1176. sysconfdir=$ac_optarg ;;
  1177. -target | --target | --targe | --targ | --tar | --ta | --t)
  1178. ac_prev=target_alias ;;
  1179. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1180. target_alias=$ac_optarg ;;
  1181. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1182. verbose=yes ;;
  1183. -version | --version | --versio | --versi | --vers | -V)
  1184. ac_init_version=: ;;
  1185. -with-* | --with-*)
  1186. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1187. # Reject names that are not valid shell variable names.
  1188. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1189. as_fn_error $? "invalid package name: $ac_useropt"
  1190. ac_useropt_orig=$ac_useropt
  1191. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1192. case $ac_user_opts in
  1193. *"
  1194. "with_$ac_useropt"
  1195. "*) ;;
  1196. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1197. ac_unrecognized_sep=', ';;
  1198. esac
  1199. eval with_$ac_useropt=\$ac_optarg ;;
  1200. -without-* | --without-*)
  1201. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1202. # Reject names that are not valid shell variable names.
  1203. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1204. as_fn_error $? "invalid package name: $ac_useropt"
  1205. ac_useropt_orig=$ac_useropt
  1206. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1207. case $ac_user_opts in
  1208. *"
  1209. "with_$ac_useropt"
  1210. "*) ;;
  1211. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1212. ac_unrecognized_sep=', ';;
  1213. esac
  1214. eval with_$ac_useropt=no ;;
  1215. --x)
  1216. # Obsolete; use --with-x.
  1217. with_x=yes ;;
  1218. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1219. | --x-incl | --x-inc | --x-in | --x-i)
  1220. ac_prev=x_includes ;;
  1221. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1222. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1223. x_includes=$ac_optarg ;;
  1224. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1225. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1226. ac_prev=x_libraries ;;
  1227. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1228. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1229. x_libraries=$ac_optarg ;;
  1230. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1231. Try \`$0 --help' for more information"
  1232. ;;
  1233. *=*)
  1234. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1235. # Reject names that are not valid shell variable names.
  1236. case $ac_envvar in #(
  1237. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1238. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1239. esac
  1240. eval $ac_envvar=\$ac_optarg
  1241. export $ac_envvar ;;
  1242. *)
  1243. # FIXME: should be removed in autoconf 3.0.
  1244. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1245. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1246. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1247. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1248. ;;
  1249. esac
  1250. done
  1251. if test -n "$ac_prev"; then
  1252. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1253. as_fn_error $? "missing argument to $ac_option"
  1254. fi
  1255. if test -n "$ac_unrecognized_opts"; then
  1256. case $enable_option_checking in
  1257. no) ;;
  1258. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1259. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1260. esac
  1261. fi
  1262. # Check all directory arguments for consistency.
  1263. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1264. datadir sysconfdir sharedstatedir localstatedir includedir \
  1265. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1266. libdir localedir mandir
  1267. do
  1268. eval ac_val=\$$ac_var
  1269. # Remove trailing slashes.
  1270. case $ac_val in
  1271. */ )
  1272. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1273. eval $ac_var=\$ac_val;;
  1274. esac
  1275. # Be sure to have absolute directory names.
  1276. case $ac_val in
  1277. [\\/$]* | ?:[\\/]* ) continue;;
  1278. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1279. esac
  1280. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1281. done
  1282. # There might be people who depend on the old broken behavior: `$host'
  1283. # used to hold the argument of --host etc.
  1284. # FIXME: To remove some day.
  1285. build=$build_alias
  1286. host=$host_alias
  1287. target=$target_alias
  1288. # FIXME: To remove some day.
  1289. if test "x$host_alias" != x; then
  1290. if test "x$build_alias" = x; then
  1291. cross_compiling=maybe
  1292. elif test "x$build_alias" != "x$host_alias"; then
  1293. cross_compiling=yes
  1294. fi
  1295. fi
  1296. ac_tool_prefix=
  1297. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1298. test "$silent" = yes && exec 6>/dev/null
  1299. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1300. ac_ls_di=`ls -di .` &&
  1301. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1302. as_fn_error $? "working directory cannot be determined"
  1303. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1304. as_fn_error $? "pwd does not report name of working directory"
  1305. # Find the source files, if location was not specified.
  1306. if test -z "$srcdir"; then
  1307. ac_srcdir_defaulted=yes
  1308. # Try the directory containing this script, then the parent directory.
  1309. ac_confdir=`$as_dirname -- "$as_myself" ||
  1310. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1311. X"$as_myself" : 'X\(//\)[^/]' \| \
  1312. X"$as_myself" : 'X\(//\)$' \| \
  1313. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1314. $as_echo X"$as_myself" |
  1315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1316. s//\1/
  1317. q
  1318. }
  1319. /^X\(\/\/\)[^/].*/{
  1320. s//\1/
  1321. q
  1322. }
  1323. /^X\(\/\/\)$/{
  1324. s//\1/
  1325. q
  1326. }
  1327. /^X\(\/\).*/{
  1328. s//\1/
  1329. q
  1330. }
  1331. s/.*/./; q'`
  1332. srcdir=$ac_confdir
  1333. if test ! -r "$srcdir/$ac_unique_file"; then
  1334. srcdir=..
  1335. fi
  1336. else
  1337. ac_srcdir_defaulted=no
  1338. fi
  1339. if test ! -r "$srcdir/$ac_unique_file"; then
  1340. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1341. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1342. fi
  1343. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1344. ac_abs_confdir=`(
  1345. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1346. pwd)`
  1347. # When building in place, set srcdir=.
  1348. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1349. srcdir=.
  1350. fi
  1351. # Remove unnecessary trailing slashes from srcdir.
  1352. # Double slashes in file names in object file debugging info
  1353. # mess up M-x gdb in Emacs.
  1354. case $srcdir in
  1355. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1356. esac
  1357. for ac_var in $ac_precious_vars; do
  1358. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1359. eval ac_env_${ac_var}_value=\$${ac_var}
  1360. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1361. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1362. done
  1363. #
  1364. # Report the --help message.
  1365. #
  1366. if test "$ac_init_help" = "long"; then
  1367. # Omit some internal or obsolete options to make the list less imposing.
  1368. # This message is too long to be a string in the A/UX 3.1 sh.
  1369. cat <<_ACEOF
  1370. \`configure' configures this package to adapt to many kinds of systems.
  1371. Usage: $0 [OPTION]... [VAR=VALUE]...
  1372. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1373. VAR=VALUE. See below for descriptions of some of the useful variables.
  1374. Defaults for the options are specified in brackets.
  1375. Configuration:
  1376. -h, --help display this help and exit
  1377. --help=short display options specific to this package
  1378. --help=recursive display the short help of all the included packages
  1379. -V, --version display version information and exit
  1380. -q, --quiet, --silent do not print \`checking ...' messages
  1381. --cache-file=FILE cache test results in FILE [disabled]
  1382. -C, --config-cache alias for \`--cache-file=config.cache'
  1383. -n, --no-create do not create output files
  1384. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1385. Installation directories:
  1386. --prefix=PREFIX install architecture-independent files in PREFIX
  1387. [$ac_default_prefix]
  1388. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1389. [PREFIX]
  1390. By default, \`make install' will install all the files in
  1391. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1392. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1393. for instance \`--prefix=\$HOME'.
  1394. For better control, use the options below.
  1395. Fine tuning of the installation directories:
  1396. --bindir=DIR user executables [EPREFIX/bin]
  1397. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1398. --libexecdir=DIR program executables [EPREFIX/libexec]
  1399. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1400. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1401. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1402. --libdir=DIR object code libraries [EPREFIX/lib]
  1403. --includedir=DIR C header files [PREFIX/include]
  1404. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1405. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1406. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1407. --infodir=DIR info documentation [DATAROOTDIR/info]
  1408. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1409. --mandir=DIR man documentation [DATAROOTDIR/man]
  1410. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1411. --htmldir=DIR html documentation [DOCDIR]
  1412. --dvidir=DIR dvi documentation [DOCDIR]
  1413. --pdfdir=DIR pdf documentation [DOCDIR]
  1414. --psdir=DIR ps documentation [DOCDIR]
  1415. _ACEOF
  1416. cat <<\_ACEOF
  1417. X features:
  1418. --x-includes=DIR X include files are in DIR
  1419. --x-libraries=DIR X library files are in DIR
  1420. System types:
  1421. --build=BUILD configure for building on BUILD [guessed]
  1422. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1423. _ACEOF
  1424. fi
  1425. if test -n "$ac_init_help"; then
  1426. cat <<\_ACEOF
  1427. Optional Features:
  1428. --disable-option-checking ignore unrecognized --enable/--with options
  1429. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1430. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1431. --enable-shared[=PKGS] build shared libraries [default=yes]
  1432. --enable-static[=PKGS] build static libraries [default=yes]
  1433. --enable-fast-install[=PKGS]
  1434. optimize for fast installation [default=yes]
  1435. --disable-libtool-lock avoid locking (might break parallel builds)
  1436. --enable-assertions Enable internal sanity checks
  1437. (auto/disabled/release/enabled/paranoid)
  1438. [default=auto]
  1439. --enable-dependency-tracking
  1440. Use gcc -MMD -MT dependency tracking [default=yes]
  1441. --enable-libc Use the system C library [default=yes]
  1442. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1443. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1444. --enable-audio Enable the audio subsystem [default=yes]
  1445. --enable-video Enable the video subsystem [default=yes]
  1446. --enable-render Enable the render subsystem [default=yes]
  1447. --enable-events Enable the events subsystem [default=yes]
  1448. --enable-joystick Enable the joystick subsystem [default=yes]
  1449. --enable-haptic Enable the haptic (force feedback) subsystem
  1450. [default=yes]
  1451. --enable-sensor Enable the sensor subsystem [default=yes]
  1452. --enable-power Enable the power subsystem [default=yes]
  1453. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1454. --enable-threads Enable the threading subsystem [default=yes]
  1455. --enable-timers Enable the timer subsystem [default=yes]
  1456. --enable-file Enable the file subsystem [default=yes]
  1457. --enable-loadso Enable the shared object loading subsystem
  1458. [default=yes]
  1459. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1460. --enable-assembly Enable assembly routines [default=yes]
  1461. --enable-ssemath Allow GCC to use SSE floating point math
  1462. [default=maybe]
  1463. --enable-mmx use MMX assembly routines [default=yes]
  1464. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1465. --enable-sse use SSE assembly routines [default=yes]
  1466. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1467. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1468. --enable-altivec use Altivec assembly routines [default=yes]
  1469. --enable-oss support the OSS audio API [default=maybe]
  1470. --enable-alsa support the ALSA audio API [default=yes]
  1471. --disable-alsatest Do not try to compile and run a test Alsa program
  1472. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1473. --enable-jack use JACK audio [default=yes]
  1474. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1475. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1476. --disable-esdtest Do not try to compile and run a test ESD program
  1477. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1478. --enable-pipewire use Pipewire audio [default=yes]
  1479. --enable-pipewire-shared
  1480. dynamically load Pipewire support [default=yes]
  1481. --enable-pulseaudio use PulseAudio [default=yes]
  1482. --enable-pulseaudio-shared
  1483. dynamically load PulseAudio support [default=yes]
  1484. --enable-arts support the Analog Real Time Synthesizer
  1485. [default=yes]
  1486. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1487. --enable-nas support the NAS audio API [default=yes]
  1488. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1489. --enable-sndio support the sndio audio API [default=yes]
  1490. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1491. --enable-fusionsound use FusionSound audio driver [default=no]
  1492. --enable-fusionsound-shared
  1493. dynamically load fusionsound audio support
  1494. [default=yes]
  1495. --enable-diskaudio support the disk writer audio driver [default=yes]
  1496. --enable-dummyaudio support the dummy audio driver [default=yes]
  1497. --enable-libsamplerate use libsamplerate for audio rate conversion
  1498. [default=yes]
  1499. --enable-libsamplerate-shared
  1500. dynamically load libsamplerate [default=yes]
  1501. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1502. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1503. --enable-video-wayland use Wayland video driver [default=yes]
  1504. --enable-video-wayland-qt-touch
  1505. QtWayland server support for Wayland video driver
  1506. [default=yes]
  1507. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1508. --enable-video-rpi use Raspberry Pi video driver [default=yes]
  1509. --enable-video-x11 use X11 video driver [default=yes]
  1510. --enable-x11-shared dynamically load X11 support [default=maybe]
  1511. --enable-video-x11-xcursor
  1512. enable X11 Xcursor support [default=yes]
  1513. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1514. --enable-video-x11-xinerama
  1515. enable X11 Xinerama support [default=yes]
  1516. --enable-video-x11-xinput
  1517. enable X11 XInput extension for manymouse, tablets,
  1518. etc [default=yes]
  1519. --enable-video-x11-xrandr
  1520. enable X11 Xrandr extension for fullscreen
  1521. [default=yes]
  1522. --enable-video-x11-scrnsaver
  1523. enable X11 screensaver extension [default=yes]
  1524. --enable-video-x11-xshape
  1525. enable X11 XShape support [default=yes]
  1526. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1527. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1528. --enable-video-cocoa use Cocoa video driver [default=yes]
  1529. --enable-video-metal include Metal support [default=yes]
  1530. --enable-render-metal enable the Metal render driver [default=yes]
  1531. --enable-video-directfb use DirectFB video driver [default=no]
  1532. --enable-directfb-shared
  1533. dynamically load directfb support [default=yes]
  1534. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1535. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1536. --enable-video-dummy use dummy video driver [default=yes]
  1537. --enable-video-opengl include OpenGL support [default=yes]
  1538. --enable-video-opengles include OpenGL ES support [default=yes]
  1539. --enable-video-opengles1
  1540. include OpenGL ES 1.1 support [default=yes]
  1541. --enable-video-opengles2
  1542. include OpenGL ES 2.0 support [default=yes]
  1543. --enable-video-vulkan include Vulkan support [default=yes]
  1544. --enable-libudev enable libudev support [default=yes]
  1545. --enable-dbus enable D-Bus support [default=yes]
  1546. --enable-ime enable IME support [default=yes]
  1547. --enable-ibus enable IBus support [default=yes]
  1548. --enable-fcitx enable fcitx support [default=yes]
  1549. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1550. --enable-pthreads use POSIX threads for multi-threading
  1551. [default=maybe]
  1552. --enable-pthread-sem use pthread semaphores [default=maybe]
  1553. --enable-directx use DirectX for Windows audio/video [default=yes]
  1554. --enable-xinput use Xinput for Windows [default=yes]
  1555. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1556. --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
  1557. --enable-hidapi use HIDAPI for low level joystick drivers
  1558. [default=yes]
  1559. --enable-hidapi-libusb use libusb for low level joystick drivers
  1560. [default=maybe]
  1561. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1562. UNIX [default=yes]
  1563. --enable-rpath use an rpath when linking SDL [default=yes]
  1564. --enable-backgrounding-signal
  1565. number to use for magic backgrounding signal or 'no'
  1566. [default=no]
  1567. --enable-foregrounding-signal
  1568. number to use for magic foregrounding signal or 'no'
  1569. [default=no]
  1570. --enable-joystick-virtual
  1571. enable virtual joystick APIs [default=yes]
  1572. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1573. --enable-sdl2-config Install sdl2-config [default=yes]
  1574. Optional Packages:
  1575. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1576. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1577. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1578. both]
  1579. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1580. --with-sysroot=DIR Search for dependent libraries within DIR
  1581. (or the compiler's sysroot if not specified).
  1582. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1583. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1584. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1585. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1586. --with-x use the X Window System
  1587. Some influential environment variables:
  1588. CC C compiler command
  1589. CFLAGS C compiler flags
  1590. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1591. nonstandard directory <lib dir>
  1592. LIBS libraries to pass to the linker, e.g. -l<library>
  1593. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1594. you have headers in a nonstandard directory <include dir>
  1595. CPP C preprocessor
  1596. CXX C++ compiler command
  1597. CXXFLAGS C++ compiler flags
  1598. CXXCPP C++ preprocessor
  1599. PKG_CONFIG path to pkg-config utility
  1600. PKG_CONFIG_PATH
  1601. directories to add to pkg-config's search path
  1602. PKG_CONFIG_LIBDIR
  1603. path overriding pkg-config's built-in search path
  1604. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1605. JACK_LIBS linker flags for JACK, overriding pkg-config
  1606. PIPEWIRE_CFLAGS
  1607. C compiler flags for PIPEWIRE, overriding pkg-config
  1608. PIPEWIRE_LIBS
  1609. linker flags for PIPEWIRE, overriding pkg-config
  1610. PULSEAUDIO_CFLAGS
  1611. C compiler flags for PULSEAUDIO, overriding pkg-config
  1612. PULSEAUDIO_LIBS
  1613. linker flags for PULSEAUDIO, overriding pkg-config
  1614. FUSIONSOUND_CFLAGS
  1615. C compiler flags for FUSIONSOUND, overriding pkg-config
  1616. FUSIONSOUND_LIBS
  1617. linker flags for FUSIONSOUND, overriding pkg-config
  1618. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1619. RPI_LIBS linker flags for RPI, overriding pkg-config
  1620. XMKMF Path to xmkmf, Makefile generator for X Window System
  1621. DIRECTFB_CFLAGS
  1622. C compiler flags for DIRECTFB, overriding pkg-config
  1623. DIRECTFB_LIBS
  1624. linker flags for DIRECTFB, overriding pkg-config
  1625. LIBDRM_CFLAGS
  1626. C compiler flags for LIBDRM, overriding pkg-config
  1627. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1628. LIBGBM_CFLAGS
  1629. C compiler flags for LIBGBM, overriding pkg-config
  1630. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1631. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1632. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1633. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1634. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1635. LIBUSB_CFLAGS
  1636. C compiler flags for LIBUSB, overriding pkg-config
  1637. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1638. Use these variables to override the choices made by `configure' or to help
  1639. it to find libraries and programs with nonstandard names/locations.
  1640. Report bugs to the package provider.
  1641. _ACEOF
  1642. ac_status=$?
  1643. fi
  1644. if test "$ac_init_help" = "recursive"; then
  1645. # If there are subdirs, report their specific --help.
  1646. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1647. test -d "$ac_dir" ||
  1648. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1649. continue
  1650. ac_builddir=.
  1651. case "$ac_dir" in
  1652. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1653. *)
  1654. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1655. # A ".." for each directory in $ac_dir_suffix.
  1656. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1657. case $ac_top_builddir_sub in
  1658. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1659. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1660. esac ;;
  1661. esac
  1662. ac_abs_top_builddir=$ac_pwd
  1663. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1664. # for backward compatibility:
  1665. ac_top_builddir=$ac_top_build_prefix
  1666. case $srcdir in
  1667. .) # We are building in place.
  1668. ac_srcdir=.
  1669. ac_top_srcdir=$ac_top_builddir_sub
  1670. ac_abs_top_srcdir=$ac_pwd ;;
  1671. [\\/]* | ?:[\\/]* ) # Absolute name.
  1672. ac_srcdir=$srcdir$ac_dir_suffix;
  1673. ac_top_srcdir=$srcdir
  1674. ac_abs_top_srcdir=$srcdir ;;
  1675. *) # Relative name.
  1676. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1677. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1678. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1679. esac
  1680. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1681. cd "$ac_dir" || { ac_status=$?; continue; }
  1682. # Check for guested configure.
  1683. if test -f "$ac_srcdir/configure.gnu"; then
  1684. echo &&
  1685. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1686. elif test -f "$ac_srcdir/configure"; then
  1687. echo &&
  1688. $SHELL "$ac_srcdir/configure" --help=recursive
  1689. else
  1690. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1691. fi || ac_status=$?
  1692. cd "$ac_pwd" || { ac_status=$?; break; }
  1693. done
  1694. fi
  1695. test -n "$ac_init_help" && exit $ac_status
  1696. if $ac_init_version; then
  1697. cat <<\_ACEOF
  1698. configure
  1699. generated by GNU Autoconf 2.69
  1700. Copyright (C) 2012 Free Software Foundation, Inc.
  1701. This configure script is free software; the Free Software Foundation
  1702. gives unlimited permission to copy, distribute and modify it.
  1703. _ACEOF
  1704. exit
  1705. fi
  1706. ## ------------------------ ##
  1707. ## Autoconf initialization. ##
  1708. ## ------------------------ ##
  1709. # ac_fn_c_try_compile LINENO
  1710. # --------------------------
  1711. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1712. ac_fn_c_try_compile ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. rm -f conftest.$ac_objext
  1716. if { { ac_try="$ac_compile"
  1717. case "(($ac_try" in
  1718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1719. *) ac_try_echo=$ac_try;;
  1720. esac
  1721. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1722. $as_echo "$ac_try_echo"; } >&5
  1723. (eval "$ac_compile") 2>conftest.err
  1724. ac_status=$?
  1725. if test -s conftest.err; then
  1726. grep -v '^ *+' conftest.err >conftest.er1
  1727. cat conftest.er1 >&5
  1728. mv -f conftest.er1 conftest.err
  1729. fi
  1730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731. test $ac_status = 0; } && {
  1732. test -z "$ac_c_werror_flag" ||
  1733. test ! -s conftest.err
  1734. } && test -s conftest.$ac_objext; then :
  1735. ac_retval=0
  1736. else
  1737. $as_echo "$as_me: failed program was:" >&5
  1738. sed 's/^/| /' conftest.$ac_ext >&5
  1739. ac_retval=1
  1740. fi
  1741. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1742. as_fn_set_status $ac_retval
  1743. } # ac_fn_c_try_compile
  1744. # ac_fn_c_try_link LINENO
  1745. # -----------------------
  1746. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1747. ac_fn_c_try_link ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. rm -f conftest.$ac_objext conftest$ac_exeext
  1751. if { { ac_try="$ac_link"
  1752. case "(($ac_try" in
  1753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1754. *) ac_try_echo=$ac_try;;
  1755. esac
  1756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1757. $as_echo "$ac_try_echo"; } >&5
  1758. (eval "$ac_link") 2>conftest.err
  1759. ac_status=$?
  1760. if test -s conftest.err; then
  1761. grep -v '^ *+' conftest.err >conftest.er1
  1762. cat conftest.er1 >&5
  1763. mv -f conftest.er1 conftest.err
  1764. fi
  1765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1766. test $ac_status = 0; } && {
  1767. test -z "$ac_c_werror_flag" ||
  1768. test ! -s conftest.err
  1769. } && test -s conftest$ac_exeext && {
  1770. test "$cross_compiling" = yes ||
  1771. test -x conftest$ac_exeext
  1772. }; then :
  1773. ac_retval=0
  1774. else
  1775. $as_echo "$as_me: failed program was:" >&5
  1776. sed 's/^/| /' conftest.$ac_ext >&5
  1777. ac_retval=1
  1778. fi
  1779. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1780. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1781. # interfere with the next link command; also delete a directory that is
  1782. # left behind by Apple's compiler. We do this before executing the actions.
  1783. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1784. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1785. as_fn_set_status $ac_retval
  1786. } # ac_fn_c_try_link
  1787. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1788. # -------------------------------------------------------
  1789. # Tests whether HEADER exists and can be compiled using the include files in
  1790. # INCLUDES, setting the cache variable VAR accordingly.
  1791. ac_fn_c_check_header_compile ()
  1792. {
  1793. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1795. $as_echo_n "checking for $2... " >&6; }
  1796. if eval \${$3+:} false; then :
  1797. $as_echo_n "(cached) " >&6
  1798. else
  1799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1800. /* end confdefs.h. */
  1801. $4
  1802. #include <$2>
  1803. _ACEOF
  1804. if ac_fn_c_try_compile "$LINENO"; then :
  1805. eval "$3=yes"
  1806. else
  1807. eval "$3=no"
  1808. fi
  1809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1810. fi
  1811. eval ac_res=\$$3
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1813. $as_echo "$ac_res" >&6; }
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. } # ac_fn_c_check_header_compile
  1816. # ac_fn_c_try_cpp LINENO
  1817. # ----------------------
  1818. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1819. ac_fn_c_try_cpp ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1823. case "(($ac_try" in
  1824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1825. *) ac_try_echo=$ac_try;;
  1826. esac
  1827. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1828. $as_echo "$ac_try_echo"; } >&5
  1829. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1830. ac_status=$?
  1831. if test -s conftest.err; then
  1832. grep -v '^ *+' conftest.err >conftest.er1
  1833. cat conftest.er1 >&5
  1834. mv -f conftest.er1 conftest.err
  1835. fi
  1836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1837. test $ac_status = 0; } > conftest.i && {
  1838. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1839. test ! -s conftest.err
  1840. }; then :
  1841. ac_retval=0
  1842. else
  1843. $as_echo "$as_me: failed program was:" >&5
  1844. sed 's/^/| /' conftest.$ac_ext >&5
  1845. ac_retval=1
  1846. fi
  1847. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1848. as_fn_set_status $ac_retval
  1849. } # ac_fn_c_try_cpp
  1850. # ac_fn_c_try_run LINENO
  1851. # ----------------------
  1852. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1853. # that executables *can* be run.
  1854. ac_fn_c_try_run ()
  1855. {
  1856. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1857. if { { ac_try="$ac_link"
  1858. case "(($ac_try" in
  1859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1860. *) ac_try_echo=$ac_try;;
  1861. esac
  1862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1863. $as_echo "$ac_try_echo"; } >&5
  1864. (eval "$ac_link") 2>&5
  1865. ac_status=$?
  1866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1867. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1868. { { case "(($ac_try" in
  1869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1870. *) ac_try_echo=$ac_try;;
  1871. esac
  1872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1873. $as_echo "$ac_try_echo"; } >&5
  1874. (eval "$ac_try") 2>&5
  1875. ac_status=$?
  1876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1877. test $ac_status = 0; }; }; then :
  1878. ac_retval=0
  1879. else
  1880. $as_echo "$as_me: program exited with status $ac_status" >&5
  1881. $as_echo "$as_me: failed program was:" >&5
  1882. sed 's/^/| /' conftest.$ac_ext >&5
  1883. ac_retval=$ac_status
  1884. fi
  1885. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1886. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1887. as_fn_set_status $ac_retval
  1888. } # ac_fn_c_try_run
  1889. # ac_fn_c_check_func LINENO FUNC VAR
  1890. # ----------------------------------
  1891. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1892. ac_fn_c_check_func ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1896. $as_echo_n "checking for $2... " >&6; }
  1897. if eval \${$3+:} false; then :
  1898. $as_echo_n "(cached) " >&6
  1899. else
  1900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1901. /* end confdefs.h. */
  1902. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1903. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1904. #define $2 innocuous_$2
  1905. /* System header to define __stub macros and hopefully few prototypes,
  1906. which can conflict with char $2 (); below.
  1907. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1908. <limits.h> exists even on freestanding compilers. */
  1909. #ifdef __STDC__
  1910. # include <limits.h>
  1911. #else
  1912. # include <assert.h>
  1913. #endif
  1914. #undef $2
  1915. /* Override any GCC internal prototype to avoid an error.
  1916. Use char because int might match the return type of a GCC
  1917. builtin and then its argument prototype would still apply. */
  1918. #ifdef __cplusplus
  1919. extern "C"
  1920. #endif
  1921. char $2 ();
  1922. /* The GNU C library defines this for functions which it implements
  1923. to always fail with ENOSYS. Some functions are actually named
  1924. something starting with __ and the normal name is an alias. */
  1925. #if defined __stub_$2 || defined __stub___$2
  1926. choke me
  1927. #endif
  1928. int
  1929. main ()
  1930. {
  1931. return $2 ();
  1932. ;
  1933. return 0;
  1934. }
  1935. _ACEOF
  1936. if ac_fn_c_try_link "$LINENO"; then :
  1937. eval "$3=yes"
  1938. else
  1939. eval "$3=no"
  1940. fi
  1941. rm -f core conftest.err conftest.$ac_objext \
  1942. conftest$ac_exeext conftest.$ac_ext
  1943. fi
  1944. eval ac_res=\$$3
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1946. $as_echo "$ac_res" >&6; }
  1947. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1948. } # ac_fn_c_check_func
  1949. # ac_fn_cxx_try_compile LINENO
  1950. # ----------------------------
  1951. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1952. ac_fn_cxx_try_compile ()
  1953. {
  1954. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1955. rm -f conftest.$ac_objext
  1956. if { { ac_try="$ac_compile"
  1957. case "(($ac_try" in
  1958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1959. *) ac_try_echo=$ac_try;;
  1960. esac
  1961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1962. $as_echo "$ac_try_echo"; } >&5
  1963. (eval "$ac_compile") 2>conftest.err
  1964. ac_status=$?
  1965. if test -s conftest.err; then
  1966. grep -v '^ *+' conftest.err >conftest.er1
  1967. cat conftest.er1 >&5
  1968. mv -f conftest.er1 conftest.err
  1969. fi
  1970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1971. test $ac_status = 0; } && {
  1972. test -z "$ac_cxx_werror_flag" ||
  1973. test ! -s conftest.err
  1974. } && test -s conftest.$ac_objext; then :
  1975. ac_retval=0
  1976. else
  1977. $as_echo "$as_me: failed program was:" >&5
  1978. sed 's/^/| /' conftest.$ac_ext >&5
  1979. ac_retval=1
  1980. fi
  1981. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1982. as_fn_set_status $ac_retval
  1983. } # ac_fn_cxx_try_compile
  1984. # ac_fn_cxx_try_cpp LINENO
  1985. # ------------------------
  1986. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1987. ac_fn_cxx_try_cpp ()
  1988. {
  1989. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1990. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1991. case "(($ac_try" in
  1992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1993. *) ac_try_echo=$ac_try;;
  1994. esac
  1995. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1996. $as_echo "$ac_try_echo"; } >&5
  1997. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1998. ac_status=$?
  1999. if test -s conftest.err; then
  2000. grep -v '^ *+' conftest.err >conftest.er1
  2001. cat conftest.er1 >&5
  2002. mv -f conftest.er1 conftest.err
  2003. fi
  2004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2005. test $ac_status = 0; } > conftest.i && {
  2006. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2007. test ! -s conftest.err
  2008. }; then :
  2009. ac_retval=0
  2010. else
  2011. $as_echo "$as_me: failed program was:" >&5
  2012. sed 's/^/| /' conftest.$ac_ext >&5
  2013. ac_retval=1
  2014. fi
  2015. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2016. as_fn_set_status $ac_retval
  2017. } # ac_fn_cxx_try_cpp
  2018. # ac_fn_cxx_try_link LINENO
  2019. # -------------------------
  2020. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2021. ac_fn_cxx_try_link ()
  2022. {
  2023. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2024. rm -f conftest.$ac_objext conftest$ac_exeext
  2025. if { { ac_try="$ac_link"
  2026. case "(($ac_try" in
  2027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2028. *) ac_try_echo=$ac_try;;
  2029. esac
  2030. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2031. $as_echo "$ac_try_echo"; } >&5
  2032. (eval "$ac_link") 2>conftest.err
  2033. ac_status=$?
  2034. if test -s conftest.err; then
  2035. grep -v '^ *+' conftest.err >conftest.er1
  2036. cat conftest.er1 >&5
  2037. mv -f conftest.er1 conftest.err
  2038. fi
  2039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2040. test $ac_status = 0; } && {
  2041. test -z "$ac_cxx_werror_flag" ||
  2042. test ! -s conftest.err
  2043. } && test -s conftest$ac_exeext && {
  2044. test "$cross_compiling" = yes ||
  2045. test -x conftest$ac_exeext
  2046. }; then :
  2047. ac_retval=0
  2048. else
  2049. $as_echo "$as_me: failed program was:" >&5
  2050. sed 's/^/| /' conftest.$ac_ext >&5
  2051. ac_retval=1
  2052. fi
  2053. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2054. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2055. # interfere with the next link command; also delete a directory that is
  2056. # left behind by Apple's compiler. We do this before executing the actions.
  2057. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2058. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2059. as_fn_set_status $ac_retval
  2060. } # ac_fn_cxx_try_link
  2061. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2062. # -------------------------------------------------------
  2063. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2064. # the include files in INCLUDES and setting the cache variable VAR
  2065. # accordingly.
  2066. ac_fn_c_check_header_mongrel ()
  2067. {
  2068. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2069. if eval \${$3+:} false; then :
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2071. $as_echo_n "checking for $2... " >&6; }
  2072. if eval \${$3+:} false; then :
  2073. $as_echo_n "(cached) " >&6
  2074. fi
  2075. eval ac_res=\$$3
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2077. $as_echo "$ac_res" >&6; }
  2078. else
  2079. # Is the header compilable?
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2081. $as_echo_n "checking $2 usability... " >&6; }
  2082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2083. /* end confdefs.h. */
  2084. $4
  2085. #include <$2>
  2086. _ACEOF
  2087. if ac_fn_c_try_compile "$LINENO"; then :
  2088. ac_header_compiler=yes
  2089. else
  2090. ac_header_compiler=no
  2091. fi
  2092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2094. $as_echo "$ac_header_compiler" >&6; }
  2095. # Is the header present?
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2097. $as_echo_n "checking $2 presence... " >&6; }
  2098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2099. /* end confdefs.h. */
  2100. #include <$2>
  2101. _ACEOF
  2102. if ac_fn_c_try_cpp "$LINENO"; then :
  2103. ac_header_preproc=yes
  2104. else
  2105. ac_header_preproc=no
  2106. fi
  2107. rm -f conftest.err conftest.i conftest.$ac_ext
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2109. $as_echo "$ac_header_preproc" >&6; }
  2110. # So? What about this header?
  2111. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2112. yes:no: )
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2114. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2116. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2117. ;;
  2118. no:yes:* )
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2120. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2122. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2124. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2126. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2128. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2129. ;;
  2130. esac
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2132. $as_echo_n "checking for $2... " >&6; }
  2133. if eval \${$3+:} false; then :
  2134. $as_echo_n "(cached) " >&6
  2135. else
  2136. eval "$3=\$ac_header_compiler"
  2137. fi
  2138. eval ac_res=\$$3
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2140. $as_echo "$ac_res" >&6; }
  2141. fi
  2142. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2143. } # ac_fn_c_check_header_mongrel
  2144. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2145. # -------------------------------------------
  2146. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2147. # variable VAR accordingly.
  2148. ac_fn_c_check_type ()
  2149. {
  2150. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2152. $as_echo_n "checking for $2... " >&6; }
  2153. if eval \${$3+:} false; then :
  2154. $as_echo_n "(cached) " >&6
  2155. else
  2156. eval "$3=no"
  2157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2158. /* end confdefs.h. */
  2159. $4
  2160. int
  2161. main ()
  2162. {
  2163. if (sizeof ($2))
  2164. return 0;
  2165. ;
  2166. return 0;
  2167. }
  2168. _ACEOF
  2169. if ac_fn_c_try_compile "$LINENO"; then :
  2170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2171. /* end confdefs.h. */
  2172. $4
  2173. int
  2174. main ()
  2175. {
  2176. if (sizeof (($2)))
  2177. return 0;
  2178. ;
  2179. return 0;
  2180. }
  2181. _ACEOF
  2182. if ac_fn_c_try_compile "$LINENO"; then :
  2183. else
  2184. eval "$3=yes"
  2185. fi
  2186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2187. fi
  2188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2189. fi
  2190. eval ac_res=\$$3
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2192. $as_echo "$ac_res" >&6; }
  2193. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2194. } # ac_fn_c_check_type
  2195. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2196. # ----------------------------------------------------
  2197. # Tries to find if the field MEMBER exists in type AGGR, after including
  2198. # INCLUDES, setting cache variable VAR accordingly.
  2199. ac_fn_c_check_member ()
  2200. {
  2201. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2203. $as_echo_n "checking for $2.$3... " >&6; }
  2204. if eval \${$4+:} false; then :
  2205. $as_echo_n "(cached) " >&6
  2206. else
  2207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2208. /* end confdefs.h. */
  2209. $5
  2210. int
  2211. main ()
  2212. {
  2213. static $2 ac_aggr;
  2214. if (ac_aggr.$3)
  2215. return 0;
  2216. ;
  2217. return 0;
  2218. }
  2219. _ACEOF
  2220. if ac_fn_c_try_compile "$LINENO"; then :
  2221. eval "$4=yes"
  2222. else
  2223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2224. /* end confdefs.h. */
  2225. $5
  2226. int
  2227. main ()
  2228. {
  2229. static $2 ac_aggr;
  2230. if (sizeof ac_aggr.$3)
  2231. return 0;
  2232. ;
  2233. return 0;
  2234. }
  2235. _ACEOF
  2236. if ac_fn_c_try_compile "$LINENO"; then :
  2237. eval "$4=yes"
  2238. else
  2239. eval "$4=no"
  2240. fi
  2241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2242. fi
  2243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2244. fi
  2245. eval ac_res=\$$4
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2247. $as_echo "$ac_res" >&6; }
  2248. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2249. } # ac_fn_c_check_member
  2250. cat >config.log <<_ACEOF
  2251. This file contains any messages produced by compilers while
  2252. running configure, to aid debugging if configure makes a mistake.
  2253. It was created by $as_me, which was
  2254. generated by GNU Autoconf 2.69. Invocation command line was
  2255. $ $0 $@
  2256. _ACEOF
  2257. exec 5>>config.log
  2258. {
  2259. cat <<_ASUNAME
  2260. ## --------- ##
  2261. ## Platform. ##
  2262. ## --------- ##
  2263. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2264. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2265. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2266. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2267. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2268. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2269. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2270. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2271. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2272. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2273. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2274. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2275. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2276. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2277. _ASUNAME
  2278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2279. for as_dir in $PATH
  2280. do
  2281. IFS=$as_save_IFS
  2282. test -z "$as_dir" && as_dir=.
  2283. $as_echo "PATH: $as_dir"
  2284. done
  2285. IFS=$as_save_IFS
  2286. } >&5
  2287. cat >&5 <<_ACEOF
  2288. ## ----------- ##
  2289. ## Core tests. ##
  2290. ## ----------- ##
  2291. _ACEOF
  2292. # Keep a trace of the command line.
  2293. # Strip out --no-create and --no-recursion so they do not pile up.
  2294. # Strip out --silent because we don't want to record it for future runs.
  2295. # Also quote any args containing shell meta-characters.
  2296. # Make two passes to allow for proper duplicate-argument suppression.
  2297. ac_configure_args=
  2298. ac_configure_args0=
  2299. ac_configure_args1=
  2300. ac_must_keep_next=false
  2301. for ac_pass in 1 2
  2302. do
  2303. for ac_arg
  2304. do
  2305. case $ac_arg in
  2306. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2307. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2308. | -silent | --silent | --silen | --sile | --sil)
  2309. continue ;;
  2310. *\'*)
  2311. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2312. esac
  2313. case $ac_pass in
  2314. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2315. 2)
  2316. as_fn_append ac_configure_args1 " '$ac_arg'"
  2317. if test $ac_must_keep_next = true; then
  2318. ac_must_keep_next=false # Got value, back to normal.
  2319. else
  2320. case $ac_arg in
  2321. *=* | --config-cache | -C | -disable-* | --disable-* \
  2322. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2323. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2324. | -with-* | --with-* | -without-* | --without-* | --x)
  2325. case "$ac_configure_args0 " in
  2326. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2327. esac
  2328. ;;
  2329. -* ) ac_must_keep_next=true ;;
  2330. esac
  2331. fi
  2332. as_fn_append ac_configure_args " '$ac_arg'"
  2333. ;;
  2334. esac
  2335. done
  2336. done
  2337. { ac_configure_args0=; unset ac_configure_args0;}
  2338. { ac_configure_args1=; unset ac_configure_args1;}
  2339. # When interrupted or exit'd, cleanup temporary files, and complete
  2340. # config.log. We remove comments because anyway the quotes in there
  2341. # would cause problems or look ugly.
  2342. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2343. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2344. trap 'exit_status=$?
  2345. # Save into config.log some information that might help in debugging.
  2346. {
  2347. echo
  2348. $as_echo "## ---------------- ##
  2349. ## Cache variables. ##
  2350. ## ---------------- ##"
  2351. echo
  2352. # The following way of writing the cache mishandles newlines in values,
  2353. (
  2354. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2355. eval ac_val=\$$ac_var
  2356. case $ac_val in #(
  2357. *${as_nl}*)
  2358. case $ac_var in #(
  2359. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2360. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2361. esac
  2362. case $ac_var in #(
  2363. _ | IFS | as_nl) ;; #(
  2364. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2365. *) { eval $ac_var=; unset $ac_var;} ;;
  2366. esac ;;
  2367. esac
  2368. done
  2369. (set) 2>&1 |
  2370. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2371. *${as_nl}ac_space=\ *)
  2372. sed -n \
  2373. "s/'\''/'\''\\\\'\'''\''/g;
  2374. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2375. ;; #(
  2376. *)
  2377. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2378. ;;
  2379. esac |
  2380. sort
  2381. )
  2382. echo
  2383. $as_echo "## ----------------- ##
  2384. ## Output variables. ##
  2385. ## ----------------- ##"
  2386. echo
  2387. for ac_var in $ac_subst_vars
  2388. do
  2389. eval ac_val=\$$ac_var
  2390. case $ac_val in
  2391. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2392. esac
  2393. $as_echo "$ac_var='\''$ac_val'\''"
  2394. done | sort
  2395. echo
  2396. if test -n "$ac_subst_files"; then
  2397. $as_echo "## ------------------- ##
  2398. ## File substitutions. ##
  2399. ## ------------------- ##"
  2400. echo
  2401. for ac_var in $ac_subst_files
  2402. do
  2403. eval ac_val=\$$ac_var
  2404. case $ac_val in
  2405. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2406. esac
  2407. $as_echo "$ac_var='\''$ac_val'\''"
  2408. done | sort
  2409. echo
  2410. fi
  2411. if test -s confdefs.h; then
  2412. $as_echo "## ----------- ##
  2413. ## confdefs.h. ##
  2414. ## ----------- ##"
  2415. echo
  2416. cat confdefs.h
  2417. echo
  2418. fi
  2419. test "$ac_signal" != 0 &&
  2420. $as_echo "$as_me: caught signal $ac_signal"
  2421. $as_echo "$as_me: exit $exit_status"
  2422. } >&5
  2423. rm -f core *.core core.conftest.* &&
  2424. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2425. exit $exit_status
  2426. ' 0
  2427. for ac_signal in 1 2 13 15; do
  2428. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2429. done
  2430. ac_signal=0
  2431. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2432. rm -f -r conftest* confdefs.h
  2433. $as_echo "/* confdefs.h */" > confdefs.h
  2434. # Predefined preprocessor variables.
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_NAME "$PACKAGE_NAME"
  2437. _ACEOF
  2438. cat >>confdefs.h <<_ACEOF
  2439. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2440. _ACEOF
  2441. cat >>confdefs.h <<_ACEOF
  2442. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2443. _ACEOF
  2444. cat >>confdefs.h <<_ACEOF
  2445. #define PACKAGE_STRING "$PACKAGE_STRING"
  2446. _ACEOF
  2447. cat >>confdefs.h <<_ACEOF
  2448. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2449. _ACEOF
  2450. cat >>confdefs.h <<_ACEOF
  2451. #define PACKAGE_URL "$PACKAGE_URL"
  2452. _ACEOF
  2453. # Let the site file select an alternate cache file if it wants to.
  2454. # Prefer an explicitly selected file to automatically selected ones.
  2455. ac_site_file1=NONE
  2456. ac_site_file2=NONE
  2457. if test -n "$CONFIG_SITE"; then
  2458. # We do not want a PATH search for config.site.
  2459. case $CONFIG_SITE in #((
  2460. -*) ac_site_file1=./$CONFIG_SITE;;
  2461. */*) ac_site_file1=$CONFIG_SITE;;
  2462. *) ac_site_file1=./$CONFIG_SITE;;
  2463. esac
  2464. elif test "x$prefix" != xNONE; then
  2465. ac_site_file1=$prefix/share/config.site
  2466. ac_site_file2=$prefix/etc/config.site
  2467. else
  2468. ac_site_file1=$ac_default_prefix/share/config.site
  2469. ac_site_file2=$ac_default_prefix/etc/config.site
  2470. fi
  2471. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2472. do
  2473. test "x$ac_site_file" = xNONE && continue
  2474. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2476. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2477. sed 's/^/| /' "$ac_site_file" >&5
  2478. . "$ac_site_file" \
  2479. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2480. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2481. as_fn_error $? "failed to load site script $ac_site_file
  2482. See \`config.log' for more details" "$LINENO" 5; }
  2483. fi
  2484. done
  2485. if test -r "$cache_file"; then
  2486. # Some versions of bash will fail to source /dev/null (special files
  2487. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2488. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2490. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2491. case $cache_file in
  2492. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2493. *) . "./$cache_file";;
  2494. esac
  2495. fi
  2496. else
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2498. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2499. >$cache_file
  2500. fi
  2501. # Check that the precious variables saved in the cache have kept the same
  2502. # value.
  2503. ac_cache_corrupted=false
  2504. for ac_var in $ac_precious_vars; do
  2505. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2506. eval ac_new_set=\$ac_env_${ac_var}_set
  2507. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2508. eval ac_new_val=\$ac_env_${ac_var}_value
  2509. case $ac_old_set,$ac_new_set in
  2510. set,)
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2512. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2513. ac_cache_corrupted=: ;;
  2514. ,set)
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2516. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2517. ac_cache_corrupted=: ;;
  2518. ,);;
  2519. *)
  2520. if test "x$ac_old_val" != "x$ac_new_val"; then
  2521. # differences in whitespace do not lead to failure.
  2522. ac_old_val_w=`echo x $ac_old_val`
  2523. ac_new_val_w=`echo x $ac_new_val`
  2524. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2526. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2527. ac_cache_corrupted=:
  2528. else
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2530. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2531. eval $ac_var=\$ac_old_val
  2532. fi
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2534. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2536. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2537. fi;;
  2538. esac
  2539. # Pass precious variables to config.status.
  2540. if test "$ac_new_set" = set; then
  2541. case $ac_new_val in
  2542. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2543. *) ac_arg=$ac_var=$ac_new_val ;;
  2544. esac
  2545. case " $ac_configure_args " in
  2546. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2547. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2548. esac
  2549. fi
  2550. done
  2551. if $ac_cache_corrupted; then
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2555. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2556. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2557. fi
  2558. ## -------------------- ##
  2559. ## Main body of script. ##
  2560. ## -------------------- ##
  2561. ac_ext=c
  2562. ac_cpp='$CPP $CPPFLAGS'
  2563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2566. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2567. ac_aux_dir=
  2568. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2569. if test -f "$ac_dir/install-sh"; then
  2570. ac_aux_dir=$ac_dir
  2571. ac_install_sh="$ac_aux_dir/install-sh -c"
  2572. break
  2573. elif test -f "$ac_dir/install.sh"; then
  2574. ac_aux_dir=$ac_dir
  2575. ac_install_sh="$ac_aux_dir/install.sh -c"
  2576. break
  2577. elif test -f "$ac_dir/shtool"; then
  2578. ac_aux_dir=$ac_dir
  2579. ac_install_sh="$ac_aux_dir/shtool install -c"
  2580. break
  2581. fi
  2582. done
  2583. if test -z "$ac_aux_dir"; then
  2584. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2585. fi
  2586. # These three variables are undocumented and unsupported,
  2587. # and are intended to be withdrawn in a future Autoconf release.
  2588. # They can cause serious problems if a builder's source tree is in a directory
  2589. # whose full name contains unusual characters.
  2590. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2591. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2592. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2593. orig_CFLAGS="$CFLAGS"
  2594. #
  2595. # Making releases:
  2596. # Edit include/SDL_version.h and change the version, then:
  2597. # SDL_MICRO_VERSION += 1;
  2598. # SDL_INTERFACE_AGE += 1;
  2599. # SDL_BINARY_AGE += 1;
  2600. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2601. # if backwards compatibility has been broken,
  2602. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2603. #
  2604. SDL_MAJOR_VERSION=2
  2605. SDL_MINOR_VERSION=0
  2606. SDL_MICRO_VERSION=15
  2607. SDL_INTERFACE_AGE=1
  2608. SDL_BINARY_AGE=15
  2609. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2610. # libtool versioning
  2611. case `pwd` in
  2612. *\ * | *\ *)
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2614. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2615. esac
  2616. macro_version='2.4.2'
  2617. macro_revision='1.3337'
  2618. ltmain="$ac_aux_dir/ltmain.sh"
  2619. # Make sure we can run config.sub.
  2620. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2621. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2623. $as_echo_n "checking build system type... " >&6; }
  2624. if ${ac_cv_build+:} false; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. ac_build_alias=$build_alias
  2628. test "x$ac_build_alias" = x &&
  2629. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2630. test "x$ac_build_alias" = x &&
  2631. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2632. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2633. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2634. fi
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2636. $as_echo "$ac_cv_build" >&6; }
  2637. case $ac_cv_build in
  2638. *-*-*) ;;
  2639. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2640. esac
  2641. build=$ac_cv_build
  2642. ac_save_IFS=$IFS; IFS='-'
  2643. set x $ac_cv_build
  2644. shift
  2645. build_cpu=$1
  2646. build_vendor=$2
  2647. shift; shift
  2648. # Remember, the first character of IFS is used to create $*,
  2649. # except with old shells:
  2650. build_os=$*
  2651. IFS=$ac_save_IFS
  2652. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2654. $as_echo_n "checking host system type... " >&6; }
  2655. if ${ac_cv_host+:} false; then :
  2656. $as_echo_n "(cached) " >&6
  2657. else
  2658. if test "x$host_alias" = x; then
  2659. ac_cv_host=$ac_cv_build
  2660. else
  2661. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2662. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2663. fi
  2664. fi
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2666. $as_echo "$ac_cv_host" >&6; }
  2667. case $ac_cv_host in
  2668. *-*-*) ;;
  2669. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2670. esac
  2671. host=$ac_cv_host
  2672. ac_save_IFS=$IFS; IFS='-'
  2673. set x $ac_cv_host
  2674. shift
  2675. host_cpu=$1
  2676. host_vendor=$2
  2677. shift; shift
  2678. # Remember, the first character of IFS is used to create $*,
  2679. # except with old shells:
  2680. host_os=$*
  2681. IFS=$ac_save_IFS
  2682. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2683. # Backslashify metacharacters that are still active within
  2684. # double-quoted strings.
  2685. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2686. # Same as above, but do not quote variable references.
  2687. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2688. # Sed substitution to delay expansion of an escaped shell variable in a
  2689. # double_quote_subst'ed string.
  2690. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2691. # Sed substitution to delay expansion of an escaped single quote.
  2692. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2693. # Sed substitution to avoid accidental globbing in evaled expressions
  2694. no_glob_subst='s/\*/\\\*/g'
  2695. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2696. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2697. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2699. $as_echo_n "checking how to print strings... " >&6; }
  2700. # Test print first, because it will be a builtin if present.
  2701. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2702. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2703. ECHO='print -r --'
  2704. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2705. ECHO='printf %s\n'
  2706. else
  2707. # Use this function as a fallback that always works.
  2708. func_fallback_echo ()
  2709. {
  2710. eval 'cat <<_LTECHO_EOF
  2711. $1
  2712. _LTECHO_EOF'
  2713. }
  2714. ECHO='func_fallback_echo'
  2715. fi
  2716. # func_echo_all arg...
  2717. # Invoke $ECHO with all args, space-separated.
  2718. func_echo_all ()
  2719. {
  2720. $ECHO ""
  2721. }
  2722. case "$ECHO" in
  2723. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2724. $as_echo "printf" >&6; } ;;
  2725. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2726. $as_echo "print -r" >&6; } ;;
  2727. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2728. $as_echo "cat" >&6; } ;;
  2729. esac
  2730. ac_ext=c
  2731. ac_cpp='$CPP $CPPFLAGS'
  2732. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2733. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2734. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2735. if test -n "$ac_tool_prefix"; then
  2736. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2737. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2739. $as_echo_n "checking for $ac_word... " >&6; }
  2740. if ${ac_cv_prog_CC+:} false; then :
  2741. $as_echo_n "(cached) " >&6
  2742. else
  2743. if test -n "$CC"; then
  2744. ac_cv_prog_CC="$CC" # Let the user override the test.
  2745. else
  2746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2747. for as_dir in $PATH
  2748. do
  2749. IFS=$as_save_IFS
  2750. test -z "$as_dir" && as_dir=.
  2751. for ac_exec_ext in '' $ac_executable_extensions; do
  2752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2753. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2755. break 2
  2756. fi
  2757. done
  2758. done
  2759. IFS=$as_save_IFS
  2760. fi
  2761. fi
  2762. CC=$ac_cv_prog_CC
  2763. if test -n "$CC"; then
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2765. $as_echo "$CC" >&6; }
  2766. else
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2768. $as_echo "no" >&6; }
  2769. fi
  2770. fi
  2771. if test -z "$ac_cv_prog_CC"; then
  2772. ac_ct_CC=$CC
  2773. # Extract the first word of "gcc", so it can be a program name with args.
  2774. set dummy gcc; ac_word=$2
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2776. $as_echo_n "checking for $ac_word... " >&6; }
  2777. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2778. $as_echo_n "(cached) " >&6
  2779. else
  2780. if test -n "$ac_ct_CC"; then
  2781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2782. else
  2783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2784. for as_dir in $PATH
  2785. do
  2786. IFS=$as_save_IFS
  2787. test -z "$as_dir" && as_dir=.
  2788. for ac_exec_ext in '' $ac_executable_extensions; do
  2789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2790. ac_cv_prog_ac_ct_CC="gcc"
  2791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2792. break 2
  2793. fi
  2794. done
  2795. done
  2796. IFS=$as_save_IFS
  2797. fi
  2798. fi
  2799. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2800. if test -n "$ac_ct_CC"; then
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2802. $as_echo "$ac_ct_CC" >&6; }
  2803. else
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2805. $as_echo "no" >&6; }
  2806. fi
  2807. if test "x$ac_ct_CC" = x; then
  2808. CC=""
  2809. else
  2810. case $cross_compiling:$ac_tool_warned in
  2811. yes:)
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2814. ac_tool_warned=yes ;;
  2815. esac
  2816. CC=$ac_ct_CC
  2817. fi
  2818. else
  2819. CC="$ac_cv_prog_CC"
  2820. fi
  2821. if test -z "$CC"; then
  2822. if test -n "$ac_tool_prefix"; then
  2823. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2824. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2826. $as_echo_n "checking for $ac_word... " >&6; }
  2827. if ${ac_cv_prog_CC+:} false; then :
  2828. $as_echo_n "(cached) " >&6
  2829. else
  2830. if test -n "$CC"; then
  2831. ac_cv_prog_CC="$CC" # Let the user override the test.
  2832. else
  2833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834. for as_dir in $PATH
  2835. do
  2836. IFS=$as_save_IFS
  2837. test -z "$as_dir" && as_dir=.
  2838. for ac_exec_ext in '' $ac_executable_extensions; do
  2839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2840. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2842. break 2
  2843. fi
  2844. done
  2845. done
  2846. IFS=$as_save_IFS
  2847. fi
  2848. fi
  2849. CC=$ac_cv_prog_CC
  2850. if test -n "$CC"; then
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2852. $as_echo "$CC" >&6; }
  2853. else
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2855. $as_echo "no" >&6; }
  2856. fi
  2857. fi
  2858. fi
  2859. if test -z "$CC"; then
  2860. # Extract the first word of "cc", so it can be a program name with args.
  2861. set dummy cc; ac_word=$2
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2863. $as_echo_n "checking for $ac_word... " >&6; }
  2864. if ${ac_cv_prog_CC+:} false; then :
  2865. $as_echo_n "(cached) " >&6
  2866. else
  2867. if test -n "$CC"; then
  2868. ac_cv_prog_CC="$CC" # Let the user override the test.
  2869. else
  2870. ac_prog_rejected=no
  2871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2872. for as_dir in $PATH
  2873. do
  2874. IFS=$as_save_IFS
  2875. test -z "$as_dir" && as_dir=.
  2876. for ac_exec_ext in '' $ac_executable_extensions; do
  2877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2878. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2879. ac_prog_rejected=yes
  2880. continue
  2881. fi
  2882. ac_cv_prog_CC="cc"
  2883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2884. break 2
  2885. fi
  2886. done
  2887. done
  2888. IFS=$as_save_IFS
  2889. if test $ac_prog_rejected = yes; then
  2890. # We found a bogon in the path, so make sure we never use it.
  2891. set dummy $ac_cv_prog_CC
  2892. shift
  2893. if test $# != 0; then
  2894. # We chose a different compiler from the bogus one.
  2895. # However, it has the same basename, so the bogon will be chosen
  2896. # first if we set CC to just the basename; use the full file name.
  2897. shift
  2898. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2899. fi
  2900. fi
  2901. fi
  2902. fi
  2903. CC=$ac_cv_prog_CC
  2904. if test -n "$CC"; then
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2906. $as_echo "$CC" >&6; }
  2907. else
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2909. $as_echo "no" >&6; }
  2910. fi
  2911. fi
  2912. if test -z "$CC"; then
  2913. if test -n "$ac_tool_prefix"; then
  2914. for ac_prog in cl.exe
  2915. do
  2916. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2917. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2919. $as_echo_n "checking for $ac_word... " >&6; }
  2920. if ${ac_cv_prog_CC+:} false; then :
  2921. $as_echo_n "(cached) " >&6
  2922. else
  2923. if test -n "$CC"; then
  2924. ac_cv_prog_CC="$CC" # Let the user override the test.
  2925. else
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_exec_ext in '' $ac_executable_extensions; do
  2932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2933. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2935. break 2
  2936. fi
  2937. done
  2938. done
  2939. IFS=$as_save_IFS
  2940. fi
  2941. fi
  2942. CC=$ac_cv_prog_CC
  2943. if test -n "$CC"; then
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2945. $as_echo "$CC" >&6; }
  2946. else
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2948. $as_echo "no" >&6; }
  2949. fi
  2950. test -n "$CC" && break
  2951. done
  2952. fi
  2953. if test -z "$CC"; then
  2954. ac_ct_CC=$CC
  2955. for ac_prog in cl.exe
  2956. do
  2957. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2958. set dummy $ac_prog; ac_word=$2
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2960. $as_echo_n "checking for $ac_word... " >&6; }
  2961. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2962. $as_echo_n "(cached) " >&6
  2963. else
  2964. if test -n "$ac_ct_CC"; then
  2965. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2966. else
  2967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2968. for as_dir in $PATH
  2969. do
  2970. IFS=$as_save_IFS
  2971. test -z "$as_dir" && as_dir=.
  2972. for ac_exec_ext in '' $ac_executable_extensions; do
  2973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2974. ac_cv_prog_ac_ct_CC="$ac_prog"
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2976. break 2
  2977. fi
  2978. done
  2979. done
  2980. IFS=$as_save_IFS
  2981. fi
  2982. fi
  2983. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2984. if test -n "$ac_ct_CC"; then
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2986. $as_echo "$ac_ct_CC" >&6; }
  2987. else
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2989. $as_echo "no" >&6; }
  2990. fi
  2991. test -n "$ac_ct_CC" && break
  2992. done
  2993. if test "x$ac_ct_CC" = x; then
  2994. CC=""
  2995. else
  2996. case $cross_compiling:$ac_tool_warned in
  2997. yes:)
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3000. ac_tool_warned=yes ;;
  3001. esac
  3002. CC=$ac_ct_CC
  3003. fi
  3004. fi
  3005. fi
  3006. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3008. as_fn_error $? "no acceptable C compiler found in \$PATH
  3009. See \`config.log' for more details" "$LINENO" 5; }
  3010. # Provide some information about the compiler.
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3012. set X $ac_compile
  3013. ac_compiler=$2
  3014. for ac_option in --version -v -V -qversion; do
  3015. { { ac_try="$ac_compiler $ac_option >&5"
  3016. case "(($ac_try" in
  3017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3018. *) ac_try_echo=$ac_try;;
  3019. esac
  3020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3021. $as_echo "$ac_try_echo"; } >&5
  3022. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3023. ac_status=$?
  3024. if test -s conftest.err; then
  3025. sed '10a\
  3026. ... rest of stderr output deleted ...
  3027. 10q' conftest.err >conftest.er1
  3028. cat conftest.er1 >&5
  3029. fi
  3030. rm -f conftest.er1 conftest.err
  3031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3032. test $ac_status = 0; }
  3033. done
  3034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3035. /* end confdefs.h. */
  3036. int
  3037. main ()
  3038. {
  3039. ;
  3040. return 0;
  3041. }
  3042. _ACEOF
  3043. ac_clean_files_save=$ac_clean_files
  3044. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3045. # Try to create an executable without -o first, disregard a.out.
  3046. # It will help us diagnose broken compilers, and finding out an intuition
  3047. # of exeext.
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3049. $as_echo_n "checking whether the C compiler works... " >&6; }
  3050. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3051. # The possible output files:
  3052. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3053. ac_rmfiles=
  3054. for ac_file in $ac_files
  3055. do
  3056. case $ac_file in
  3057. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3058. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3059. esac
  3060. done
  3061. rm -f $ac_rmfiles
  3062. if { { ac_try="$ac_link_default"
  3063. case "(($ac_try" in
  3064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3065. *) ac_try_echo=$ac_try;;
  3066. esac
  3067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3068. $as_echo "$ac_try_echo"; } >&5
  3069. (eval "$ac_link_default") 2>&5
  3070. ac_status=$?
  3071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3072. test $ac_status = 0; }; then :
  3073. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3074. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3075. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3076. # so that the user can short-circuit this test for compilers unknown to
  3077. # Autoconf.
  3078. for ac_file in $ac_files ''
  3079. do
  3080. test -f "$ac_file" || continue
  3081. case $ac_file in
  3082. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3083. ;;
  3084. [ab].out )
  3085. # We found the default executable, but exeext='' is most
  3086. # certainly right.
  3087. break;;
  3088. *.* )
  3089. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3090. then :; else
  3091. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3092. fi
  3093. # We set ac_cv_exeext here because the later test for it is not
  3094. # safe: cross compilers may not add the suffix if given an `-o'
  3095. # argument, so we may need to know it at that point already.
  3096. # Even if this section looks crufty: it has the advantage of
  3097. # actually working.
  3098. break;;
  3099. * )
  3100. break;;
  3101. esac
  3102. done
  3103. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3104. else
  3105. ac_file=''
  3106. fi
  3107. if test -z "$ac_file"; then :
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3109. $as_echo "no" >&6; }
  3110. $as_echo "$as_me: failed program was:" >&5
  3111. sed 's/^/| /' conftest.$ac_ext >&5
  3112. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3113. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3114. as_fn_error 77 "C compiler cannot create executables
  3115. See \`config.log' for more details" "$LINENO" 5; }
  3116. else
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3118. $as_echo "yes" >&6; }
  3119. fi
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3121. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3123. $as_echo "$ac_file" >&6; }
  3124. ac_exeext=$ac_cv_exeext
  3125. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3126. ac_clean_files=$ac_clean_files_save
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3128. $as_echo_n "checking for suffix of executables... " >&6; }
  3129. if { { ac_try="$ac_link"
  3130. case "(($ac_try" in
  3131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3132. *) ac_try_echo=$ac_try;;
  3133. esac
  3134. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3135. $as_echo "$ac_try_echo"; } >&5
  3136. (eval "$ac_link") 2>&5
  3137. ac_status=$?
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3139. test $ac_status = 0; }; then :
  3140. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3141. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3142. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3143. # `rm'.
  3144. for ac_file in conftest.exe conftest conftest.*; do
  3145. test -f "$ac_file" || continue
  3146. case $ac_file in
  3147. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3148. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3149. break;;
  3150. * ) break;;
  3151. esac
  3152. done
  3153. else
  3154. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3155. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3156. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3157. See \`config.log' for more details" "$LINENO" 5; }
  3158. fi
  3159. rm -f conftest conftest$ac_cv_exeext
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3161. $as_echo "$ac_cv_exeext" >&6; }
  3162. rm -f conftest.$ac_ext
  3163. EXEEXT=$ac_cv_exeext
  3164. ac_exeext=$EXEEXT
  3165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end confdefs.h. */
  3167. #include <stdio.h>
  3168. int
  3169. main ()
  3170. {
  3171. FILE *f = fopen ("conftest.out", "w");
  3172. return ferror (f) || fclose (f) != 0;
  3173. ;
  3174. return 0;
  3175. }
  3176. _ACEOF
  3177. ac_clean_files="$ac_clean_files conftest.out"
  3178. # Check that the compiler produces executables we can run. If not, either
  3179. # the compiler is broken, or we cross compile.
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3181. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3182. if test "$cross_compiling" != yes; then
  3183. { { ac_try="$ac_link"
  3184. case "(($ac_try" in
  3185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186. *) ac_try_echo=$ac_try;;
  3187. esac
  3188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3189. $as_echo "$ac_try_echo"; } >&5
  3190. (eval "$ac_link") 2>&5
  3191. ac_status=$?
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3193. test $ac_status = 0; }
  3194. if { ac_try='./conftest$ac_cv_exeext'
  3195. { { case "(($ac_try" in
  3196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3197. *) ac_try_echo=$ac_try;;
  3198. esac
  3199. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3200. $as_echo "$ac_try_echo"; } >&5
  3201. (eval "$ac_try") 2>&5
  3202. ac_status=$?
  3203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3204. test $ac_status = 0; }; }; then
  3205. cross_compiling=no
  3206. else
  3207. if test "$cross_compiling" = maybe; then
  3208. cross_compiling=yes
  3209. else
  3210. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3212. as_fn_error $? "cannot run C compiled programs.
  3213. If you meant to cross compile, use \`--host'.
  3214. See \`config.log' for more details" "$LINENO" 5; }
  3215. fi
  3216. fi
  3217. fi
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3219. $as_echo "$cross_compiling" >&6; }
  3220. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3221. ac_clean_files=$ac_clean_files_save
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3223. $as_echo_n "checking for suffix of object files... " >&6; }
  3224. if ${ac_cv_objext+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3228. /* end confdefs.h. */
  3229. int
  3230. main ()
  3231. {
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. rm -f conftest.o conftest.obj
  3237. if { { ac_try="$ac_compile"
  3238. case "(($ac_try" in
  3239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3240. *) ac_try_echo=$ac_try;;
  3241. esac
  3242. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3243. $as_echo "$ac_try_echo"; } >&5
  3244. (eval "$ac_compile") 2>&5
  3245. ac_status=$?
  3246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3247. test $ac_status = 0; }; then :
  3248. for ac_file in conftest.o conftest.obj conftest.*; do
  3249. test -f "$ac_file" || continue;
  3250. case $ac_file in
  3251. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3252. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3253. break;;
  3254. esac
  3255. done
  3256. else
  3257. $as_echo "$as_me: failed program was:" >&5
  3258. sed 's/^/| /' conftest.$ac_ext >&5
  3259. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3261. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3262. See \`config.log' for more details" "$LINENO" 5; }
  3263. fi
  3264. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3265. fi
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3267. $as_echo "$ac_cv_objext" >&6; }
  3268. OBJEXT=$ac_cv_objext
  3269. ac_objext=$OBJEXT
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3271. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3272. if ${ac_cv_c_compiler_gnu+:} false; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3276. /* end confdefs.h. */
  3277. int
  3278. main ()
  3279. {
  3280. #ifndef __GNUC__
  3281. choke me
  3282. #endif
  3283. ;
  3284. return 0;
  3285. }
  3286. _ACEOF
  3287. if ac_fn_c_try_compile "$LINENO"; then :
  3288. ac_compiler_gnu=yes
  3289. else
  3290. ac_compiler_gnu=no
  3291. fi
  3292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3293. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3294. fi
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3296. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3297. if test $ac_compiler_gnu = yes; then
  3298. GCC=yes
  3299. else
  3300. GCC=
  3301. fi
  3302. ac_test_CFLAGS=${CFLAGS+set}
  3303. ac_save_CFLAGS=$CFLAGS
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3305. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3306. if ${ac_cv_prog_cc_g+:} false; then :
  3307. $as_echo_n "(cached) " >&6
  3308. else
  3309. ac_save_c_werror_flag=$ac_c_werror_flag
  3310. ac_c_werror_flag=yes
  3311. ac_cv_prog_cc_g=no
  3312. CFLAGS="-g"
  3313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3314. /* end confdefs.h. */
  3315. int
  3316. main ()
  3317. {
  3318. ;
  3319. return 0;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_c_try_compile "$LINENO"; then :
  3323. ac_cv_prog_cc_g=yes
  3324. else
  3325. CFLAGS=""
  3326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3327. /* end confdefs.h. */
  3328. int
  3329. main ()
  3330. {
  3331. ;
  3332. return 0;
  3333. }
  3334. _ACEOF
  3335. if ac_fn_c_try_compile "$LINENO"; then :
  3336. else
  3337. ac_c_werror_flag=$ac_save_c_werror_flag
  3338. CFLAGS="-g"
  3339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3340. /* end confdefs.h. */
  3341. int
  3342. main ()
  3343. {
  3344. ;
  3345. return 0;
  3346. }
  3347. _ACEOF
  3348. if ac_fn_c_try_compile "$LINENO"; then :
  3349. ac_cv_prog_cc_g=yes
  3350. fi
  3351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3352. fi
  3353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3354. fi
  3355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3356. ac_c_werror_flag=$ac_save_c_werror_flag
  3357. fi
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3359. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3360. if test "$ac_test_CFLAGS" = set; then
  3361. CFLAGS=$ac_save_CFLAGS
  3362. elif test $ac_cv_prog_cc_g = yes; then
  3363. if test "$GCC" = yes; then
  3364. CFLAGS="-g -O2"
  3365. else
  3366. CFLAGS="-g"
  3367. fi
  3368. else
  3369. if test "$GCC" = yes; then
  3370. CFLAGS="-O2"
  3371. else
  3372. CFLAGS=
  3373. fi
  3374. fi
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3376. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3377. if ${ac_cv_prog_cc_c89+:} false; then :
  3378. $as_echo_n "(cached) " >&6
  3379. else
  3380. ac_cv_prog_cc_c89=no
  3381. ac_save_CC=$CC
  3382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3383. /* end confdefs.h. */
  3384. #include <stdarg.h>
  3385. #include <stdio.h>
  3386. struct stat;
  3387. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3388. struct buf { int x; };
  3389. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3390. static char *e (p, i)
  3391. char **p;
  3392. int i;
  3393. {
  3394. return p[i];
  3395. }
  3396. static char *f (char * (*g) (char **, int), char **p, ...)
  3397. {
  3398. char *s;
  3399. va_list v;
  3400. va_start (v,p);
  3401. s = g (p, va_arg (v,int));
  3402. va_end (v);
  3403. return s;
  3404. }
  3405. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3406. function prototypes and stuff, but not '\xHH' hex character constants.
  3407. These don't provoke an error unfortunately, instead are silently treated
  3408. as 'x'. The following induces an error, until -std is added to get
  3409. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3410. array size at least. It's necessary to write '\x00'==0 to get something
  3411. that's true only with -std. */
  3412. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3413. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3414. inside strings and character constants. */
  3415. #define FOO(x) 'x'
  3416. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3417. int test (int i, double x);
  3418. struct s1 {int (*f) (int a);};
  3419. struct s2 {int (*f) (double a);};
  3420. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3421. int argc;
  3422. char **argv;
  3423. int
  3424. main ()
  3425. {
  3426. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3427. ;
  3428. return 0;
  3429. }
  3430. _ACEOF
  3431. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3432. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3433. do
  3434. CC="$ac_save_CC $ac_arg"
  3435. if ac_fn_c_try_compile "$LINENO"; then :
  3436. ac_cv_prog_cc_c89=$ac_arg
  3437. fi
  3438. rm -f core conftest.err conftest.$ac_objext
  3439. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3440. done
  3441. rm -f conftest.$ac_ext
  3442. CC=$ac_save_CC
  3443. fi
  3444. # AC_CACHE_VAL
  3445. case "x$ac_cv_prog_cc_c89" in
  3446. x)
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3448. $as_echo "none needed" >&6; } ;;
  3449. xno)
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3451. $as_echo "unsupported" >&6; } ;;
  3452. *)
  3453. CC="$CC $ac_cv_prog_cc_c89"
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3455. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3456. esac
  3457. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3458. fi
  3459. ac_ext=c
  3460. ac_cpp='$CPP $CPPFLAGS'
  3461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3465. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3466. if ${ac_cv_path_SED+:} false; then :
  3467. $as_echo_n "(cached) " >&6
  3468. else
  3469. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3470. for ac_i in 1 2 3 4 5 6 7; do
  3471. ac_script="$ac_script$as_nl$ac_script"
  3472. done
  3473. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3474. { ac_script=; unset ac_script;}
  3475. if test -z "$SED"; then
  3476. ac_path_SED_found=false
  3477. # Loop through the user's path and test for each of PROGNAME-LIST
  3478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3479. for as_dir in $PATH
  3480. do
  3481. IFS=$as_save_IFS
  3482. test -z "$as_dir" && as_dir=.
  3483. for ac_prog in sed gsed; do
  3484. for ac_exec_ext in '' $ac_executable_extensions; do
  3485. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3486. as_fn_executable_p "$ac_path_SED" || continue
  3487. # Check for GNU ac_path_SED and select it if it is found.
  3488. # Check for GNU $ac_path_SED
  3489. case `"$ac_path_SED" --version 2>&1` in
  3490. *GNU*)
  3491. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3492. *)
  3493. ac_count=0
  3494. $as_echo_n 0123456789 >"conftest.in"
  3495. while :
  3496. do
  3497. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3498. mv "conftest.tmp" "conftest.in"
  3499. cp "conftest.in" "conftest.nl"
  3500. $as_echo '' >> "conftest.nl"
  3501. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3502. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3503. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3504. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3505. # Best one so far, save it but keep looking for a better one
  3506. ac_cv_path_SED="$ac_path_SED"
  3507. ac_path_SED_max=$ac_count
  3508. fi
  3509. # 10*(2^10) chars as input seems more than enough
  3510. test $ac_count -gt 10 && break
  3511. done
  3512. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3513. esac
  3514. $ac_path_SED_found && break 3
  3515. done
  3516. done
  3517. done
  3518. IFS=$as_save_IFS
  3519. if test -z "$ac_cv_path_SED"; then
  3520. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3521. fi
  3522. else
  3523. ac_cv_path_SED=$SED
  3524. fi
  3525. fi
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3527. $as_echo "$ac_cv_path_SED" >&6; }
  3528. SED="$ac_cv_path_SED"
  3529. rm -f conftest.sed
  3530. test -z "$SED" && SED=sed
  3531. Xsed="$SED -e 1s/^X//"
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3533. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3534. if ${ac_cv_path_GREP+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. if test -z "$GREP"; then
  3538. ac_path_GREP_found=false
  3539. # Loop through the user's path and test for each of PROGNAME-LIST
  3540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3541. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3542. do
  3543. IFS=$as_save_IFS
  3544. test -z "$as_dir" && as_dir=.
  3545. for ac_prog in grep ggrep; do
  3546. for ac_exec_ext in '' $ac_executable_extensions; do
  3547. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3548. as_fn_executable_p "$ac_path_GREP" || continue
  3549. # Check for GNU ac_path_GREP and select it if it is found.
  3550. # Check for GNU $ac_path_GREP
  3551. case `"$ac_path_GREP" --version 2>&1` in
  3552. *GNU*)
  3553. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3554. *)
  3555. ac_count=0
  3556. $as_echo_n 0123456789 >"conftest.in"
  3557. while :
  3558. do
  3559. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3560. mv "conftest.tmp" "conftest.in"
  3561. cp "conftest.in" "conftest.nl"
  3562. $as_echo 'GREP' >> "conftest.nl"
  3563. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3564. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3565. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3566. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3567. # Best one so far, save it but keep looking for a better one
  3568. ac_cv_path_GREP="$ac_path_GREP"
  3569. ac_path_GREP_max=$ac_count
  3570. fi
  3571. # 10*(2^10) chars as input seems more than enough
  3572. test $ac_count -gt 10 && break
  3573. done
  3574. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3575. esac
  3576. $ac_path_GREP_found && break 3
  3577. done
  3578. done
  3579. done
  3580. IFS=$as_save_IFS
  3581. if test -z "$ac_cv_path_GREP"; then
  3582. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3583. fi
  3584. else
  3585. ac_cv_path_GREP=$GREP
  3586. fi
  3587. fi
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3589. $as_echo "$ac_cv_path_GREP" >&6; }
  3590. GREP="$ac_cv_path_GREP"
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3592. $as_echo_n "checking for egrep... " >&6; }
  3593. if ${ac_cv_path_EGREP+:} false; then :
  3594. $as_echo_n "(cached) " >&6
  3595. else
  3596. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3597. then ac_cv_path_EGREP="$GREP -E"
  3598. else
  3599. if test -z "$EGREP"; then
  3600. ac_path_EGREP_found=false
  3601. # Loop through the user's path and test for each of PROGNAME-LIST
  3602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3603. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3604. do
  3605. IFS=$as_save_IFS
  3606. test -z "$as_dir" && as_dir=.
  3607. for ac_prog in egrep; do
  3608. for ac_exec_ext in '' $ac_executable_extensions; do
  3609. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3610. as_fn_executable_p "$ac_path_EGREP" || continue
  3611. # Check for GNU ac_path_EGREP and select it if it is found.
  3612. # Check for GNU $ac_path_EGREP
  3613. case `"$ac_path_EGREP" --version 2>&1` in
  3614. *GNU*)
  3615. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3616. *)
  3617. ac_count=0
  3618. $as_echo_n 0123456789 >"conftest.in"
  3619. while :
  3620. do
  3621. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3622. mv "conftest.tmp" "conftest.in"
  3623. cp "conftest.in" "conftest.nl"
  3624. $as_echo 'EGREP' >> "conftest.nl"
  3625. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3626. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3627. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3628. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3629. # Best one so far, save it but keep looking for a better one
  3630. ac_cv_path_EGREP="$ac_path_EGREP"
  3631. ac_path_EGREP_max=$ac_count
  3632. fi
  3633. # 10*(2^10) chars as input seems more than enough
  3634. test $ac_count -gt 10 && break
  3635. done
  3636. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3637. esac
  3638. $ac_path_EGREP_found && break 3
  3639. done
  3640. done
  3641. done
  3642. IFS=$as_save_IFS
  3643. if test -z "$ac_cv_path_EGREP"; then
  3644. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3645. fi
  3646. else
  3647. ac_cv_path_EGREP=$EGREP
  3648. fi
  3649. fi
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3652. $as_echo "$ac_cv_path_EGREP" >&6; }
  3653. EGREP="$ac_cv_path_EGREP"
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3655. $as_echo_n "checking for fgrep... " >&6; }
  3656. if ${ac_cv_path_FGREP+:} false; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3660. then ac_cv_path_FGREP="$GREP -F"
  3661. else
  3662. if test -z "$FGREP"; then
  3663. ac_path_FGREP_found=false
  3664. # Loop through the user's path and test for each of PROGNAME-LIST
  3665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3666. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3667. do
  3668. IFS=$as_save_IFS
  3669. test -z "$as_dir" && as_dir=.
  3670. for ac_prog in fgrep; do
  3671. for ac_exec_ext in '' $ac_executable_extensions; do
  3672. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3673. as_fn_executable_p "$ac_path_FGREP" || continue
  3674. # Check for GNU ac_path_FGREP and select it if it is found.
  3675. # Check for GNU $ac_path_FGREP
  3676. case `"$ac_path_FGREP" --version 2>&1` in
  3677. *GNU*)
  3678. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3679. *)
  3680. ac_count=0
  3681. $as_echo_n 0123456789 >"conftest.in"
  3682. while :
  3683. do
  3684. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3685. mv "conftest.tmp" "conftest.in"
  3686. cp "conftest.in" "conftest.nl"
  3687. $as_echo 'FGREP' >> "conftest.nl"
  3688. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3689. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3690. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3691. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3692. # Best one so far, save it but keep looking for a better one
  3693. ac_cv_path_FGREP="$ac_path_FGREP"
  3694. ac_path_FGREP_max=$ac_count
  3695. fi
  3696. # 10*(2^10) chars as input seems more than enough
  3697. test $ac_count -gt 10 && break
  3698. done
  3699. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3700. esac
  3701. $ac_path_FGREP_found && break 3
  3702. done
  3703. done
  3704. done
  3705. IFS=$as_save_IFS
  3706. if test -z "$ac_cv_path_FGREP"; then
  3707. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3708. fi
  3709. else
  3710. ac_cv_path_FGREP=$FGREP
  3711. fi
  3712. fi
  3713. fi
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3715. $as_echo "$ac_cv_path_FGREP" >&6; }
  3716. FGREP="$ac_cv_path_FGREP"
  3717. test -z "$GREP" && GREP=grep
  3718. # Check whether --with-gnu-ld was given.
  3719. if test "${with_gnu_ld+set}" = set; then :
  3720. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3721. else
  3722. with_gnu_ld=no
  3723. fi
  3724. ac_prog=ld
  3725. if test "$GCC" = yes; then
  3726. # Check if gcc -print-prog-name=ld gives a path.
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3728. $as_echo_n "checking for ld used by $CC... " >&6; }
  3729. case $host in
  3730. *-*-mingw*)
  3731. # gcc leaves a trailing carriage return which upsets mingw
  3732. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3733. *)
  3734. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3735. esac
  3736. case $ac_prog in
  3737. # Accept absolute paths.
  3738. [\\/]* | ?:[\\/]*)
  3739. re_direlt='/[^/][^/]*/\.\./'
  3740. # Canonicalize the pathname of ld
  3741. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3742. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3743. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3744. done
  3745. test -z "$LD" && LD="$ac_prog"
  3746. ;;
  3747. "")
  3748. # If it fails, then pretend we aren't using GCC.
  3749. ac_prog=ld
  3750. ;;
  3751. *)
  3752. # If it is relative, then search for the first ld in PATH.
  3753. with_gnu_ld=unknown
  3754. ;;
  3755. esac
  3756. elif test "$with_gnu_ld" = yes; then
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3758. $as_echo_n "checking for GNU ld... " >&6; }
  3759. else
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3761. $as_echo_n "checking for non-GNU ld... " >&6; }
  3762. fi
  3763. if ${lt_cv_path_LD+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. if test -z "$LD"; then
  3767. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3768. for ac_dir in $PATH; do
  3769. IFS="$lt_save_ifs"
  3770. test -z "$ac_dir" && ac_dir=.
  3771. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3772. lt_cv_path_LD="$ac_dir/$ac_prog"
  3773. # Check to see if the program is GNU ld. I'd rather use --version,
  3774. # but apparently some variants of GNU ld only accept -v.
  3775. # Break only if it was the GNU/non-GNU ld that we prefer.
  3776. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3777. *GNU* | *'with BFD'*)
  3778. test "$with_gnu_ld" != no && break
  3779. ;;
  3780. *)
  3781. test "$with_gnu_ld" != yes && break
  3782. ;;
  3783. esac
  3784. fi
  3785. done
  3786. IFS="$lt_save_ifs"
  3787. else
  3788. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3789. fi
  3790. fi
  3791. LD="$lt_cv_path_LD"
  3792. if test -n "$LD"; then
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3794. $as_echo "$LD" >&6; }
  3795. else
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3797. $as_echo "no" >&6; }
  3798. fi
  3799. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3801. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3802. if ${lt_cv_prog_gnu_ld+:} false; then :
  3803. $as_echo_n "(cached) " >&6
  3804. else
  3805. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3806. case `$LD -v 2>&1 </dev/null` in
  3807. *GNU* | *'with BFD'*)
  3808. lt_cv_prog_gnu_ld=yes
  3809. ;;
  3810. *)
  3811. lt_cv_prog_gnu_ld=no
  3812. ;;
  3813. esac
  3814. fi
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3816. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3817. with_gnu_ld=$lt_cv_prog_gnu_ld
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3819. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3820. if ${lt_cv_path_NM+:} false; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. if test -n "$NM"; then
  3824. # Let the user override the test.
  3825. lt_cv_path_NM="$NM"
  3826. else
  3827. lt_nm_to_check="${ac_tool_prefix}nm"
  3828. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3829. lt_nm_to_check="$lt_nm_to_check nm"
  3830. fi
  3831. for lt_tmp_nm in $lt_nm_to_check; do
  3832. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3833. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3834. IFS="$lt_save_ifs"
  3835. test -z "$ac_dir" && ac_dir=.
  3836. tmp_nm="$ac_dir/$lt_tmp_nm"
  3837. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3838. # Check to see if the nm accepts a BSD-compat flag.
  3839. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3840. # nm: unknown option "B" ignored
  3841. # Tru64's nm complains that /dev/null is an invalid object file
  3842. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3843. */dev/null* | *'Invalid file or object type'*)
  3844. lt_cv_path_NM="$tmp_nm -B"
  3845. break
  3846. ;;
  3847. *)
  3848. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3849. */dev/null*)
  3850. lt_cv_path_NM="$tmp_nm -p"
  3851. break
  3852. ;;
  3853. *)
  3854. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3855. continue # so that we can try to find one that supports BSD flags
  3856. ;;
  3857. esac
  3858. ;;
  3859. esac
  3860. fi
  3861. done
  3862. IFS="$lt_save_ifs"
  3863. done
  3864. : ${lt_cv_path_NM=no}
  3865. fi
  3866. fi
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3868. $as_echo "$lt_cv_path_NM" >&6; }
  3869. if test "$lt_cv_path_NM" != "no"; then
  3870. NM="$lt_cv_path_NM"
  3871. else
  3872. # Didn't find any BSD compatible name lister, look for dumpbin.
  3873. if test -n "$DUMPBIN"; then :
  3874. # Let the user override the test.
  3875. else
  3876. if test -n "$ac_tool_prefix"; then
  3877. for ac_prog in dumpbin "link -dump"
  3878. do
  3879. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3880. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3882. $as_echo_n "checking for $ac_word... " >&6; }
  3883. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3884. $as_echo_n "(cached) " >&6
  3885. else
  3886. if test -n "$DUMPBIN"; then
  3887. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3888. else
  3889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3890. for as_dir in $PATH
  3891. do
  3892. IFS=$as_save_IFS
  3893. test -z "$as_dir" && as_dir=.
  3894. for ac_exec_ext in '' $ac_executable_extensions; do
  3895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3896. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3898. break 2
  3899. fi
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. fi
  3904. fi
  3905. DUMPBIN=$ac_cv_prog_DUMPBIN
  3906. if test -n "$DUMPBIN"; then
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3908. $as_echo "$DUMPBIN" >&6; }
  3909. else
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3911. $as_echo "no" >&6; }
  3912. fi
  3913. test -n "$DUMPBIN" && break
  3914. done
  3915. fi
  3916. if test -z "$DUMPBIN"; then
  3917. ac_ct_DUMPBIN=$DUMPBIN
  3918. for ac_prog in dumpbin "link -dump"
  3919. do
  3920. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3921. set dummy $ac_prog; ac_word=$2
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3923. $as_echo_n "checking for $ac_word... " >&6; }
  3924. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3925. $as_echo_n "(cached) " >&6
  3926. else
  3927. if test -n "$ac_ct_DUMPBIN"; then
  3928. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3929. else
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_exec_ext in '' $ac_executable_extensions; do
  3936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3937. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3939. break 2
  3940. fi
  3941. done
  3942. done
  3943. IFS=$as_save_IFS
  3944. fi
  3945. fi
  3946. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3947. if test -n "$ac_ct_DUMPBIN"; then
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3949. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3950. else
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3952. $as_echo "no" >&6; }
  3953. fi
  3954. test -n "$ac_ct_DUMPBIN" && break
  3955. done
  3956. if test "x$ac_ct_DUMPBIN" = x; then
  3957. DUMPBIN=":"
  3958. else
  3959. case $cross_compiling:$ac_tool_warned in
  3960. yes:)
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3962. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3963. ac_tool_warned=yes ;;
  3964. esac
  3965. DUMPBIN=$ac_ct_DUMPBIN
  3966. fi
  3967. fi
  3968. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3969. *COFF*)
  3970. DUMPBIN="$DUMPBIN -symbols"
  3971. ;;
  3972. *)
  3973. DUMPBIN=:
  3974. ;;
  3975. esac
  3976. fi
  3977. if test "$DUMPBIN" != ":"; then
  3978. NM="$DUMPBIN"
  3979. fi
  3980. fi
  3981. test -z "$NM" && NM=nm
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3983. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3984. if ${lt_cv_nm_interface+:} false; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. lt_cv_nm_interface="BSD nm"
  3988. echo "int some_variable = 0;" > conftest.$ac_ext
  3989. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3990. (eval "$ac_compile" 2>conftest.err)
  3991. cat conftest.err >&5
  3992. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3993. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3994. cat conftest.err >&5
  3995. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3996. cat conftest.out >&5
  3997. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3998. lt_cv_nm_interface="MS dumpbin"
  3999. fi
  4000. rm -f conftest*
  4001. fi
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4003. $as_echo "$lt_cv_nm_interface" >&6; }
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4005. $as_echo_n "checking whether ln -s works... " >&6; }
  4006. LN_S=$as_ln_s
  4007. if test "$LN_S" = "ln -s"; then
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4009. $as_echo "yes" >&6; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4012. $as_echo "no, using $LN_S" >&6; }
  4013. fi
  4014. # find the maximum length of command line arguments
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4016. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4017. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. i=0
  4021. teststring="ABCD"
  4022. case $build_os in
  4023. msdosdjgpp*)
  4024. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4025. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4026. # during glob expansion). Even if it were fixed, the result of this
  4027. # check would be larger than it should be.
  4028. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4029. ;;
  4030. gnu*)
  4031. # Under GNU Hurd, this test is not required because there is
  4032. # no limit to the length of command line arguments.
  4033. # Libtool will interpret -1 as no limit whatsoever
  4034. lt_cv_sys_max_cmd_len=-1;
  4035. ;;
  4036. cygwin* | mingw* | cegcc*)
  4037. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4038. # about 5 minutes as the teststring grows exponentially.
  4039. # Worse, since 9x/ME are not pre-emptively multitasking,
  4040. # you end up with a "frozen" computer, even though with patience
  4041. # the test eventually succeeds (with a max line length of 256k).
  4042. # Instead, let's just punt: use the minimum linelength reported by
  4043. # all of the supported platforms: 8192 (on NT/2K/XP).
  4044. lt_cv_sys_max_cmd_len=8192;
  4045. ;;
  4046. mint*)
  4047. # On MiNT this can take a long time and run out of memory.
  4048. lt_cv_sys_max_cmd_len=8192;
  4049. ;;
  4050. amigaos*)
  4051. # On AmigaOS with pdksh, this test takes hours, literally.
  4052. # So we just punt and use a minimum line length of 8192.
  4053. lt_cv_sys_max_cmd_len=8192;
  4054. ;;
  4055. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4056. # This has been around since 386BSD, at least. Likely further.
  4057. if test -x /sbin/sysctl; then
  4058. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4059. elif test -x /usr/sbin/sysctl; then
  4060. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4061. else
  4062. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4063. fi
  4064. # And add a safety zone
  4065. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4066. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4067. ;;
  4068. interix*)
  4069. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4070. lt_cv_sys_max_cmd_len=196608
  4071. ;;
  4072. os2*)
  4073. # The test takes a long time on OS/2.
  4074. lt_cv_sys_max_cmd_len=8192
  4075. ;;
  4076. osf*)
  4077. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4078. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4079. # nice to cause kernel panics so lets avoid the loop below.
  4080. # First set a reasonable default.
  4081. lt_cv_sys_max_cmd_len=16384
  4082. #
  4083. if test -x /sbin/sysconfig; then
  4084. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4085. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4086. esac
  4087. fi
  4088. ;;
  4089. sco3.2v5*)
  4090. lt_cv_sys_max_cmd_len=102400
  4091. ;;
  4092. sysv5* | sco5v6* | sysv4.2uw2*)
  4093. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4094. if test -n "$kargmax"; then
  4095. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4096. else
  4097. lt_cv_sys_max_cmd_len=32768
  4098. fi
  4099. ;;
  4100. *)
  4101. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4102. if test -n "$lt_cv_sys_max_cmd_len"; then
  4103. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4104. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4105. else
  4106. # Make teststring a little bigger before we do anything with it.
  4107. # a 1K string should be a reasonable start.
  4108. for i in 1 2 3 4 5 6 7 8 ; do
  4109. teststring=$teststring$teststring
  4110. done
  4111. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4112. # If test is not a shell built-in, we'll probably end up computing a
  4113. # maximum length that is only half of the actual maximum length, but
  4114. # we can't tell.
  4115. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4116. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4117. test $i != 17 # 1/2 MB should be enough
  4118. do
  4119. i=`expr $i + 1`
  4120. teststring=$teststring$teststring
  4121. done
  4122. # Only check the string length outside the loop.
  4123. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4124. teststring=
  4125. # Add a significant safety factor because C++ compilers can tack on
  4126. # massive amounts of additional arguments before passing them to the
  4127. # linker. It appears as though 1/2 is a usable value.
  4128. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4129. fi
  4130. ;;
  4131. esac
  4132. fi
  4133. if test -n $lt_cv_sys_max_cmd_len ; then
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4135. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4136. else
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4138. $as_echo "none" >&6; }
  4139. fi
  4140. max_cmd_len=$lt_cv_sys_max_cmd_len
  4141. : ${CP="cp -f"}
  4142. : ${MV="mv -f"}
  4143. : ${RM="rm -f"}
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4145. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4146. # Try some XSI features
  4147. xsi_shell=no
  4148. ( _lt_dummy="a/b/c"
  4149. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4150. = c,a/b,b/c, \
  4151. && eval 'test $(( 1 + 1 )) -eq 2 \
  4152. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4153. && xsi_shell=yes
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4155. $as_echo "$xsi_shell" >&6; }
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4157. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4158. lt_shell_append=no
  4159. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4160. >/dev/null 2>&1 \
  4161. && lt_shell_append=yes
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4163. $as_echo "$lt_shell_append" >&6; }
  4164. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4165. lt_unset=unset
  4166. else
  4167. lt_unset=false
  4168. fi
  4169. # test EBCDIC or ASCII
  4170. case `echo X|tr X '\101'` in
  4171. A) # ASCII based system
  4172. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4173. lt_SP2NL='tr \040 \012'
  4174. lt_NL2SP='tr \015\012 \040\040'
  4175. ;;
  4176. *) # EBCDIC based system
  4177. lt_SP2NL='tr \100 \n'
  4178. lt_NL2SP='tr \r\n \100\100'
  4179. ;;
  4180. esac
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4182. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4183. if ${lt_cv_to_host_file_cmd+:} false; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. case $host in
  4187. *-*-mingw* )
  4188. case $build in
  4189. *-*-mingw* ) # actually msys
  4190. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4191. ;;
  4192. *-*-cygwin* )
  4193. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4194. ;;
  4195. * ) # otherwise, assume *nix
  4196. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4197. ;;
  4198. esac
  4199. ;;
  4200. *-*-cygwin* )
  4201. case $build in
  4202. *-*-mingw* ) # actually msys
  4203. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4204. ;;
  4205. *-*-cygwin* )
  4206. lt_cv_to_host_file_cmd=func_convert_file_noop
  4207. ;;
  4208. * ) # otherwise, assume *nix
  4209. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4210. ;;
  4211. esac
  4212. ;;
  4213. * ) # unhandled hosts (and "normal" native builds)
  4214. lt_cv_to_host_file_cmd=func_convert_file_noop
  4215. ;;
  4216. esac
  4217. fi
  4218. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4220. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4222. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4223. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. #assume ordinary cross tools, or native build.
  4227. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4228. case $host in
  4229. *-*-mingw* )
  4230. case $build in
  4231. *-*-mingw* ) # actually msys
  4232. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4233. ;;
  4234. esac
  4235. ;;
  4236. esac
  4237. fi
  4238. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4240. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4242. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4243. if ${lt_cv_ld_reload_flag+:} false; then :
  4244. $as_echo_n "(cached) " >&6
  4245. else
  4246. lt_cv_ld_reload_flag='-r'
  4247. fi
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4249. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4250. reload_flag=$lt_cv_ld_reload_flag
  4251. case $reload_flag in
  4252. "" | " "*) ;;
  4253. *) reload_flag=" $reload_flag" ;;
  4254. esac
  4255. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4256. case $host_os in
  4257. cygwin* | mingw* | pw32* | cegcc*)
  4258. if test "$GCC" != yes; then
  4259. reload_cmds=false
  4260. fi
  4261. ;;
  4262. darwin*)
  4263. if test "$GCC" = yes; then
  4264. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4265. else
  4266. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4267. fi
  4268. ;;
  4269. esac
  4270. if test -n "$ac_tool_prefix"; then
  4271. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4272. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4274. $as_echo_n "checking for $ac_word... " >&6; }
  4275. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4276. $as_echo_n "(cached) " >&6
  4277. else
  4278. if test -n "$OBJDUMP"; then
  4279. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4280. else
  4281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4282. for as_dir in $PATH
  4283. do
  4284. IFS=$as_save_IFS
  4285. test -z "$as_dir" && as_dir=.
  4286. for ac_exec_ext in '' $ac_executable_extensions; do
  4287. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4288. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4290. break 2
  4291. fi
  4292. done
  4293. done
  4294. IFS=$as_save_IFS
  4295. fi
  4296. fi
  4297. OBJDUMP=$ac_cv_prog_OBJDUMP
  4298. if test -n "$OBJDUMP"; then
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4300. $as_echo "$OBJDUMP" >&6; }
  4301. else
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4303. $as_echo "no" >&6; }
  4304. fi
  4305. fi
  4306. if test -z "$ac_cv_prog_OBJDUMP"; then
  4307. ac_ct_OBJDUMP=$OBJDUMP
  4308. # Extract the first word of "objdump", so it can be a program name with args.
  4309. set dummy objdump; ac_word=$2
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4311. $as_echo_n "checking for $ac_word... " >&6; }
  4312. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4313. $as_echo_n "(cached) " >&6
  4314. else
  4315. if test -n "$ac_ct_OBJDUMP"; then
  4316. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4317. else
  4318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4319. for as_dir in $PATH
  4320. do
  4321. IFS=$as_save_IFS
  4322. test -z "$as_dir" && as_dir=.
  4323. for ac_exec_ext in '' $ac_executable_extensions; do
  4324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4325. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4327. break 2
  4328. fi
  4329. done
  4330. done
  4331. IFS=$as_save_IFS
  4332. fi
  4333. fi
  4334. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4335. if test -n "$ac_ct_OBJDUMP"; then
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4337. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4338. else
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4340. $as_echo "no" >&6; }
  4341. fi
  4342. if test "x$ac_ct_OBJDUMP" = x; then
  4343. OBJDUMP="false"
  4344. else
  4345. case $cross_compiling:$ac_tool_warned in
  4346. yes:)
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4349. ac_tool_warned=yes ;;
  4350. esac
  4351. OBJDUMP=$ac_ct_OBJDUMP
  4352. fi
  4353. else
  4354. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4355. fi
  4356. test -z "$OBJDUMP" && OBJDUMP=objdump
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4358. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4359. if ${lt_cv_deplibs_check_method+:} false; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4363. lt_cv_file_magic_test_file=
  4364. lt_cv_deplibs_check_method='unknown'
  4365. # Need to set the preceding variable on all platforms that support
  4366. # interlibrary dependencies.
  4367. # 'none' -- dependencies not supported.
  4368. # `unknown' -- same as none, but documents that we really don't know.
  4369. # 'pass_all' -- all dependencies passed with no checks.
  4370. # 'test_compile' -- check by making test program.
  4371. # 'file_magic [[regex]]' -- check by looking for files in library path
  4372. # which responds to the $file_magic_cmd with a given extended regex.
  4373. # If you have `file' or equivalent on your system and you're not sure
  4374. # whether `pass_all' will *always* work, you probably want this one.
  4375. case $host_os in
  4376. aix[4-9]*)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. beos*)
  4380. lt_cv_deplibs_check_method=pass_all
  4381. ;;
  4382. bsdi[45]*)
  4383. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4384. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4385. lt_cv_file_magic_test_file=/shlib/libc.so
  4386. ;;
  4387. cygwin*)
  4388. # func_win32_libid is a shell function defined in ltmain.sh
  4389. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4390. lt_cv_file_magic_cmd='func_win32_libid'
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. mingw* | pw32*)
  4394. # Base MSYS/MinGW do not provide the 'file' command needed by
  4395. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4396. # unless we find 'file', for example because we are cross-compiling.
  4397. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4398. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4399. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4400. lt_cv_file_magic_cmd='func_win32_libid'
  4401. else
  4402. # Keep this pattern in sync with the one in func_win32_libid.
  4403. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4404. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4405. fi
  4406. lt_cv_deplibs_check_method=pass_all
  4407. ;;
  4408. cegcc*)
  4409. # use the weaker test based on 'objdump'. See mingw*.
  4410. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4411. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4412. ;;
  4413. darwin* | rhapsody*)
  4414. lt_cv_deplibs_check_method=pass_all
  4415. ;;
  4416. freebsd* | dragonfly*)
  4417. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4418. case $host_cpu in
  4419. i*86 )
  4420. # Not sure whether the presence of OpenBSD here was a mistake.
  4421. # Let's accept both of them until this is cleared up.
  4422. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4423. lt_cv_file_magic_cmd=/usr/bin/file
  4424. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4425. ;;
  4426. esac
  4427. else
  4428. lt_cv_deplibs_check_method=pass_all
  4429. fi
  4430. ;;
  4431. gnu*)
  4432. lt_cv_deplibs_check_method=pass_all
  4433. ;;
  4434. haiku*)
  4435. lt_cv_deplibs_check_method=pass_all
  4436. ;;
  4437. hpux10.20* | hpux11*)
  4438. lt_cv_file_magic_cmd=/usr/bin/file
  4439. case $host_cpu in
  4440. ia64*)
  4441. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4442. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4443. ;;
  4444. hppa*64*)
  4445. 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]'
  4446. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4447. ;;
  4448. *)
  4449. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4450. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4451. ;;
  4452. esac
  4453. ;;
  4454. interix[3-9]*)
  4455. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4456. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4457. ;;
  4458. irix5* | irix6* | nonstopux*)
  4459. case $LD in
  4460. *-32|*"-32 ") libmagic=32-bit;;
  4461. *-n32|*"-n32 ") libmagic=N32;;
  4462. *-64|*"-64 ") libmagic=64-bit;;
  4463. *) libmagic=never-match;;
  4464. esac
  4465. lt_cv_deplibs_check_method=pass_all
  4466. ;;
  4467. # This must be glibc/ELF.
  4468. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4469. lt_cv_deplibs_check_method=pass_all
  4470. ;;
  4471. netbsd*)
  4472. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4473. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4474. else
  4475. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4476. fi
  4477. ;;
  4478. newos6*)
  4479. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4480. lt_cv_file_magic_cmd=/usr/bin/file
  4481. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4482. ;;
  4483. *nto* | *qnx*)
  4484. lt_cv_deplibs_check_method=pass_all
  4485. ;;
  4486. openbsd*)
  4487. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4488. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4489. else
  4490. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4491. fi
  4492. ;;
  4493. osf3* | osf4* | osf5*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. rdos*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. solaris*)
  4500. lt_cv_deplibs_check_method=pass_all
  4501. ;;
  4502. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. sysv4 | sysv4.3*)
  4506. case $host_vendor in
  4507. motorola)
  4508. 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]'
  4509. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4510. ;;
  4511. ncr)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. sequent)
  4515. lt_cv_file_magic_cmd='/bin/file'
  4516. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4517. ;;
  4518. sni)
  4519. lt_cv_file_magic_cmd='/bin/file'
  4520. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4521. lt_cv_file_magic_test_file=/lib/libc.so
  4522. ;;
  4523. siemens)
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. pc)
  4527. lt_cv_deplibs_check_method=pass_all
  4528. ;;
  4529. esac
  4530. ;;
  4531. tpf*)
  4532. lt_cv_deplibs_check_method=pass_all
  4533. ;;
  4534. esac
  4535. fi
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4537. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4538. file_magic_glob=
  4539. want_nocaseglob=no
  4540. if test "$build" = "$host"; then
  4541. case $host_os in
  4542. mingw* | pw32*)
  4543. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4544. want_nocaseglob=yes
  4545. else
  4546. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4547. fi
  4548. ;;
  4549. esac
  4550. fi
  4551. file_magic_cmd=$lt_cv_file_magic_cmd
  4552. deplibs_check_method=$lt_cv_deplibs_check_method
  4553. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4554. if test -n "$ac_tool_prefix"; then
  4555. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4556. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4558. $as_echo_n "checking for $ac_word... " >&6; }
  4559. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4560. $as_echo_n "(cached) " >&6
  4561. else
  4562. if test -n "$DLLTOOL"; then
  4563. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4564. else
  4565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4566. for as_dir in $PATH
  4567. do
  4568. IFS=$as_save_IFS
  4569. test -z "$as_dir" && as_dir=.
  4570. for ac_exec_ext in '' $ac_executable_extensions; do
  4571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4572. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4574. break 2
  4575. fi
  4576. done
  4577. done
  4578. IFS=$as_save_IFS
  4579. fi
  4580. fi
  4581. DLLTOOL=$ac_cv_prog_DLLTOOL
  4582. if test -n "$DLLTOOL"; then
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4584. $as_echo "$DLLTOOL" >&6; }
  4585. else
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4587. $as_echo "no" >&6; }
  4588. fi
  4589. fi
  4590. if test -z "$ac_cv_prog_DLLTOOL"; then
  4591. ac_ct_DLLTOOL=$DLLTOOL
  4592. # Extract the first word of "dlltool", so it can be a program name with args.
  4593. set dummy dlltool; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$ac_ct_DLLTOOL"; then
  4600. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4609. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4619. if test -n "$ac_ct_DLLTOOL"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4621. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. if test "x$ac_ct_DLLTOOL" = x; then
  4627. DLLTOOL="false"
  4628. else
  4629. case $cross_compiling:$ac_tool_warned in
  4630. yes:)
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4633. ac_tool_warned=yes ;;
  4634. esac
  4635. DLLTOOL=$ac_ct_DLLTOOL
  4636. fi
  4637. else
  4638. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4639. fi
  4640. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4642. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4643. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4647. case $host_os in
  4648. cygwin* | mingw* | pw32* | cegcc*)
  4649. # two different shell functions defined in ltmain.sh
  4650. # decide which to use based on capabilities of $DLLTOOL
  4651. case `$DLLTOOL --help 2>&1` in
  4652. *--identify-strict*)
  4653. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4654. ;;
  4655. *)
  4656. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4657. ;;
  4658. esac
  4659. ;;
  4660. *)
  4661. # fallback: assume linklib IS sharedlib
  4662. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4663. ;;
  4664. esac
  4665. fi
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4667. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4668. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4669. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4670. if test -n "$ac_tool_prefix"; then
  4671. for ac_prog in ar
  4672. do
  4673. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4674. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4676. $as_echo_n "checking for $ac_word... " >&6; }
  4677. if ${ac_cv_prog_AR+:} false; then :
  4678. $as_echo_n "(cached) " >&6
  4679. else
  4680. if test -n "$AR"; then
  4681. ac_cv_prog_AR="$AR" # Let the user override the test.
  4682. else
  4683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4684. for as_dir in $PATH
  4685. do
  4686. IFS=$as_save_IFS
  4687. test -z "$as_dir" && as_dir=.
  4688. for ac_exec_ext in '' $ac_executable_extensions; do
  4689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4690. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4692. break 2
  4693. fi
  4694. done
  4695. done
  4696. IFS=$as_save_IFS
  4697. fi
  4698. fi
  4699. AR=$ac_cv_prog_AR
  4700. if test -n "$AR"; then
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4702. $as_echo "$AR" >&6; }
  4703. else
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4705. $as_echo "no" >&6; }
  4706. fi
  4707. test -n "$AR" && break
  4708. done
  4709. fi
  4710. if test -z "$AR"; then
  4711. ac_ct_AR=$AR
  4712. for ac_prog in ar
  4713. do
  4714. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4715. set dummy $ac_prog; ac_word=$2
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4717. $as_echo_n "checking for $ac_word... " >&6; }
  4718. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4719. $as_echo_n "(cached) " >&6
  4720. else
  4721. if test -n "$ac_ct_AR"; then
  4722. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4723. else
  4724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4725. for as_dir in $PATH
  4726. do
  4727. IFS=$as_save_IFS
  4728. test -z "$as_dir" && as_dir=.
  4729. for ac_exec_ext in '' $ac_executable_extensions; do
  4730. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4731. ac_cv_prog_ac_ct_AR="$ac_prog"
  4732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4733. break 2
  4734. fi
  4735. done
  4736. done
  4737. IFS=$as_save_IFS
  4738. fi
  4739. fi
  4740. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4741. if test -n "$ac_ct_AR"; then
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4743. $as_echo "$ac_ct_AR" >&6; }
  4744. else
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4746. $as_echo "no" >&6; }
  4747. fi
  4748. test -n "$ac_ct_AR" && break
  4749. done
  4750. if test "x$ac_ct_AR" = x; then
  4751. AR="false"
  4752. else
  4753. case $cross_compiling:$ac_tool_warned in
  4754. yes:)
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4757. ac_tool_warned=yes ;;
  4758. esac
  4759. AR=$ac_ct_AR
  4760. fi
  4761. fi
  4762. : ${AR=ar}
  4763. : ${AR_FLAGS=cru}
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4765. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4766. if ${lt_cv_ar_at_file+:} false; then :
  4767. $as_echo_n "(cached) " >&6
  4768. else
  4769. lt_cv_ar_at_file=no
  4770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4771. /* end confdefs.h. */
  4772. int
  4773. main ()
  4774. {
  4775. ;
  4776. return 0;
  4777. }
  4778. _ACEOF
  4779. if ac_fn_c_try_compile "$LINENO"; then :
  4780. echo conftest.$ac_objext > conftest.lst
  4781. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4782. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4783. (eval $lt_ar_try) 2>&5
  4784. ac_status=$?
  4785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4786. test $ac_status = 0; }
  4787. if test "$ac_status" -eq 0; then
  4788. # Ensure the archiver fails upon bogus file names.
  4789. rm -f conftest.$ac_objext libconftest.a
  4790. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4791. (eval $lt_ar_try) 2>&5
  4792. ac_status=$?
  4793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4794. test $ac_status = 0; }
  4795. if test "$ac_status" -ne 0; then
  4796. lt_cv_ar_at_file=@
  4797. fi
  4798. fi
  4799. rm -f conftest.* libconftest.a
  4800. fi
  4801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4802. fi
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4804. $as_echo "$lt_cv_ar_at_file" >&6; }
  4805. if test "x$lt_cv_ar_at_file" = xno; then
  4806. archiver_list_spec=
  4807. else
  4808. archiver_list_spec=$lt_cv_ar_at_file
  4809. fi
  4810. if test -n "$ac_tool_prefix"; then
  4811. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4812. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4814. $as_echo_n "checking for $ac_word... " >&6; }
  4815. if ${ac_cv_prog_STRIP+:} false; then :
  4816. $as_echo_n "(cached) " >&6
  4817. else
  4818. if test -n "$STRIP"; then
  4819. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4820. else
  4821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4822. for as_dir in $PATH
  4823. do
  4824. IFS=$as_save_IFS
  4825. test -z "$as_dir" && as_dir=.
  4826. for ac_exec_ext in '' $ac_executable_extensions; do
  4827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4828. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4830. break 2
  4831. fi
  4832. done
  4833. done
  4834. IFS=$as_save_IFS
  4835. fi
  4836. fi
  4837. STRIP=$ac_cv_prog_STRIP
  4838. if test -n "$STRIP"; then
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4840. $as_echo "$STRIP" >&6; }
  4841. else
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4843. $as_echo "no" >&6; }
  4844. fi
  4845. fi
  4846. if test -z "$ac_cv_prog_STRIP"; then
  4847. ac_ct_STRIP=$STRIP
  4848. # Extract the first word of "strip", so it can be a program name with args.
  4849. set dummy strip; ac_word=$2
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4851. $as_echo_n "checking for $ac_word... " >&6; }
  4852. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. if test -n "$ac_ct_STRIP"; then
  4856. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4857. else
  4858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4859. for as_dir in $PATH
  4860. do
  4861. IFS=$as_save_IFS
  4862. test -z "$as_dir" && as_dir=.
  4863. for ac_exec_ext in '' $ac_executable_extensions; do
  4864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4865. ac_cv_prog_ac_ct_STRIP="strip"
  4866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4867. break 2
  4868. fi
  4869. done
  4870. done
  4871. IFS=$as_save_IFS
  4872. fi
  4873. fi
  4874. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4875. if test -n "$ac_ct_STRIP"; then
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4877. $as_echo "$ac_ct_STRIP" >&6; }
  4878. else
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4880. $as_echo "no" >&6; }
  4881. fi
  4882. if test "x$ac_ct_STRIP" = x; then
  4883. STRIP=":"
  4884. else
  4885. case $cross_compiling:$ac_tool_warned in
  4886. yes:)
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4888. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4889. ac_tool_warned=yes ;;
  4890. esac
  4891. STRIP=$ac_ct_STRIP
  4892. fi
  4893. else
  4894. STRIP="$ac_cv_prog_STRIP"
  4895. fi
  4896. test -z "$STRIP" && STRIP=:
  4897. if test -n "$ac_tool_prefix"; then
  4898. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4899. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4901. $as_echo_n "checking for $ac_word... " >&6; }
  4902. if ${ac_cv_prog_RANLIB+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. if test -n "$RANLIB"; then
  4906. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4907. else
  4908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4909. for as_dir in $PATH
  4910. do
  4911. IFS=$as_save_IFS
  4912. test -z "$as_dir" && as_dir=.
  4913. for ac_exec_ext in '' $ac_executable_extensions; do
  4914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4915. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4917. break 2
  4918. fi
  4919. done
  4920. done
  4921. IFS=$as_save_IFS
  4922. fi
  4923. fi
  4924. RANLIB=$ac_cv_prog_RANLIB
  4925. if test -n "$RANLIB"; then
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4927. $as_echo "$RANLIB" >&6; }
  4928. else
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4930. $as_echo "no" >&6; }
  4931. fi
  4932. fi
  4933. if test -z "$ac_cv_prog_RANLIB"; then
  4934. ac_ct_RANLIB=$RANLIB
  4935. # Extract the first word of "ranlib", so it can be a program name with args.
  4936. set dummy ranlib; ac_word=$2
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4938. $as_echo_n "checking for $ac_word... " >&6; }
  4939. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4940. $as_echo_n "(cached) " >&6
  4941. else
  4942. if test -n "$ac_ct_RANLIB"; then
  4943. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4944. else
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH
  4947. do
  4948. IFS=$as_save_IFS
  4949. test -z "$as_dir" && as_dir=.
  4950. for ac_exec_ext in '' $ac_executable_extensions; do
  4951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4952. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4954. break 2
  4955. fi
  4956. done
  4957. done
  4958. IFS=$as_save_IFS
  4959. fi
  4960. fi
  4961. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4962. if test -n "$ac_ct_RANLIB"; then
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4964. $as_echo "$ac_ct_RANLIB" >&6; }
  4965. else
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4967. $as_echo "no" >&6; }
  4968. fi
  4969. if test "x$ac_ct_RANLIB" = x; then
  4970. RANLIB=":"
  4971. else
  4972. case $cross_compiling:$ac_tool_warned in
  4973. yes:)
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4975. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4976. ac_tool_warned=yes ;;
  4977. esac
  4978. RANLIB=$ac_ct_RANLIB
  4979. fi
  4980. else
  4981. RANLIB="$ac_cv_prog_RANLIB"
  4982. fi
  4983. test -z "$RANLIB" && RANLIB=:
  4984. # Determine commands to create old-style static archives.
  4985. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4986. old_postinstall_cmds='chmod 644 $oldlib'
  4987. old_postuninstall_cmds=
  4988. if test -n "$RANLIB"; then
  4989. case $host_os in
  4990. openbsd*)
  4991. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4992. ;;
  4993. *)
  4994. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4995. ;;
  4996. esac
  4997. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4998. fi
  4999. case $host_os in
  5000. darwin*)
  5001. lock_old_archive_extraction=yes ;;
  5002. *)
  5003. lock_old_archive_extraction=no ;;
  5004. esac
  5005. for ac_prog in gawk mawk nawk awk
  5006. do
  5007. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5008. set dummy $ac_prog; ac_word=$2
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5010. $as_echo_n "checking for $ac_word... " >&6; }
  5011. if ${ac_cv_prog_AWK+:} false; then :
  5012. $as_echo_n "(cached) " >&6
  5013. else
  5014. if test -n "$AWK"; then
  5015. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5016. else
  5017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5018. for as_dir in $PATH
  5019. do
  5020. IFS=$as_save_IFS
  5021. test -z "$as_dir" && as_dir=.
  5022. for ac_exec_ext in '' $ac_executable_extensions; do
  5023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5024. ac_cv_prog_AWK="$ac_prog"
  5025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5026. break 2
  5027. fi
  5028. done
  5029. done
  5030. IFS=$as_save_IFS
  5031. fi
  5032. fi
  5033. AWK=$ac_cv_prog_AWK
  5034. if test -n "$AWK"; then
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5036. $as_echo "$AWK" >&6; }
  5037. else
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5039. $as_echo "no" >&6; }
  5040. fi
  5041. test -n "$AWK" && break
  5042. done
  5043. # If no C compiler was specified, use CC.
  5044. LTCC=${LTCC-"$CC"}
  5045. # If no C compiler flags were specified, use CFLAGS.
  5046. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5047. # Allow CC to be a program name with arguments.
  5048. compiler=$CC
  5049. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5051. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5052. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5053. $as_echo_n "(cached) " >&6
  5054. else
  5055. # These are sane defaults that work on at least a few old systems.
  5056. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5057. # Character class describing NM global symbol codes.
  5058. symcode='[BCDEGRST]'
  5059. # Regexp to match symbols that can be accessed directly from C.
  5060. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5061. # Define system-specific variables.
  5062. case $host_os in
  5063. aix*)
  5064. symcode='[BCDT]'
  5065. ;;
  5066. cygwin* | mingw* | pw32* | cegcc*)
  5067. symcode='[ABCDGISTW]'
  5068. ;;
  5069. hpux*)
  5070. if test "$host_cpu" = ia64; then
  5071. symcode='[ABCDEGRST]'
  5072. fi
  5073. ;;
  5074. irix* | nonstopux*)
  5075. symcode='[BCDEGRST]'
  5076. ;;
  5077. osf*)
  5078. symcode='[BCDEGQRST]'
  5079. ;;
  5080. solaris*)
  5081. symcode='[BDRT]'
  5082. ;;
  5083. sco3.2v5*)
  5084. symcode='[DT]'
  5085. ;;
  5086. sysv4.2uw2*)
  5087. symcode='[DT]'
  5088. ;;
  5089. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5090. symcode='[ABDT]'
  5091. ;;
  5092. sysv4)
  5093. symcode='[DFNSTU]'
  5094. ;;
  5095. esac
  5096. # If we're using GNU nm, then use its standard symbol codes.
  5097. case `$NM -V 2>&1` in
  5098. *GNU* | *'with BFD'*)
  5099. symcode='[ABCDGIRSTW]' ;;
  5100. esac
  5101. # Transform an extracted symbol line into a proper C declaration.
  5102. # Some systems (esp. on ia64) link data and code symbols differently,
  5103. # so use this general approach.
  5104. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5105. # Transform an extracted symbol line into symbol name and symbol address
  5106. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5107. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5108. # Handle CRLF in mingw tool chain
  5109. opt_cr=
  5110. case $build_os in
  5111. mingw*)
  5112. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5113. ;;
  5114. esac
  5115. # Try without a prefix underscore, then with it.
  5116. for ac_symprfx in "" "_"; do
  5117. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5118. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5119. # Write the raw and C identifiers.
  5120. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5121. # Fake it for dumpbin and say T for any non-static function
  5122. # and D for any global variable.
  5123. # Also find C++ and __fastcall symbols from MSVC++,
  5124. # which start with @ or ?.
  5125. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5126. " {last_section=section; section=\$ 3};"\
  5127. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5128. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5129. " \$ 0!~/External *\|/{next};"\
  5130. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5131. " {if(hide[section]) next};"\
  5132. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5133. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5134. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5135. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5136. " ' prfx=^$ac_symprfx"
  5137. else
  5138. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5139. fi
  5140. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5141. # Check to see that the pipe works correctly.
  5142. pipe_works=no
  5143. rm -f conftest*
  5144. cat > conftest.$ac_ext <<_LT_EOF
  5145. #ifdef __cplusplus
  5146. extern "C" {
  5147. #endif
  5148. char nm_test_var;
  5149. void nm_test_func(void);
  5150. void nm_test_func(void){}
  5151. #ifdef __cplusplus
  5152. }
  5153. #endif
  5154. int main(){nm_test_var='a';nm_test_func();return(0);}
  5155. _LT_EOF
  5156. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5157. (eval $ac_compile) 2>&5
  5158. ac_status=$?
  5159. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5160. test $ac_status = 0; }; then
  5161. # Now try to grab the symbols.
  5162. nlist=conftest.nm
  5163. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5164. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5165. ac_status=$?
  5166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5167. test $ac_status = 0; } && test -s "$nlist"; then
  5168. # Try sorting and uniquifying the output.
  5169. if sort "$nlist" | uniq > "$nlist"T; then
  5170. mv -f "$nlist"T "$nlist"
  5171. else
  5172. rm -f "$nlist"T
  5173. fi
  5174. # Make sure that we snagged all the symbols we need.
  5175. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5176. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5177. cat <<_LT_EOF > conftest.$ac_ext
  5178. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5179. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5180. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5181. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5182. # define LT_DLSYM_CONST
  5183. #elif defined(__osf__)
  5184. /* This system does not cope well with relocations in const data. */
  5185. # define LT_DLSYM_CONST
  5186. #else
  5187. # define LT_DLSYM_CONST const
  5188. #endif
  5189. #ifdef __cplusplus
  5190. extern "C" {
  5191. #endif
  5192. _LT_EOF
  5193. # Now generate the symbol file.
  5194. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5195. cat <<_LT_EOF >> conftest.$ac_ext
  5196. /* The mapping between symbol names and symbols. */
  5197. LT_DLSYM_CONST struct {
  5198. const char *name;
  5199. void *address;
  5200. }
  5201. lt__PROGRAM__LTX_preloaded_symbols[] =
  5202. {
  5203. { "@PROGRAM@", (void *) 0 },
  5204. _LT_EOF
  5205. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5206. cat <<\_LT_EOF >> conftest.$ac_ext
  5207. {0, (void *) 0}
  5208. };
  5209. /* This works around a problem in FreeBSD linker */
  5210. #ifdef FREEBSD_WORKAROUND
  5211. static const void *lt_preloaded_setup() {
  5212. return lt__PROGRAM__LTX_preloaded_symbols;
  5213. }
  5214. #endif
  5215. #ifdef __cplusplus
  5216. }
  5217. #endif
  5218. _LT_EOF
  5219. # Now try linking the two files.
  5220. mv conftest.$ac_objext conftstm.$ac_objext
  5221. lt_globsym_save_LIBS=$LIBS
  5222. lt_globsym_save_CFLAGS=$CFLAGS
  5223. LIBS="conftstm.$ac_objext"
  5224. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5225. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5226. (eval $ac_link) 2>&5
  5227. ac_status=$?
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5229. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5230. pipe_works=yes
  5231. fi
  5232. LIBS=$lt_globsym_save_LIBS
  5233. CFLAGS=$lt_globsym_save_CFLAGS
  5234. else
  5235. echo "cannot find nm_test_func in $nlist" >&5
  5236. fi
  5237. else
  5238. echo "cannot find nm_test_var in $nlist" >&5
  5239. fi
  5240. else
  5241. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5242. fi
  5243. else
  5244. echo "$progname: failed program was:" >&5
  5245. cat conftest.$ac_ext >&5
  5246. fi
  5247. rm -rf conftest* conftst*
  5248. # Do not use the global_symbol_pipe unless it works.
  5249. if test "$pipe_works" = yes; then
  5250. break
  5251. else
  5252. lt_cv_sys_global_symbol_pipe=
  5253. fi
  5254. done
  5255. fi
  5256. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5257. lt_cv_sys_global_symbol_to_cdecl=
  5258. fi
  5259. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5261. $as_echo "failed" >&6; }
  5262. else
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5264. $as_echo "ok" >&6; }
  5265. fi
  5266. # Response file support.
  5267. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5268. nm_file_list_spec='@'
  5269. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5270. nm_file_list_spec='@'
  5271. fi
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5273. $as_echo_n "checking for sysroot... " >&6; }
  5274. # Check whether --with-sysroot was given.
  5275. if test "${with_sysroot+set}" = set; then :
  5276. withval=$with_sysroot;
  5277. else
  5278. with_sysroot=no
  5279. fi
  5280. lt_sysroot=
  5281. case ${with_sysroot} in #(
  5282. yes)
  5283. if test "$GCC" = yes; then
  5284. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5285. fi
  5286. ;; #(
  5287. /*)
  5288. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5289. ;; #(
  5290. no|'')
  5291. ;; #(
  5292. *)
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5294. $as_echo "${with_sysroot}" >&6; }
  5295. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5296. ;;
  5297. esac
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5299. $as_echo "${lt_sysroot:-no}" >&6; }
  5300. # Check whether --enable-libtool-lock was given.
  5301. if test "${enable_libtool_lock+set}" = set; then :
  5302. enableval=$enable_libtool_lock;
  5303. fi
  5304. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5305. # Some flags need to be propagated to the compiler or linker for good
  5306. # libtool support.
  5307. case $host in
  5308. ia64-*-hpux*)
  5309. # Find out which ABI we are using.
  5310. echo 'int i;' > conftest.$ac_ext
  5311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5312. (eval $ac_compile) 2>&5
  5313. ac_status=$?
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5315. test $ac_status = 0; }; then
  5316. case `/usr/bin/file conftest.$ac_objext` in
  5317. *ELF-32*)
  5318. HPUX_IA64_MODE="32"
  5319. ;;
  5320. *ELF-64*)
  5321. HPUX_IA64_MODE="64"
  5322. ;;
  5323. esac
  5324. fi
  5325. rm -rf conftest*
  5326. ;;
  5327. *-*-irix6*)
  5328. # Find out which ABI we are using.
  5329. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5331. (eval $ac_compile) 2>&5
  5332. ac_status=$?
  5333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5334. test $ac_status = 0; }; then
  5335. if test "$lt_cv_prog_gnu_ld" = yes; then
  5336. case `/usr/bin/file conftest.$ac_objext` in
  5337. *32-bit*)
  5338. LD="${LD-ld} -melf32bsmip"
  5339. ;;
  5340. *N32*)
  5341. LD="${LD-ld} -melf32bmipn32"
  5342. ;;
  5343. *64-bit*)
  5344. LD="${LD-ld} -melf64bmip"
  5345. ;;
  5346. esac
  5347. else
  5348. case `/usr/bin/file conftest.$ac_objext` in
  5349. *32-bit*)
  5350. LD="${LD-ld} -32"
  5351. ;;
  5352. *N32*)
  5353. LD="${LD-ld} -n32"
  5354. ;;
  5355. *64-bit*)
  5356. LD="${LD-ld} -64"
  5357. ;;
  5358. esac
  5359. fi
  5360. fi
  5361. rm -rf conftest*
  5362. ;;
  5363. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5364. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5365. # Find out which ABI we are using.
  5366. echo 'int i;' > conftest.$ac_ext
  5367. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5368. (eval $ac_compile) 2>&5
  5369. ac_status=$?
  5370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5371. test $ac_status = 0; }; then
  5372. case `/usr/bin/file conftest.o` in
  5373. *32-bit*)
  5374. case $host in
  5375. x86_64-*kfreebsd*-gnu)
  5376. LD="${LD-ld} -m elf_i386_fbsd"
  5377. ;;
  5378. x86_64-*linux*)
  5379. LD="${LD-ld} -m elf_i386"
  5380. ;;
  5381. ppc64-*linux*|powerpc64-*linux*)
  5382. LD="${LD-ld} -m elf32ppclinux"
  5383. ;;
  5384. s390x-*linux*)
  5385. LD="${LD-ld} -m elf_s390"
  5386. ;;
  5387. sparc64-*linux*)
  5388. LD="${LD-ld} -m elf32_sparc"
  5389. ;;
  5390. esac
  5391. ;;
  5392. *64-bit*)
  5393. case $host in
  5394. x86_64-*kfreebsd*-gnu)
  5395. LD="${LD-ld} -m elf_x86_64_fbsd"
  5396. ;;
  5397. x86_64-*linux*)
  5398. LD="${LD-ld} -m elf_x86_64"
  5399. ;;
  5400. powerpc64le-*linux*)
  5401. LD="${LD-ld} -m elf64lppc"
  5402. ;;
  5403. powerpc64-*linux*)
  5404. LD="${LD-ld} -m elf64ppc"
  5405. ;;
  5406. s390*-*linux*|s390*-*tpf*)
  5407. LD="${LD-ld} -m elf64_s390"
  5408. ;;
  5409. sparc*-*linux*)
  5410. LD="${LD-ld} -m elf64_sparc"
  5411. ;;
  5412. esac
  5413. ;;
  5414. esac
  5415. fi
  5416. rm -rf conftest*
  5417. ;;
  5418. *-*-sco3.2v5*)
  5419. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5420. SAVE_CFLAGS="$CFLAGS"
  5421. CFLAGS="$CFLAGS -belf"
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5423. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5424. if ${lt_cv_cc_needs_belf+:} false; then :
  5425. $as_echo_n "(cached) " >&6
  5426. else
  5427. ac_ext=c
  5428. ac_cpp='$CPP $CPPFLAGS'
  5429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5433. /* end confdefs.h. */
  5434. int
  5435. main ()
  5436. {
  5437. ;
  5438. return 0;
  5439. }
  5440. _ACEOF
  5441. if ac_fn_c_try_link "$LINENO"; then :
  5442. lt_cv_cc_needs_belf=yes
  5443. else
  5444. lt_cv_cc_needs_belf=no
  5445. fi
  5446. rm -f core conftest.err conftest.$ac_objext \
  5447. conftest$ac_exeext conftest.$ac_ext
  5448. ac_ext=c
  5449. ac_cpp='$CPP $CPPFLAGS'
  5450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5453. fi
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5455. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5456. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5457. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5458. CFLAGS="$SAVE_CFLAGS"
  5459. fi
  5460. ;;
  5461. *-*solaris*)
  5462. # Find out which ABI we are using.
  5463. echo 'int i;' > conftest.$ac_ext
  5464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5465. (eval $ac_compile) 2>&5
  5466. ac_status=$?
  5467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5468. test $ac_status = 0; }; then
  5469. case `/usr/bin/file conftest.o` in
  5470. *64-bit*)
  5471. case $lt_cv_prog_gnu_ld in
  5472. yes*)
  5473. case $host in
  5474. i?86-*-solaris*)
  5475. LD="${LD-ld} -m elf_x86_64"
  5476. ;;
  5477. sparc*-*-solaris*)
  5478. LD="${LD-ld} -m elf64_sparc"
  5479. ;;
  5480. esac
  5481. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5482. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5483. LD="${LD-ld}_sol2"
  5484. fi
  5485. ;;
  5486. *)
  5487. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5488. LD="${LD-ld} -64"
  5489. fi
  5490. ;;
  5491. esac
  5492. ;;
  5493. esac
  5494. fi
  5495. rm -rf conftest*
  5496. ;;
  5497. esac
  5498. need_locks="$enable_libtool_lock"
  5499. if test -n "$ac_tool_prefix"; then
  5500. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5501. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5503. $as_echo_n "checking for $ac_word... " >&6; }
  5504. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. if test -n "$MANIFEST_TOOL"; then
  5508. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5509. else
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH
  5512. do
  5513. IFS=$as_save_IFS
  5514. test -z "$as_dir" && as_dir=.
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5517. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. IFS=$as_save_IFS
  5524. fi
  5525. fi
  5526. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5527. if test -n "$MANIFEST_TOOL"; then
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5529. $as_echo "$MANIFEST_TOOL" >&6; }
  5530. else
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5532. $as_echo "no" >&6; }
  5533. fi
  5534. fi
  5535. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5536. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5537. # Extract the first word of "mt", so it can be a program name with args.
  5538. set dummy mt; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5545. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5554. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5564. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5566. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5572. MANIFEST_TOOL=":"
  5573. else
  5574. case $cross_compiling:$ac_tool_warned in
  5575. yes:)
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5578. ac_tool_warned=yes ;;
  5579. esac
  5580. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5581. fi
  5582. else
  5583. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5584. fi
  5585. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5587. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5588. if ${lt_cv_path_mainfest_tool+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. lt_cv_path_mainfest_tool=no
  5592. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5593. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5594. cat conftest.err >&5
  5595. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5596. lt_cv_path_mainfest_tool=yes
  5597. fi
  5598. rm -f conftest*
  5599. fi
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5601. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5602. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5603. MANIFEST_TOOL=:
  5604. fi
  5605. case $host_os in
  5606. rhapsody* | darwin*)
  5607. if test -n "$ac_tool_prefix"; then
  5608. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5609. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5611. $as_echo_n "checking for $ac_word... " >&6; }
  5612. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. if test -n "$DSYMUTIL"; then
  5616. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5635. if test -n "$DSYMUTIL"; then
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5637. $as_echo "$DSYMUTIL" >&6; }
  5638. else
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5640. $as_echo "no" >&6; }
  5641. fi
  5642. fi
  5643. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5644. ac_ct_DSYMUTIL=$DSYMUTIL
  5645. # Extract the first word of "dsymutil", so it can be a program name with args.
  5646. set dummy dsymutil; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$ac_ct_DSYMUTIL"; then
  5653. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5672. if test -n "$ac_ct_DSYMUTIL"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5674. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_DSYMUTIL" = x; then
  5680. DSYMUTIL=":"
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. DSYMUTIL=$ac_ct_DSYMUTIL
  5689. fi
  5690. else
  5691. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5692. fi
  5693. if test -n "$ac_tool_prefix"; then
  5694. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5695. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5697. $as_echo_n "checking for $ac_word... " >&6; }
  5698. if ${ac_cv_prog_NMEDIT+:} false; then :
  5699. $as_echo_n "(cached) " >&6
  5700. else
  5701. if test -n "$NMEDIT"; then
  5702. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5703. else
  5704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705. for as_dir in $PATH
  5706. do
  5707. IFS=$as_save_IFS
  5708. test -z "$as_dir" && as_dir=.
  5709. for ac_exec_ext in '' $ac_executable_extensions; do
  5710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5711. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5713. break 2
  5714. fi
  5715. done
  5716. done
  5717. IFS=$as_save_IFS
  5718. fi
  5719. fi
  5720. NMEDIT=$ac_cv_prog_NMEDIT
  5721. if test -n "$NMEDIT"; then
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5723. $as_echo "$NMEDIT" >&6; }
  5724. else
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5726. $as_echo "no" >&6; }
  5727. fi
  5728. fi
  5729. if test -z "$ac_cv_prog_NMEDIT"; then
  5730. ac_ct_NMEDIT=$NMEDIT
  5731. # Extract the first word of "nmedit", so it can be a program name with args.
  5732. set dummy nmedit; ac_word=$2
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$ac_ct_NMEDIT"; then
  5739. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5748. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5758. if test -n "$ac_ct_NMEDIT"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5760. $as_echo "$ac_ct_NMEDIT" >&6; }
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. if test "x$ac_ct_NMEDIT" = x; then
  5766. NMEDIT=":"
  5767. else
  5768. case $cross_compiling:$ac_tool_warned in
  5769. yes:)
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5772. ac_tool_warned=yes ;;
  5773. esac
  5774. NMEDIT=$ac_ct_NMEDIT
  5775. fi
  5776. else
  5777. NMEDIT="$ac_cv_prog_NMEDIT"
  5778. fi
  5779. if test -n "$ac_tool_prefix"; then
  5780. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5781. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. $as_echo_n "checking for $ac_word... " >&6; }
  5784. if ${ac_cv_prog_LIPO+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if test -n "$LIPO"; then
  5788. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5789. else
  5790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5791. for as_dir in $PATH
  5792. do
  5793. IFS=$as_save_IFS
  5794. test -z "$as_dir" && as_dir=.
  5795. for ac_exec_ext in '' $ac_executable_extensions; do
  5796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5797. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5799. break 2
  5800. fi
  5801. done
  5802. done
  5803. IFS=$as_save_IFS
  5804. fi
  5805. fi
  5806. LIPO=$ac_cv_prog_LIPO
  5807. if test -n "$LIPO"; then
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5809. $as_echo "$LIPO" >&6; }
  5810. else
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5812. $as_echo "no" >&6; }
  5813. fi
  5814. fi
  5815. if test -z "$ac_cv_prog_LIPO"; then
  5816. ac_ct_LIPO=$LIPO
  5817. # Extract the first word of "lipo", so it can be a program name with args.
  5818. set dummy lipo; ac_word=$2
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. $as_echo_n "checking for $ac_word... " >&6; }
  5821. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if test -n "$ac_ct_LIPO"; then
  5825. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. test -z "$as_dir" && as_dir=.
  5832. for ac_exec_ext in '' $ac_executable_extensions; do
  5833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5834. ac_cv_prog_ac_ct_LIPO="lipo"
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5836. break 2
  5837. fi
  5838. done
  5839. done
  5840. IFS=$as_save_IFS
  5841. fi
  5842. fi
  5843. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5844. if test -n "$ac_ct_LIPO"; then
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5846. $as_echo "$ac_ct_LIPO" >&6; }
  5847. else
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5849. $as_echo "no" >&6; }
  5850. fi
  5851. if test "x$ac_ct_LIPO" = x; then
  5852. LIPO=":"
  5853. else
  5854. case $cross_compiling:$ac_tool_warned in
  5855. yes:)
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5858. ac_tool_warned=yes ;;
  5859. esac
  5860. LIPO=$ac_ct_LIPO
  5861. fi
  5862. else
  5863. LIPO="$ac_cv_prog_LIPO"
  5864. fi
  5865. if test -n "$ac_tool_prefix"; then
  5866. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5867. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5869. $as_echo_n "checking for $ac_word... " >&6; }
  5870. if ${ac_cv_prog_OTOOL+:} false; then :
  5871. $as_echo_n "(cached) " >&6
  5872. else
  5873. if test -n "$OTOOL"; then
  5874. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5875. else
  5876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5877. for as_dir in $PATH
  5878. do
  5879. IFS=$as_save_IFS
  5880. test -z "$as_dir" && as_dir=.
  5881. for ac_exec_ext in '' $ac_executable_extensions; do
  5882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5883. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5885. break 2
  5886. fi
  5887. done
  5888. done
  5889. IFS=$as_save_IFS
  5890. fi
  5891. fi
  5892. OTOOL=$ac_cv_prog_OTOOL
  5893. if test -n "$OTOOL"; then
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5895. $as_echo "$OTOOL" >&6; }
  5896. else
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5898. $as_echo "no" >&6; }
  5899. fi
  5900. fi
  5901. if test -z "$ac_cv_prog_OTOOL"; then
  5902. ac_ct_OTOOL=$OTOOL
  5903. # Extract the first word of "otool", so it can be a program name with args.
  5904. set dummy otool; ac_word=$2
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5906. $as_echo_n "checking for $ac_word... " >&6; }
  5907. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. if test -n "$ac_ct_OTOOL"; then
  5911. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5912. else
  5913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5914. for as_dir in $PATH
  5915. do
  5916. IFS=$as_save_IFS
  5917. test -z "$as_dir" && as_dir=.
  5918. for ac_exec_ext in '' $ac_executable_extensions; do
  5919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5920. ac_cv_prog_ac_ct_OTOOL="otool"
  5921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5922. break 2
  5923. fi
  5924. done
  5925. done
  5926. IFS=$as_save_IFS
  5927. fi
  5928. fi
  5929. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5930. if test -n "$ac_ct_OTOOL"; then
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5932. $as_echo "$ac_ct_OTOOL" >&6; }
  5933. else
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5935. $as_echo "no" >&6; }
  5936. fi
  5937. if test "x$ac_ct_OTOOL" = x; then
  5938. OTOOL=":"
  5939. else
  5940. case $cross_compiling:$ac_tool_warned in
  5941. yes:)
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5944. ac_tool_warned=yes ;;
  5945. esac
  5946. OTOOL=$ac_ct_OTOOL
  5947. fi
  5948. else
  5949. OTOOL="$ac_cv_prog_OTOOL"
  5950. fi
  5951. if test -n "$ac_tool_prefix"; then
  5952. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5953. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_OTOOL64+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$OTOOL64"; then
  5960. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. OTOOL64=$ac_cv_prog_OTOOL64
  5979. if test -n "$OTOOL64"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5981. $as_echo "$OTOOL64" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. fi
  5987. if test -z "$ac_cv_prog_OTOOL64"; then
  5988. ac_ct_OTOOL64=$OTOOL64
  5989. # Extract the first word of "otool64", so it can be a program name with args.
  5990. set dummy otool64; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$ac_ct_OTOOL64"; then
  5997. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6006. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6016. if test -n "$ac_ct_OTOOL64"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6018. $as_echo "$ac_ct_OTOOL64" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. if test "x$ac_ct_OTOOL64" = x; then
  6024. OTOOL64=":"
  6025. else
  6026. case $cross_compiling:$ac_tool_warned in
  6027. yes:)
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6030. ac_tool_warned=yes ;;
  6031. esac
  6032. OTOOL64=$ac_ct_OTOOL64
  6033. fi
  6034. else
  6035. OTOOL64="$ac_cv_prog_OTOOL64"
  6036. fi
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6038. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6039. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. lt_cv_apple_cc_single_mod=no
  6043. if test -z "${LT_MULTI_MODULE}"; then
  6044. # By default we will add the -single_module flag. You can override
  6045. # by either setting the environment variable LT_MULTI_MODULE
  6046. # non-empty at configure time, or by adding -multi_module to the
  6047. # link flags.
  6048. rm -rf libconftest.dylib*
  6049. echo "int foo(void){return 1;}" > conftest.c
  6050. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6051. -dynamiclib -Wl,-single_module conftest.c" >&5
  6052. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6053. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6054. _lt_result=$?
  6055. # If there is a non-empty error log, and "single_module"
  6056. # appears in it, assume the flag caused a linker warning
  6057. if test -s conftest.err && $GREP single_module conftest.err; then
  6058. cat conftest.err >&5
  6059. # Otherwise, if the output was created with a 0 exit code from
  6060. # the compiler, it worked.
  6061. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6062. lt_cv_apple_cc_single_mod=yes
  6063. else
  6064. cat conftest.err >&5
  6065. fi
  6066. rm -rf libconftest.dylib*
  6067. rm -f conftest.*
  6068. fi
  6069. fi
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6071. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6073. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6074. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. lt_cv_ld_exported_symbols_list=no
  6078. save_LDFLAGS=$LDFLAGS
  6079. echo "_main" > conftest.sym
  6080. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6082. /* end confdefs.h. */
  6083. int
  6084. main ()
  6085. {
  6086. ;
  6087. return 0;
  6088. }
  6089. _ACEOF
  6090. if ac_fn_c_try_link "$LINENO"; then :
  6091. lt_cv_ld_exported_symbols_list=yes
  6092. else
  6093. lt_cv_ld_exported_symbols_list=no
  6094. fi
  6095. rm -f core conftest.err conftest.$ac_objext \
  6096. conftest$ac_exeext conftest.$ac_ext
  6097. LDFLAGS="$save_LDFLAGS"
  6098. fi
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6100. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6102. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6103. if ${lt_cv_ld_force_load+:} false; then :
  6104. $as_echo_n "(cached) " >&6
  6105. else
  6106. lt_cv_ld_force_load=no
  6107. cat > conftest.c << _LT_EOF
  6108. int forced_loaded() { return 2;}
  6109. _LT_EOF
  6110. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6111. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6112. echo "$AR cru libconftest.a conftest.o" >&5
  6113. $AR cru libconftest.a conftest.o 2>&5
  6114. echo "$RANLIB libconftest.a" >&5
  6115. $RANLIB libconftest.a 2>&5
  6116. cat > conftest.c << _LT_EOF
  6117. int main() { return 0;}
  6118. _LT_EOF
  6119. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6120. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6121. _lt_result=$?
  6122. if test -s conftest.err && $GREP force_load conftest.err; then
  6123. cat conftest.err >&5
  6124. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6125. lt_cv_ld_force_load=yes
  6126. else
  6127. cat conftest.err >&5
  6128. fi
  6129. rm -f conftest.err libconftest.a conftest conftest.c
  6130. rm -rf conftest.dSYM
  6131. fi
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6133. $as_echo "$lt_cv_ld_force_load" >&6; }
  6134. case $host_os in
  6135. rhapsody* | darwin1.[012])
  6136. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6137. darwin1.*)
  6138. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6139. darwin*)
  6140. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6141. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6142. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6143. *)
  6144. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6145. esac
  6146. ;;
  6147. esac
  6148. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6149. _lt_dar_single_mod='$single_module'
  6150. fi
  6151. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6152. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6153. else
  6154. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6155. fi
  6156. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6157. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6158. else
  6159. _lt_dsymutil=
  6160. fi
  6161. ;;
  6162. esac
  6163. ac_ext=c
  6164. ac_cpp='$CPP $CPPFLAGS'
  6165. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6166. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6167. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6169. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6170. # On Suns, sometimes $CPP names a directory.
  6171. if test -n "$CPP" && test -d "$CPP"; then
  6172. CPP=
  6173. fi
  6174. if test -z "$CPP"; then
  6175. if ${ac_cv_prog_CPP+:} false; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. # Double quotes because CPP needs to be expanded
  6179. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6180. do
  6181. ac_preproc_ok=false
  6182. for ac_c_preproc_warn_flag in '' yes
  6183. do
  6184. # Use a header file that comes with gcc, so configuring glibc
  6185. # with a fresh cross-compiler works.
  6186. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6187. # <limits.h> exists even on freestanding compilers.
  6188. # On the NeXT, cc -E runs the code through the compiler's parser,
  6189. # not just through cpp. "Syntax error" is here to catch this case.
  6190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6191. /* end confdefs.h. */
  6192. #ifdef __STDC__
  6193. # include <limits.h>
  6194. #else
  6195. # include <assert.h>
  6196. #endif
  6197. Syntax error
  6198. _ACEOF
  6199. if ac_fn_c_try_cpp "$LINENO"; then :
  6200. else
  6201. # Broken: fails on valid input.
  6202. continue
  6203. fi
  6204. rm -f conftest.err conftest.i conftest.$ac_ext
  6205. # OK, works on sane cases. Now check whether nonexistent headers
  6206. # can be detected and how.
  6207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6208. /* end confdefs.h. */
  6209. #include <ac_nonexistent.h>
  6210. _ACEOF
  6211. if ac_fn_c_try_cpp "$LINENO"; then :
  6212. # Broken: success on invalid input.
  6213. continue
  6214. else
  6215. # Passes both tests.
  6216. ac_preproc_ok=:
  6217. break
  6218. fi
  6219. rm -f conftest.err conftest.i conftest.$ac_ext
  6220. done
  6221. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6222. rm -f conftest.i conftest.err conftest.$ac_ext
  6223. if $ac_preproc_ok; then :
  6224. break
  6225. fi
  6226. done
  6227. ac_cv_prog_CPP=$CPP
  6228. fi
  6229. CPP=$ac_cv_prog_CPP
  6230. else
  6231. ac_cv_prog_CPP=$CPP
  6232. fi
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6234. $as_echo "$CPP" >&6; }
  6235. ac_preproc_ok=false
  6236. for ac_c_preproc_warn_flag in '' yes
  6237. do
  6238. # Use a header file that comes with gcc, so configuring glibc
  6239. # with a fresh cross-compiler works.
  6240. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6241. # <limits.h> exists even on freestanding compilers.
  6242. # On the NeXT, cc -E runs the code through the compiler's parser,
  6243. # not just through cpp. "Syntax error" is here to catch this case.
  6244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6245. /* end confdefs.h. */
  6246. #ifdef __STDC__
  6247. # include <limits.h>
  6248. #else
  6249. # include <assert.h>
  6250. #endif
  6251. Syntax error
  6252. _ACEOF
  6253. if ac_fn_c_try_cpp "$LINENO"; then :
  6254. else
  6255. # Broken: fails on valid input.
  6256. continue
  6257. fi
  6258. rm -f conftest.err conftest.i conftest.$ac_ext
  6259. # OK, works on sane cases. Now check whether nonexistent headers
  6260. # can be detected and how.
  6261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6262. /* end confdefs.h. */
  6263. #include <ac_nonexistent.h>
  6264. _ACEOF
  6265. if ac_fn_c_try_cpp "$LINENO"; then :
  6266. # Broken: success on invalid input.
  6267. continue
  6268. else
  6269. # Passes both tests.
  6270. ac_preproc_ok=:
  6271. break
  6272. fi
  6273. rm -f conftest.err conftest.i conftest.$ac_ext
  6274. done
  6275. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6276. rm -f conftest.i conftest.err conftest.$ac_ext
  6277. if $ac_preproc_ok; then :
  6278. else
  6279. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6281. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6282. See \`config.log' for more details" "$LINENO" 5; }
  6283. fi
  6284. ac_ext=c
  6285. ac_cpp='$CPP $CPPFLAGS'
  6286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6290. $as_echo_n "checking for ANSI C header files... " >&6; }
  6291. if ${ac_cv_header_stdc+:} false; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6295. /* end confdefs.h. */
  6296. #include <stdlib.h>
  6297. #include <stdarg.h>
  6298. #include <string.h>
  6299. #include <float.h>
  6300. int
  6301. main ()
  6302. {
  6303. ;
  6304. return 0;
  6305. }
  6306. _ACEOF
  6307. if ac_fn_c_try_compile "$LINENO"; then :
  6308. ac_cv_header_stdc=yes
  6309. else
  6310. ac_cv_header_stdc=no
  6311. fi
  6312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6313. if test $ac_cv_header_stdc = yes; then
  6314. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6316. /* end confdefs.h. */
  6317. #include <string.h>
  6318. _ACEOF
  6319. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6320. $EGREP "memchr" >/dev/null 2>&1; then :
  6321. else
  6322. ac_cv_header_stdc=no
  6323. fi
  6324. rm -f conftest*
  6325. fi
  6326. if test $ac_cv_header_stdc = yes; then
  6327. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6329. /* end confdefs.h. */
  6330. #include <stdlib.h>
  6331. _ACEOF
  6332. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6333. $EGREP "free" >/dev/null 2>&1; then :
  6334. else
  6335. ac_cv_header_stdc=no
  6336. fi
  6337. rm -f conftest*
  6338. fi
  6339. if test $ac_cv_header_stdc = yes; then
  6340. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6341. if test "$cross_compiling" = yes; then :
  6342. :
  6343. else
  6344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6345. /* end confdefs.h. */
  6346. #include <ctype.h>
  6347. #include <stdlib.h>
  6348. #if ((' ' & 0x0FF) == 0x020)
  6349. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6350. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6351. #else
  6352. # define ISLOWER(c) \
  6353. (('a' <= (c) && (c) <= 'i') \
  6354. || ('j' <= (c) && (c) <= 'r') \
  6355. || ('s' <= (c) && (c) <= 'z'))
  6356. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6357. #endif
  6358. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6359. int
  6360. main ()
  6361. {
  6362. int i;
  6363. for (i = 0; i < 256; i++)
  6364. if (XOR (islower (i), ISLOWER (i))
  6365. || toupper (i) != TOUPPER (i))
  6366. return 2;
  6367. return 0;
  6368. }
  6369. _ACEOF
  6370. if ac_fn_c_try_run "$LINENO"; then :
  6371. else
  6372. ac_cv_header_stdc=no
  6373. fi
  6374. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6375. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6376. fi
  6377. fi
  6378. fi
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6380. $as_echo "$ac_cv_header_stdc" >&6; }
  6381. if test $ac_cv_header_stdc = yes; then
  6382. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6383. fi
  6384. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6385. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6386. inttypes.h stdint.h unistd.h
  6387. do :
  6388. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6389. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6390. "
  6391. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6392. cat >>confdefs.h <<_ACEOF
  6393. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6394. _ACEOF
  6395. fi
  6396. done
  6397. for ac_header in dlfcn.h
  6398. do :
  6399. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6400. "
  6401. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6402. cat >>confdefs.h <<_ACEOF
  6403. #define HAVE_DLFCN_H 1
  6404. _ACEOF
  6405. fi
  6406. done
  6407. # Set options
  6408. enable_win32_dll=yes
  6409. case $host in
  6410. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6411. if test -n "$ac_tool_prefix"; then
  6412. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6413. set dummy ${ac_tool_prefix}as; ac_word=$2
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6415. $as_echo_n "checking for $ac_word... " >&6; }
  6416. if ${ac_cv_prog_AS+:} false; then :
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. if test -n "$AS"; then
  6420. ac_cv_prog_AS="$AS" # Let the user override the test.
  6421. else
  6422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6423. for as_dir in $PATH
  6424. do
  6425. IFS=$as_save_IFS
  6426. test -z "$as_dir" && as_dir=.
  6427. for ac_exec_ext in '' $ac_executable_extensions; do
  6428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6429. ac_cv_prog_AS="${ac_tool_prefix}as"
  6430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6431. break 2
  6432. fi
  6433. done
  6434. done
  6435. IFS=$as_save_IFS
  6436. fi
  6437. fi
  6438. AS=$ac_cv_prog_AS
  6439. if test -n "$AS"; then
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6441. $as_echo "$AS" >&6; }
  6442. else
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6444. $as_echo "no" >&6; }
  6445. fi
  6446. fi
  6447. if test -z "$ac_cv_prog_AS"; then
  6448. ac_ct_AS=$AS
  6449. # Extract the first word of "as", so it can be a program name with args.
  6450. set dummy as; ac_word=$2
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6452. $as_echo_n "checking for $ac_word... " >&6; }
  6453. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6454. $as_echo_n "(cached) " >&6
  6455. else
  6456. if test -n "$ac_ct_AS"; then
  6457. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6458. else
  6459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6460. for as_dir in $PATH
  6461. do
  6462. IFS=$as_save_IFS
  6463. test -z "$as_dir" && as_dir=.
  6464. for ac_exec_ext in '' $ac_executable_extensions; do
  6465. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6466. ac_cv_prog_ac_ct_AS="as"
  6467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6468. break 2
  6469. fi
  6470. done
  6471. done
  6472. IFS=$as_save_IFS
  6473. fi
  6474. fi
  6475. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6476. if test -n "$ac_ct_AS"; then
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6478. $as_echo "$ac_ct_AS" >&6; }
  6479. else
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6481. $as_echo "no" >&6; }
  6482. fi
  6483. if test "x$ac_ct_AS" = x; then
  6484. AS="false"
  6485. else
  6486. case $cross_compiling:$ac_tool_warned in
  6487. yes:)
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6489. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6490. ac_tool_warned=yes ;;
  6491. esac
  6492. AS=$ac_ct_AS
  6493. fi
  6494. else
  6495. AS="$ac_cv_prog_AS"
  6496. fi
  6497. if test -n "$ac_tool_prefix"; then
  6498. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6499. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6501. $as_echo_n "checking for $ac_word... " >&6; }
  6502. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6503. $as_echo_n "(cached) " >&6
  6504. else
  6505. if test -n "$DLLTOOL"; then
  6506. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6507. else
  6508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6509. for as_dir in $PATH
  6510. do
  6511. IFS=$as_save_IFS
  6512. test -z "$as_dir" && as_dir=.
  6513. for ac_exec_ext in '' $ac_executable_extensions; do
  6514. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6515. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6517. break 2
  6518. fi
  6519. done
  6520. done
  6521. IFS=$as_save_IFS
  6522. fi
  6523. fi
  6524. DLLTOOL=$ac_cv_prog_DLLTOOL
  6525. if test -n "$DLLTOOL"; then
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6527. $as_echo "$DLLTOOL" >&6; }
  6528. else
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6530. $as_echo "no" >&6; }
  6531. fi
  6532. fi
  6533. if test -z "$ac_cv_prog_DLLTOOL"; then
  6534. ac_ct_DLLTOOL=$DLLTOOL
  6535. # Extract the first word of "dlltool", so it can be a program name with args.
  6536. set dummy dlltool; ac_word=$2
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6538. $as_echo_n "checking for $ac_word... " >&6; }
  6539. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6540. $as_echo_n "(cached) " >&6
  6541. else
  6542. if test -n "$ac_ct_DLLTOOL"; then
  6543. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6544. else
  6545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6546. for as_dir in $PATH
  6547. do
  6548. IFS=$as_save_IFS
  6549. test -z "$as_dir" && as_dir=.
  6550. for ac_exec_ext in '' $ac_executable_extensions; do
  6551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6552. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6554. break 2
  6555. fi
  6556. done
  6557. done
  6558. IFS=$as_save_IFS
  6559. fi
  6560. fi
  6561. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6562. if test -n "$ac_ct_DLLTOOL"; then
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6564. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6565. else
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6567. $as_echo "no" >&6; }
  6568. fi
  6569. if test "x$ac_ct_DLLTOOL" = x; then
  6570. DLLTOOL="false"
  6571. else
  6572. case $cross_compiling:$ac_tool_warned in
  6573. yes:)
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6576. ac_tool_warned=yes ;;
  6577. esac
  6578. DLLTOOL=$ac_ct_DLLTOOL
  6579. fi
  6580. else
  6581. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6582. fi
  6583. if test -n "$ac_tool_prefix"; then
  6584. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6585. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6587. $as_echo_n "checking for $ac_word... " >&6; }
  6588. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6589. $as_echo_n "(cached) " >&6
  6590. else
  6591. if test -n "$OBJDUMP"; then
  6592. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6593. else
  6594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6595. for as_dir in $PATH
  6596. do
  6597. IFS=$as_save_IFS
  6598. test -z "$as_dir" && as_dir=.
  6599. for ac_exec_ext in '' $ac_executable_extensions; do
  6600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6601. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6603. break 2
  6604. fi
  6605. done
  6606. done
  6607. IFS=$as_save_IFS
  6608. fi
  6609. fi
  6610. OBJDUMP=$ac_cv_prog_OBJDUMP
  6611. if test -n "$OBJDUMP"; then
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6613. $as_echo "$OBJDUMP" >&6; }
  6614. else
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6616. $as_echo "no" >&6; }
  6617. fi
  6618. fi
  6619. if test -z "$ac_cv_prog_OBJDUMP"; then
  6620. ac_ct_OBJDUMP=$OBJDUMP
  6621. # Extract the first word of "objdump", so it can be a program name with args.
  6622. set dummy objdump; ac_word=$2
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6624. $as_echo_n "checking for $ac_word... " >&6; }
  6625. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. if test -n "$ac_ct_OBJDUMP"; then
  6629. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6630. else
  6631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6632. for as_dir in $PATH
  6633. do
  6634. IFS=$as_save_IFS
  6635. test -z "$as_dir" && as_dir=.
  6636. for ac_exec_ext in '' $ac_executable_extensions; do
  6637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6638. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6640. break 2
  6641. fi
  6642. done
  6643. done
  6644. IFS=$as_save_IFS
  6645. fi
  6646. fi
  6647. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6648. if test -n "$ac_ct_OBJDUMP"; then
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6650. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6651. else
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6653. $as_echo "no" >&6; }
  6654. fi
  6655. if test "x$ac_ct_OBJDUMP" = x; then
  6656. OBJDUMP="false"
  6657. else
  6658. case $cross_compiling:$ac_tool_warned in
  6659. yes:)
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6661. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6662. ac_tool_warned=yes ;;
  6663. esac
  6664. OBJDUMP=$ac_ct_OBJDUMP
  6665. fi
  6666. else
  6667. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6668. fi
  6669. ;;
  6670. esac
  6671. test -z "$AS" && AS=as
  6672. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6673. test -z "$OBJDUMP" && OBJDUMP=objdump
  6674. enable_dlopen=no
  6675. # Check whether --enable-shared was given.
  6676. if test "${enable_shared+set}" = set; then :
  6677. enableval=$enable_shared; p=${PACKAGE-default}
  6678. case $enableval in
  6679. yes) enable_shared=yes ;;
  6680. no) enable_shared=no ;;
  6681. *)
  6682. enable_shared=no
  6683. # Look at the argument we got. We use all the common list separators.
  6684. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6685. for pkg in $enableval; do
  6686. IFS="$lt_save_ifs"
  6687. if test "X$pkg" = "X$p"; then
  6688. enable_shared=yes
  6689. fi
  6690. done
  6691. IFS="$lt_save_ifs"
  6692. ;;
  6693. esac
  6694. else
  6695. enable_shared=yes
  6696. fi
  6697. # Check whether --enable-static was given.
  6698. if test "${enable_static+set}" = set; then :
  6699. enableval=$enable_static; p=${PACKAGE-default}
  6700. case $enableval in
  6701. yes) enable_static=yes ;;
  6702. no) enable_static=no ;;
  6703. *)
  6704. enable_static=no
  6705. # Look at the argument we got. We use all the common list separators.
  6706. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6707. for pkg in $enableval; do
  6708. IFS="$lt_save_ifs"
  6709. if test "X$pkg" = "X$p"; then
  6710. enable_static=yes
  6711. fi
  6712. done
  6713. IFS="$lt_save_ifs"
  6714. ;;
  6715. esac
  6716. else
  6717. enable_static=yes
  6718. fi
  6719. # Check whether --with-pic was given.
  6720. if test "${with_pic+set}" = set; then :
  6721. withval=$with_pic; lt_p=${PACKAGE-default}
  6722. case $withval in
  6723. yes|no) pic_mode=$withval ;;
  6724. *)
  6725. pic_mode=default
  6726. # Look at the argument we got. We use all the common list separators.
  6727. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6728. for lt_pkg in $withval; do
  6729. IFS="$lt_save_ifs"
  6730. if test "X$lt_pkg" = "X$lt_p"; then
  6731. pic_mode=yes
  6732. fi
  6733. done
  6734. IFS="$lt_save_ifs"
  6735. ;;
  6736. esac
  6737. else
  6738. pic_mode=default
  6739. fi
  6740. test -z "$pic_mode" && pic_mode=default
  6741. # Check whether --enable-fast-install was given.
  6742. if test "${enable_fast_install+set}" = set; then :
  6743. enableval=$enable_fast_install; p=${PACKAGE-default}
  6744. case $enableval in
  6745. yes) enable_fast_install=yes ;;
  6746. no) enable_fast_install=no ;;
  6747. *)
  6748. enable_fast_install=no
  6749. # Look at the argument we got. We use all the common list separators.
  6750. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6751. for pkg in $enableval; do
  6752. IFS="$lt_save_ifs"
  6753. if test "X$pkg" = "X$p"; then
  6754. enable_fast_install=yes
  6755. fi
  6756. done
  6757. IFS="$lt_save_ifs"
  6758. ;;
  6759. esac
  6760. else
  6761. enable_fast_install=yes
  6762. fi
  6763. # This can be used to rebuild libtool when needed
  6764. LIBTOOL_DEPS="$ltmain"
  6765. # Always use our own libtool.
  6766. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6767. test -z "$LN_S" && LN_S="ln -s"
  6768. if test -n "${ZSH_VERSION+set}" ; then
  6769. setopt NO_GLOB_SUBST
  6770. fi
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6772. $as_echo_n "checking for objdir... " >&6; }
  6773. if ${lt_cv_objdir+:} false; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. rm -f .libs 2>/dev/null
  6777. mkdir .libs 2>/dev/null
  6778. if test -d .libs; then
  6779. lt_cv_objdir=.libs
  6780. else
  6781. # MS-DOS does not allow filenames that begin with a dot.
  6782. lt_cv_objdir=_libs
  6783. fi
  6784. rmdir .libs 2>/dev/null
  6785. fi
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6787. $as_echo "$lt_cv_objdir" >&6; }
  6788. objdir=$lt_cv_objdir
  6789. cat >>confdefs.h <<_ACEOF
  6790. #define LT_OBJDIR "$lt_cv_objdir/"
  6791. _ACEOF
  6792. case $host_os in
  6793. aix3*)
  6794. # AIX sometimes has problems with the GCC collect2 program. For some
  6795. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6796. # vanish in a puff of smoke.
  6797. if test "X${COLLECT_NAMES+set}" != Xset; then
  6798. COLLECT_NAMES=
  6799. export COLLECT_NAMES
  6800. fi
  6801. ;;
  6802. esac
  6803. # Global variables:
  6804. ofile=libtool
  6805. can_build_shared=yes
  6806. # All known linkers require a `.a' archive for static linking (except MSVC,
  6807. # which needs '.lib').
  6808. libext=a
  6809. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6810. old_CC="$CC"
  6811. old_CFLAGS="$CFLAGS"
  6812. # Set sane defaults for various variables
  6813. test -z "$CC" && CC=cc
  6814. test -z "$LTCC" && LTCC=$CC
  6815. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6816. test -z "$LD" && LD=ld
  6817. test -z "$ac_objext" && ac_objext=o
  6818. for cc_temp in $compiler""; do
  6819. case $cc_temp in
  6820. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6821. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6822. \-*) ;;
  6823. *) break;;
  6824. esac
  6825. done
  6826. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6827. # Only perform the check for file, if the check method requires it
  6828. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6829. case $deplibs_check_method in
  6830. file_magic*)
  6831. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6833. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6834. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6835. $as_echo_n "(cached) " >&6
  6836. else
  6837. case $MAGIC_CMD in
  6838. [\\/*] | ?:[\\/]*)
  6839. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6840. ;;
  6841. *)
  6842. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6843. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6844. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6845. for ac_dir in $ac_dummy; do
  6846. IFS="$lt_save_ifs"
  6847. test -z "$ac_dir" && ac_dir=.
  6848. if test -f $ac_dir/${ac_tool_prefix}file; then
  6849. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6850. if test -n "$file_magic_test_file"; then
  6851. case $deplibs_check_method in
  6852. "file_magic "*)
  6853. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6854. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6855. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6856. $EGREP "$file_magic_regex" > /dev/null; then
  6857. :
  6858. else
  6859. cat <<_LT_EOF 1>&2
  6860. *** Warning: the command libtool uses to detect shared libraries,
  6861. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6862. *** The result is that libtool may fail to recognize shared libraries
  6863. *** as such. This will affect the creation of libtool libraries that
  6864. *** depend on shared libraries, but programs linked with such libtool
  6865. *** libraries will work regardless of this problem. Nevertheless, you
  6866. *** may want to report the problem to your system manager and/or to
  6867. *** bug-libtool@gnu.org
  6868. _LT_EOF
  6869. fi ;;
  6870. esac
  6871. fi
  6872. break
  6873. fi
  6874. done
  6875. IFS="$lt_save_ifs"
  6876. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6877. ;;
  6878. esac
  6879. fi
  6880. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6881. if test -n "$MAGIC_CMD"; then
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6883. $as_echo "$MAGIC_CMD" >&6; }
  6884. else
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6886. $as_echo "no" >&6; }
  6887. fi
  6888. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6889. if test -n "$ac_tool_prefix"; then
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6891. $as_echo_n "checking for file... " >&6; }
  6892. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6893. $as_echo_n "(cached) " >&6
  6894. else
  6895. case $MAGIC_CMD in
  6896. [\\/*] | ?:[\\/]*)
  6897. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6898. ;;
  6899. *)
  6900. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6901. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6902. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6903. for ac_dir in $ac_dummy; do
  6904. IFS="$lt_save_ifs"
  6905. test -z "$ac_dir" && ac_dir=.
  6906. if test -f $ac_dir/file; then
  6907. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6908. if test -n "$file_magic_test_file"; then
  6909. case $deplibs_check_method in
  6910. "file_magic "*)
  6911. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6912. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6913. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6914. $EGREP "$file_magic_regex" > /dev/null; then
  6915. :
  6916. else
  6917. cat <<_LT_EOF 1>&2
  6918. *** Warning: the command libtool uses to detect shared libraries,
  6919. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6920. *** The result is that libtool may fail to recognize shared libraries
  6921. *** as such. This will affect the creation of libtool libraries that
  6922. *** depend on shared libraries, but programs linked with such libtool
  6923. *** libraries will work regardless of this problem. Nevertheless, you
  6924. *** may want to report the problem to your system manager and/or to
  6925. *** bug-libtool@gnu.org
  6926. _LT_EOF
  6927. fi ;;
  6928. esac
  6929. fi
  6930. break
  6931. fi
  6932. done
  6933. IFS="$lt_save_ifs"
  6934. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6935. ;;
  6936. esac
  6937. fi
  6938. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6939. if test -n "$MAGIC_CMD"; then
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6941. $as_echo "$MAGIC_CMD" >&6; }
  6942. else
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6944. $as_echo "no" >&6; }
  6945. fi
  6946. else
  6947. MAGIC_CMD=:
  6948. fi
  6949. fi
  6950. fi
  6951. ;;
  6952. esac
  6953. # Use C for the default configuration in the libtool script
  6954. lt_save_CC="$CC"
  6955. ac_ext=c
  6956. ac_cpp='$CPP $CPPFLAGS'
  6957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6960. # Source file extension for C test sources.
  6961. ac_ext=c
  6962. # Object file extension for compiled C test sources.
  6963. objext=o
  6964. objext=$objext
  6965. # Code to be used in simple compile tests
  6966. lt_simple_compile_test_code="int some_variable = 0;"
  6967. # Code to be used in simple link tests
  6968. lt_simple_link_test_code='int main(){return(0);}'
  6969. # If no C compiler was specified, use CC.
  6970. LTCC=${LTCC-"$CC"}
  6971. # If no C compiler flags were specified, use CFLAGS.
  6972. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6973. # Allow CC to be a program name with arguments.
  6974. compiler=$CC
  6975. # Save the default compiler, since it gets overwritten when the other
  6976. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6977. compiler_DEFAULT=$CC
  6978. # save warnings/boilerplate of simple test code
  6979. ac_outfile=conftest.$ac_objext
  6980. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6981. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6982. _lt_compiler_boilerplate=`cat conftest.err`
  6983. $RM conftest*
  6984. ac_outfile=conftest.$ac_objext
  6985. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6986. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6987. _lt_linker_boilerplate=`cat conftest.err`
  6988. $RM -r conftest*
  6989. ## CAVEAT EMPTOR:
  6990. ## There is no encapsulation within the following macros, do not change
  6991. ## the running order or otherwise move them around unless you know exactly
  6992. ## what you are doing...
  6993. if test -n "$compiler"; then
  6994. lt_prog_compiler_no_builtin_flag=
  6995. if test "$GCC" = yes; then
  6996. case $cc_basename in
  6997. nvcc*)
  6998. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6999. *)
  7000. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7001. esac
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7003. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7004. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7005. $as_echo_n "(cached) " >&6
  7006. else
  7007. lt_cv_prog_compiler_rtti_exceptions=no
  7008. ac_outfile=conftest.$ac_objext
  7009. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7010. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7011. # Insert the option either (1) after the last *FLAGS variable, or
  7012. # (2) before a word containing "conftest.", or (3) at the end.
  7013. # Note that $ac_compile itself does not contain backslashes and begins
  7014. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7015. # The option is referenced via a variable to avoid confusing sed.
  7016. lt_compile=`echo "$ac_compile" | $SED \
  7017. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7018. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7019. -e 's:$: $lt_compiler_flag:'`
  7020. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7021. (eval "$lt_compile" 2>conftest.err)
  7022. ac_status=$?
  7023. cat conftest.err >&5
  7024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7025. if (exit $ac_status) && test -s "$ac_outfile"; then
  7026. # The compiler can only warn and ignore the option if not recognized
  7027. # So say no if there are warnings other than the usual output.
  7028. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7029. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7030. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7031. lt_cv_prog_compiler_rtti_exceptions=yes
  7032. fi
  7033. fi
  7034. $RM conftest*
  7035. fi
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7037. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7038. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7039. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7040. else
  7041. :
  7042. fi
  7043. fi
  7044. lt_prog_compiler_wl=
  7045. lt_prog_compiler_pic=
  7046. lt_prog_compiler_static=
  7047. if test "$GCC" = yes; then
  7048. lt_prog_compiler_wl='-Wl,'
  7049. lt_prog_compiler_static='-static'
  7050. case $host_os in
  7051. aix*)
  7052. # All AIX code is PIC.
  7053. if test "$host_cpu" = ia64; then
  7054. # AIX 5 now supports IA64 processor
  7055. lt_prog_compiler_static='-Bstatic'
  7056. fi
  7057. ;;
  7058. amigaos*)
  7059. case $host_cpu in
  7060. powerpc)
  7061. # see comment about AmigaOS4 .so support
  7062. lt_prog_compiler_pic='-fPIC'
  7063. ;;
  7064. m68k)
  7065. # FIXME: we need at least 68020 code to build shared libraries, but
  7066. # adding the `-m68020' flag to GCC prevents building anything better,
  7067. # like `-m68040'.
  7068. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7069. ;;
  7070. esac
  7071. ;;
  7072. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7073. # PIC is the default for these OSes.
  7074. ;;
  7075. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7076. # This hack is so that the source file can tell whether it is being
  7077. # built for inclusion in a dll (and should export symbols for example).
  7078. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7079. # (--disable-auto-import) libraries
  7080. lt_prog_compiler_pic='-DDLL_EXPORT'
  7081. ;;
  7082. darwin* | rhapsody*)
  7083. # PIC is the default on this platform
  7084. # Common symbols not allowed in MH_DYLIB files
  7085. lt_prog_compiler_pic='-fno-common'
  7086. ;;
  7087. haiku*)
  7088. # PIC is the default for Haiku.
  7089. # The "-static" flag exists, but is broken.
  7090. lt_prog_compiler_static=
  7091. ;;
  7092. hpux*)
  7093. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7094. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7095. # sets the default TLS model and affects inlining.
  7096. case $host_cpu in
  7097. hppa*64*)
  7098. # +Z the default
  7099. ;;
  7100. *)
  7101. lt_prog_compiler_pic='-fPIC'
  7102. ;;
  7103. esac
  7104. ;;
  7105. interix[3-9]*)
  7106. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7107. # Instead, we relocate shared libraries at runtime.
  7108. ;;
  7109. msdosdjgpp*)
  7110. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7111. # on systems that don't support them.
  7112. lt_prog_compiler_can_build_shared=no
  7113. enable_shared=no
  7114. ;;
  7115. *nto* | *qnx*)
  7116. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7117. # it will coredump.
  7118. lt_prog_compiler_pic='-fPIC -shared'
  7119. ;;
  7120. sysv4*MP*)
  7121. if test -d /usr/nec; then
  7122. lt_prog_compiler_pic=-Kconform_pic
  7123. fi
  7124. ;;
  7125. *)
  7126. lt_prog_compiler_pic='-fPIC'
  7127. ;;
  7128. esac
  7129. case $cc_basename in
  7130. nvcc*) # Cuda Compiler Driver 2.2
  7131. lt_prog_compiler_wl='-Xlinker '
  7132. if test -n "$lt_prog_compiler_pic"; then
  7133. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7134. fi
  7135. ;;
  7136. esac
  7137. else
  7138. # PORTME Check for flag to pass linker flags through the system compiler.
  7139. case $host_os in
  7140. aix*)
  7141. lt_prog_compiler_wl='-Wl,'
  7142. if test "$host_cpu" = ia64; then
  7143. # AIX 5 now supports IA64 processor
  7144. lt_prog_compiler_static='-Bstatic'
  7145. else
  7146. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7147. fi
  7148. ;;
  7149. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7150. # This hack is so that the source file can tell whether it is being
  7151. # built for inclusion in a dll (and should export symbols for example).
  7152. lt_prog_compiler_pic='-DDLL_EXPORT'
  7153. ;;
  7154. hpux9* | hpux10* | hpux11*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7157. # not for PA HP-UX.
  7158. case $host_cpu in
  7159. hppa*64*|ia64*)
  7160. # +Z the default
  7161. ;;
  7162. *)
  7163. lt_prog_compiler_pic='+Z'
  7164. ;;
  7165. esac
  7166. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7167. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7168. ;;
  7169. irix5* | irix6* | nonstopux*)
  7170. lt_prog_compiler_wl='-Wl,'
  7171. # PIC (with -KPIC) is the default.
  7172. lt_prog_compiler_static='-non_shared'
  7173. ;;
  7174. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7175. case $cc_basename in
  7176. # old Intel for x86_64 which still supported -KPIC.
  7177. ecc*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. lt_prog_compiler_pic='-KPIC'
  7180. lt_prog_compiler_static='-static'
  7181. ;;
  7182. # icc used to be incompatible with GCC.
  7183. # ICC 10 doesn't accept -KPIC any more.
  7184. icc* | ifort*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_pic='-fPIC'
  7187. lt_prog_compiler_static='-static'
  7188. ;;
  7189. # Lahey Fortran 8.1.
  7190. lf95*)
  7191. lt_prog_compiler_wl='-Wl,'
  7192. lt_prog_compiler_pic='--shared'
  7193. lt_prog_compiler_static='--static'
  7194. ;;
  7195. nagfor*)
  7196. # NAG Fortran compiler
  7197. lt_prog_compiler_wl='-Wl,-Wl,,'
  7198. lt_prog_compiler_pic='-PIC'
  7199. lt_prog_compiler_static='-Bstatic'
  7200. ;;
  7201. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7202. # Portland Group compilers (*not* the Pentium gcc compiler,
  7203. # which looks to be a dead project)
  7204. lt_prog_compiler_wl='-Wl,'
  7205. lt_prog_compiler_pic='-fpic'
  7206. lt_prog_compiler_static='-Bstatic'
  7207. ;;
  7208. ccc*)
  7209. lt_prog_compiler_wl='-Wl,'
  7210. # All Alpha code is PIC.
  7211. lt_prog_compiler_static='-non_shared'
  7212. ;;
  7213. xl* | bgxl* | bgf* | mpixl*)
  7214. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7215. lt_prog_compiler_wl='-Wl,'
  7216. lt_prog_compiler_pic='-qpic'
  7217. lt_prog_compiler_static='-qstaticlink'
  7218. ;;
  7219. *)
  7220. case `$CC -V 2>&1 | sed 5q` in
  7221. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7222. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7223. lt_prog_compiler_pic='-KPIC'
  7224. lt_prog_compiler_static='-Bstatic'
  7225. lt_prog_compiler_wl=''
  7226. ;;
  7227. *Sun\ F* | *Sun*Fortran*)
  7228. lt_prog_compiler_pic='-KPIC'
  7229. lt_prog_compiler_static='-Bstatic'
  7230. lt_prog_compiler_wl='-Qoption ld '
  7231. ;;
  7232. *Sun\ C*)
  7233. # Sun C 5.9
  7234. lt_prog_compiler_pic='-KPIC'
  7235. lt_prog_compiler_static='-Bstatic'
  7236. lt_prog_compiler_wl='-Wl,'
  7237. ;;
  7238. *Intel*\ [CF]*Compiler*)
  7239. lt_prog_compiler_wl='-Wl,'
  7240. lt_prog_compiler_pic='-fPIC'
  7241. lt_prog_compiler_static='-static'
  7242. ;;
  7243. *Portland\ Group*)
  7244. lt_prog_compiler_wl='-Wl,'
  7245. lt_prog_compiler_pic='-fpic'
  7246. lt_prog_compiler_static='-Bstatic'
  7247. ;;
  7248. esac
  7249. ;;
  7250. esac
  7251. ;;
  7252. newsos6)
  7253. lt_prog_compiler_pic='-KPIC'
  7254. lt_prog_compiler_static='-Bstatic'
  7255. ;;
  7256. *nto* | *qnx*)
  7257. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7258. # it will coredump.
  7259. lt_prog_compiler_pic='-fPIC -shared'
  7260. ;;
  7261. osf3* | osf4* | osf5*)
  7262. lt_prog_compiler_wl='-Wl,'
  7263. # All OSF/1 code is PIC.
  7264. lt_prog_compiler_static='-non_shared'
  7265. ;;
  7266. rdos*)
  7267. lt_prog_compiler_static='-non_shared'
  7268. ;;
  7269. solaris*)
  7270. lt_prog_compiler_pic='-KPIC'
  7271. lt_prog_compiler_static='-Bstatic'
  7272. case $cc_basename in
  7273. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7274. lt_prog_compiler_wl='-Qoption ld ';;
  7275. *)
  7276. lt_prog_compiler_wl='-Wl,';;
  7277. esac
  7278. ;;
  7279. sunos4*)
  7280. lt_prog_compiler_wl='-Qoption ld '
  7281. lt_prog_compiler_pic='-PIC'
  7282. lt_prog_compiler_static='-Bstatic'
  7283. ;;
  7284. sysv4 | sysv4.2uw2* | sysv4.3*)
  7285. lt_prog_compiler_wl='-Wl,'
  7286. lt_prog_compiler_pic='-KPIC'
  7287. lt_prog_compiler_static='-Bstatic'
  7288. ;;
  7289. sysv4*MP*)
  7290. if test -d /usr/nec ;then
  7291. lt_prog_compiler_pic='-Kconform_pic'
  7292. lt_prog_compiler_static='-Bstatic'
  7293. fi
  7294. ;;
  7295. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7296. lt_prog_compiler_wl='-Wl,'
  7297. lt_prog_compiler_pic='-KPIC'
  7298. lt_prog_compiler_static='-Bstatic'
  7299. ;;
  7300. unicos*)
  7301. lt_prog_compiler_wl='-Wl,'
  7302. lt_prog_compiler_can_build_shared=no
  7303. ;;
  7304. uts4*)
  7305. lt_prog_compiler_pic='-pic'
  7306. lt_prog_compiler_static='-Bstatic'
  7307. ;;
  7308. *)
  7309. lt_prog_compiler_can_build_shared=no
  7310. ;;
  7311. esac
  7312. fi
  7313. case $host_os in
  7314. # For platforms which do not support PIC, -DPIC is meaningless:
  7315. *djgpp*)
  7316. lt_prog_compiler_pic=
  7317. ;;
  7318. *)
  7319. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7320. ;;
  7321. esac
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7323. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7324. if ${lt_cv_prog_compiler_pic+:} false; then :
  7325. $as_echo_n "(cached) " >&6
  7326. else
  7327. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7330. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7331. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7332. #
  7333. # Check to make sure the PIC flag actually works.
  7334. #
  7335. if test -n "$lt_prog_compiler_pic"; then
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7337. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7338. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7339. $as_echo_n "(cached) " >&6
  7340. else
  7341. lt_cv_prog_compiler_pic_works=no
  7342. ac_outfile=conftest.$ac_objext
  7343. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7344. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7345. # Insert the option either (1) after the last *FLAGS variable, or
  7346. # (2) before a word containing "conftest.", or (3) at the end.
  7347. # Note that $ac_compile itself does not contain backslashes and begins
  7348. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7349. # The option is referenced via a variable to avoid confusing sed.
  7350. lt_compile=`echo "$ac_compile" | $SED \
  7351. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7352. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7353. -e 's:$: $lt_compiler_flag:'`
  7354. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7355. (eval "$lt_compile" 2>conftest.err)
  7356. ac_status=$?
  7357. cat conftest.err >&5
  7358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7359. if (exit $ac_status) && test -s "$ac_outfile"; then
  7360. # The compiler can only warn and ignore the option if not recognized
  7361. # So say no if there are warnings other than the usual output.
  7362. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7363. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7364. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7365. lt_cv_prog_compiler_pic_works=yes
  7366. fi
  7367. fi
  7368. $RM conftest*
  7369. fi
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7371. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7372. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7373. case $lt_prog_compiler_pic in
  7374. "" | " "*) ;;
  7375. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7376. esac
  7377. else
  7378. lt_prog_compiler_pic=
  7379. lt_prog_compiler_can_build_shared=no
  7380. fi
  7381. fi
  7382. #
  7383. # Check to make sure the static flag actually works.
  7384. #
  7385. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7387. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7388. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7389. $as_echo_n "(cached) " >&6
  7390. else
  7391. lt_cv_prog_compiler_static_works=no
  7392. save_LDFLAGS="$LDFLAGS"
  7393. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7394. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7395. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7396. # The linker can only warn and ignore the option if not recognized
  7397. # So say no if there are warnings
  7398. if test -s conftest.err; then
  7399. # Append any errors to the config.log.
  7400. cat conftest.err 1>&5
  7401. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7402. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7403. if diff conftest.exp conftest.er2 >/dev/null; then
  7404. lt_cv_prog_compiler_static_works=yes
  7405. fi
  7406. else
  7407. lt_cv_prog_compiler_static_works=yes
  7408. fi
  7409. fi
  7410. $RM -r conftest*
  7411. LDFLAGS="$save_LDFLAGS"
  7412. fi
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7414. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7415. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7416. :
  7417. else
  7418. lt_prog_compiler_static=
  7419. fi
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7421. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7422. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7423. $as_echo_n "(cached) " >&6
  7424. else
  7425. lt_cv_prog_compiler_c_o=no
  7426. $RM -r conftest 2>/dev/null
  7427. mkdir conftest
  7428. cd conftest
  7429. mkdir out
  7430. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7431. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7432. # Insert the option either (1) after the last *FLAGS variable, or
  7433. # (2) before a word containing "conftest.", or (3) at the end.
  7434. # Note that $ac_compile itself does not contain backslashes and begins
  7435. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7436. lt_compile=`echo "$ac_compile" | $SED \
  7437. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7438. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7439. -e 's:$: $lt_compiler_flag:'`
  7440. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7441. (eval "$lt_compile" 2>out/conftest.err)
  7442. ac_status=$?
  7443. cat out/conftest.err >&5
  7444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7445. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7446. then
  7447. # The compiler can only warn and ignore the option if not recognized
  7448. # So say no if there are warnings
  7449. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7450. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7451. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7452. lt_cv_prog_compiler_c_o=yes
  7453. fi
  7454. fi
  7455. chmod u+w . 2>&5
  7456. $RM conftest*
  7457. # SGI C++ compiler will create directory out/ii_files/ for
  7458. # template instantiation
  7459. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7460. $RM out/* && rmdir out
  7461. cd ..
  7462. $RM -r conftest
  7463. $RM conftest*
  7464. fi
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7466. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7468. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7469. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7470. $as_echo_n "(cached) " >&6
  7471. else
  7472. lt_cv_prog_compiler_c_o=no
  7473. $RM -r conftest 2>/dev/null
  7474. mkdir conftest
  7475. cd conftest
  7476. mkdir out
  7477. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7478. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7479. # Insert the option either (1) after the last *FLAGS variable, or
  7480. # (2) before a word containing "conftest.", or (3) at the end.
  7481. # Note that $ac_compile itself does not contain backslashes and begins
  7482. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7483. lt_compile=`echo "$ac_compile" | $SED \
  7484. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7485. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7486. -e 's:$: $lt_compiler_flag:'`
  7487. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7488. (eval "$lt_compile" 2>out/conftest.err)
  7489. ac_status=$?
  7490. cat out/conftest.err >&5
  7491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7492. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7493. then
  7494. # The compiler can only warn and ignore the option if not recognized
  7495. # So say no if there are warnings
  7496. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7497. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7498. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7499. lt_cv_prog_compiler_c_o=yes
  7500. fi
  7501. fi
  7502. chmod u+w . 2>&5
  7503. $RM conftest*
  7504. # SGI C++ compiler will create directory out/ii_files/ for
  7505. # template instantiation
  7506. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7507. $RM out/* && rmdir out
  7508. cd ..
  7509. $RM -r conftest
  7510. $RM conftest*
  7511. fi
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7513. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7514. hard_links="nottested"
  7515. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7516. # do not overwrite the value of need_locks provided by the user
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7518. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7519. hard_links=yes
  7520. $RM conftest*
  7521. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7522. touch conftest.a
  7523. ln conftest.a conftest.b 2>&5 || hard_links=no
  7524. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7526. $as_echo "$hard_links" >&6; }
  7527. if test "$hard_links" = no; then
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7529. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7530. need_locks=warn
  7531. fi
  7532. else
  7533. need_locks=no
  7534. fi
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7536. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7537. runpath_var=
  7538. allow_undefined_flag=
  7539. always_export_symbols=no
  7540. archive_cmds=
  7541. archive_expsym_cmds=
  7542. compiler_needs_object=no
  7543. enable_shared_with_static_runtimes=no
  7544. export_dynamic_flag_spec=
  7545. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7546. hardcode_automatic=no
  7547. hardcode_direct=no
  7548. hardcode_direct_absolute=no
  7549. hardcode_libdir_flag_spec=
  7550. hardcode_libdir_separator=
  7551. hardcode_minus_L=no
  7552. hardcode_shlibpath_var=unsupported
  7553. inherit_rpath=no
  7554. link_all_deplibs=unknown
  7555. module_cmds=
  7556. module_expsym_cmds=
  7557. old_archive_from_new_cmds=
  7558. old_archive_from_expsyms_cmds=
  7559. thread_safe_flag_spec=
  7560. whole_archive_flag_spec=
  7561. # include_expsyms should be a list of space-separated symbols to be *always*
  7562. # included in the symbol list
  7563. include_expsyms=
  7564. # exclude_expsyms can be an extended regexp of symbols to exclude
  7565. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7566. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7567. # as well as any symbol that contains `d'.
  7568. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7569. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7570. # platforms (ab)use it in PIC code, but their linkers get confused if
  7571. # the symbol is explicitly referenced. Since portable code cannot
  7572. # rely on this symbol name, it's probably fine to never include it in
  7573. # preloaded symbol tables.
  7574. # Exclude shared library initialization/finalization symbols.
  7575. extract_expsyms_cmds=
  7576. case $host_os in
  7577. cygwin* | mingw* | pw32* | cegcc*)
  7578. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7579. # When not using gcc, we currently assume that we are using
  7580. # Microsoft Visual C++.
  7581. if test "$GCC" != yes; then
  7582. with_gnu_ld=no
  7583. fi
  7584. ;;
  7585. interix*)
  7586. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7587. with_gnu_ld=yes
  7588. ;;
  7589. openbsd*)
  7590. with_gnu_ld=no
  7591. ;;
  7592. esac
  7593. ld_shlibs=yes
  7594. # On some targets, GNU ld is compatible enough with the native linker
  7595. # that we're better off using the native interface for both.
  7596. lt_use_gnu_ld_interface=no
  7597. if test "$with_gnu_ld" = yes; then
  7598. case $host_os in
  7599. aix*)
  7600. # The AIX port of GNU ld has always aspired to compatibility
  7601. # with the native linker. However, as the warning in the GNU ld
  7602. # block says, versions before 2.19.5* couldn't really create working
  7603. # shared libraries, regardless of the interface used.
  7604. case `$LD -v 2>&1` in
  7605. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7606. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7607. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7608. *)
  7609. lt_use_gnu_ld_interface=yes
  7610. ;;
  7611. esac
  7612. ;;
  7613. *)
  7614. lt_use_gnu_ld_interface=yes
  7615. ;;
  7616. esac
  7617. fi
  7618. if test "$lt_use_gnu_ld_interface" = yes; then
  7619. # If archive_cmds runs LD, not CC, wlarc should be empty
  7620. wlarc='${wl}'
  7621. # Set some defaults for GNU ld with shared library support. These
  7622. # are reset later if shared libraries are not supported. Putting them
  7623. # here allows them to be overridden if necessary.
  7624. runpath_var=LD_RUN_PATH
  7625. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7626. export_dynamic_flag_spec='${wl}--export-dynamic'
  7627. # ancient GNU ld didn't support --whole-archive et. al.
  7628. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7629. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7630. else
  7631. whole_archive_flag_spec=
  7632. fi
  7633. supports_anon_versioning=no
  7634. case `$LD -v 2>&1` in
  7635. *GNU\ gold*) supports_anon_versioning=yes ;;
  7636. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7637. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7638. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7639. *\ 2.11.*) ;; # other 2.11 versions
  7640. *) supports_anon_versioning=yes ;;
  7641. esac
  7642. # See if GNU ld supports shared libraries.
  7643. case $host_os in
  7644. aix[3-9]*)
  7645. # On AIX/PPC, the GNU linker is very broken
  7646. if test "$host_cpu" != ia64; then
  7647. ld_shlibs=no
  7648. cat <<_LT_EOF 1>&2
  7649. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7650. *** to be unable to reliably create shared libraries on AIX.
  7651. *** Therefore, libtool is disabling shared libraries support. If you
  7652. *** really care for shared libraries, you may want to install binutils
  7653. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7654. *** You will then need to restart the configuration process.
  7655. _LT_EOF
  7656. fi
  7657. ;;
  7658. amigaos*)
  7659. case $host_cpu in
  7660. powerpc)
  7661. # see comment about AmigaOS4 .so support
  7662. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7663. archive_expsym_cmds=''
  7664. ;;
  7665. m68k)
  7666. 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)'
  7667. hardcode_libdir_flag_spec='-L$libdir'
  7668. hardcode_minus_L=yes
  7669. ;;
  7670. esac
  7671. ;;
  7672. beos*)
  7673. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7674. allow_undefined_flag=unsupported
  7675. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7676. # support --undefined. This deserves some investigation. FIXME
  7677. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7678. else
  7679. ld_shlibs=no
  7680. fi
  7681. ;;
  7682. cygwin* | mingw* | pw32* | cegcc*)
  7683. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7684. # as there is no search path for DLLs.
  7685. hardcode_libdir_flag_spec='-L$libdir'
  7686. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7687. allow_undefined_flag=unsupported
  7688. always_export_symbols=no
  7689. enable_shared_with_static_runtimes=yes
  7690. 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'
  7691. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7692. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7693. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7694. # If the export-symbols file already is a .def file (1st line
  7695. # is EXPORTS), use it as is; otherwise, prepend...
  7696. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7697. cp $export_symbols $output_objdir/$soname.def;
  7698. else
  7699. echo EXPORTS > $output_objdir/$soname.def;
  7700. cat $export_symbols >> $output_objdir/$soname.def;
  7701. fi~
  7702. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7703. else
  7704. ld_shlibs=no
  7705. fi
  7706. ;;
  7707. haiku*)
  7708. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7709. link_all_deplibs=yes
  7710. ;;
  7711. interix[3-9]*)
  7712. hardcode_direct=no
  7713. hardcode_shlibpath_var=no
  7714. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7715. export_dynamic_flag_spec='${wl}-E'
  7716. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7717. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7718. # default) and relocated if they conflict, which is a slow very memory
  7719. # consuming and fragmenting process. To avoid this, we pick a random,
  7720. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7721. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7722. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7723. 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'
  7724. ;;
  7725. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7726. tmp_diet=no
  7727. if test "$host_os" = linux-dietlibc; then
  7728. case $cc_basename in
  7729. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7730. esac
  7731. fi
  7732. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7733. && test "$tmp_diet" = no
  7734. then
  7735. tmp_addflag=' $pic_flag'
  7736. tmp_sharedflag='-shared'
  7737. case $cc_basename,$host_cpu in
  7738. pgcc*) # Portland Group C compiler
  7739. 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'
  7740. tmp_addflag=' $pic_flag'
  7741. ;;
  7742. pgf77* | pgf90* | pgf95* | pgfortran*)
  7743. # Portland Group f77 and f90 compilers
  7744. 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'
  7745. tmp_addflag=' $pic_flag -Mnomain' ;;
  7746. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7747. tmp_addflag=' -i_dynamic' ;;
  7748. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7749. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7750. ifc* | ifort*) # Intel Fortran compiler
  7751. tmp_addflag=' -nofor_main' ;;
  7752. lf95*) # Lahey Fortran 8.1
  7753. whole_archive_flag_spec=
  7754. tmp_sharedflag='--shared' ;;
  7755. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7756. tmp_sharedflag='-qmkshrobj'
  7757. tmp_addflag= ;;
  7758. nvcc*) # Cuda Compiler Driver 2.2
  7759. 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'
  7760. compiler_needs_object=yes
  7761. ;;
  7762. esac
  7763. case `$CC -V 2>&1 | sed 5q` in
  7764. *Sun\ C*) # Sun C 5.9
  7765. 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'
  7766. compiler_needs_object=yes
  7767. tmp_sharedflag='-G' ;;
  7768. *Sun\ F*) # Sun Fortran 8.3
  7769. tmp_sharedflag='-G' ;;
  7770. esac
  7771. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7772. if test "x$supports_anon_versioning" = xyes; then
  7773. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7774. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7775. echo "local: *; };" >> $output_objdir/$libname.ver~
  7776. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7777. fi
  7778. case $cc_basename in
  7779. xlf* | bgf* | bgxlf* | mpixlf*)
  7780. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7781. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7782. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7783. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7784. if test "x$supports_anon_versioning" = xyes; then
  7785. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7786. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7787. echo "local: *; };" >> $output_objdir/$libname.ver~
  7788. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7789. fi
  7790. ;;
  7791. esac
  7792. else
  7793. ld_shlibs=no
  7794. fi
  7795. ;;
  7796. netbsd*)
  7797. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7798. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7799. wlarc=
  7800. else
  7801. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7802. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7803. fi
  7804. ;;
  7805. solaris*)
  7806. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7807. ld_shlibs=no
  7808. cat <<_LT_EOF 1>&2
  7809. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7810. *** create shared libraries on Solaris systems. Therefore, libtool
  7811. *** is disabling shared libraries support. We urge you to upgrade GNU
  7812. *** binutils to release 2.9.1 or newer. Another option is to modify
  7813. *** your PATH or compiler configuration so that the native linker is
  7814. *** used, and then restart.
  7815. _LT_EOF
  7816. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7817. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7818. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7819. else
  7820. ld_shlibs=no
  7821. fi
  7822. ;;
  7823. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7824. case `$LD -v 2>&1` in
  7825. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7826. ld_shlibs=no
  7827. cat <<_LT_EOF 1>&2
  7828. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7829. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7830. *** is disabling shared libraries support. We urge you to upgrade GNU
  7831. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7832. *** your PATH or compiler configuration so that the native linker is
  7833. *** used, and then restart.
  7834. _LT_EOF
  7835. ;;
  7836. *)
  7837. # For security reasons, it is highly recommended that you always
  7838. # use absolute paths for naming shared libraries, and exclude the
  7839. # DT_RUNPATH tag from executables and libraries. But doing so
  7840. # requires that you compile everything twice, which is a pain.
  7841. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7842. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7843. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7844. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7845. else
  7846. ld_shlibs=no
  7847. fi
  7848. ;;
  7849. esac
  7850. ;;
  7851. sunos4*)
  7852. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7853. wlarc=
  7854. hardcode_direct=yes
  7855. hardcode_shlibpath_var=no
  7856. ;;
  7857. *)
  7858. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7859. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7860. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7861. else
  7862. ld_shlibs=no
  7863. fi
  7864. ;;
  7865. esac
  7866. if test "$ld_shlibs" = no; then
  7867. runpath_var=
  7868. hardcode_libdir_flag_spec=
  7869. export_dynamic_flag_spec=
  7870. whole_archive_flag_spec=
  7871. fi
  7872. else
  7873. # PORTME fill in a description of your system's linker (not GNU ld)
  7874. case $host_os in
  7875. aix3*)
  7876. allow_undefined_flag=unsupported
  7877. always_export_symbols=yes
  7878. 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'
  7879. # Note: this linker hardcodes the directories in LIBPATH if there
  7880. # are no directories specified by -L.
  7881. hardcode_minus_L=yes
  7882. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7883. # Neither direct hardcoding nor static linking is supported with a
  7884. # broken collect2.
  7885. hardcode_direct=unsupported
  7886. fi
  7887. ;;
  7888. aix[4-9]*)
  7889. if test "$host_cpu" = ia64; then
  7890. # On IA64, the linker does run time linking by default, so we don't
  7891. # have to do anything special.
  7892. aix_use_runtimelinking=no
  7893. exp_sym_flag='-Bexport'
  7894. no_entry_flag=""
  7895. else
  7896. # If we're using GNU nm, then we don't want the "-C" option.
  7897. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7898. # Also, AIX nm treats weak defined symbols like other global
  7899. # defined symbols, whereas GNU nm marks them as "W".
  7900. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7901. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7902. else
  7903. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7904. fi
  7905. aix_use_runtimelinking=no
  7906. # Test if we are trying to use run time linking or normal
  7907. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7908. # need to do runtime linking.
  7909. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7910. for ld_flag in $LDFLAGS; do
  7911. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7912. aix_use_runtimelinking=yes
  7913. break
  7914. fi
  7915. done
  7916. ;;
  7917. esac
  7918. exp_sym_flag='-bexport'
  7919. no_entry_flag='-bnoentry'
  7920. fi
  7921. # When large executables or shared objects are built, AIX ld can
  7922. # have problems creating the table of contents. If linking a library
  7923. # or program results in "error TOC overflow" add -mminimal-toc to
  7924. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7925. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7926. archive_cmds=''
  7927. hardcode_direct=yes
  7928. hardcode_direct_absolute=yes
  7929. hardcode_libdir_separator=':'
  7930. link_all_deplibs=yes
  7931. file_list_spec='${wl}-f,'
  7932. if test "$GCC" = yes; then
  7933. case $host_os in aix4.[012]|aix4.[012].*)
  7934. # We only want to do this on AIX 4.2 and lower, the check
  7935. # below for broken collect2 doesn't work under 4.3+
  7936. collect2name=`${CC} -print-prog-name=collect2`
  7937. if test -f "$collect2name" &&
  7938. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7939. then
  7940. # We have reworked collect2
  7941. :
  7942. else
  7943. # We have old collect2
  7944. hardcode_direct=unsupported
  7945. # It fails to find uninstalled libraries when the uninstalled
  7946. # path is not listed in the libpath. Setting hardcode_minus_L
  7947. # to unsupported forces relinking
  7948. hardcode_minus_L=yes
  7949. hardcode_libdir_flag_spec='-L$libdir'
  7950. hardcode_libdir_separator=
  7951. fi
  7952. ;;
  7953. esac
  7954. shared_flag='-shared'
  7955. if test "$aix_use_runtimelinking" = yes; then
  7956. shared_flag="$shared_flag "'${wl}-G'
  7957. fi
  7958. else
  7959. # not using gcc
  7960. if test "$host_cpu" = ia64; then
  7961. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7962. # chokes on -Wl,-G. The following line is correct:
  7963. shared_flag='-G'
  7964. else
  7965. if test "$aix_use_runtimelinking" = yes; then
  7966. shared_flag='${wl}-G'
  7967. else
  7968. shared_flag='${wl}-bM:SRE'
  7969. fi
  7970. fi
  7971. fi
  7972. export_dynamic_flag_spec='${wl}-bexpall'
  7973. # It seems that -bexpall does not export symbols beginning with
  7974. # underscore (_), so it is better to generate a list of symbols to export.
  7975. always_export_symbols=yes
  7976. if test "$aix_use_runtimelinking" = yes; then
  7977. # Warning - without using the other runtime loading flags (-brtl),
  7978. # -berok will link without error, but may produce a broken library.
  7979. allow_undefined_flag='-berok'
  7980. # Determine the default libpath from the value encoded in an
  7981. # empty executable.
  7982. if test "${lt_cv_aix_libpath+set}" = set; then
  7983. aix_libpath=$lt_cv_aix_libpath
  7984. else
  7985. if ${lt_cv_aix_libpath_+:} false; then :
  7986. $as_echo_n "(cached) " >&6
  7987. else
  7988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7989. /* end confdefs.h. */
  7990. int
  7991. main ()
  7992. {
  7993. ;
  7994. return 0;
  7995. }
  7996. _ACEOF
  7997. if ac_fn_c_try_link "$LINENO"; then :
  7998. lt_aix_libpath_sed='
  7999. /Import File Strings/,/^$/ {
  8000. /^0/ {
  8001. s/^0 *\([^ ]*\) *$/\1/
  8002. p
  8003. }
  8004. }'
  8005. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8006. # Check for a 64-bit object if we didn't find anything.
  8007. if test -z "$lt_cv_aix_libpath_"; then
  8008. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8009. fi
  8010. fi
  8011. rm -f core conftest.err conftest.$ac_objext \
  8012. conftest$ac_exeext conftest.$ac_ext
  8013. if test -z "$lt_cv_aix_libpath_"; then
  8014. lt_cv_aix_libpath_="/usr/lib:/lib"
  8015. fi
  8016. fi
  8017. aix_libpath=$lt_cv_aix_libpath_
  8018. fi
  8019. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8020. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8021. else
  8022. if test "$host_cpu" = ia64; then
  8023. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8024. allow_undefined_flag="-z nodefs"
  8025. 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"
  8026. else
  8027. # Determine the default libpath from the value encoded in an
  8028. # empty executable.
  8029. if test "${lt_cv_aix_libpath+set}" = set; then
  8030. aix_libpath=$lt_cv_aix_libpath
  8031. else
  8032. if ${lt_cv_aix_libpath_+:} false; then :
  8033. $as_echo_n "(cached) " >&6
  8034. else
  8035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8036. /* end confdefs.h. */
  8037. int
  8038. main ()
  8039. {
  8040. ;
  8041. return 0;
  8042. }
  8043. _ACEOF
  8044. if ac_fn_c_try_link "$LINENO"; then :
  8045. lt_aix_libpath_sed='
  8046. /Import File Strings/,/^$/ {
  8047. /^0/ {
  8048. s/^0 *\([^ ]*\) *$/\1/
  8049. p
  8050. }
  8051. }'
  8052. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8053. # Check for a 64-bit object if we didn't find anything.
  8054. if test -z "$lt_cv_aix_libpath_"; then
  8055. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8056. fi
  8057. fi
  8058. rm -f core conftest.err conftest.$ac_objext \
  8059. conftest$ac_exeext conftest.$ac_ext
  8060. if test -z "$lt_cv_aix_libpath_"; then
  8061. lt_cv_aix_libpath_="/usr/lib:/lib"
  8062. fi
  8063. fi
  8064. aix_libpath=$lt_cv_aix_libpath_
  8065. fi
  8066. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8067. # Warning - without using the other run time loading flags,
  8068. # -berok will link without error, but may produce a broken library.
  8069. no_undefined_flag=' ${wl}-bernotok'
  8070. allow_undefined_flag=' ${wl}-berok'
  8071. if test "$with_gnu_ld" = yes; then
  8072. # We only use this code for GNU lds that support --whole-archive.
  8073. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8074. else
  8075. # Exported symbols can be pulled into shared objects from archives
  8076. whole_archive_flag_spec='$convenience'
  8077. fi
  8078. archive_cmds_need_lc=yes
  8079. # This is similar to how AIX traditionally builds its shared libraries.
  8080. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8081. fi
  8082. fi
  8083. ;;
  8084. amigaos*)
  8085. case $host_cpu in
  8086. powerpc)
  8087. # see comment about AmigaOS4 .so support
  8088. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8089. archive_expsym_cmds=''
  8090. ;;
  8091. m68k)
  8092. 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)'
  8093. hardcode_libdir_flag_spec='-L$libdir'
  8094. hardcode_minus_L=yes
  8095. ;;
  8096. esac
  8097. ;;
  8098. bsdi[45]*)
  8099. export_dynamic_flag_spec=-rdynamic
  8100. ;;
  8101. cygwin* | mingw* | pw32* | cegcc*)
  8102. # When not using gcc, we currently assume that we are using
  8103. # Microsoft Visual C++.
  8104. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8105. # no search path for DLLs.
  8106. case $cc_basename in
  8107. cl*)
  8108. # Native MSVC
  8109. hardcode_libdir_flag_spec=' '
  8110. allow_undefined_flag=unsupported
  8111. always_export_symbols=yes
  8112. file_list_spec='@'
  8113. # Tell ltmain to make .lib files, not .a files.
  8114. libext=lib
  8115. # Tell ltmain to make .dll files, not .so files.
  8116. shrext_cmds=".dll"
  8117. # FIXME: Setting linknames here is a bad hack.
  8118. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8119. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8120. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8121. else
  8122. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8123. fi~
  8124. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8125. linknames='
  8126. # The linker will not automatically build a static lib if we build a DLL.
  8127. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8128. enable_shared_with_static_runtimes=yes
  8129. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8130. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8131. # Don't use ranlib
  8132. old_postinstall_cmds='chmod 644 $oldlib'
  8133. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8134. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8135. case $lt_outputfile in
  8136. *.exe|*.EXE) ;;
  8137. *)
  8138. lt_outputfile="$lt_outputfile.exe"
  8139. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8140. ;;
  8141. esac~
  8142. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8143. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8144. $RM "$lt_outputfile.manifest";
  8145. fi'
  8146. ;;
  8147. *)
  8148. # Assume MSVC wrapper
  8149. hardcode_libdir_flag_spec=' '
  8150. allow_undefined_flag=unsupported
  8151. # Tell ltmain to make .lib files, not .a files.
  8152. libext=lib
  8153. # Tell ltmain to make .dll files, not .so files.
  8154. shrext_cmds=".dll"
  8155. # FIXME: Setting linknames here is a bad hack.
  8156. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8157. # The linker will automatically build a .lib file if we build a DLL.
  8158. old_archive_from_new_cmds='true'
  8159. # FIXME: Should let the user specify the lib program.
  8160. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8161. enable_shared_with_static_runtimes=yes
  8162. ;;
  8163. esac
  8164. ;;
  8165. darwin* | rhapsody*)
  8166. archive_cmds_need_lc=no
  8167. hardcode_direct=no
  8168. hardcode_automatic=yes
  8169. hardcode_shlibpath_var=unsupported
  8170. if test "$lt_cv_ld_force_load" = "yes"; then
  8171. 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\"`'
  8172. else
  8173. whole_archive_flag_spec=''
  8174. fi
  8175. link_all_deplibs=yes
  8176. allow_undefined_flag="$_lt_dar_allow_undefined"
  8177. case $cc_basename in
  8178. ifort*) _lt_dar_can_shared=yes ;;
  8179. *) _lt_dar_can_shared=$GCC ;;
  8180. esac
  8181. if test "$_lt_dar_can_shared" = "yes"; then
  8182. output_verbose_link_cmd=func_echo_all
  8183. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8184. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8185. 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}"
  8186. 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}"
  8187. else
  8188. ld_shlibs=no
  8189. fi
  8190. ;;
  8191. dgux*)
  8192. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8193. hardcode_libdir_flag_spec='-L$libdir'
  8194. hardcode_shlibpath_var=no
  8195. ;;
  8196. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8197. # support. Future versions do this automatically, but an explicit c++rt0.o
  8198. # does not break anything, and helps significantly (at the cost of a little
  8199. # extra space).
  8200. freebsd2.2*)
  8201. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8202. hardcode_libdir_flag_spec='-R$libdir'
  8203. hardcode_direct=yes
  8204. hardcode_shlibpath_var=no
  8205. ;;
  8206. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8207. freebsd2.*)
  8208. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8209. hardcode_direct=yes
  8210. hardcode_minus_L=yes
  8211. hardcode_shlibpath_var=no
  8212. ;;
  8213. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8214. freebsd* | dragonfly*)
  8215. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8216. hardcode_libdir_flag_spec='-R$libdir'
  8217. hardcode_direct=yes
  8218. hardcode_shlibpath_var=no
  8219. ;;
  8220. hpux9*)
  8221. if test "$GCC" = yes; then
  8222. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8223. else
  8224. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8225. fi
  8226. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8227. hardcode_libdir_separator=:
  8228. hardcode_direct=yes
  8229. # hardcode_minus_L: Not really in the search PATH,
  8230. # but as the default location of the library.
  8231. hardcode_minus_L=yes
  8232. export_dynamic_flag_spec='${wl}-E'
  8233. ;;
  8234. hpux10*)
  8235. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8236. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8237. else
  8238. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8239. fi
  8240. if test "$with_gnu_ld" = no; then
  8241. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8242. hardcode_libdir_separator=:
  8243. hardcode_direct=yes
  8244. hardcode_direct_absolute=yes
  8245. export_dynamic_flag_spec='${wl}-E'
  8246. # hardcode_minus_L: Not really in the search PATH,
  8247. # but as the default location of the library.
  8248. hardcode_minus_L=yes
  8249. fi
  8250. ;;
  8251. hpux11*)
  8252. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8253. case $host_cpu in
  8254. hppa*64*)
  8255. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8256. ;;
  8257. ia64*)
  8258. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8259. ;;
  8260. *)
  8261. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8262. ;;
  8263. esac
  8264. else
  8265. case $host_cpu in
  8266. hppa*64*)
  8267. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8268. ;;
  8269. ia64*)
  8270. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8271. ;;
  8272. *)
  8273. # Older versions of the 11.00 compiler do not understand -b yet
  8274. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8276. $as_echo_n "checking if $CC understands -b... " >&6; }
  8277. if ${lt_cv_prog_compiler__b+:} false; then :
  8278. $as_echo_n "(cached) " >&6
  8279. else
  8280. lt_cv_prog_compiler__b=no
  8281. save_LDFLAGS="$LDFLAGS"
  8282. LDFLAGS="$LDFLAGS -b"
  8283. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8284. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8285. # The linker can only warn and ignore the option if not recognized
  8286. # So say no if there are warnings
  8287. if test -s conftest.err; then
  8288. # Append any errors to the config.log.
  8289. cat conftest.err 1>&5
  8290. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8291. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8292. if diff conftest.exp conftest.er2 >/dev/null; then
  8293. lt_cv_prog_compiler__b=yes
  8294. fi
  8295. else
  8296. lt_cv_prog_compiler__b=yes
  8297. fi
  8298. fi
  8299. $RM -r conftest*
  8300. LDFLAGS="$save_LDFLAGS"
  8301. fi
  8302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8303. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8304. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8305. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8306. else
  8307. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8308. fi
  8309. ;;
  8310. esac
  8311. fi
  8312. if test "$with_gnu_ld" = no; then
  8313. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8314. hardcode_libdir_separator=:
  8315. case $host_cpu in
  8316. hppa*64*|ia64*)
  8317. hardcode_direct=no
  8318. hardcode_shlibpath_var=no
  8319. ;;
  8320. *)
  8321. hardcode_direct=yes
  8322. hardcode_direct_absolute=yes
  8323. export_dynamic_flag_spec='${wl}-E'
  8324. # hardcode_minus_L: Not really in the search PATH,
  8325. # but as the default location of the library.
  8326. hardcode_minus_L=yes
  8327. ;;
  8328. esac
  8329. fi
  8330. ;;
  8331. irix5* | irix6* | nonstopux*)
  8332. if test "$GCC" = yes; then
  8333. 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'
  8334. # Try to use the -exported_symbol ld option, if it does not
  8335. # work, assume that -exports_file does not work either and
  8336. # implicitly export all symbols.
  8337. # This should be the same for all languages, so no per-tag cache variable.
  8338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8339. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8340. if ${lt_cv_irix_exported_symbol+:} false; then :
  8341. $as_echo_n "(cached) " >&6
  8342. else
  8343. save_LDFLAGS="$LDFLAGS"
  8344. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8346. /* end confdefs.h. */
  8347. int foo (void) { return 0; }
  8348. _ACEOF
  8349. if ac_fn_c_try_link "$LINENO"; then :
  8350. lt_cv_irix_exported_symbol=yes
  8351. else
  8352. lt_cv_irix_exported_symbol=no
  8353. fi
  8354. rm -f core conftest.err conftest.$ac_objext \
  8355. conftest$ac_exeext conftest.$ac_ext
  8356. LDFLAGS="$save_LDFLAGS"
  8357. fi
  8358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8359. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8360. if test "$lt_cv_irix_exported_symbol" = yes; then
  8361. 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'
  8362. fi
  8363. else
  8364. 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'
  8365. 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'
  8366. fi
  8367. archive_cmds_need_lc='no'
  8368. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8369. hardcode_libdir_separator=:
  8370. inherit_rpath=yes
  8371. link_all_deplibs=yes
  8372. ;;
  8373. netbsd*)
  8374. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8375. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8376. else
  8377. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8378. fi
  8379. hardcode_libdir_flag_spec='-R$libdir'
  8380. hardcode_direct=yes
  8381. hardcode_shlibpath_var=no
  8382. ;;
  8383. newsos6)
  8384. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8385. hardcode_direct=yes
  8386. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8387. hardcode_libdir_separator=:
  8388. hardcode_shlibpath_var=no
  8389. ;;
  8390. *nto* | *qnx*)
  8391. ;;
  8392. openbsd*)
  8393. if test -f /usr/libexec/ld.so; then
  8394. hardcode_direct=yes
  8395. hardcode_shlibpath_var=no
  8396. hardcode_direct_absolute=yes
  8397. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8398. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8399. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8400. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8401. export_dynamic_flag_spec='${wl}-E'
  8402. else
  8403. case $host_os in
  8404. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8405. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8406. hardcode_libdir_flag_spec='-R$libdir'
  8407. ;;
  8408. *)
  8409. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8410. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8411. ;;
  8412. esac
  8413. fi
  8414. else
  8415. ld_shlibs=no
  8416. fi
  8417. ;;
  8418. os2*)
  8419. hardcode_libdir_flag_spec='-L$libdir'
  8420. hardcode_minus_L=yes
  8421. allow_undefined_flag=unsupported
  8422. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8423. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8424. ;;
  8425. osf3*)
  8426. if test "$GCC" = yes; then
  8427. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8428. 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'
  8429. else
  8430. allow_undefined_flag=' -expect_unresolved \*'
  8431. 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'
  8432. fi
  8433. archive_cmds_need_lc='no'
  8434. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8435. hardcode_libdir_separator=:
  8436. ;;
  8437. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8438. if test "$GCC" = yes; then
  8439. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8440. 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'
  8441. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8442. else
  8443. allow_undefined_flag=' -expect_unresolved \*'
  8444. 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'
  8445. 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~
  8446. $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'
  8447. # Both c and cxx compiler support -rpath directly
  8448. hardcode_libdir_flag_spec='-rpath $libdir'
  8449. fi
  8450. archive_cmds_need_lc='no'
  8451. hardcode_libdir_separator=:
  8452. ;;
  8453. solaris*)
  8454. no_undefined_flag=' -z defs'
  8455. if test "$GCC" = yes; then
  8456. wlarc='${wl}'
  8457. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8458. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8459. $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'
  8460. else
  8461. case `$CC -V 2>&1` in
  8462. *"Compilers 5.0"*)
  8463. wlarc=''
  8464. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8465. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8466. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8467. ;;
  8468. *)
  8469. wlarc='${wl}'
  8470. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8471. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8472. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8473. ;;
  8474. esac
  8475. fi
  8476. hardcode_libdir_flag_spec='-R$libdir'
  8477. hardcode_shlibpath_var=no
  8478. case $host_os in
  8479. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8480. *)
  8481. # The compiler driver will combine and reorder linker options,
  8482. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8483. # but is careful enough not to reorder.
  8484. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8485. if test "$GCC" = yes; then
  8486. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8487. else
  8488. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8489. fi
  8490. ;;
  8491. esac
  8492. link_all_deplibs=yes
  8493. ;;
  8494. sunos4*)
  8495. if test "x$host_vendor" = xsequent; then
  8496. # Use $CC to link under sequent, because it throws in some extra .o
  8497. # files that make .init and .fini sections work.
  8498. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8499. else
  8500. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8501. fi
  8502. hardcode_libdir_flag_spec='-L$libdir'
  8503. hardcode_direct=yes
  8504. hardcode_minus_L=yes
  8505. hardcode_shlibpath_var=no
  8506. ;;
  8507. sysv4)
  8508. case $host_vendor in
  8509. sni)
  8510. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8511. hardcode_direct=yes # is this really true???
  8512. ;;
  8513. siemens)
  8514. ## LD is ld it makes a PLAMLIB
  8515. ## CC just makes a GrossModule.
  8516. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8517. reload_cmds='$CC -r -o $output$reload_objs'
  8518. hardcode_direct=no
  8519. ;;
  8520. motorola)
  8521. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8522. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8523. ;;
  8524. esac
  8525. runpath_var='LD_RUN_PATH'
  8526. hardcode_shlibpath_var=no
  8527. ;;
  8528. sysv4.3*)
  8529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8530. hardcode_shlibpath_var=no
  8531. export_dynamic_flag_spec='-Bexport'
  8532. ;;
  8533. sysv4*MP*)
  8534. if test -d /usr/nec; then
  8535. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8536. hardcode_shlibpath_var=no
  8537. runpath_var=LD_RUN_PATH
  8538. hardcode_runpath_var=yes
  8539. ld_shlibs=yes
  8540. fi
  8541. ;;
  8542. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8543. no_undefined_flag='${wl}-z,text'
  8544. archive_cmds_need_lc=no
  8545. hardcode_shlibpath_var=no
  8546. runpath_var='LD_RUN_PATH'
  8547. if test "$GCC" = yes; then
  8548. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8549. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8550. else
  8551. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8552. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8553. fi
  8554. ;;
  8555. sysv5* | sco3.2v5* | sco5v6*)
  8556. # Note: We can NOT use -z defs as we might desire, because we do not
  8557. # link with -lc, and that would cause any symbols used from libc to
  8558. # always be unresolved, which means just about no library would
  8559. # ever link correctly. If we're not using GNU ld we use -z text
  8560. # though, which does catch some bad symbols but isn't as heavy-handed
  8561. # as -z defs.
  8562. no_undefined_flag='${wl}-z,text'
  8563. allow_undefined_flag='${wl}-z,nodefs'
  8564. archive_cmds_need_lc=no
  8565. hardcode_shlibpath_var=no
  8566. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8567. hardcode_libdir_separator=':'
  8568. link_all_deplibs=yes
  8569. export_dynamic_flag_spec='${wl}-Bexport'
  8570. runpath_var='LD_RUN_PATH'
  8571. if test "$GCC" = yes; then
  8572. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8573. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8574. else
  8575. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8576. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8577. fi
  8578. ;;
  8579. uts4*)
  8580. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8581. hardcode_libdir_flag_spec='-L$libdir'
  8582. hardcode_shlibpath_var=no
  8583. ;;
  8584. *)
  8585. ld_shlibs=no
  8586. ;;
  8587. esac
  8588. if test x$host_vendor = xsni; then
  8589. case $host in
  8590. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8591. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8592. ;;
  8593. esac
  8594. fi
  8595. fi
  8596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8597. $as_echo "$ld_shlibs" >&6; }
  8598. test "$ld_shlibs" = no && can_build_shared=no
  8599. with_gnu_ld=$with_gnu_ld
  8600. #
  8601. # Do we need to explicitly link libc?
  8602. #
  8603. case "x$archive_cmds_need_lc" in
  8604. x|xyes)
  8605. # Assume -lc should be added
  8606. archive_cmds_need_lc=yes
  8607. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8608. case $archive_cmds in
  8609. *'~'*)
  8610. # FIXME: we may have to deal with multi-command sequences.
  8611. ;;
  8612. '$CC '*)
  8613. # Test whether the compiler implicitly links with -lc since on some
  8614. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8615. # to ld, don't add -lc before -lgcc.
  8616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8617. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8618. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8619. $as_echo_n "(cached) " >&6
  8620. else
  8621. $RM conftest*
  8622. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8623. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8624. (eval $ac_compile) 2>&5
  8625. ac_status=$?
  8626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8627. test $ac_status = 0; } 2>conftest.err; then
  8628. soname=conftest
  8629. lib=conftest
  8630. libobjs=conftest.$ac_objext
  8631. deplibs=
  8632. wl=$lt_prog_compiler_wl
  8633. pic_flag=$lt_prog_compiler_pic
  8634. compiler_flags=-v
  8635. linker_flags=-v
  8636. verstring=
  8637. output_objdir=.
  8638. libname=conftest
  8639. lt_save_allow_undefined_flag=$allow_undefined_flag
  8640. allow_undefined_flag=
  8641. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8642. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8643. ac_status=$?
  8644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8645. test $ac_status = 0; }
  8646. then
  8647. lt_cv_archive_cmds_need_lc=no
  8648. else
  8649. lt_cv_archive_cmds_need_lc=yes
  8650. fi
  8651. allow_undefined_flag=$lt_save_allow_undefined_flag
  8652. else
  8653. cat conftest.err 1>&5
  8654. fi
  8655. $RM conftest*
  8656. fi
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8658. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8659. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8660. ;;
  8661. esac
  8662. fi
  8663. ;;
  8664. esac
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8666. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8667. if test "$GCC" = yes; then
  8668. case $host_os in
  8669. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8670. *) lt_awk_arg="/^libraries:/" ;;
  8671. esac
  8672. case $host_os in
  8673. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8674. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8675. esac
  8676. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8677. case $lt_search_path_spec in
  8678. *\;*)
  8679. # if the path contains ";" then we assume it to be the separator
  8680. # otherwise default to the standard path separator (i.e. ":") - it is
  8681. # assumed that no part of a normal pathname contains ";" but that should
  8682. # okay in the real world where ";" in dirpaths is itself problematic.
  8683. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8684. ;;
  8685. *)
  8686. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8687. ;;
  8688. esac
  8689. # Ok, now we have the path, separated by spaces, we can step through it
  8690. # and add multilib dir if necessary...
  8691. lt_tmp_lt_search_path_spec=
  8692. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8693. # ...but if some path already ends with the multilib dir we assume
  8694. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8695. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8696. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8697. lt_multi_os_dir=
  8698. ;;
  8699. esac
  8700. for lt_sys_path in $lt_search_path_spec; do
  8701. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8702. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8703. elif test -n "$lt_multi_os_dir"; then
  8704. test -d "$lt_sys_path" && \
  8705. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8706. fi
  8707. done
  8708. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8709. BEGIN {RS=" "; FS="/|\n";} {
  8710. lt_foo="";
  8711. lt_count=0;
  8712. for (lt_i = NF; lt_i > 0; lt_i--) {
  8713. if ($lt_i != "" && $lt_i != ".") {
  8714. if ($lt_i == "..") {
  8715. lt_count++;
  8716. } else {
  8717. if (lt_count == 0) {
  8718. lt_foo="/" $lt_i lt_foo;
  8719. } else {
  8720. lt_count--;
  8721. }
  8722. }
  8723. }
  8724. }
  8725. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8726. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8727. }'`
  8728. # AWK program above erroneously prepends '/' to C:/dos/paths
  8729. # for these hosts.
  8730. case $host_os in
  8731. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8732. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8733. esac
  8734. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8735. else
  8736. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8737. fi
  8738. library_names_spec=
  8739. libname_spec='lib$name'
  8740. soname_spec=
  8741. shrext_cmds=".so"
  8742. postinstall_cmds=
  8743. postuninstall_cmds=
  8744. finish_cmds=
  8745. finish_eval=
  8746. shlibpath_var=
  8747. shlibpath_overrides_runpath=unknown
  8748. version_type=none
  8749. dynamic_linker="$host_os ld.so"
  8750. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8751. need_lib_prefix=unknown
  8752. hardcode_into_libs=no
  8753. # when you set need_version to no, make sure it does not cause -set_version
  8754. # flags to be left without arguments
  8755. need_version=unknown
  8756. case $host_os in
  8757. aix3*)
  8758. version_type=linux # correct to gnu/linux during the next big refactor
  8759. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8760. shlibpath_var=LIBPATH
  8761. # AIX 3 has no versioning support, so we append a major version to the name.
  8762. soname_spec='${libname}${release}${shared_ext}$major'
  8763. ;;
  8764. aix[4-9]*)
  8765. version_type=linux # correct to gnu/linux during the next big refactor
  8766. need_lib_prefix=no
  8767. need_version=no
  8768. hardcode_into_libs=yes
  8769. if test "$host_cpu" = ia64; then
  8770. # AIX 5 supports IA64
  8771. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8772. shlibpath_var=LD_LIBRARY_PATH
  8773. else
  8774. # With GCC up to 2.95.x, collect2 would create an import file
  8775. # for dependence libraries. The import file would start with
  8776. # the line `#! .'. This would cause the generated library to
  8777. # depend on `.', always an invalid library. This was fixed in
  8778. # development snapshots of GCC prior to 3.0.
  8779. case $host_os in
  8780. aix4 | aix4.[01] | aix4.[01].*)
  8781. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8782. echo ' yes '
  8783. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8784. :
  8785. else
  8786. can_build_shared=no
  8787. fi
  8788. ;;
  8789. esac
  8790. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8791. # soname into executable. Probably we can add versioning support to
  8792. # collect2, so additional links can be useful in future.
  8793. if test "$aix_use_runtimelinking" = yes; then
  8794. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8795. # instead of lib<name>.a to let people know that these are not
  8796. # typical AIX shared libraries.
  8797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8798. else
  8799. # We preserve .a as extension for shared libraries through AIX4.2
  8800. # and later when we are not doing run time linking.
  8801. library_names_spec='${libname}${release}.a $libname.a'
  8802. soname_spec='${libname}${release}${shared_ext}$major'
  8803. fi
  8804. shlibpath_var=LIBPATH
  8805. fi
  8806. ;;
  8807. amigaos*)
  8808. case $host_cpu in
  8809. powerpc)
  8810. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8811. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8812. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8813. ;;
  8814. m68k)
  8815. library_names_spec='$libname.ixlibrary $libname.a'
  8816. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8817. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  8818. ;;
  8819. esac
  8820. ;;
  8821. beos*)
  8822. library_names_spec='${libname}${shared_ext}'
  8823. dynamic_linker="$host_os ld.so"
  8824. shlibpath_var=LIBRARY_PATH
  8825. ;;
  8826. bsdi[45]*)
  8827. version_type=linux # correct to gnu/linux during the next big refactor
  8828. need_version=no
  8829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8830. soname_spec='${libname}${release}${shared_ext}$major'
  8831. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8832. shlibpath_var=LD_LIBRARY_PATH
  8833. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8834. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8835. # the default ld.so.conf also contains /usr/contrib/lib and
  8836. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8837. # libtool to hard-code these into programs
  8838. ;;
  8839. cygwin* | mingw* | pw32* | cegcc*)
  8840. version_type=windows
  8841. shrext_cmds=".dll"
  8842. need_version=no
  8843. need_lib_prefix=no
  8844. case $GCC,$cc_basename in
  8845. yes,*)
  8846. # gcc
  8847. library_names_spec='$libname.dll.a'
  8848. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8849. postinstall_cmds='base_file=`basename \${file}`~
  8850. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8851. dldir=$destdir/`dirname \$dlpath`~
  8852. test -d \$dldir || mkdir -p \$dldir~
  8853. $install_prog $dir/$dlname \$dldir/$dlname~
  8854. chmod a+x \$dldir/$dlname~
  8855. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8856. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8857. fi'
  8858. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8859. dlpath=$dir/\$dldll~
  8860. $RM \$dlpath'
  8861. shlibpath_overrides_runpath=yes
  8862. case $host_os in
  8863. cygwin*)
  8864. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8865. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8866. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8867. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8868. ;;
  8869. mingw* | cegcc*)
  8870. # MinGW DLLs use traditional 'lib' prefix
  8871. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8872. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8873. ;;
  8874. pw32*)
  8875. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8876. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8877. ;;
  8878. esac
  8879. dynamic_linker='Win32 ld.exe'
  8880. ;;
  8881. *,cl*)
  8882. # Native MSVC
  8883. libname_spec='$name'
  8884. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8885. library_names_spec='${libname}.dll.lib'
  8886. case $build_os in
  8887. mingw*)
  8888. sys_lib_search_path_spec=
  8889. lt_save_ifs=$IFS
  8890. IFS=';'
  8891. for lt_path in $LIB
  8892. do
  8893. IFS=$lt_save_ifs
  8894. # Let DOS variable expansion print the short 8.3 style file name.
  8895. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8896. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8897. done
  8898. IFS=$lt_save_ifs
  8899. # Convert to MSYS style.
  8900. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8901. ;;
  8902. cygwin*)
  8903. # Convert to unix form, then to dos form, then back to unix form
  8904. # but this time dos style (no spaces!) so that the unix form looks
  8905. # like /cygdrive/c/PROGRA~1:/cygdr...
  8906. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8907. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8908. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8909. ;;
  8910. *)
  8911. sys_lib_search_path_spec="$LIB"
  8912. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8913. # It is most probably a Windows format PATH.
  8914. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8915. else
  8916. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8917. fi
  8918. # FIXME: find the short name or the path components, as spaces are
  8919. # common. (e.g. "Program Files" -> "PROGRA~1")
  8920. ;;
  8921. esac
  8922. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8923. postinstall_cmds='base_file=`basename \${file}`~
  8924. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8925. dldir=$destdir/`dirname \$dlpath`~
  8926. test -d \$dldir || mkdir -p \$dldir~
  8927. $install_prog $dir/$dlname \$dldir/$dlname'
  8928. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8929. dlpath=$dir/\$dldll~
  8930. $RM \$dlpath'
  8931. shlibpath_overrides_runpath=yes
  8932. dynamic_linker='Win32 link.exe'
  8933. ;;
  8934. *)
  8935. # Assume MSVC wrapper
  8936. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8937. dynamic_linker='Win32 ld.exe'
  8938. ;;
  8939. esac
  8940. # FIXME: first we should search . and the directory the executable is in
  8941. shlibpath_var=PATH
  8942. ;;
  8943. darwin* | rhapsody*)
  8944. dynamic_linker="$host_os dyld"
  8945. version_type=darwin
  8946. need_lib_prefix=no
  8947. need_version=no
  8948. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8949. soname_spec='${libname}${release}${major}$shared_ext'
  8950. shlibpath_overrides_runpath=yes
  8951. shlibpath_var=DYLD_LIBRARY_PATH
  8952. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8953. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8954. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8955. ;;
  8956. dgux*)
  8957. version_type=linux # correct to gnu/linux during the next big refactor
  8958. need_lib_prefix=no
  8959. need_version=no
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8961. soname_spec='${libname}${release}${shared_ext}$major'
  8962. shlibpath_var=LD_LIBRARY_PATH
  8963. ;;
  8964. freebsd* | dragonfly*)
  8965. # DragonFly does not have aout. When/if they implement a new
  8966. # versioning mechanism, adjust this.
  8967. if test -x /usr/bin/objformat; then
  8968. objformat=`/usr/bin/objformat`
  8969. else
  8970. case $host_os in
  8971. freebsd[23].*) objformat=aout ;;
  8972. *) objformat=elf ;;
  8973. esac
  8974. fi
  8975. version_type=freebsd-$objformat
  8976. case $version_type in
  8977. freebsd-elf*)
  8978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8979. need_version=no
  8980. need_lib_prefix=no
  8981. ;;
  8982. freebsd-*)
  8983. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8984. need_version=yes
  8985. ;;
  8986. esac
  8987. shlibpath_var=LD_LIBRARY_PATH
  8988. case $host_os in
  8989. freebsd2.*)
  8990. shlibpath_overrides_runpath=yes
  8991. ;;
  8992. freebsd3.[01]* | freebsdelf3.[01]*)
  8993. shlibpath_overrides_runpath=yes
  8994. hardcode_into_libs=yes
  8995. ;;
  8996. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8997. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8998. shlibpath_overrides_runpath=no
  8999. hardcode_into_libs=yes
  9000. ;;
  9001. *) # from 4.6 on, and DragonFly
  9002. shlibpath_overrides_runpath=yes
  9003. hardcode_into_libs=yes
  9004. ;;
  9005. esac
  9006. ;;
  9007. gnu*)
  9008. version_type=linux # correct to gnu/linux during the next big refactor
  9009. need_lib_prefix=no
  9010. need_version=no
  9011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9012. soname_spec='${libname}${release}${shared_ext}$major'
  9013. shlibpath_var=LD_LIBRARY_PATH
  9014. shlibpath_overrides_runpath=no
  9015. hardcode_into_libs=yes
  9016. ;;
  9017. haiku*)
  9018. version_type=linux # correct to gnu/linux during the next big refactor
  9019. need_lib_prefix=no
  9020. need_version=no
  9021. dynamic_linker="$host_os runtime_loader"
  9022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9023. soname_spec='${libname}${release}${shared_ext}$major'
  9024. shlibpath_var=LIBRARY_PATH
  9025. shlibpath_overrides_runpath=yes
  9026. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9027. hardcode_into_libs=yes
  9028. ;;
  9029. hpux9* | hpux10* | hpux11*)
  9030. # Give a soname corresponding to the major version so that dld.sl refuses to
  9031. # link against other versions.
  9032. version_type=sunos
  9033. need_lib_prefix=no
  9034. need_version=no
  9035. case $host_cpu in
  9036. ia64*)
  9037. shrext_cmds='.so'
  9038. hardcode_into_libs=yes
  9039. dynamic_linker="$host_os dld.so"
  9040. shlibpath_var=LD_LIBRARY_PATH
  9041. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9043. soname_spec='${libname}${release}${shared_ext}$major'
  9044. if test "X$HPUX_IA64_MODE" = X32; then
  9045. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9046. else
  9047. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9048. fi
  9049. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9050. ;;
  9051. hppa*64*)
  9052. shrext_cmds='.sl'
  9053. hardcode_into_libs=yes
  9054. dynamic_linker="$host_os dld.sl"
  9055. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9056. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9058. soname_spec='${libname}${release}${shared_ext}$major'
  9059. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9060. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9061. ;;
  9062. *)
  9063. shrext_cmds='.sl'
  9064. dynamic_linker="$host_os dld.sl"
  9065. shlibpath_var=SHLIB_PATH
  9066. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9068. soname_spec='${libname}${release}${shared_ext}$major'
  9069. ;;
  9070. esac
  9071. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9072. postinstall_cmds='chmod 555 $lib'
  9073. # or fails outright, so override atomically:
  9074. install_override_mode=555
  9075. ;;
  9076. interix[3-9]*)
  9077. version_type=linux # correct to gnu/linux during the next big refactor
  9078. need_lib_prefix=no
  9079. need_version=no
  9080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9081. soname_spec='${libname}${release}${shared_ext}$major'
  9082. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9083. shlibpath_var=LD_LIBRARY_PATH
  9084. shlibpath_overrides_runpath=no
  9085. hardcode_into_libs=yes
  9086. ;;
  9087. irix5* | irix6* | nonstopux*)
  9088. case $host_os in
  9089. nonstopux*) version_type=nonstopux ;;
  9090. *)
  9091. if test "$lt_cv_prog_gnu_ld" = yes; then
  9092. version_type=linux # correct to gnu/linux during the next big refactor
  9093. else
  9094. version_type=irix
  9095. fi ;;
  9096. esac
  9097. need_lib_prefix=no
  9098. need_version=no
  9099. soname_spec='${libname}${release}${shared_ext}$major'
  9100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9101. case $host_os in
  9102. irix5* | nonstopux*)
  9103. libsuff= shlibsuff=
  9104. ;;
  9105. *)
  9106. case $LD in # libtool.m4 will add one of these switches to LD
  9107. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9108. libsuff= shlibsuff= libmagic=32-bit;;
  9109. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9110. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9111. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9112. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9113. *) libsuff= shlibsuff= libmagic=never-match;;
  9114. esac
  9115. ;;
  9116. esac
  9117. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9118. shlibpath_overrides_runpath=no
  9119. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9120. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9121. hardcode_into_libs=yes
  9122. ;;
  9123. # No shared lib support for Linux oldld, aout, or coff.
  9124. linux*oldld* | linux*aout* | linux*coff*)
  9125. dynamic_linker=no
  9126. ;;
  9127. # This must be glibc/ELF.
  9128. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9129. version_type=linux # correct to gnu/linux during the next big refactor
  9130. need_lib_prefix=no
  9131. need_version=no
  9132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9133. soname_spec='${libname}${release}${shared_ext}$major'
  9134. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9135. shlibpath_var=LD_LIBRARY_PATH
  9136. shlibpath_overrides_runpath=no
  9137. # Some binutils ld are patched to set DT_RUNPATH
  9138. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9139. $as_echo_n "(cached) " >&6
  9140. else
  9141. lt_cv_shlibpath_overrides_runpath=no
  9142. save_LDFLAGS=$LDFLAGS
  9143. save_libdir=$libdir
  9144. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9145. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9147. /* end confdefs.h. */
  9148. int
  9149. main ()
  9150. {
  9151. ;
  9152. return 0;
  9153. }
  9154. _ACEOF
  9155. if ac_fn_c_try_link "$LINENO"; then :
  9156. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9157. lt_cv_shlibpath_overrides_runpath=yes
  9158. fi
  9159. fi
  9160. rm -f core conftest.err conftest.$ac_objext \
  9161. conftest$ac_exeext conftest.$ac_ext
  9162. LDFLAGS=$save_LDFLAGS
  9163. libdir=$save_libdir
  9164. fi
  9165. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9166. # This implies no fast_install, which is unacceptable.
  9167. # Some rework will be needed to allow for fast_install
  9168. # before this can be enabled.
  9169. hardcode_into_libs=yes
  9170. # Append ld.so.conf contents to the search path
  9171. if test -f /etc/ld.so.conf; then
  9172. 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' ' '`
  9173. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9174. fi
  9175. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9176. # powerpc, because MkLinux only supported shared libraries with the
  9177. # GNU dynamic linker. Since this was broken with cross compilers,
  9178. # most powerpc-linux boxes support dynamic linking these days and
  9179. # people can always --disable-shared, the test was removed, and we
  9180. # assume the GNU/Linux dynamic linker is in use.
  9181. dynamic_linker='GNU/Linux ld.so'
  9182. ;;
  9183. netbsd*)
  9184. version_type=sunos
  9185. need_lib_prefix=no
  9186. need_version=no
  9187. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9189. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9190. dynamic_linker='NetBSD (a.out) ld.so'
  9191. else
  9192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9193. soname_spec='${libname}${release}${shared_ext}$major'
  9194. dynamic_linker='NetBSD ld.elf_so'
  9195. fi
  9196. shlibpath_var=LD_LIBRARY_PATH
  9197. shlibpath_overrides_runpath=yes
  9198. hardcode_into_libs=yes
  9199. ;;
  9200. newsos6)
  9201. version_type=linux # correct to gnu/linux during the next big refactor
  9202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9203. shlibpath_var=LD_LIBRARY_PATH
  9204. shlibpath_overrides_runpath=yes
  9205. ;;
  9206. *nto* | *qnx*)
  9207. version_type=qnx
  9208. need_lib_prefix=no
  9209. need_version=no
  9210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9211. soname_spec='${libname}${release}${shared_ext}$major'
  9212. shlibpath_var=LD_LIBRARY_PATH
  9213. shlibpath_overrides_runpath=no
  9214. hardcode_into_libs=yes
  9215. dynamic_linker='ldqnx.so'
  9216. ;;
  9217. openbsd*)
  9218. version_type=sunos
  9219. sys_lib_dlsearch_path_spec="/usr/lib"
  9220. need_lib_prefix=no
  9221. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9222. case $host_os in
  9223. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9224. *) need_version=no ;;
  9225. esac
  9226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9227. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9228. shlibpath_var=LD_LIBRARY_PATH
  9229. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9230. case $host_os in
  9231. openbsd2.[89] | openbsd2.[89].*)
  9232. shlibpath_overrides_runpath=no
  9233. ;;
  9234. *)
  9235. shlibpath_overrides_runpath=yes
  9236. ;;
  9237. esac
  9238. else
  9239. shlibpath_overrides_runpath=yes
  9240. fi
  9241. ;;
  9242. os2*)
  9243. libname_spec='$name'
  9244. shrext_cmds=".dll"
  9245. need_lib_prefix=no
  9246. library_names_spec='$libname${shared_ext} $libname.a'
  9247. dynamic_linker='OS/2 ld.exe'
  9248. shlibpath_var=LIBPATH
  9249. ;;
  9250. osf3* | osf4* | osf5*)
  9251. version_type=osf
  9252. need_lib_prefix=no
  9253. need_version=no
  9254. soname_spec='${libname}${release}${shared_ext}$major'
  9255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9256. shlibpath_var=LD_LIBRARY_PATH
  9257. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9258. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9259. ;;
  9260. rdos*)
  9261. dynamic_linker=no
  9262. ;;
  9263. solaris*)
  9264. version_type=linux # correct to gnu/linux during the next big refactor
  9265. need_lib_prefix=no
  9266. need_version=no
  9267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9268. soname_spec='${libname}${release}${shared_ext}$major'
  9269. shlibpath_var=LD_LIBRARY_PATH
  9270. shlibpath_overrides_runpath=yes
  9271. hardcode_into_libs=yes
  9272. # ldd complains unless libraries are executable
  9273. postinstall_cmds='chmod +x $lib'
  9274. ;;
  9275. sunos4*)
  9276. version_type=sunos
  9277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9278. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9279. shlibpath_var=LD_LIBRARY_PATH
  9280. shlibpath_overrides_runpath=yes
  9281. if test "$with_gnu_ld" = yes; then
  9282. need_lib_prefix=no
  9283. fi
  9284. need_version=yes
  9285. ;;
  9286. sysv4 | sysv4.3*)
  9287. version_type=linux # correct to gnu/linux during the next big refactor
  9288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9289. soname_spec='${libname}${release}${shared_ext}$major'
  9290. shlibpath_var=LD_LIBRARY_PATH
  9291. case $host_vendor in
  9292. sni)
  9293. shlibpath_overrides_runpath=no
  9294. need_lib_prefix=no
  9295. runpath_var=LD_RUN_PATH
  9296. ;;
  9297. siemens)
  9298. need_lib_prefix=no
  9299. ;;
  9300. motorola)
  9301. need_lib_prefix=no
  9302. need_version=no
  9303. shlibpath_overrides_runpath=no
  9304. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9305. ;;
  9306. esac
  9307. ;;
  9308. sysv4*MP*)
  9309. if test -d /usr/nec ;then
  9310. version_type=linux # correct to gnu/linux during the next big refactor
  9311. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9312. soname_spec='$libname${shared_ext}.$major'
  9313. shlibpath_var=LD_LIBRARY_PATH
  9314. fi
  9315. ;;
  9316. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9317. version_type=freebsd-elf
  9318. need_lib_prefix=no
  9319. need_version=no
  9320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9321. soname_spec='${libname}${release}${shared_ext}$major'
  9322. shlibpath_var=LD_LIBRARY_PATH
  9323. shlibpath_overrides_runpath=yes
  9324. hardcode_into_libs=yes
  9325. if test "$with_gnu_ld" = yes; then
  9326. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9327. else
  9328. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9329. case $host_os in
  9330. sco3.2v5*)
  9331. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9332. ;;
  9333. esac
  9334. fi
  9335. sys_lib_dlsearch_path_spec='/usr/lib'
  9336. ;;
  9337. tpf*)
  9338. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9339. version_type=linux # correct to gnu/linux during the next big refactor
  9340. need_lib_prefix=no
  9341. need_version=no
  9342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. shlibpath_overrides_runpath=no
  9345. hardcode_into_libs=yes
  9346. ;;
  9347. uts4*)
  9348. version_type=linux # correct to gnu/linux during the next big refactor
  9349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9350. soname_spec='${libname}${release}${shared_ext}$major'
  9351. shlibpath_var=LD_LIBRARY_PATH
  9352. ;;
  9353. *)
  9354. dynamic_linker=no
  9355. ;;
  9356. esac
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9358. $as_echo "$dynamic_linker" >&6; }
  9359. test "$dynamic_linker" = no && can_build_shared=no
  9360. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9361. if test "$GCC" = yes; then
  9362. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9363. fi
  9364. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9365. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9366. fi
  9367. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9368. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9369. fi
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9371. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9372. hardcode_action=
  9373. if test -n "$hardcode_libdir_flag_spec" ||
  9374. test -n "$runpath_var" ||
  9375. test "X$hardcode_automatic" = "Xyes" ; then
  9376. # We can hardcode non-existent directories.
  9377. if test "$hardcode_direct" != no &&
  9378. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9379. # have to relink, otherwise we might link with an installed library
  9380. # when we should be linking with a yet-to-be-installed one
  9381. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9382. test "$hardcode_minus_L" != no; then
  9383. # Linking always hardcodes the temporary library directory.
  9384. hardcode_action=relink
  9385. else
  9386. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9387. hardcode_action=immediate
  9388. fi
  9389. else
  9390. # We cannot hardcode anything, or else we can only hardcode existing
  9391. # directories.
  9392. hardcode_action=unsupported
  9393. fi
  9394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9395. $as_echo "$hardcode_action" >&6; }
  9396. if test "$hardcode_action" = relink ||
  9397. test "$inherit_rpath" = yes; then
  9398. # Fast installation is not supported
  9399. enable_fast_install=no
  9400. elif test "$shlibpath_overrides_runpath" = yes ||
  9401. test "$enable_shared" = no; then
  9402. # Fast installation is not necessary
  9403. enable_fast_install=needless
  9404. fi
  9405. if test "x$enable_dlopen" != xyes; then
  9406. enable_dlopen=unknown
  9407. enable_dlopen_self=unknown
  9408. enable_dlopen_self_static=unknown
  9409. else
  9410. lt_cv_dlopen=no
  9411. lt_cv_dlopen_libs=
  9412. case $host_os in
  9413. beos*)
  9414. lt_cv_dlopen="load_add_on"
  9415. lt_cv_dlopen_libs=
  9416. lt_cv_dlopen_self=yes
  9417. ;;
  9418. mingw* | pw32* | cegcc*)
  9419. lt_cv_dlopen="LoadLibrary"
  9420. lt_cv_dlopen_libs=
  9421. ;;
  9422. cygwin*)
  9423. lt_cv_dlopen="dlopen"
  9424. lt_cv_dlopen_libs=
  9425. ;;
  9426. darwin*)
  9427. # if libdl is installed we need to link against it
  9428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9429. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9430. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9431. $as_echo_n "(cached) " >&6
  9432. else
  9433. ac_check_lib_save_LIBS=$LIBS
  9434. LIBS="-ldl $LIBS"
  9435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9436. /* end confdefs.h. */
  9437. /* Override any GCC internal prototype to avoid an error.
  9438. Use char because int might match the return type of a GCC
  9439. builtin and then its argument prototype would still apply. */
  9440. #ifdef __cplusplus
  9441. extern "C"
  9442. #endif
  9443. char dlopen ();
  9444. int
  9445. main ()
  9446. {
  9447. return dlopen ();
  9448. ;
  9449. return 0;
  9450. }
  9451. _ACEOF
  9452. if ac_fn_c_try_link "$LINENO"; then :
  9453. ac_cv_lib_dl_dlopen=yes
  9454. else
  9455. ac_cv_lib_dl_dlopen=no
  9456. fi
  9457. rm -f core conftest.err conftest.$ac_objext \
  9458. conftest$ac_exeext conftest.$ac_ext
  9459. LIBS=$ac_check_lib_save_LIBS
  9460. fi
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9462. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9463. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9464. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9465. else
  9466. lt_cv_dlopen="dyld"
  9467. lt_cv_dlopen_libs=
  9468. lt_cv_dlopen_self=yes
  9469. fi
  9470. ;;
  9471. *)
  9472. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9473. if test "x$ac_cv_func_shl_load" = xyes; then :
  9474. lt_cv_dlopen="shl_load"
  9475. else
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9477. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9478. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9479. $as_echo_n "(cached) " >&6
  9480. else
  9481. ac_check_lib_save_LIBS=$LIBS
  9482. LIBS="-ldld $LIBS"
  9483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9484. /* end confdefs.h. */
  9485. /* Override any GCC internal prototype to avoid an error.
  9486. Use char because int might match the return type of a GCC
  9487. builtin and then its argument prototype would still apply. */
  9488. #ifdef __cplusplus
  9489. extern "C"
  9490. #endif
  9491. char shl_load ();
  9492. int
  9493. main ()
  9494. {
  9495. return shl_load ();
  9496. ;
  9497. return 0;
  9498. }
  9499. _ACEOF
  9500. if ac_fn_c_try_link "$LINENO"; then :
  9501. ac_cv_lib_dld_shl_load=yes
  9502. else
  9503. ac_cv_lib_dld_shl_load=no
  9504. fi
  9505. rm -f core conftest.err conftest.$ac_objext \
  9506. conftest$ac_exeext conftest.$ac_ext
  9507. LIBS=$ac_check_lib_save_LIBS
  9508. fi
  9509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9510. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9511. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9512. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9513. else
  9514. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9515. if test "x$ac_cv_func_dlopen" = xyes; then :
  9516. lt_cv_dlopen="dlopen"
  9517. else
  9518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9519. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9520. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9521. $as_echo_n "(cached) " >&6
  9522. else
  9523. ac_check_lib_save_LIBS=$LIBS
  9524. LIBS="-ldl $LIBS"
  9525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9526. /* end confdefs.h. */
  9527. /* Override any GCC internal prototype to avoid an error.
  9528. Use char because int might match the return type of a GCC
  9529. builtin and then its argument prototype would still apply. */
  9530. #ifdef __cplusplus
  9531. extern "C"
  9532. #endif
  9533. char dlopen ();
  9534. int
  9535. main ()
  9536. {
  9537. return dlopen ();
  9538. ;
  9539. return 0;
  9540. }
  9541. _ACEOF
  9542. if ac_fn_c_try_link "$LINENO"; then :
  9543. ac_cv_lib_dl_dlopen=yes
  9544. else
  9545. ac_cv_lib_dl_dlopen=no
  9546. fi
  9547. rm -f core conftest.err conftest.$ac_objext \
  9548. conftest$ac_exeext conftest.$ac_ext
  9549. LIBS=$ac_check_lib_save_LIBS
  9550. fi
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9552. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9553. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9554. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9555. else
  9556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9557. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9558. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9559. $as_echo_n "(cached) " >&6
  9560. else
  9561. ac_check_lib_save_LIBS=$LIBS
  9562. LIBS="-lsvld $LIBS"
  9563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9564. /* end confdefs.h. */
  9565. /* Override any GCC internal prototype to avoid an error.
  9566. Use char because int might match the return type of a GCC
  9567. builtin and then its argument prototype would still apply. */
  9568. #ifdef __cplusplus
  9569. extern "C"
  9570. #endif
  9571. char dlopen ();
  9572. int
  9573. main ()
  9574. {
  9575. return dlopen ();
  9576. ;
  9577. return 0;
  9578. }
  9579. _ACEOF
  9580. if ac_fn_c_try_link "$LINENO"; then :
  9581. ac_cv_lib_svld_dlopen=yes
  9582. else
  9583. ac_cv_lib_svld_dlopen=no
  9584. fi
  9585. rm -f core conftest.err conftest.$ac_objext \
  9586. conftest$ac_exeext conftest.$ac_ext
  9587. LIBS=$ac_check_lib_save_LIBS
  9588. fi
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9590. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9591. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9592. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9593. else
  9594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9595. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9596. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9597. $as_echo_n "(cached) " >&6
  9598. else
  9599. ac_check_lib_save_LIBS=$LIBS
  9600. LIBS="-ldld $LIBS"
  9601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9602. /* end confdefs.h. */
  9603. /* Override any GCC internal prototype to avoid an error.
  9604. Use char because int might match the return type of a GCC
  9605. builtin and then its argument prototype would still apply. */
  9606. #ifdef __cplusplus
  9607. extern "C"
  9608. #endif
  9609. char dld_link ();
  9610. int
  9611. main ()
  9612. {
  9613. return dld_link ();
  9614. ;
  9615. return 0;
  9616. }
  9617. _ACEOF
  9618. if ac_fn_c_try_link "$LINENO"; then :
  9619. ac_cv_lib_dld_dld_link=yes
  9620. else
  9621. ac_cv_lib_dld_dld_link=no
  9622. fi
  9623. rm -f core conftest.err conftest.$ac_objext \
  9624. conftest$ac_exeext conftest.$ac_ext
  9625. LIBS=$ac_check_lib_save_LIBS
  9626. fi
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9628. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9629. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9630. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9631. fi
  9632. fi
  9633. fi
  9634. fi
  9635. fi
  9636. fi
  9637. ;;
  9638. esac
  9639. if test "x$lt_cv_dlopen" != xno; then
  9640. enable_dlopen=yes
  9641. else
  9642. enable_dlopen=no
  9643. fi
  9644. case $lt_cv_dlopen in
  9645. dlopen)
  9646. save_CPPFLAGS="$CPPFLAGS"
  9647. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9648. save_LDFLAGS="$LDFLAGS"
  9649. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9650. save_LIBS="$LIBS"
  9651. LIBS="$lt_cv_dlopen_libs $LIBS"
  9652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9653. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9654. if ${lt_cv_dlopen_self+:} false; then :
  9655. $as_echo_n "(cached) " >&6
  9656. else
  9657. if test "$cross_compiling" = yes; then :
  9658. lt_cv_dlopen_self=cross
  9659. else
  9660. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9661. lt_status=$lt_dlunknown
  9662. cat > conftest.$ac_ext <<_LT_EOF
  9663. #line $LINENO "configure"
  9664. #include "confdefs.h"
  9665. #if HAVE_DLFCN_H
  9666. #include <dlfcn.h>
  9667. #endif
  9668. #include <stdio.h>
  9669. #ifdef RTLD_GLOBAL
  9670. # define LT_DLGLOBAL RTLD_GLOBAL
  9671. #else
  9672. # ifdef DL_GLOBAL
  9673. # define LT_DLGLOBAL DL_GLOBAL
  9674. # else
  9675. # define LT_DLGLOBAL 0
  9676. # endif
  9677. #endif
  9678. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9679. find out it does not work in some platform. */
  9680. #ifndef LT_DLLAZY_OR_NOW
  9681. # ifdef RTLD_LAZY
  9682. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9683. # else
  9684. # ifdef DL_LAZY
  9685. # define LT_DLLAZY_OR_NOW DL_LAZY
  9686. # else
  9687. # ifdef RTLD_NOW
  9688. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9689. # else
  9690. # ifdef DL_NOW
  9691. # define LT_DLLAZY_OR_NOW DL_NOW
  9692. # else
  9693. # define LT_DLLAZY_OR_NOW 0
  9694. # endif
  9695. # endif
  9696. # endif
  9697. # endif
  9698. #endif
  9699. /* When -fvisbility=hidden is used, assume the code has been annotated
  9700. correspondingly for the symbols needed. */
  9701. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9702. int fnord () __attribute__((visibility("default")));
  9703. #endif
  9704. int fnord () { return 42; }
  9705. int main ()
  9706. {
  9707. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9708. int status = $lt_dlunknown;
  9709. if (self)
  9710. {
  9711. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9712. else
  9713. {
  9714. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9715. else puts (dlerror ());
  9716. }
  9717. /* dlclose (self); */
  9718. }
  9719. else
  9720. puts (dlerror ());
  9721. return status;
  9722. }
  9723. _LT_EOF
  9724. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9725. (eval $ac_link) 2>&5
  9726. ac_status=$?
  9727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9728. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9729. (./conftest; exit; ) >&5 2>/dev/null
  9730. lt_status=$?
  9731. case x$lt_status in
  9732. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9733. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9734. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9735. esac
  9736. else :
  9737. # compilation failed
  9738. lt_cv_dlopen_self=no
  9739. fi
  9740. fi
  9741. rm -fr conftest*
  9742. fi
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9744. $as_echo "$lt_cv_dlopen_self" >&6; }
  9745. if test "x$lt_cv_dlopen_self" = xyes; then
  9746. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9748. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9749. if ${lt_cv_dlopen_self_static+:} false; then :
  9750. $as_echo_n "(cached) " >&6
  9751. else
  9752. if test "$cross_compiling" = yes; then :
  9753. lt_cv_dlopen_self_static=cross
  9754. else
  9755. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9756. lt_status=$lt_dlunknown
  9757. cat > conftest.$ac_ext <<_LT_EOF
  9758. #line $LINENO "configure"
  9759. #include "confdefs.h"
  9760. #if HAVE_DLFCN_H
  9761. #include <dlfcn.h>
  9762. #endif
  9763. #include <stdio.h>
  9764. #ifdef RTLD_GLOBAL
  9765. # define LT_DLGLOBAL RTLD_GLOBAL
  9766. #else
  9767. # ifdef DL_GLOBAL
  9768. # define LT_DLGLOBAL DL_GLOBAL
  9769. # else
  9770. # define LT_DLGLOBAL 0
  9771. # endif
  9772. #endif
  9773. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9774. find out it does not work in some platform. */
  9775. #ifndef LT_DLLAZY_OR_NOW
  9776. # ifdef RTLD_LAZY
  9777. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9778. # else
  9779. # ifdef DL_LAZY
  9780. # define LT_DLLAZY_OR_NOW DL_LAZY
  9781. # else
  9782. # ifdef RTLD_NOW
  9783. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9784. # else
  9785. # ifdef DL_NOW
  9786. # define LT_DLLAZY_OR_NOW DL_NOW
  9787. # else
  9788. # define LT_DLLAZY_OR_NOW 0
  9789. # endif
  9790. # endif
  9791. # endif
  9792. # endif
  9793. #endif
  9794. /* When -fvisbility=hidden is used, assume the code has been annotated
  9795. correspondingly for the symbols needed. */
  9796. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9797. int fnord () __attribute__((visibility("default")));
  9798. #endif
  9799. int fnord () { return 42; }
  9800. int main ()
  9801. {
  9802. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9803. int status = $lt_dlunknown;
  9804. if (self)
  9805. {
  9806. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9807. else
  9808. {
  9809. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9810. else puts (dlerror ());
  9811. }
  9812. /* dlclose (self); */
  9813. }
  9814. else
  9815. puts (dlerror ());
  9816. return status;
  9817. }
  9818. _LT_EOF
  9819. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9820. (eval $ac_link) 2>&5
  9821. ac_status=$?
  9822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9823. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9824. (./conftest; exit; ) >&5 2>/dev/null
  9825. lt_status=$?
  9826. case x$lt_status in
  9827. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9828. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9829. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9830. esac
  9831. else :
  9832. # compilation failed
  9833. lt_cv_dlopen_self_static=no
  9834. fi
  9835. fi
  9836. rm -fr conftest*
  9837. fi
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9839. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9840. fi
  9841. CPPFLAGS="$save_CPPFLAGS"
  9842. LDFLAGS="$save_LDFLAGS"
  9843. LIBS="$save_LIBS"
  9844. ;;
  9845. esac
  9846. case $lt_cv_dlopen_self in
  9847. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9848. *) enable_dlopen_self=unknown ;;
  9849. esac
  9850. case $lt_cv_dlopen_self_static in
  9851. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9852. *) enable_dlopen_self_static=unknown ;;
  9853. esac
  9854. fi
  9855. striplib=
  9856. old_striplib=
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9858. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9859. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9860. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9861. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9863. $as_echo "yes" >&6; }
  9864. else
  9865. # FIXME - insert some real tests, host_os isn't really good enough
  9866. case $host_os in
  9867. darwin*)
  9868. if test -n "$STRIP" ; then
  9869. striplib="$STRIP -x"
  9870. old_striplib="$STRIP -S"
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9872. $as_echo "yes" >&6; }
  9873. else
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9875. $as_echo "no" >&6; }
  9876. fi
  9877. ;;
  9878. *)
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9880. $as_echo "no" >&6; }
  9881. ;;
  9882. esac
  9883. fi
  9884. # Report which library types will actually be built
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9886. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9888. $as_echo "$can_build_shared" >&6; }
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9890. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9891. test "$can_build_shared" = "no" && enable_shared=no
  9892. # On AIX, shared libraries and static libraries use the same namespace, and
  9893. # are all built from PIC.
  9894. case $host_os in
  9895. aix3*)
  9896. test "$enable_shared" = yes && enable_static=no
  9897. if test -n "$RANLIB"; then
  9898. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9899. postinstall_cmds='$RANLIB $lib'
  9900. fi
  9901. ;;
  9902. aix[4-9]*)
  9903. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9904. test "$enable_shared" = yes && enable_static=no
  9905. fi
  9906. ;;
  9907. esac
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9909. $as_echo "$enable_shared" >&6; }
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9911. $as_echo_n "checking whether to build static libraries... " >&6; }
  9912. # Make sure either enable_shared or enable_static is yes.
  9913. test "$enable_shared" = yes || enable_static=yes
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9915. $as_echo "$enable_static" >&6; }
  9916. fi
  9917. ac_ext=c
  9918. ac_cpp='$CPP $CPPFLAGS'
  9919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9922. CC="$lt_save_CC"
  9923. ac_config_commands="$ac_config_commands libtool"
  9924. # Only expand once:
  9925. if test -n "$ac_tool_prefix"; then
  9926. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9927. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9929. $as_echo_n "checking for $ac_word... " >&6; }
  9930. if ${ac_cv_prog_RC+:} false; then :
  9931. $as_echo_n "(cached) " >&6
  9932. else
  9933. if test -n "$RC"; then
  9934. ac_cv_prog_RC="$RC" # Let the user override the test.
  9935. else
  9936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9937. for as_dir in $PATH
  9938. do
  9939. IFS=$as_save_IFS
  9940. test -z "$as_dir" && as_dir=.
  9941. for ac_exec_ext in '' $ac_executable_extensions; do
  9942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9943. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9945. break 2
  9946. fi
  9947. done
  9948. done
  9949. IFS=$as_save_IFS
  9950. fi
  9951. fi
  9952. RC=$ac_cv_prog_RC
  9953. if test -n "$RC"; then
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9955. $as_echo "$RC" >&6; }
  9956. else
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9958. $as_echo "no" >&6; }
  9959. fi
  9960. fi
  9961. if test -z "$ac_cv_prog_RC"; then
  9962. ac_ct_RC=$RC
  9963. # Extract the first word of "windres", so it can be a program name with args.
  9964. set dummy windres; ac_word=$2
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9966. $as_echo_n "checking for $ac_word... " >&6; }
  9967. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. if test -n "$ac_ct_RC"; then
  9971. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9972. else
  9973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9974. for as_dir in $PATH
  9975. do
  9976. IFS=$as_save_IFS
  9977. test -z "$as_dir" && as_dir=.
  9978. for ac_exec_ext in '' $ac_executable_extensions; do
  9979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9980. ac_cv_prog_ac_ct_RC="windres"
  9981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9982. break 2
  9983. fi
  9984. done
  9985. done
  9986. IFS=$as_save_IFS
  9987. fi
  9988. fi
  9989. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9990. if test -n "$ac_ct_RC"; then
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9992. $as_echo "$ac_ct_RC" >&6; }
  9993. else
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9995. $as_echo "no" >&6; }
  9996. fi
  9997. if test "x$ac_ct_RC" = x; then
  9998. RC=""
  9999. else
  10000. case $cross_compiling:$ac_tool_warned in
  10001. yes:)
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10004. ac_tool_warned=yes ;;
  10005. esac
  10006. RC=$ac_ct_RC
  10007. fi
  10008. else
  10009. RC="$ac_cv_prog_RC"
  10010. fi
  10011. # Source file extension for RC test sources.
  10012. ac_ext=rc
  10013. # Object file extension for compiled RC test sources.
  10014. objext=o
  10015. objext_RC=$objext
  10016. # Code to be used in simple compile tests
  10017. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10018. # Code to be used in simple link tests
  10019. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10020. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10021. # If no C compiler was specified, use CC.
  10022. LTCC=${LTCC-"$CC"}
  10023. # If no C compiler flags were specified, use CFLAGS.
  10024. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10025. # Allow CC to be a program name with arguments.
  10026. compiler=$CC
  10027. # save warnings/boilerplate of simple test code
  10028. ac_outfile=conftest.$ac_objext
  10029. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10030. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10031. _lt_compiler_boilerplate=`cat conftest.err`
  10032. $RM conftest*
  10033. ac_outfile=conftest.$ac_objext
  10034. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10035. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10036. _lt_linker_boilerplate=`cat conftest.err`
  10037. $RM -r conftest*
  10038. # Allow CC to be a program name with arguments.
  10039. lt_save_CC="$CC"
  10040. lt_save_CFLAGS=$CFLAGS
  10041. lt_save_GCC=$GCC
  10042. GCC=
  10043. CC=${RC-"windres"}
  10044. CFLAGS=
  10045. compiler=$CC
  10046. compiler_RC=$CC
  10047. for cc_temp in $compiler""; do
  10048. case $cc_temp in
  10049. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10050. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10051. \-*) ;;
  10052. *) break;;
  10053. esac
  10054. done
  10055. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10056. lt_cv_prog_compiler_c_o_RC=yes
  10057. if test -n "$compiler"; then
  10058. :
  10059. fi
  10060. GCC=$lt_save_GCC
  10061. ac_ext=c
  10062. ac_cpp='$CPP $CPPFLAGS'
  10063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10066. CC=$lt_save_CC
  10067. CFLAGS=$lt_save_CFLAGS
  10068. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10069. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10070. LT_REVISION=$SDL_INTERFACE_AGE
  10071. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10072. ac_ext=c
  10073. ac_cpp='$CPP $CPPFLAGS'
  10074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10077. if test -n "$ac_tool_prefix"; then
  10078. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10079. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10081. $as_echo_n "checking for $ac_word... " >&6; }
  10082. if ${ac_cv_prog_CC+:} false; then :
  10083. $as_echo_n "(cached) " >&6
  10084. else
  10085. if test -n "$CC"; then
  10086. ac_cv_prog_CC="$CC" # Let the user override the test.
  10087. else
  10088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10089. for as_dir in $PATH
  10090. do
  10091. IFS=$as_save_IFS
  10092. test -z "$as_dir" && as_dir=.
  10093. for ac_exec_ext in '' $ac_executable_extensions; do
  10094. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10095. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10097. break 2
  10098. fi
  10099. done
  10100. done
  10101. IFS=$as_save_IFS
  10102. fi
  10103. fi
  10104. CC=$ac_cv_prog_CC
  10105. if test -n "$CC"; then
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10107. $as_echo "$CC" >&6; }
  10108. else
  10109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10110. $as_echo "no" >&6; }
  10111. fi
  10112. fi
  10113. if test -z "$ac_cv_prog_CC"; then
  10114. ac_ct_CC=$CC
  10115. # Extract the first word of "gcc", so it can be a program name with args.
  10116. set dummy gcc; ac_word=$2
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10118. $as_echo_n "checking for $ac_word... " >&6; }
  10119. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10120. $as_echo_n "(cached) " >&6
  10121. else
  10122. if test -n "$ac_ct_CC"; then
  10123. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10124. else
  10125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10126. for as_dir in $PATH
  10127. do
  10128. IFS=$as_save_IFS
  10129. test -z "$as_dir" && as_dir=.
  10130. for ac_exec_ext in '' $ac_executable_extensions; do
  10131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10132. ac_cv_prog_ac_ct_CC="gcc"
  10133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10134. break 2
  10135. fi
  10136. done
  10137. done
  10138. IFS=$as_save_IFS
  10139. fi
  10140. fi
  10141. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10142. if test -n "$ac_ct_CC"; then
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10144. $as_echo "$ac_ct_CC" >&6; }
  10145. else
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10147. $as_echo "no" >&6; }
  10148. fi
  10149. if test "x$ac_ct_CC" = x; then
  10150. CC=""
  10151. else
  10152. case $cross_compiling:$ac_tool_warned in
  10153. yes:)
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10155. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10156. ac_tool_warned=yes ;;
  10157. esac
  10158. CC=$ac_ct_CC
  10159. fi
  10160. else
  10161. CC="$ac_cv_prog_CC"
  10162. fi
  10163. if test -z "$CC"; then
  10164. if test -n "$ac_tool_prefix"; then
  10165. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10166. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10168. $as_echo_n "checking for $ac_word... " >&6; }
  10169. if ${ac_cv_prog_CC+:} false; then :
  10170. $as_echo_n "(cached) " >&6
  10171. else
  10172. if test -n "$CC"; then
  10173. ac_cv_prog_CC="$CC" # Let the user override the test.
  10174. else
  10175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10176. for as_dir in $PATH
  10177. do
  10178. IFS=$as_save_IFS
  10179. test -z "$as_dir" && as_dir=.
  10180. for ac_exec_ext in '' $ac_executable_extensions; do
  10181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10182. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10184. break 2
  10185. fi
  10186. done
  10187. done
  10188. IFS=$as_save_IFS
  10189. fi
  10190. fi
  10191. CC=$ac_cv_prog_CC
  10192. if test -n "$CC"; then
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10194. $as_echo "$CC" >&6; }
  10195. else
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10197. $as_echo "no" >&6; }
  10198. fi
  10199. fi
  10200. fi
  10201. if test -z "$CC"; then
  10202. # Extract the first word of "cc", so it can be a program name with args.
  10203. set dummy cc; ac_word=$2
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10205. $as_echo_n "checking for $ac_word... " >&6; }
  10206. if ${ac_cv_prog_CC+:} false; then :
  10207. $as_echo_n "(cached) " >&6
  10208. else
  10209. if test -n "$CC"; then
  10210. ac_cv_prog_CC="$CC" # Let the user override the test.
  10211. else
  10212. ac_prog_rejected=no
  10213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10214. for as_dir in $PATH
  10215. do
  10216. IFS=$as_save_IFS
  10217. test -z "$as_dir" && as_dir=.
  10218. for ac_exec_ext in '' $ac_executable_extensions; do
  10219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10220. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10221. ac_prog_rejected=yes
  10222. continue
  10223. fi
  10224. ac_cv_prog_CC="cc"
  10225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10226. break 2
  10227. fi
  10228. done
  10229. done
  10230. IFS=$as_save_IFS
  10231. if test $ac_prog_rejected = yes; then
  10232. # We found a bogon in the path, so make sure we never use it.
  10233. set dummy $ac_cv_prog_CC
  10234. shift
  10235. if test $# != 0; then
  10236. # We chose a different compiler from the bogus one.
  10237. # However, it has the same basename, so the bogon will be chosen
  10238. # first if we set CC to just the basename; use the full file name.
  10239. shift
  10240. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10241. fi
  10242. fi
  10243. fi
  10244. fi
  10245. CC=$ac_cv_prog_CC
  10246. if test -n "$CC"; then
  10247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10248. $as_echo "$CC" >&6; }
  10249. else
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10251. $as_echo "no" >&6; }
  10252. fi
  10253. fi
  10254. if test -z "$CC"; then
  10255. if test -n "$ac_tool_prefix"; then
  10256. for ac_prog in cl.exe
  10257. do
  10258. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10259. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10261. $as_echo_n "checking for $ac_word... " >&6; }
  10262. if ${ac_cv_prog_CC+:} false; then :
  10263. $as_echo_n "(cached) " >&6
  10264. else
  10265. if test -n "$CC"; then
  10266. ac_cv_prog_CC="$CC" # Let the user override the test.
  10267. else
  10268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10269. for as_dir in $PATH
  10270. do
  10271. IFS=$as_save_IFS
  10272. test -z "$as_dir" && as_dir=.
  10273. for ac_exec_ext in '' $ac_executable_extensions; do
  10274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10275. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10277. break 2
  10278. fi
  10279. done
  10280. done
  10281. IFS=$as_save_IFS
  10282. fi
  10283. fi
  10284. CC=$ac_cv_prog_CC
  10285. if test -n "$CC"; then
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10287. $as_echo "$CC" >&6; }
  10288. else
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10290. $as_echo "no" >&6; }
  10291. fi
  10292. test -n "$CC" && break
  10293. done
  10294. fi
  10295. if test -z "$CC"; then
  10296. ac_ct_CC=$CC
  10297. for ac_prog in cl.exe
  10298. do
  10299. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10300. set dummy $ac_prog; ac_word=$2
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10302. $as_echo_n "checking for $ac_word... " >&6; }
  10303. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10304. $as_echo_n "(cached) " >&6
  10305. else
  10306. if test -n "$ac_ct_CC"; then
  10307. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10308. else
  10309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10310. for as_dir in $PATH
  10311. do
  10312. IFS=$as_save_IFS
  10313. test -z "$as_dir" && as_dir=.
  10314. for ac_exec_ext in '' $ac_executable_extensions; do
  10315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10316. ac_cv_prog_ac_ct_CC="$ac_prog"
  10317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10318. break 2
  10319. fi
  10320. done
  10321. done
  10322. IFS=$as_save_IFS
  10323. fi
  10324. fi
  10325. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10326. if test -n "$ac_ct_CC"; then
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10328. $as_echo "$ac_ct_CC" >&6; }
  10329. else
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10331. $as_echo "no" >&6; }
  10332. fi
  10333. test -n "$ac_ct_CC" && break
  10334. done
  10335. if test "x$ac_ct_CC" = x; then
  10336. CC=""
  10337. else
  10338. case $cross_compiling:$ac_tool_warned in
  10339. yes:)
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10342. ac_tool_warned=yes ;;
  10343. esac
  10344. CC=$ac_ct_CC
  10345. fi
  10346. fi
  10347. fi
  10348. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10349. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10350. as_fn_error $? "no acceptable C compiler found in \$PATH
  10351. See \`config.log' for more details" "$LINENO" 5; }
  10352. # Provide some information about the compiler.
  10353. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10354. set X $ac_compile
  10355. ac_compiler=$2
  10356. for ac_option in --version -v -V -qversion; do
  10357. { { ac_try="$ac_compiler $ac_option >&5"
  10358. case "(($ac_try" in
  10359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10360. *) ac_try_echo=$ac_try;;
  10361. esac
  10362. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10363. $as_echo "$ac_try_echo"; } >&5
  10364. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10365. ac_status=$?
  10366. if test -s conftest.err; then
  10367. sed '10a\
  10368. ... rest of stderr output deleted ...
  10369. 10q' conftest.err >conftest.er1
  10370. cat conftest.er1 >&5
  10371. fi
  10372. rm -f conftest.er1 conftest.err
  10373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10374. test $ac_status = 0; }
  10375. done
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10377. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10378. if ${ac_cv_c_compiler_gnu+:} false; then :
  10379. $as_echo_n "(cached) " >&6
  10380. else
  10381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10382. /* end confdefs.h. */
  10383. int
  10384. main ()
  10385. {
  10386. #ifndef __GNUC__
  10387. choke me
  10388. #endif
  10389. ;
  10390. return 0;
  10391. }
  10392. _ACEOF
  10393. if ac_fn_c_try_compile "$LINENO"; then :
  10394. ac_compiler_gnu=yes
  10395. else
  10396. ac_compiler_gnu=no
  10397. fi
  10398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10399. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10400. fi
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10402. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10403. if test $ac_compiler_gnu = yes; then
  10404. GCC=yes
  10405. else
  10406. GCC=
  10407. fi
  10408. ac_test_CFLAGS=${CFLAGS+set}
  10409. ac_save_CFLAGS=$CFLAGS
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10411. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10412. if ${ac_cv_prog_cc_g+:} false; then :
  10413. $as_echo_n "(cached) " >&6
  10414. else
  10415. ac_save_c_werror_flag=$ac_c_werror_flag
  10416. ac_c_werror_flag=yes
  10417. ac_cv_prog_cc_g=no
  10418. CFLAGS="-g"
  10419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10420. /* end confdefs.h. */
  10421. int
  10422. main ()
  10423. {
  10424. ;
  10425. return 0;
  10426. }
  10427. _ACEOF
  10428. if ac_fn_c_try_compile "$LINENO"; then :
  10429. ac_cv_prog_cc_g=yes
  10430. else
  10431. CFLAGS=""
  10432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10433. /* end confdefs.h. */
  10434. int
  10435. main ()
  10436. {
  10437. ;
  10438. return 0;
  10439. }
  10440. _ACEOF
  10441. if ac_fn_c_try_compile "$LINENO"; then :
  10442. else
  10443. ac_c_werror_flag=$ac_save_c_werror_flag
  10444. CFLAGS="-g"
  10445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10446. /* end confdefs.h. */
  10447. int
  10448. main ()
  10449. {
  10450. ;
  10451. return 0;
  10452. }
  10453. _ACEOF
  10454. if ac_fn_c_try_compile "$LINENO"; then :
  10455. ac_cv_prog_cc_g=yes
  10456. fi
  10457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10458. fi
  10459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10460. fi
  10461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10462. ac_c_werror_flag=$ac_save_c_werror_flag
  10463. fi
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10465. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10466. if test "$ac_test_CFLAGS" = set; then
  10467. CFLAGS=$ac_save_CFLAGS
  10468. elif test $ac_cv_prog_cc_g = yes; then
  10469. if test "$GCC" = yes; then
  10470. CFLAGS="-g -O2"
  10471. else
  10472. CFLAGS="-g"
  10473. fi
  10474. else
  10475. if test "$GCC" = yes; then
  10476. CFLAGS="-O2"
  10477. else
  10478. CFLAGS=
  10479. fi
  10480. fi
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10482. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10483. if ${ac_cv_prog_cc_c89+:} false; then :
  10484. $as_echo_n "(cached) " >&6
  10485. else
  10486. ac_cv_prog_cc_c89=no
  10487. ac_save_CC=$CC
  10488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10489. /* end confdefs.h. */
  10490. #include <stdarg.h>
  10491. #include <stdio.h>
  10492. struct stat;
  10493. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10494. struct buf { int x; };
  10495. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10496. static char *e (p, i)
  10497. char **p;
  10498. int i;
  10499. {
  10500. return p[i];
  10501. }
  10502. static char *f (char * (*g) (char **, int), char **p, ...)
  10503. {
  10504. char *s;
  10505. va_list v;
  10506. va_start (v,p);
  10507. s = g (p, va_arg (v,int));
  10508. va_end (v);
  10509. return s;
  10510. }
  10511. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10512. function prototypes and stuff, but not '\xHH' hex character constants.
  10513. These don't provoke an error unfortunately, instead are silently treated
  10514. as 'x'. The following induces an error, until -std is added to get
  10515. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10516. array size at least. It's necessary to write '\x00'==0 to get something
  10517. that's true only with -std. */
  10518. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10519. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10520. inside strings and character constants. */
  10521. #define FOO(x) 'x'
  10522. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10523. int test (int i, double x);
  10524. struct s1 {int (*f) (int a);};
  10525. struct s2 {int (*f) (double a);};
  10526. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10527. int argc;
  10528. char **argv;
  10529. int
  10530. main ()
  10531. {
  10532. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10533. ;
  10534. return 0;
  10535. }
  10536. _ACEOF
  10537. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10538. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10539. do
  10540. CC="$ac_save_CC $ac_arg"
  10541. if ac_fn_c_try_compile "$LINENO"; then :
  10542. ac_cv_prog_cc_c89=$ac_arg
  10543. fi
  10544. rm -f core conftest.err conftest.$ac_objext
  10545. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10546. done
  10547. rm -f conftest.$ac_ext
  10548. CC=$ac_save_CC
  10549. fi
  10550. # AC_CACHE_VAL
  10551. case "x$ac_cv_prog_cc_c89" in
  10552. x)
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10554. $as_echo "none needed" >&6; } ;;
  10555. xno)
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10557. $as_echo "unsupported" >&6; } ;;
  10558. *)
  10559. CC="$CC $ac_cv_prog_cc_c89"
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10561. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10562. esac
  10563. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10564. fi
  10565. ac_ext=c
  10566. ac_cpp='$CPP $CPPFLAGS'
  10567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10570. ac_ext=cpp
  10571. ac_cpp='$CXXCPP $CPPFLAGS'
  10572. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10573. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10574. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10575. if test -z "$CXX"; then
  10576. if test -n "$CCC"; then
  10577. CXX=$CCC
  10578. else
  10579. if test -n "$ac_tool_prefix"; then
  10580. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10581. do
  10582. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10583. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10585. $as_echo_n "checking for $ac_word... " >&6; }
  10586. if ${ac_cv_prog_CXX+:} false; then :
  10587. $as_echo_n "(cached) " >&6
  10588. else
  10589. if test -n "$CXX"; then
  10590. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10591. else
  10592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10593. for as_dir in $PATH
  10594. do
  10595. IFS=$as_save_IFS
  10596. test -z "$as_dir" && as_dir=.
  10597. for ac_exec_ext in '' $ac_executable_extensions; do
  10598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10599. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10601. break 2
  10602. fi
  10603. done
  10604. done
  10605. IFS=$as_save_IFS
  10606. fi
  10607. fi
  10608. CXX=$ac_cv_prog_CXX
  10609. if test -n "$CXX"; then
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10611. $as_echo "$CXX" >&6; }
  10612. else
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10614. $as_echo "no" >&6; }
  10615. fi
  10616. test -n "$CXX" && break
  10617. done
  10618. fi
  10619. if test -z "$CXX"; then
  10620. ac_ct_CXX=$CXX
  10621. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10622. do
  10623. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10624. set dummy $ac_prog; ac_word=$2
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10626. $as_echo_n "checking for $ac_word... " >&6; }
  10627. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10628. $as_echo_n "(cached) " >&6
  10629. else
  10630. if test -n "$ac_ct_CXX"; then
  10631. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10632. else
  10633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10634. for as_dir in $PATH
  10635. do
  10636. IFS=$as_save_IFS
  10637. test -z "$as_dir" && as_dir=.
  10638. for ac_exec_ext in '' $ac_executable_extensions; do
  10639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10640. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10642. break 2
  10643. fi
  10644. done
  10645. done
  10646. IFS=$as_save_IFS
  10647. fi
  10648. fi
  10649. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10650. if test -n "$ac_ct_CXX"; then
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10652. $as_echo "$ac_ct_CXX" >&6; }
  10653. else
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10655. $as_echo "no" >&6; }
  10656. fi
  10657. test -n "$ac_ct_CXX" && break
  10658. done
  10659. if test "x$ac_ct_CXX" = x; then
  10660. CXX="g++"
  10661. else
  10662. case $cross_compiling:$ac_tool_warned in
  10663. yes:)
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10666. ac_tool_warned=yes ;;
  10667. esac
  10668. CXX=$ac_ct_CXX
  10669. fi
  10670. fi
  10671. fi
  10672. fi
  10673. # Provide some information about the compiler.
  10674. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10675. set X $ac_compile
  10676. ac_compiler=$2
  10677. for ac_option in --version -v -V -qversion; do
  10678. { { ac_try="$ac_compiler $ac_option >&5"
  10679. case "(($ac_try" in
  10680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10681. *) ac_try_echo=$ac_try;;
  10682. esac
  10683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10684. $as_echo "$ac_try_echo"; } >&5
  10685. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10686. ac_status=$?
  10687. if test -s conftest.err; then
  10688. sed '10a\
  10689. ... rest of stderr output deleted ...
  10690. 10q' conftest.err >conftest.er1
  10691. cat conftest.er1 >&5
  10692. fi
  10693. rm -f conftest.er1 conftest.err
  10694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10695. test $ac_status = 0; }
  10696. done
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10698. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10699. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10700. $as_echo_n "(cached) " >&6
  10701. else
  10702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10703. /* end confdefs.h. */
  10704. int
  10705. main ()
  10706. {
  10707. #ifndef __GNUC__
  10708. choke me
  10709. #endif
  10710. ;
  10711. return 0;
  10712. }
  10713. _ACEOF
  10714. if ac_fn_cxx_try_compile "$LINENO"; then :
  10715. ac_compiler_gnu=yes
  10716. else
  10717. ac_compiler_gnu=no
  10718. fi
  10719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10720. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10721. fi
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10723. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10724. if test $ac_compiler_gnu = yes; then
  10725. GXX=yes
  10726. else
  10727. GXX=
  10728. fi
  10729. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10730. ac_save_CXXFLAGS=$CXXFLAGS
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10732. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10733. if ${ac_cv_prog_cxx_g+:} false; then :
  10734. $as_echo_n "(cached) " >&6
  10735. else
  10736. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10737. ac_cxx_werror_flag=yes
  10738. ac_cv_prog_cxx_g=no
  10739. CXXFLAGS="-g"
  10740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10741. /* end confdefs.h. */
  10742. int
  10743. main ()
  10744. {
  10745. ;
  10746. return 0;
  10747. }
  10748. _ACEOF
  10749. if ac_fn_cxx_try_compile "$LINENO"; then :
  10750. ac_cv_prog_cxx_g=yes
  10751. else
  10752. CXXFLAGS=""
  10753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10754. /* end confdefs.h. */
  10755. int
  10756. main ()
  10757. {
  10758. ;
  10759. return 0;
  10760. }
  10761. _ACEOF
  10762. if ac_fn_cxx_try_compile "$LINENO"; then :
  10763. else
  10764. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10765. CXXFLAGS="-g"
  10766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10767. /* end confdefs.h. */
  10768. int
  10769. main ()
  10770. {
  10771. ;
  10772. return 0;
  10773. }
  10774. _ACEOF
  10775. if ac_fn_cxx_try_compile "$LINENO"; then :
  10776. ac_cv_prog_cxx_g=yes
  10777. fi
  10778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10779. fi
  10780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10781. fi
  10782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10783. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10784. fi
  10785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10786. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10787. if test "$ac_test_CXXFLAGS" = set; then
  10788. CXXFLAGS=$ac_save_CXXFLAGS
  10789. elif test $ac_cv_prog_cxx_g = yes; then
  10790. if test "$GXX" = yes; then
  10791. CXXFLAGS="-g -O2"
  10792. else
  10793. CXXFLAGS="-g"
  10794. fi
  10795. else
  10796. if test "$GXX" = yes; then
  10797. CXXFLAGS="-O2"
  10798. else
  10799. CXXFLAGS=
  10800. fi
  10801. fi
  10802. ac_ext=c
  10803. ac_cpp='$CPP $CPPFLAGS'
  10804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10807. func_stripname_cnf ()
  10808. {
  10809. case ${2} in
  10810. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10811. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10812. esac
  10813. } # func_stripname_cnf
  10814. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10815. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10816. (test "X$CXX" != "Xg++"))) ; then
  10817. ac_ext=cpp
  10818. ac_cpp='$CXXCPP $CPPFLAGS'
  10819. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10820. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10821. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10823. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10824. if test -z "$CXXCPP"; then
  10825. if ${ac_cv_prog_CXXCPP+:} false; then :
  10826. $as_echo_n "(cached) " >&6
  10827. else
  10828. # Double quotes because CXXCPP needs to be expanded
  10829. for CXXCPP in "$CXX -E" "/lib/cpp"
  10830. do
  10831. ac_preproc_ok=false
  10832. for ac_cxx_preproc_warn_flag in '' yes
  10833. do
  10834. # Use a header file that comes with gcc, so configuring glibc
  10835. # with a fresh cross-compiler works.
  10836. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10837. # <limits.h> exists even on freestanding compilers.
  10838. # On the NeXT, cc -E runs the code through the compiler's parser,
  10839. # not just through cpp. "Syntax error" is here to catch this case.
  10840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10841. /* end confdefs.h. */
  10842. #ifdef __STDC__
  10843. # include <limits.h>
  10844. #else
  10845. # include <assert.h>
  10846. #endif
  10847. Syntax error
  10848. _ACEOF
  10849. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10850. else
  10851. # Broken: fails on valid input.
  10852. continue
  10853. fi
  10854. rm -f conftest.err conftest.i conftest.$ac_ext
  10855. # OK, works on sane cases. Now check whether nonexistent headers
  10856. # can be detected and how.
  10857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10858. /* end confdefs.h. */
  10859. #include <ac_nonexistent.h>
  10860. _ACEOF
  10861. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10862. # Broken: success on invalid input.
  10863. continue
  10864. else
  10865. # Passes both tests.
  10866. ac_preproc_ok=:
  10867. break
  10868. fi
  10869. rm -f conftest.err conftest.i conftest.$ac_ext
  10870. done
  10871. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10872. rm -f conftest.i conftest.err conftest.$ac_ext
  10873. if $ac_preproc_ok; then :
  10874. break
  10875. fi
  10876. done
  10877. ac_cv_prog_CXXCPP=$CXXCPP
  10878. fi
  10879. CXXCPP=$ac_cv_prog_CXXCPP
  10880. else
  10881. ac_cv_prog_CXXCPP=$CXXCPP
  10882. fi
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10884. $as_echo "$CXXCPP" >&6; }
  10885. ac_preproc_ok=false
  10886. for ac_cxx_preproc_warn_flag in '' yes
  10887. do
  10888. # Use a header file that comes with gcc, so configuring glibc
  10889. # with a fresh cross-compiler works.
  10890. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10891. # <limits.h> exists even on freestanding compilers.
  10892. # On the NeXT, cc -E runs the code through the compiler's parser,
  10893. # not just through cpp. "Syntax error" is here to catch this case.
  10894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10895. /* end confdefs.h. */
  10896. #ifdef __STDC__
  10897. # include <limits.h>
  10898. #else
  10899. # include <assert.h>
  10900. #endif
  10901. Syntax error
  10902. _ACEOF
  10903. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10904. else
  10905. # Broken: fails on valid input.
  10906. continue
  10907. fi
  10908. rm -f conftest.err conftest.i conftest.$ac_ext
  10909. # OK, works on sane cases. Now check whether nonexistent headers
  10910. # can be detected and how.
  10911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10912. /* end confdefs.h. */
  10913. #include <ac_nonexistent.h>
  10914. _ACEOF
  10915. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10916. # Broken: success on invalid input.
  10917. continue
  10918. else
  10919. # Passes both tests.
  10920. ac_preproc_ok=:
  10921. break
  10922. fi
  10923. rm -f conftest.err conftest.i conftest.$ac_ext
  10924. done
  10925. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10926. rm -f conftest.i conftest.err conftest.$ac_ext
  10927. if $ac_preproc_ok; then :
  10928. else
  10929. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10930. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10931. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10932. See \`config.log' for more details" "$LINENO" 5; }
  10933. fi
  10934. ac_ext=c
  10935. ac_cpp='$CPP $CPPFLAGS'
  10936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10939. else
  10940. _lt_caught_CXX_error=yes
  10941. fi
  10942. ac_ext=cpp
  10943. ac_cpp='$CXXCPP $CPPFLAGS'
  10944. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10945. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10946. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10947. archive_cmds_need_lc_CXX=no
  10948. allow_undefined_flag_CXX=
  10949. always_export_symbols_CXX=no
  10950. archive_expsym_cmds_CXX=
  10951. compiler_needs_object_CXX=no
  10952. export_dynamic_flag_spec_CXX=
  10953. hardcode_direct_CXX=no
  10954. hardcode_direct_absolute_CXX=no
  10955. hardcode_libdir_flag_spec_CXX=
  10956. hardcode_libdir_separator_CXX=
  10957. hardcode_minus_L_CXX=no
  10958. hardcode_shlibpath_var_CXX=unsupported
  10959. hardcode_automatic_CXX=no
  10960. inherit_rpath_CXX=no
  10961. module_cmds_CXX=
  10962. module_expsym_cmds_CXX=
  10963. link_all_deplibs_CXX=unknown
  10964. old_archive_cmds_CXX=$old_archive_cmds
  10965. reload_flag_CXX=$reload_flag
  10966. reload_cmds_CXX=$reload_cmds
  10967. no_undefined_flag_CXX=
  10968. whole_archive_flag_spec_CXX=
  10969. enable_shared_with_static_runtimes_CXX=no
  10970. # Source file extension for C++ test sources.
  10971. ac_ext=cpp
  10972. # Object file extension for compiled C++ test sources.
  10973. objext=o
  10974. objext_CXX=$objext
  10975. # No sense in running all these tests if we already determined that
  10976. # the CXX compiler isn't working. Some variables (like enable_shared)
  10977. # are currently assumed to apply to all compilers on this platform,
  10978. # and will be corrupted by setting them based on a non-working compiler.
  10979. if test "$_lt_caught_CXX_error" != yes; then
  10980. # Code to be used in simple compile tests
  10981. lt_simple_compile_test_code="int some_variable = 0;"
  10982. # Code to be used in simple link tests
  10983. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10984. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10985. # If no C compiler was specified, use CC.
  10986. LTCC=${LTCC-"$CC"}
  10987. # If no C compiler flags were specified, use CFLAGS.
  10988. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10989. # Allow CC to be a program name with arguments.
  10990. compiler=$CC
  10991. # save warnings/boilerplate of simple test code
  10992. ac_outfile=conftest.$ac_objext
  10993. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10994. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10995. _lt_compiler_boilerplate=`cat conftest.err`
  10996. $RM conftest*
  10997. ac_outfile=conftest.$ac_objext
  10998. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10999. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11000. _lt_linker_boilerplate=`cat conftest.err`
  11001. $RM -r conftest*
  11002. # Allow CC to be a program name with arguments.
  11003. lt_save_CC=$CC
  11004. lt_save_CFLAGS=$CFLAGS
  11005. lt_save_LD=$LD
  11006. lt_save_GCC=$GCC
  11007. GCC=$GXX
  11008. lt_save_with_gnu_ld=$with_gnu_ld
  11009. lt_save_path_LD=$lt_cv_path_LD
  11010. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11011. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11012. else
  11013. $as_unset lt_cv_prog_gnu_ld
  11014. fi
  11015. if test -n "${lt_cv_path_LDCXX+set}"; then
  11016. lt_cv_path_LD=$lt_cv_path_LDCXX
  11017. else
  11018. $as_unset lt_cv_path_LD
  11019. fi
  11020. test -z "${LDCXX+set}" || LD=$LDCXX
  11021. CC=${CXX-"c++"}
  11022. CFLAGS=$CXXFLAGS
  11023. compiler=$CC
  11024. compiler_CXX=$CC
  11025. for cc_temp in $compiler""; do
  11026. case $cc_temp in
  11027. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11028. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11029. \-*) ;;
  11030. *) break;;
  11031. esac
  11032. done
  11033. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11034. if test -n "$compiler"; then
  11035. # We don't want -fno-exception when compiling C++ code, so set the
  11036. # no_builtin_flag separately
  11037. if test "$GXX" = yes; then
  11038. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11039. else
  11040. lt_prog_compiler_no_builtin_flag_CXX=
  11041. fi
  11042. if test "$GXX" = yes; then
  11043. # Set up default GNU C++ configuration
  11044. # Check whether --with-gnu-ld was given.
  11045. if test "${with_gnu_ld+set}" = set; then :
  11046. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11047. else
  11048. with_gnu_ld=no
  11049. fi
  11050. ac_prog=ld
  11051. if test "$GCC" = yes; then
  11052. # Check if gcc -print-prog-name=ld gives a path.
  11053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11054. $as_echo_n "checking for ld used by $CC... " >&6; }
  11055. case $host in
  11056. *-*-mingw*)
  11057. # gcc leaves a trailing carriage return which upsets mingw
  11058. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11059. *)
  11060. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11061. esac
  11062. case $ac_prog in
  11063. # Accept absolute paths.
  11064. [\\/]* | ?:[\\/]*)
  11065. re_direlt='/[^/][^/]*/\.\./'
  11066. # Canonicalize the pathname of ld
  11067. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11068. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11069. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11070. done
  11071. test -z "$LD" && LD="$ac_prog"
  11072. ;;
  11073. "")
  11074. # If it fails, then pretend we aren't using GCC.
  11075. ac_prog=ld
  11076. ;;
  11077. *)
  11078. # If it is relative, then search for the first ld in PATH.
  11079. with_gnu_ld=unknown
  11080. ;;
  11081. esac
  11082. elif test "$with_gnu_ld" = yes; then
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11084. $as_echo_n "checking for GNU ld... " >&6; }
  11085. else
  11086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11087. $as_echo_n "checking for non-GNU ld... " >&6; }
  11088. fi
  11089. if ${lt_cv_path_LD+:} false; then :
  11090. $as_echo_n "(cached) " >&6
  11091. else
  11092. if test -z "$LD"; then
  11093. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11094. for ac_dir in $PATH; do
  11095. IFS="$lt_save_ifs"
  11096. test -z "$ac_dir" && ac_dir=.
  11097. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11098. lt_cv_path_LD="$ac_dir/$ac_prog"
  11099. # Check to see if the program is GNU ld. I'd rather use --version,
  11100. # but apparently some variants of GNU ld only accept -v.
  11101. # Break only if it was the GNU/non-GNU ld that we prefer.
  11102. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11103. *GNU* | *'with BFD'*)
  11104. test "$with_gnu_ld" != no && break
  11105. ;;
  11106. *)
  11107. test "$with_gnu_ld" != yes && break
  11108. ;;
  11109. esac
  11110. fi
  11111. done
  11112. IFS="$lt_save_ifs"
  11113. else
  11114. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11115. fi
  11116. fi
  11117. LD="$lt_cv_path_LD"
  11118. if test -n "$LD"; then
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11120. $as_echo "$LD" >&6; }
  11121. else
  11122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11123. $as_echo "no" >&6; }
  11124. fi
  11125. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11127. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11128. if ${lt_cv_prog_gnu_ld+:} false; then :
  11129. $as_echo_n "(cached) " >&6
  11130. else
  11131. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11132. case `$LD -v 2>&1 </dev/null` in
  11133. *GNU* | *'with BFD'*)
  11134. lt_cv_prog_gnu_ld=yes
  11135. ;;
  11136. *)
  11137. lt_cv_prog_gnu_ld=no
  11138. ;;
  11139. esac
  11140. fi
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11142. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11143. with_gnu_ld=$lt_cv_prog_gnu_ld
  11144. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11145. # archiving commands below assume that GNU ld is being used.
  11146. if test "$with_gnu_ld" = yes; then
  11147. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11148. 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'
  11149. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11150. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11151. # If archive_cmds runs LD, not CC, wlarc should be empty
  11152. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11153. # investigate it a little bit more. (MM)
  11154. wlarc='${wl}'
  11155. # ancient GNU ld didn't support --whole-archive et. al.
  11156. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11157. $GREP 'no-whole-archive' > /dev/null; then
  11158. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11159. else
  11160. whole_archive_flag_spec_CXX=
  11161. fi
  11162. else
  11163. with_gnu_ld=no
  11164. wlarc=
  11165. # A generic and very simple default shared library creation
  11166. # command for GNU C++ for the case where it uses the native
  11167. # linker, instead of GNU ld. If possible, this setting should
  11168. # overridden to take advantage of the native linker features on
  11169. # the platform it is being used on.
  11170. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11171. fi
  11172. # Commands to make compiler produce verbose output that lists
  11173. # what "hidden" libraries, object files and flags are used when
  11174. # linking a shared library.
  11175. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11176. else
  11177. GXX=no
  11178. with_gnu_ld=no
  11179. wlarc=
  11180. fi
  11181. # PORTME: fill in a description of your system's C++ link characteristics
  11182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11183. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11184. ld_shlibs_CXX=yes
  11185. case $host_os in
  11186. aix3*)
  11187. # FIXME: insert proper C++ library support
  11188. ld_shlibs_CXX=no
  11189. ;;
  11190. aix[4-9]*)
  11191. if test "$host_cpu" = ia64; then
  11192. # On IA64, the linker does run time linking by default, so we don't
  11193. # have to do anything special.
  11194. aix_use_runtimelinking=no
  11195. exp_sym_flag='-Bexport'
  11196. no_entry_flag=""
  11197. else
  11198. aix_use_runtimelinking=no
  11199. # Test if we are trying to use run time linking or normal
  11200. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11201. # need to do runtime linking.
  11202. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11203. for ld_flag in $LDFLAGS; do
  11204. case $ld_flag in
  11205. *-brtl*)
  11206. aix_use_runtimelinking=yes
  11207. break
  11208. ;;
  11209. esac
  11210. done
  11211. ;;
  11212. esac
  11213. exp_sym_flag='-bexport'
  11214. no_entry_flag='-bnoentry'
  11215. fi
  11216. # When large executables or shared objects are built, AIX ld can
  11217. # have problems creating the table of contents. If linking a library
  11218. # or program results in "error TOC overflow" add -mminimal-toc to
  11219. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11220. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11221. archive_cmds_CXX=''
  11222. hardcode_direct_CXX=yes
  11223. hardcode_direct_absolute_CXX=yes
  11224. hardcode_libdir_separator_CXX=':'
  11225. link_all_deplibs_CXX=yes
  11226. file_list_spec_CXX='${wl}-f,'
  11227. if test "$GXX" = yes; then
  11228. case $host_os in aix4.[012]|aix4.[012].*)
  11229. # We only want to do this on AIX 4.2 and lower, the check
  11230. # below for broken collect2 doesn't work under 4.3+
  11231. collect2name=`${CC} -print-prog-name=collect2`
  11232. if test -f "$collect2name" &&
  11233. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11234. then
  11235. # We have reworked collect2
  11236. :
  11237. else
  11238. # We have old collect2
  11239. hardcode_direct_CXX=unsupported
  11240. # It fails to find uninstalled libraries when the uninstalled
  11241. # path is not listed in the libpath. Setting hardcode_minus_L
  11242. # to unsupported forces relinking
  11243. hardcode_minus_L_CXX=yes
  11244. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11245. hardcode_libdir_separator_CXX=
  11246. fi
  11247. esac
  11248. shared_flag='-shared'
  11249. if test "$aix_use_runtimelinking" = yes; then
  11250. shared_flag="$shared_flag "'${wl}-G'
  11251. fi
  11252. else
  11253. # not using gcc
  11254. if test "$host_cpu" = ia64; then
  11255. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11256. # chokes on -Wl,-G. The following line is correct:
  11257. shared_flag='-G'
  11258. else
  11259. if test "$aix_use_runtimelinking" = yes; then
  11260. shared_flag='${wl}-G'
  11261. else
  11262. shared_flag='${wl}-bM:SRE'
  11263. fi
  11264. fi
  11265. fi
  11266. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11267. # It seems that -bexpall does not export symbols beginning with
  11268. # underscore (_), so it is better to generate a list of symbols to
  11269. # export.
  11270. always_export_symbols_CXX=yes
  11271. if test "$aix_use_runtimelinking" = yes; then
  11272. # Warning - without using the other runtime loading flags (-brtl),
  11273. # -berok will link without error, but may produce a broken library.
  11274. allow_undefined_flag_CXX='-berok'
  11275. # Determine the default libpath from the value encoded in an empty
  11276. # executable.
  11277. if test "${lt_cv_aix_libpath+set}" = set; then
  11278. aix_libpath=$lt_cv_aix_libpath
  11279. else
  11280. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11281. $as_echo_n "(cached) " >&6
  11282. else
  11283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11284. /* end confdefs.h. */
  11285. int
  11286. main ()
  11287. {
  11288. ;
  11289. return 0;
  11290. }
  11291. _ACEOF
  11292. if ac_fn_cxx_try_link "$LINENO"; then :
  11293. lt_aix_libpath_sed='
  11294. /Import File Strings/,/^$/ {
  11295. /^0/ {
  11296. s/^0 *\([^ ]*\) *$/\1/
  11297. p
  11298. }
  11299. }'
  11300. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11301. # Check for a 64-bit object if we didn't find anything.
  11302. if test -z "$lt_cv_aix_libpath__CXX"; then
  11303. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11304. fi
  11305. fi
  11306. rm -f core conftest.err conftest.$ac_objext \
  11307. conftest$ac_exeext conftest.$ac_ext
  11308. if test -z "$lt_cv_aix_libpath__CXX"; then
  11309. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11310. fi
  11311. fi
  11312. aix_libpath=$lt_cv_aix_libpath__CXX
  11313. fi
  11314. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11315. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11316. else
  11317. if test "$host_cpu" = ia64; then
  11318. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11319. allow_undefined_flag_CXX="-z nodefs"
  11320. 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"
  11321. else
  11322. # Determine the default libpath from the value encoded in an
  11323. # empty executable.
  11324. if test "${lt_cv_aix_libpath+set}" = set; then
  11325. aix_libpath=$lt_cv_aix_libpath
  11326. else
  11327. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11328. $as_echo_n "(cached) " >&6
  11329. else
  11330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11331. /* end confdefs.h. */
  11332. int
  11333. main ()
  11334. {
  11335. ;
  11336. return 0;
  11337. }
  11338. _ACEOF
  11339. if ac_fn_cxx_try_link "$LINENO"; then :
  11340. lt_aix_libpath_sed='
  11341. /Import File Strings/,/^$/ {
  11342. /^0/ {
  11343. s/^0 *\([^ ]*\) *$/\1/
  11344. p
  11345. }
  11346. }'
  11347. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11348. # Check for a 64-bit object if we didn't find anything.
  11349. if test -z "$lt_cv_aix_libpath__CXX"; then
  11350. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11351. fi
  11352. fi
  11353. rm -f core conftest.err conftest.$ac_objext \
  11354. conftest$ac_exeext conftest.$ac_ext
  11355. if test -z "$lt_cv_aix_libpath__CXX"; then
  11356. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11357. fi
  11358. fi
  11359. aix_libpath=$lt_cv_aix_libpath__CXX
  11360. fi
  11361. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11362. # Warning - without using the other run time loading flags,
  11363. # -berok will link without error, but may produce a broken library.
  11364. no_undefined_flag_CXX=' ${wl}-bernotok'
  11365. allow_undefined_flag_CXX=' ${wl}-berok'
  11366. if test "$with_gnu_ld" = yes; then
  11367. # We only use this code for GNU lds that support --whole-archive.
  11368. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11369. else
  11370. # Exported symbols can be pulled into shared objects from archives
  11371. whole_archive_flag_spec_CXX='$convenience'
  11372. fi
  11373. archive_cmds_need_lc_CXX=yes
  11374. # This is similar to how AIX traditionally builds its shared
  11375. # libraries.
  11376. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11377. fi
  11378. fi
  11379. ;;
  11380. beos*)
  11381. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11382. allow_undefined_flag_CXX=unsupported
  11383. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11384. # support --undefined. This deserves some investigation. FIXME
  11385. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11386. else
  11387. ld_shlibs_CXX=no
  11388. fi
  11389. ;;
  11390. chorus*)
  11391. case $cc_basename in
  11392. *)
  11393. # FIXME: insert proper C++ library support
  11394. ld_shlibs_CXX=no
  11395. ;;
  11396. esac
  11397. ;;
  11398. cygwin* | mingw* | pw32* | cegcc*)
  11399. case $GXX,$cc_basename in
  11400. ,cl* | no,cl*)
  11401. # Native MSVC
  11402. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11403. # no search path for DLLs.
  11404. hardcode_libdir_flag_spec_CXX=' '
  11405. allow_undefined_flag_CXX=unsupported
  11406. always_export_symbols_CXX=yes
  11407. file_list_spec_CXX='@'
  11408. # Tell ltmain to make .lib files, not .a files.
  11409. libext=lib
  11410. # Tell ltmain to make .dll files, not .so files.
  11411. shrext_cmds=".dll"
  11412. # FIXME: Setting linknames here is a bad hack.
  11413. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11414. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11415. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11416. else
  11417. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11418. fi~
  11419. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11420. linknames='
  11421. # The linker will not automatically build a static lib if we build a DLL.
  11422. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11423. enable_shared_with_static_runtimes_CXX=yes
  11424. # Don't use ranlib
  11425. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11426. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11427. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11428. case $lt_outputfile in
  11429. *.exe|*.EXE) ;;
  11430. *)
  11431. lt_outputfile="$lt_outputfile.exe"
  11432. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11433. ;;
  11434. esac~
  11435. func_to_tool_file "$lt_outputfile"~
  11436. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11437. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11438. $RM "$lt_outputfile.manifest";
  11439. fi'
  11440. ;;
  11441. *)
  11442. # g++
  11443. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11444. # as there is no search path for DLLs.
  11445. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11446. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11447. allow_undefined_flag_CXX=unsupported
  11448. always_export_symbols_CXX=no
  11449. enable_shared_with_static_runtimes_CXX=yes
  11450. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11451. 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'
  11452. # If the export-symbols file already is a .def file (1st line
  11453. # is EXPORTS), use it as is; otherwise, prepend...
  11454. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11455. cp $export_symbols $output_objdir/$soname.def;
  11456. else
  11457. echo EXPORTS > $output_objdir/$soname.def;
  11458. cat $export_symbols >> $output_objdir/$soname.def;
  11459. fi~
  11460. $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'
  11461. else
  11462. ld_shlibs_CXX=no
  11463. fi
  11464. ;;
  11465. esac
  11466. ;;
  11467. darwin* | rhapsody*)
  11468. archive_cmds_need_lc_CXX=no
  11469. hardcode_direct_CXX=no
  11470. hardcode_automatic_CXX=yes
  11471. hardcode_shlibpath_var_CXX=unsupported
  11472. if test "$lt_cv_ld_force_load" = "yes"; then
  11473. 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\"`'
  11474. else
  11475. whole_archive_flag_spec_CXX=''
  11476. fi
  11477. link_all_deplibs_CXX=yes
  11478. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11479. case $cc_basename in
  11480. ifort*) _lt_dar_can_shared=yes ;;
  11481. *) _lt_dar_can_shared=$GCC ;;
  11482. esac
  11483. if test "$_lt_dar_can_shared" = "yes"; then
  11484. output_verbose_link_cmd=func_echo_all
  11485. 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}"
  11486. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11487. 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}"
  11488. 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}"
  11489. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11490. 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}"
  11491. 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}"
  11492. fi
  11493. else
  11494. ld_shlibs_CXX=no
  11495. fi
  11496. ;;
  11497. dgux*)
  11498. case $cc_basename in
  11499. ec++*)
  11500. # FIXME: insert proper C++ library support
  11501. ld_shlibs_CXX=no
  11502. ;;
  11503. ghcx*)
  11504. # Green Hills C++ Compiler
  11505. # FIXME: insert proper C++ library support
  11506. ld_shlibs_CXX=no
  11507. ;;
  11508. *)
  11509. # FIXME: insert proper C++ library support
  11510. ld_shlibs_CXX=no
  11511. ;;
  11512. esac
  11513. ;;
  11514. freebsd2.*)
  11515. # C++ shared libraries reported to be fairly broken before
  11516. # switch to ELF
  11517. ld_shlibs_CXX=no
  11518. ;;
  11519. freebsd-elf*)
  11520. archive_cmds_need_lc_CXX=no
  11521. ;;
  11522. freebsd* | dragonfly*)
  11523. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11524. # conventions
  11525. ld_shlibs_CXX=yes
  11526. ;;
  11527. gnu*)
  11528. ;;
  11529. haiku*)
  11530. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11531. link_all_deplibs_CXX=yes
  11532. ;;
  11533. hpux9*)
  11534. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11535. hardcode_libdir_separator_CXX=:
  11536. export_dynamic_flag_spec_CXX='${wl}-E'
  11537. hardcode_direct_CXX=yes
  11538. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11539. # but as the default
  11540. # location of the library.
  11541. case $cc_basename in
  11542. CC*)
  11543. # FIXME: insert proper C++ library support
  11544. ld_shlibs_CXX=no
  11545. ;;
  11546. aCC*)
  11547. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11548. # Commands to make compiler produce verbose output that lists
  11549. # what "hidden" libraries, object files and flags are used when
  11550. # linking a shared library.
  11551. #
  11552. # There doesn't appear to be a way to prevent this compiler from
  11553. # explicitly linking system object files so we need to strip them
  11554. # from the output so that they don't get included in the library
  11555. # dependencies.
  11556. 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"'
  11557. ;;
  11558. *)
  11559. if test "$GXX" = yes; then
  11560. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11561. else
  11562. # FIXME: insert proper C++ library support
  11563. ld_shlibs_CXX=no
  11564. fi
  11565. ;;
  11566. esac
  11567. ;;
  11568. hpux10*|hpux11*)
  11569. if test $with_gnu_ld = no; then
  11570. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11571. hardcode_libdir_separator_CXX=:
  11572. case $host_cpu in
  11573. hppa*64*|ia64*)
  11574. ;;
  11575. *)
  11576. export_dynamic_flag_spec_CXX='${wl}-E'
  11577. ;;
  11578. esac
  11579. fi
  11580. case $host_cpu in
  11581. hppa*64*|ia64*)
  11582. hardcode_direct_CXX=no
  11583. hardcode_shlibpath_var_CXX=no
  11584. ;;
  11585. *)
  11586. hardcode_direct_CXX=yes
  11587. hardcode_direct_absolute_CXX=yes
  11588. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11589. # but as the default
  11590. # location of the library.
  11591. ;;
  11592. esac
  11593. case $cc_basename in
  11594. CC*)
  11595. # FIXME: insert proper C++ library support
  11596. ld_shlibs_CXX=no
  11597. ;;
  11598. aCC*)
  11599. case $host_cpu in
  11600. hppa*64*)
  11601. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11602. ;;
  11603. ia64*)
  11604. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11605. ;;
  11606. *)
  11607. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11608. ;;
  11609. esac
  11610. # Commands to make compiler produce verbose output that lists
  11611. # what "hidden" libraries, object files and flags are used when
  11612. # linking a shared library.
  11613. #
  11614. # There doesn't appear to be a way to prevent this compiler from
  11615. # explicitly linking system object files so we need to strip them
  11616. # from the output so that they don't get included in the library
  11617. # dependencies.
  11618. 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"'
  11619. ;;
  11620. *)
  11621. if test "$GXX" = yes; then
  11622. if test $with_gnu_ld = no; then
  11623. case $host_cpu in
  11624. hppa*64*)
  11625. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11626. ;;
  11627. ia64*)
  11628. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11629. ;;
  11630. *)
  11631. 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'
  11632. ;;
  11633. esac
  11634. fi
  11635. else
  11636. # FIXME: insert proper C++ library support
  11637. ld_shlibs_CXX=no
  11638. fi
  11639. ;;
  11640. esac
  11641. ;;
  11642. interix[3-9]*)
  11643. hardcode_direct_CXX=no
  11644. hardcode_shlibpath_var_CXX=no
  11645. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11646. export_dynamic_flag_spec_CXX='${wl}-E'
  11647. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11648. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11649. # default) and relocated if they conflict, which is a slow very memory
  11650. # consuming and fragmenting process. To avoid this, we pick a random,
  11651. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11652. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11653. 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'
  11654. 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'
  11655. ;;
  11656. irix5* | irix6*)
  11657. case $cc_basename in
  11658. CC*)
  11659. # SGI C++
  11660. 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'
  11661. # Archives containing C++ object files must be created using
  11662. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11663. # necessary to make sure instantiated templates are included
  11664. # in the archive.
  11665. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11666. ;;
  11667. *)
  11668. if test "$GXX" = yes; then
  11669. if test "$with_gnu_ld" = no; then
  11670. 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'
  11671. else
  11672. 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'
  11673. fi
  11674. fi
  11675. link_all_deplibs_CXX=yes
  11676. ;;
  11677. esac
  11678. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11679. hardcode_libdir_separator_CXX=:
  11680. inherit_rpath_CXX=yes
  11681. ;;
  11682. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11683. case $cc_basename in
  11684. KCC*)
  11685. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11686. # KCC will only create a shared library if the output file
  11687. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11688. # to its proper name (with version) after linking.
  11689. 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'
  11690. 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'
  11691. # Commands to make compiler produce verbose output that lists
  11692. # what "hidden" libraries, object files and flags are used when
  11693. # linking a shared library.
  11694. #
  11695. # There doesn't appear to be a way to prevent this compiler from
  11696. # explicitly linking system object files so we need to strip them
  11697. # from the output so that they don't get included in the library
  11698. # dependencies.
  11699. 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"'
  11700. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11701. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11702. # Archives containing C++ object files must be created using
  11703. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11704. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11705. ;;
  11706. icpc* | ecpc* )
  11707. # Intel C++
  11708. with_gnu_ld=yes
  11709. # version 8.0 and above of icpc choke on multiply defined symbols
  11710. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11711. # earlier do not add the objects themselves.
  11712. case `$CC -V 2>&1` in
  11713. *"Version 7."*)
  11714. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11715. 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'
  11716. ;;
  11717. *) # Version 8.0 or newer
  11718. tmp_idyn=
  11719. case $host_cpu in
  11720. ia64*) tmp_idyn=' -i_dynamic';;
  11721. esac
  11722. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11723. 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'
  11724. ;;
  11725. esac
  11726. archive_cmds_need_lc_CXX=no
  11727. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11728. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11729. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11730. ;;
  11731. pgCC* | pgcpp*)
  11732. # Portland Group C++ compiler
  11733. case `$CC -V` in
  11734. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11735. prelink_cmds_CXX='tpldir=Template.dir~
  11736. rm -rf $tpldir~
  11737. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11738. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11739. old_archive_cmds_CXX='tpldir=Template.dir~
  11740. rm -rf $tpldir~
  11741. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11742. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11743. $RANLIB $oldlib'
  11744. archive_cmds_CXX='tpldir=Template.dir~
  11745. rm -rf $tpldir~
  11746. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11747. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11748. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11749. rm -rf $tpldir~
  11750. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11751. $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'
  11752. ;;
  11753. *) # Version 6 and above use weak symbols
  11754. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11755. 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'
  11756. ;;
  11757. esac
  11758. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11759. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11760. 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'
  11761. ;;
  11762. cxx*)
  11763. # Compaq C++
  11764. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11765. 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'
  11766. runpath_var=LD_RUN_PATH
  11767. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11768. hardcode_libdir_separator_CXX=:
  11769. # Commands to make compiler produce verbose output that lists
  11770. # what "hidden" libraries, object files and flags are used when
  11771. # linking a shared library.
  11772. #
  11773. # There doesn't appear to be a way to prevent this compiler from
  11774. # explicitly linking system object files so we need to strip them
  11775. # from the output so that they don't get included in the library
  11776. # dependencies.
  11777. 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'
  11778. ;;
  11779. xl* | mpixl* | bgxl*)
  11780. # IBM XL 8.0 on PPC, with GNU ld
  11781. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11782. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11783. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11784. if test "x$supports_anon_versioning" = xyes; then
  11785. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11786. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11787. echo "local: *; };" >> $output_objdir/$libname.ver~
  11788. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11789. fi
  11790. ;;
  11791. *)
  11792. case `$CC -V 2>&1 | sed 5q` in
  11793. *Sun\ C*)
  11794. # Sun C++ 5.9
  11795. no_undefined_flag_CXX=' -zdefs'
  11796. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11797. 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'
  11798. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11799. 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'
  11800. compiler_needs_object_CXX=yes
  11801. # Not sure whether something based on
  11802. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11803. # would be better.
  11804. output_verbose_link_cmd='func_echo_all'
  11805. # Archives containing C++ object files must be created using
  11806. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11807. # necessary to make sure instantiated templates are included
  11808. # in the archive.
  11809. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11810. ;;
  11811. esac
  11812. ;;
  11813. esac
  11814. ;;
  11815. lynxos*)
  11816. # FIXME: insert proper C++ library support
  11817. ld_shlibs_CXX=no
  11818. ;;
  11819. m88k*)
  11820. # FIXME: insert proper C++ library support
  11821. ld_shlibs_CXX=no
  11822. ;;
  11823. mvs*)
  11824. case $cc_basename in
  11825. cxx*)
  11826. # FIXME: insert proper C++ library support
  11827. ld_shlibs_CXX=no
  11828. ;;
  11829. *)
  11830. # FIXME: insert proper C++ library support
  11831. ld_shlibs_CXX=no
  11832. ;;
  11833. esac
  11834. ;;
  11835. netbsd*)
  11836. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11837. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11838. wlarc=
  11839. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11840. hardcode_direct_CXX=yes
  11841. hardcode_shlibpath_var_CXX=no
  11842. fi
  11843. # Workaround some broken pre-1.5 toolchains
  11844. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11845. ;;
  11846. *nto* | *qnx*)
  11847. ld_shlibs_CXX=yes
  11848. ;;
  11849. openbsd2*)
  11850. # C++ shared libraries are fairly broken
  11851. ld_shlibs_CXX=no
  11852. ;;
  11853. openbsd*)
  11854. if test -f /usr/libexec/ld.so; then
  11855. hardcode_direct_CXX=yes
  11856. hardcode_shlibpath_var_CXX=no
  11857. hardcode_direct_absolute_CXX=yes
  11858. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11859. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11860. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11861. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11862. export_dynamic_flag_spec_CXX='${wl}-E'
  11863. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11864. fi
  11865. output_verbose_link_cmd=func_echo_all
  11866. else
  11867. ld_shlibs_CXX=no
  11868. fi
  11869. ;;
  11870. osf3* | osf4* | osf5*)
  11871. case $cc_basename in
  11872. KCC*)
  11873. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11874. # KCC will only create a shared library if the output file
  11875. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11876. # to its proper name (with version) after linking.
  11877. 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'
  11878. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11879. hardcode_libdir_separator_CXX=:
  11880. # Archives containing C++ object files must be created using
  11881. # the KAI C++ compiler.
  11882. case $host in
  11883. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11884. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11885. esac
  11886. ;;
  11887. RCC*)
  11888. # Rational C++ 2.4.1
  11889. # FIXME: insert proper C++ library support
  11890. ld_shlibs_CXX=no
  11891. ;;
  11892. cxx*)
  11893. case $host in
  11894. osf3*)
  11895. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11896. 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'
  11897. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11898. ;;
  11899. *)
  11900. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11901. 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'
  11902. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11903. echo "-hidden">> $lib.exp~
  11904. $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~
  11905. $RM $lib.exp'
  11906. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11907. ;;
  11908. esac
  11909. hardcode_libdir_separator_CXX=:
  11910. # Commands to make compiler produce verbose output that lists
  11911. # what "hidden" libraries, object files and flags are used when
  11912. # linking a shared library.
  11913. #
  11914. # There doesn't appear to be a way to prevent this compiler from
  11915. # explicitly linking system object files so we need to strip them
  11916. # from the output so that they don't get included in the library
  11917. # dependencies.
  11918. 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"'
  11919. ;;
  11920. *)
  11921. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11922. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11923. case $host in
  11924. osf3*)
  11925. 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'
  11926. ;;
  11927. *)
  11928. 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'
  11929. ;;
  11930. esac
  11931. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11932. hardcode_libdir_separator_CXX=:
  11933. # Commands to make compiler produce verbose output that lists
  11934. # what "hidden" libraries, object files and flags are used when
  11935. # linking a shared library.
  11936. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11937. else
  11938. # FIXME: insert proper C++ library support
  11939. ld_shlibs_CXX=no
  11940. fi
  11941. ;;
  11942. esac
  11943. ;;
  11944. psos*)
  11945. # FIXME: insert proper C++ library support
  11946. ld_shlibs_CXX=no
  11947. ;;
  11948. sunos4*)
  11949. case $cc_basename in
  11950. CC*)
  11951. # Sun C++ 4.x
  11952. # FIXME: insert proper C++ library support
  11953. ld_shlibs_CXX=no
  11954. ;;
  11955. lcc*)
  11956. # Lucid
  11957. # FIXME: insert proper C++ library support
  11958. ld_shlibs_CXX=no
  11959. ;;
  11960. *)
  11961. # FIXME: insert proper C++ library support
  11962. ld_shlibs_CXX=no
  11963. ;;
  11964. esac
  11965. ;;
  11966. solaris*)
  11967. case $cc_basename in
  11968. CC* | sunCC*)
  11969. # Sun C++ 4.2, 5.x and Centerline C++
  11970. archive_cmds_need_lc_CXX=yes
  11971. no_undefined_flag_CXX=' -zdefs'
  11972. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11973. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11974. $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'
  11975. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11976. hardcode_shlibpath_var_CXX=no
  11977. case $host_os in
  11978. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11979. *)
  11980. # The compiler driver will combine and reorder linker options,
  11981. # but understands `-z linker_flag'.
  11982. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11983. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11984. ;;
  11985. esac
  11986. link_all_deplibs_CXX=yes
  11987. output_verbose_link_cmd='func_echo_all'
  11988. # Archives containing C++ object files must be created using
  11989. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11990. # necessary to make sure instantiated templates are included
  11991. # in the archive.
  11992. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11993. ;;
  11994. gcx*)
  11995. # Green Hills C++ Compiler
  11996. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11997. # The C++ compiler must be used to create the archive.
  11998. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11999. ;;
  12000. *)
  12001. # GNU C++ compiler with Solaris linker
  12002. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12003. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12004. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12005. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12006. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12007. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12008. # Commands to make compiler produce verbose output that lists
  12009. # what "hidden" libraries, object files and flags are used when
  12010. # linking a shared library.
  12011. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12012. else
  12013. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12014. # platform.
  12015. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12016. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12017. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12018. # Commands to make compiler produce verbose output that lists
  12019. # what "hidden" libraries, object files and flags are used when
  12020. # linking a shared library.
  12021. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12022. fi
  12023. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12024. case $host_os in
  12025. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12026. *)
  12027. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12028. ;;
  12029. esac
  12030. fi
  12031. ;;
  12032. esac
  12033. ;;
  12034. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12035. no_undefined_flag_CXX='${wl}-z,text'
  12036. archive_cmds_need_lc_CXX=no
  12037. hardcode_shlibpath_var_CXX=no
  12038. runpath_var='LD_RUN_PATH'
  12039. case $cc_basename in
  12040. CC*)
  12041. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12042. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12043. ;;
  12044. *)
  12045. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12046. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12047. ;;
  12048. esac
  12049. ;;
  12050. sysv5* | sco3.2v5* | sco5v6*)
  12051. # Note: We can NOT use -z defs as we might desire, because we do not
  12052. # link with -lc, and that would cause any symbols used from libc to
  12053. # always be unresolved, which means just about no library would
  12054. # ever link correctly. If we're not using GNU ld we use -z text
  12055. # though, which does catch some bad symbols but isn't as heavy-handed
  12056. # as -z defs.
  12057. no_undefined_flag_CXX='${wl}-z,text'
  12058. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12059. archive_cmds_need_lc_CXX=no
  12060. hardcode_shlibpath_var_CXX=no
  12061. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12062. hardcode_libdir_separator_CXX=':'
  12063. link_all_deplibs_CXX=yes
  12064. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12065. runpath_var='LD_RUN_PATH'
  12066. case $cc_basename in
  12067. CC*)
  12068. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12069. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12070. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12071. '"$old_archive_cmds_CXX"
  12072. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12073. '"$reload_cmds_CXX"
  12074. ;;
  12075. *)
  12076. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12077. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12078. ;;
  12079. esac
  12080. ;;
  12081. tandem*)
  12082. case $cc_basename in
  12083. NCC*)
  12084. # NonStop-UX NCC 3.20
  12085. # FIXME: insert proper C++ library support
  12086. ld_shlibs_CXX=no
  12087. ;;
  12088. *)
  12089. # FIXME: insert proper C++ library support
  12090. ld_shlibs_CXX=no
  12091. ;;
  12092. esac
  12093. ;;
  12094. vxworks*)
  12095. # FIXME: insert proper C++ library support
  12096. ld_shlibs_CXX=no
  12097. ;;
  12098. *)
  12099. # FIXME: insert proper C++ library support
  12100. ld_shlibs_CXX=no
  12101. ;;
  12102. esac
  12103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12104. $as_echo "$ld_shlibs_CXX" >&6; }
  12105. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12106. GCC_CXX="$GXX"
  12107. LD_CXX="$LD"
  12108. ## CAVEAT EMPTOR:
  12109. ## There is no encapsulation within the following macros, do not change
  12110. ## the running order or otherwise move them around unless you know exactly
  12111. ## what you are doing...
  12112. # Dependencies to place before and after the object being linked:
  12113. predep_objects_CXX=
  12114. postdep_objects_CXX=
  12115. predeps_CXX=
  12116. postdeps_CXX=
  12117. compiler_lib_search_path_CXX=
  12118. cat > conftest.$ac_ext <<_LT_EOF
  12119. class Foo
  12120. {
  12121. public:
  12122. Foo (void) { a = 0; }
  12123. private:
  12124. int a;
  12125. };
  12126. _LT_EOF
  12127. _lt_libdeps_save_CFLAGS=$CFLAGS
  12128. case "$CC $CFLAGS " in #(
  12129. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12130. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12131. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12132. esac
  12133. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12134. (eval $ac_compile) 2>&5
  12135. ac_status=$?
  12136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12137. test $ac_status = 0; }; then
  12138. # Parse the compiler output and extract the necessary
  12139. # objects, libraries and library flags.
  12140. # Sentinel used to keep track of whether or not we are before
  12141. # the conftest object file.
  12142. pre_test_object_deps_done=no
  12143. for p in `eval "$output_verbose_link_cmd"`; do
  12144. case ${prev}${p} in
  12145. -L* | -R* | -l*)
  12146. # Some compilers place space between "-{L,R}" and the path.
  12147. # Remove the space.
  12148. if test $p = "-L" ||
  12149. test $p = "-R"; then
  12150. prev=$p
  12151. continue
  12152. fi
  12153. # Expand the sysroot to ease extracting the directories later.
  12154. if test -z "$prev"; then
  12155. case $p in
  12156. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12157. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12158. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12159. esac
  12160. fi
  12161. case $p in
  12162. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12163. esac
  12164. if test "$pre_test_object_deps_done" = no; then
  12165. case ${prev} in
  12166. -L | -R)
  12167. # Internal compiler library paths should come after those
  12168. # provided the user. The postdeps already come after the
  12169. # user supplied libs so there is no need to process them.
  12170. if test -z "$compiler_lib_search_path_CXX"; then
  12171. compiler_lib_search_path_CXX="${prev}${p}"
  12172. else
  12173. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12174. fi
  12175. ;;
  12176. # The "-l" case would never come before the object being
  12177. # linked, so don't bother handling this case.
  12178. esac
  12179. else
  12180. if test -z "$postdeps_CXX"; then
  12181. postdeps_CXX="${prev}${p}"
  12182. else
  12183. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12184. fi
  12185. fi
  12186. prev=
  12187. ;;
  12188. *.lto.$objext) ;; # Ignore GCC LTO objects
  12189. *.$objext)
  12190. # This assumes that the test object file only shows up
  12191. # once in the compiler output.
  12192. if test "$p" = "conftest.$objext"; then
  12193. pre_test_object_deps_done=yes
  12194. continue
  12195. fi
  12196. if test "$pre_test_object_deps_done" = no; then
  12197. if test -z "$predep_objects_CXX"; then
  12198. predep_objects_CXX="$p"
  12199. else
  12200. predep_objects_CXX="$predep_objects_CXX $p"
  12201. fi
  12202. else
  12203. if test -z "$postdep_objects_CXX"; then
  12204. postdep_objects_CXX="$p"
  12205. else
  12206. postdep_objects_CXX="$postdep_objects_CXX $p"
  12207. fi
  12208. fi
  12209. ;;
  12210. *) ;; # Ignore the rest.
  12211. esac
  12212. done
  12213. # Clean up.
  12214. rm -f a.out a.exe
  12215. else
  12216. echo "libtool.m4: error: problem compiling CXX test program"
  12217. fi
  12218. $RM -f confest.$objext
  12219. CFLAGS=$_lt_libdeps_save_CFLAGS
  12220. # PORTME: override above test on systems where it is broken
  12221. case $host_os in
  12222. interix[3-9]*)
  12223. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12224. # hack all around it, let's just trust "g++" to DTRT.
  12225. predep_objects_CXX=
  12226. postdep_objects_CXX=
  12227. postdeps_CXX=
  12228. ;;
  12229. linux*)
  12230. case `$CC -V 2>&1 | sed 5q` in
  12231. *Sun\ C*)
  12232. # Sun C++ 5.9
  12233. # The more standards-conforming stlport4 library is
  12234. # incompatible with the Cstd library. Avoid specifying
  12235. # it if it's in CXXFLAGS. Ignore libCrun as
  12236. # -library=stlport4 depends on it.
  12237. case " $CXX $CXXFLAGS " in
  12238. *" -library=stlport4 "*)
  12239. solaris_use_stlport4=yes
  12240. ;;
  12241. esac
  12242. if test "$solaris_use_stlport4" != yes; then
  12243. postdeps_CXX='-library=Cstd -library=Crun'
  12244. fi
  12245. ;;
  12246. esac
  12247. ;;
  12248. solaris*)
  12249. case $cc_basename in
  12250. CC* | sunCC*)
  12251. # The more standards-conforming stlport4 library is
  12252. # incompatible with the Cstd library. Avoid specifying
  12253. # it if it's in CXXFLAGS. Ignore libCrun as
  12254. # -library=stlport4 depends on it.
  12255. case " $CXX $CXXFLAGS " in
  12256. *" -library=stlport4 "*)
  12257. solaris_use_stlport4=yes
  12258. ;;
  12259. esac
  12260. # Adding this requires a known-good setup of shared libraries for
  12261. # Sun compiler versions before 5.6, else PIC objects from an old
  12262. # archive will be linked into the output, leading to subtle bugs.
  12263. if test "$solaris_use_stlport4" != yes; then
  12264. postdeps_CXX='-library=Cstd -library=Crun'
  12265. fi
  12266. ;;
  12267. esac
  12268. ;;
  12269. esac
  12270. case " $postdeps_CXX " in
  12271. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12272. esac
  12273. compiler_lib_search_dirs_CXX=
  12274. if test -n "${compiler_lib_search_path_CXX}"; then
  12275. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12276. fi
  12277. lt_prog_compiler_wl_CXX=
  12278. lt_prog_compiler_pic_CXX=
  12279. lt_prog_compiler_static_CXX=
  12280. # C++ specific cases for pic, static, wl, etc.
  12281. if test "$GXX" = yes; then
  12282. lt_prog_compiler_wl_CXX='-Wl,'
  12283. lt_prog_compiler_static_CXX='-static'
  12284. case $host_os in
  12285. aix*)
  12286. # All AIX code is PIC.
  12287. if test "$host_cpu" = ia64; then
  12288. # AIX 5 now supports IA64 processor
  12289. lt_prog_compiler_static_CXX='-Bstatic'
  12290. fi
  12291. ;;
  12292. amigaos*)
  12293. case $host_cpu in
  12294. powerpc)
  12295. # see comment about AmigaOS4 .so support
  12296. lt_prog_compiler_pic_CXX='-fPIC'
  12297. ;;
  12298. m68k)
  12299. # FIXME: we need at least 68020 code to build shared libraries, but
  12300. # adding the `-m68020' flag to GCC prevents building anything better,
  12301. # like `-m68040'.
  12302. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12303. ;;
  12304. esac
  12305. ;;
  12306. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12307. # PIC is the default for these OSes.
  12308. ;;
  12309. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12310. # This hack is so that the source file can tell whether it is being
  12311. # built for inclusion in a dll (and should export symbols for example).
  12312. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12313. # (--disable-auto-import) libraries
  12314. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12315. ;;
  12316. darwin* | rhapsody*)
  12317. # PIC is the default on this platform
  12318. # Common symbols not allowed in MH_DYLIB files
  12319. lt_prog_compiler_pic_CXX='-fno-common'
  12320. ;;
  12321. *djgpp*)
  12322. # DJGPP does not support shared libraries at all
  12323. lt_prog_compiler_pic_CXX=
  12324. ;;
  12325. haiku*)
  12326. # PIC is the default for Haiku.
  12327. # The "-static" flag exists, but is broken.
  12328. lt_prog_compiler_static_CXX=
  12329. ;;
  12330. interix[3-9]*)
  12331. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12332. # Instead, we relocate shared libraries at runtime.
  12333. ;;
  12334. sysv4*MP*)
  12335. if test -d /usr/nec; then
  12336. lt_prog_compiler_pic_CXX=-Kconform_pic
  12337. fi
  12338. ;;
  12339. hpux*)
  12340. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12341. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12342. # sets the default TLS model and affects inlining.
  12343. case $host_cpu in
  12344. hppa*64*)
  12345. ;;
  12346. *)
  12347. lt_prog_compiler_pic_CXX='-fPIC'
  12348. ;;
  12349. esac
  12350. ;;
  12351. *qnx* | *nto*)
  12352. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12353. # it will coredump.
  12354. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12355. ;;
  12356. *)
  12357. lt_prog_compiler_pic_CXX='-fPIC'
  12358. ;;
  12359. esac
  12360. else
  12361. case $host_os in
  12362. aix[4-9]*)
  12363. # All AIX code is PIC.
  12364. if test "$host_cpu" = ia64; then
  12365. # AIX 5 now supports IA64 processor
  12366. lt_prog_compiler_static_CXX='-Bstatic'
  12367. else
  12368. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12369. fi
  12370. ;;
  12371. chorus*)
  12372. case $cc_basename in
  12373. cxch68*)
  12374. # Green Hills C++ Compiler
  12375. # _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"
  12376. ;;
  12377. esac
  12378. ;;
  12379. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12380. # This hack is so that the source file can tell whether it is being
  12381. # built for inclusion in a dll (and should export symbols for example).
  12382. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12383. ;;
  12384. dgux*)
  12385. case $cc_basename in
  12386. ec++*)
  12387. lt_prog_compiler_pic_CXX='-KPIC'
  12388. ;;
  12389. ghcx*)
  12390. # Green Hills C++ Compiler
  12391. lt_prog_compiler_pic_CXX='-pic'
  12392. ;;
  12393. *)
  12394. ;;
  12395. esac
  12396. ;;
  12397. freebsd* | dragonfly*)
  12398. # FreeBSD uses GNU C++
  12399. ;;
  12400. hpux9* | hpux10* | hpux11*)
  12401. case $cc_basename in
  12402. CC*)
  12403. lt_prog_compiler_wl_CXX='-Wl,'
  12404. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12405. if test "$host_cpu" != ia64; then
  12406. lt_prog_compiler_pic_CXX='+Z'
  12407. fi
  12408. ;;
  12409. aCC*)
  12410. lt_prog_compiler_wl_CXX='-Wl,'
  12411. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12412. case $host_cpu in
  12413. hppa*64*|ia64*)
  12414. # +Z the default
  12415. ;;
  12416. *)
  12417. lt_prog_compiler_pic_CXX='+Z'
  12418. ;;
  12419. esac
  12420. ;;
  12421. *)
  12422. ;;
  12423. esac
  12424. ;;
  12425. interix*)
  12426. # This is c89, which is MS Visual C++ (no shared libs)
  12427. # Anyone wants to do a port?
  12428. ;;
  12429. irix5* | irix6* | nonstopux*)
  12430. case $cc_basename in
  12431. CC*)
  12432. lt_prog_compiler_wl_CXX='-Wl,'
  12433. lt_prog_compiler_static_CXX='-non_shared'
  12434. # CC pic flag -KPIC is the default.
  12435. ;;
  12436. *)
  12437. ;;
  12438. esac
  12439. ;;
  12440. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12441. case $cc_basename in
  12442. KCC*)
  12443. # KAI C++ Compiler
  12444. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12445. lt_prog_compiler_pic_CXX='-fPIC'
  12446. ;;
  12447. ecpc* )
  12448. # old Intel C++ for x86_64 which still supported -KPIC.
  12449. lt_prog_compiler_wl_CXX='-Wl,'
  12450. lt_prog_compiler_pic_CXX='-KPIC'
  12451. lt_prog_compiler_static_CXX='-static'
  12452. ;;
  12453. icpc* )
  12454. # Intel C++, used to be incompatible with GCC.
  12455. # ICC 10 doesn't accept -KPIC any more.
  12456. lt_prog_compiler_wl_CXX='-Wl,'
  12457. lt_prog_compiler_pic_CXX='-fPIC'
  12458. lt_prog_compiler_static_CXX='-static'
  12459. ;;
  12460. pgCC* | pgcpp*)
  12461. # Portland Group C++ compiler
  12462. lt_prog_compiler_wl_CXX='-Wl,'
  12463. lt_prog_compiler_pic_CXX='-fpic'
  12464. lt_prog_compiler_static_CXX='-Bstatic'
  12465. ;;
  12466. cxx*)
  12467. # Compaq C++
  12468. # Make sure the PIC flag is empty. It appears that all Alpha
  12469. # Linux and Compaq Tru64 Unix objects are PIC.
  12470. lt_prog_compiler_pic_CXX=
  12471. lt_prog_compiler_static_CXX='-non_shared'
  12472. ;;
  12473. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12474. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12475. lt_prog_compiler_wl_CXX='-Wl,'
  12476. lt_prog_compiler_pic_CXX='-qpic'
  12477. lt_prog_compiler_static_CXX='-qstaticlink'
  12478. ;;
  12479. *)
  12480. case `$CC -V 2>&1 | sed 5q` in
  12481. *Sun\ C*)
  12482. # Sun C++ 5.9
  12483. lt_prog_compiler_pic_CXX='-KPIC'
  12484. lt_prog_compiler_static_CXX='-Bstatic'
  12485. lt_prog_compiler_wl_CXX='-Qoption ld '
  12486. ;;
  12487. esac
  12488. ;;
  12489. esac
  12490. ;;
  12491. lynxos*)
  12492. ;;
  12493. m88k*)
  12494. ;;
  12495. mvs*)
  12496. case $cc_basename in
  12497. cxx*)
  12498. lt_prog_compiler_pic_CXX='-W c,exportall'
  12499. ;;
  12500. *)
  12501. ;;
  12502. esac
  12503. ;;
  12504. netbsd*)
  12505. ;;
  12506. *qnx* | *nto*)
  12507. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12508. # it will coredump.
  12509. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12510. ;;
  12511. osf3* | osf4* | osf5*)
  12512. case $cc_basename in
  12513. KCC*)
  12514. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12515. ;;
  12516. RCC*)
  12517. # Rational C++ 2.4.1
  12518. lt_prog_compiler_pic_CXX='-pic'
  12519. ;;
  12520. cxx*)
  12521. # Digital/Compaq C++
  12522. lt_prog_compiler_wl_CXX='-Wl,'
  12523. # Make sure the PIC flag is empty. It appears that all Alpha
  12524. # Linux and Compaq Tru64 Unix objects are PIC.
  12525. lt_prog_compiler_pic_CXX=
  12526. lt_prog_compiler_static_CXX='-non_shared'
  12527. ;;
  12528. *)
  12529. ;;
  12530. esac
  12531. ;;
  12532. psos*)
  12533. ;;
  12534. solaris*)
  12535. case $cc_basename in
  12536. CC* | sunCC*)
  12537. # Sun C++ 4.2, 5.x and Centerline C++
  12538. lt_prog_compiler_pic_CXX='-KPIC'
  12539. lt_prog_compiler_static_CXX='-Bstatic'
  12540. lt_prog_compiler_wl_CXX='-Qoption ld '
  12541. ;;
  12542. gcx*)
  12543. # Green Hills C++ Compiler
  12544. lt_prog_compiler_pic_CXX='-PIC'
  12545. ;;
  12546. *)
  12547. ;;
  12548. esac
  12549. ;;
  12550. sunos4*)
  12551. case $cc_basename in
  12552. CC*)
  12553. # Sun C++ 4.x
  12554. lt_prog_compiler_pic_CXX='-pic'
  12555. lt_prog_compiler_static_CXX='-Bstatic'
  12556. ;;
  12557. lcc*)
  12558. # Lucid
  12559. lt_prog_compiler_pic_CXX='-pic'
  12560. ;;
  12561. *)
  12562. ;;
  12563. esac
  12564. ;;
  12565. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12566. case $cc_basename in
  12567. CC*)
  12568. lt_prog_compiler_wl_CXX='-Wl,'
  12569. lt_prog_compiler_pic_CXX='-KPIC'
  12570. lt_prog_compiler_static_CXX='-Bstatic'
  12571. ;;
  12572. esac
  12573. ;;
  12574. tandem*)
  12575. case $cc_basename in
  12576. NCC*)
  12577. # NonStop-UX NCC 3.20
  12578. lt_prog_compiler_pic_CXX='-KPIC'
  12579. ;;
  12580. *)
  12581. ;;
  12582. esac
  12583. ;;
  12584. vxworks*)
  12585. ;;
  12586. *)
  12587. lt_prog_compiler_can_build_shared_CXX=no
  12588. ;;
  12589. esac
  12590. fi
  12591. case $host_os in
  12592. # For platforms which do not support PIC, -DPIC is meaningless:
  12593. *djgpp*)
  12594. lt_prog_compiler_pic_CXX=
  12595. ;;
  12596. *)
  12597. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12598. ;;
  12599. esac
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12601. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12602. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12603. $as_echo_n "(cached) " >&6
  12604. else
  12605. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12606. fi
  12607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12608. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12609. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12610. #
  12611. # Check to make sure the PIC flag actually works.
  12612. #
  12613. if test -n "$lt_prog_compiler_pic_CXX"; then
  12614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12615. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12616. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12617. $as_echo_n "(cached) " >&6
  12618. else
  12619. lt_cv_prog_compiler_pic_works_CXX=no
  12620. ac_outfile=conftest.$ac_objext
  12621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12622. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12623. # Insert the option either (1) after the last *FLAGS variable, or
  12624. # (2) before a word containing "conftest.", or (3) at the end.
  12625. # Note that $ac_compile itself does not contain backslashes and begins
  12626. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12627. # The option is referenced via a variable to avoid confusing sed.
  12628. lt_compile=`echo "$ac_compile" | $SED \
  12629. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12630. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12631. -e 's:$: $lt_compiler_flag:'`
  12632. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12633. (eval "$lt_compile" 2>conftest.err)
  12634. ac_status=$?
  12635. cat conftest.err >&5
  12636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12637. if (exit $ac_status) && test -s "$ac_outfile"; then
  12638. # The compiler can only warn and ignore the option if not recognized
  12639. # So say no if there are warnings other than the usual output.
  12640. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12641. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12642. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12643. lt_cv_prog_compiler_pic_works_CXX=yes
  12644. fi
  12645. fi
  12646. $RM conftest*
  12647. fi
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12649. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12650. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12651. case $lt_prog_compiler_pic_CXX in
  12652. "" | " "*) ;;
  12653. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12654. esac
  12655. else
  12656. lt_prog_compiler_pic_CXX=
  12657. lt_prog_compiler_can_build_shared_CXX=no
  12658. fi
  12659. fi
  12660. #
  12661. # Check to make sure the static flag actually works.
  12662. #
  12663. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12665. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12666. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12667. $as_echo_n "(cached) " >&6
  12668. else
  12669. lt_cv_prog_compiler_static_works_CXX=no
  12670. save_LDFLAGS="$LDFLAGS"
  12671. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12672. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12673. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12674. # The linker can only warn and ignore the option if not recognized
  12675. # So say no if there are warnings
  12676. if test -s conftest.err; then
  12677. # Append any errors to the config.log.
  12678. cat conftest.err 1>&5
  12679. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12680. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12681. if diff conftest.exp conftest.er2 >/dev/null; then
  12682. lt_cv_prog_compiler_static_works_CXX=yes
  12683. fi
  12684. else
  12685. lt_cv_prog_compiler_static_works_CXX=yes
  12686. fi
  12687. fi
  12688. $RM -r conftest*
  12689. LDFLAGS="$save_LDFLAGS"
  12690. fi
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12692. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12693. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12694. :
  12695. else
  12696. lt_prog_compiler_static_CXX=
  12697. fi
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12699. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12700. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12701. $as_echo_n "(cached) " >&6
  12702. else
  12703. lt_cv_prog_compiler_c_o_CXX=no
  12704. $RM -r conftest 2>/dev/null
  12705. mkdir conftest
  12706. cd conftest
  12707. mkdir out
  12708. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12709. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12710. # Insert the option either (1) after the last *FLAGS variable, or
  12711. # (2) before a word containing "conftest.", or (3) at the end.
  12712. # Note that $ac_compile itself does not contain backslashes and begins
  12713. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12714. lt_compile=`echo "$ac_compile" | $SED \
  12715. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12716. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12717. -e 's:$: $lt_compiler_flag:'`
  12718. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12719. (eval "$lt_compile" 2>out/conftest.err)
  12720. ac_status=$?
  12721. cat out/conftest.err >&5
  12722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12723. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12724. then
  12725. # The compiler can only warn and ignore the option if not recognized
  12726. # So say no if there are warnings
  12727. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12728. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12729. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12730. lt_cv_prog_compiler_c_o_CXX=yes
  12731. fi
  12732. fi
  12733. chmod u+w . 2>&5
  12734. $RM conftest*
  12735. # SGI C++ compiler will create directory out/ii_files/ for
  12736. # template instantiation
  12737. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12738. $RM out/* && rmdir out
  12739. cd ..
  12740. $RM -r conftest
  12741. $RM conftest*
  12742. fi
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12744. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12746. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12747. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12748. $as_echo_n "(cached) " >&6
  12749. else
  12750. lt_cv_prog_compiler_c_o_CXX=no
  12751. $RM -r conftest 2>/dev/null
  12752. mkdir conftest
  12753. cd conftest
  12754. mkdir out
  12755. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12756. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12757. # Insert the option either (1) after the last *FLAGS variable, or
  12758. # (2) before a word containing "conftest.", or (3) at the end.
  12759. # Note that $ac_compile itself does not contain backslashes and begins
  12760. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12761. lt_compile=`echo "$ac_compile" | $SED \
  12762. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12763. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12764. -e 's:$: $lt_compiler_flag:'`
  12765. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12766. (eval "$lt_compile" 2>out/conftest.err)
  12767. ac_status=$?
  12768. cat out/conftest.err >&5
  12769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12770. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12771. then
  12772. # The compiler can only warn and ignore the option if not recognized
  12773. # So say no if there are warnings
  12774. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12775. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12776. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12777. lt_cv_prog_compiler_c_o_CXX=yes
  12778. fi
  12779. fi
  12780. chmod u+w . 2>&5
  12781. $RM conftest*
  12782. # SGI C++ compiler will create directory out/ii_files/ for
  12783. # template instantiation
  12784. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12785. $RM out/* && rmdir out
  12786. cd ..
  12787. $RM -r conftest
  12788. $RM conftest*
  12789. fi
  12790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12791. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12792. hard_links="nottested"
  12793. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12794. # do not overwrite the value of need_locks provided by the user
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12796. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12797. hard_links=yes
  12798. $RM conftest*
  12799. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12800. touch conftest.a
  12801. ln conftest.a conftest.b 2>&5 || hard_links=no
  12802. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12804. $as_echo "$hard_links" >&6; }
  12805. if test "$hard_links" = no; then
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12807. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12808. need_locks=warn
  12809. fi
  12810. else
  12811. need_locks=no
  12812. fi
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12814. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12815. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12816. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12817. case $host_os in
  12818. aix[4-9]*)
  12819. # If we're using GNU nm, then we don't want the "-C" option.
  12820. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12821. # Also, AIX nm treats weak defined symbols like other global defined
  12822. # symbols, whereas GNU nm marks them as "W".
  12823. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12824. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12825. else
  12826. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12827. fi
  12828. ;;
  12829. pw32*)
  12830. export_symbols_cmds_CXX="$ltdll_cmds"
  12831. ;;
  12832. cygwin* | mingw* | cegcc*)
  12833. case $cc_basename in
  12834. cl*)
  12835. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12836. ;;
  12837. *)
  12838. 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'
  12839. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12840. ;;
  12841. esac
  12842. ;;
  12843. *)
  12844. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12845. ;;
  12846. esac
  12847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12848. $as_echo "$ld_shlibs_CXX" >&6; }
  12849. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12850. with_gnu_ld_CXX=$with_gnu_ld
  12851. #
  12852. # Do we need to explicitly link libc?
  12853. #
  12854. case "x$archive_cmds_need_lc_CXX" in
  12855. x|xyes)
  12856. # Assume -lc should be added
  12857. archive_cmds_need_lc_CXX=yes
  12858. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12859. case $archive_cmds_CXX in
  12860. *'~'*)
  12861. # FIXME: we may have to deal with multi-command sequences.
  12862. ;;
  12863. '$CC '*)
  12864. # Test whether the compiler implicitly links with -lc since on some
  12865. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12866. # to ld, don't add -lc before -lgcc.
  12867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12868. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12869. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12870. $as_echo_n "(cached) " >&6
  12871. else
  12872. $RM conftest*
  12873. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12874. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12875. (eval $ac_compile) 2>&5
  12876. ac_status=$?
  12877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12878. test $ac_status = 0; } 2>conftest.err; then
  12879. soname=conftest
  12880. lib=conftest
  12881. libobjs=conftest.$ac_objext
  12882. deplibs=
  12883. wl=$lt_prog_compiler_wl_CXX
  12884. pic_flag=$lt_prog_compiler_pic_CXX
  12885. compiler_flags=-v
  12886. linker_flags=-v
  12887. verstring=
  12888. output_objdir=.
  12889. libname=conftest
  12890. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12891. allow_undefined_flag_CXX=
  12892. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12893. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12894. ac_status=$?
  12895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12896. test $ac_status = 0; }
  12897. then
  12898. lt_cv_archive_cmds_need_lc_CXX=no
  12899. else
  12900. lt_cv_archive_cmds_need_lc_CXX=yes
  12901. fi
  12902. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12903. else
  12904. cat conftest.err 1>&5
  12905. fi
  12906. $RM conftest*
  12907. fi
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12909. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12910. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12911. ;;
  12912. esac
  12913. fi
  12914. ;;
  12915. esac
  12916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12917. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12918. library_names_spec=
  12919. libname_spec='lib$name'
  12920. soname_spec=
  12921. shrext_cmds=".so"
  12922. postinstall_cmds=
  12923. postuninstall_cmds=
  12924. finish_cmds=
  12925. finish_eval=
  12926. shlibpath_var=
  12927. shlibpath_overrides_runpath=unknown
  12928. version_type=none
  12929. dynamic_linker="$host_os ld.so"
  12930. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12931. need_lib_prefix=unknown
  12932. hardcode_into_libs=no
  12933. # when you set need_version to no, make sure it does not cause -set_version
  12934. # flags to be left without arguments
  12935. need_version=unknown
  12936. case $host_os in
  12937. aix3*)
  12938. version_type=linux # correct to gnu/linux during the next big refactor
  12939. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12940. shlibpath_var=LIBPATH
  12941. # AIX 3 has no versioning support, so we append a major version to the name.
  12942. soname_spec='${libname}${release}${shared_ext}$major'
  12943. ;;
  12944. aix[4-9]*)
  12945. version_type=linux # correct to gnu/linux during the next big refactor
  12946. need_lib_prefix=no
  12947. need_version=no
  12948. hardcode_into_libs=yes
  12949. if test "$host_cpu" = ia64; then
  12950. # AIX 5 supports IA64
  12951. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12952. shlibpath_var=LD_LIBRARY_PATH
  12953. else
  12954. # With GCC up to 2.95.x, collect2 would create an import file
  12955. # for dependence libraries. The import file would start with
  12956. # the line `#! .'. This would cause the generated library to
  12957. # depend on `.', always an invalid library. This was fixed in
  12958. # development snapshots of GCC prior to 3.0.
  12959. case $host_os in
  12960. aix4 | aix4.[01] | aix4.[01].*)
  12961. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12962. echo ' yes '
  12963. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12964. :
  12965. else
  12966. can_build_shared=no
  12967. fi
  12968. ;;
  12969. esac
  12970. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12971. # soname into executable. Probably we can add versioning support to
  12972. # collect2, so additional links can be useful in future.
  12973. if test "$aix_use_runtimelinking" = yes; then
  12974. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12975. # instead of lib<name>.a to let people know that these are not
  12976. # typical AIX shared libraries.
  12977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12978. else
  12979. # We preserve .a as extension for shared libraries through AIX4.2
  12980. # and later when we are not doing run time linking.
  12981. library_names_spec='${libname}${release}.a $libname.a'
  12982. soname_spec='${libname}${release}${shared_ext}$major'
  12983. fi
  12984. shlibpath_var=LIBPATH
  12985. fi
  12986. ;;
  12987. amigaos*)
  12988. case $host_cpu in
  12989. powerpc)
  12990. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12991. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12993. ;;
  12994. m68k)
  12995. library_names_spec='$libname.ixlibrary $libname.a'
  12996. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12997. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  12998. ;;
  12999. esac
  13000. ;;
  13001. beos*)
  13002. library_names_spec='${libname}${shared_ext}'
  13003. dynamic_linker="$host_os ld.so"
  13004. shlibpath_var=LIBRARY_PATH
  13005. ;;
  13006. bsdi[45]*)
  13007. version_type=linux # correct to gnu/linux during the next big refactor
  13008. need_version=no
  13009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13010. soname_spec='${libname}${release}${shared_ext}$major'
  13011. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13012. shlibpath_var=LD_LIBRARY_PATH
  13013. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13014. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13015. # the default ld.so.conf also contains /usr/contrib/lib and
  13016. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13017. # libtool to hard-code these into programs
  13018. ;;
  13019. cygwin* | mingw* | pw32* | cegcc*)
  13020. version_type=windows
  13021. shrext_cmds=".dll"
  13022. need_version=no
  13023. need_lib_prefix=no
  13024. case $GCC,$cc_basename in
  13025. yes,*)
  13026. # gcc
  13027. library_names_spec='$libname.dll.a'
  13028. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13029. postinstall_cmds='base_file=`basename \${file}`~
  13030. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13031. dldir=$destdir/`dirname \$dlpath`~
  13032. test -d \$dldir || mkdir -p \$dldir~
  13033. $install_prog $dir/$dlname \$dldir/$dlname~
  13034. chmod a+x \$dldir/$dlname~
  13035. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13036. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13037. fi'
  13038. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13039. dlpath=$dir/\$dldll~
  13040. $RM \$dlpath'
  13041. shlibpath_overrides_runpath=yes
  13042. case $host_os in
  13043. cygwin*)
  13044. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13045. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13046. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13047. ;;
  13048. mingw* | cegcc*)
  13049. # MinGW DLLs use traditional 'lib' prefix
  13050. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13051. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13052. ;;
  13053. pw32*)
  13054. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13055. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13056. ;;
  13057. esac
  13058. dynamic_linker='Win32 ld.exe'
  13059. ;;
  13060. *,cl*)
  13061. # Native MSVC
  13062. libname_spec='$name'
  13063. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13064. library_names_spec='${libname}.dll.lib'
  13065. case $build_os in
  13066. mingw*)
  13067. sys_lib_search_path_spec=
  13068. lt_save_ifs=$IFS
  13069. IFS=';'
  13070. for lt_path in $LIB
  13071. do
  13072. IFS=$lt_save_ifs
  13073. # Let DOS variable expansion print the short 8.3 style file name.
  13074. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13075. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13076. done
  13077. IFS=$lt_save_ifs
  13078. # Convert to MSYS style.
  13079. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13080. ;;
  13081. cygwin*)
  13082. # Convert to unix form, then to dos form, then back to unix form
  13083. # but this time dos style (no spaces!) so that the unix form looks
  13084. # like /cygdrive/c/PROGRA~1:/cygdr...
  13085. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13086. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13087. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13088. ;;
  13089. *)
  13090. sys_lib_search_path_spec="$LIB"
  13091. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13092. # It is most probably a Windows format PATH.
  13093. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13094. else
  13095. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13096. fi
  13097. # FIXME: find the short name or the path components, as spaces are
  13098. # common. (e.g. "Program Files" -> "PROGRA~1")
  13099. ;;
  13100. esac
  13101. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13102. postinstall_cmds='base_file=`basename \${file}`~
  13103. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13104. dldir=$destdir/`dirname \$dlpath`~
  13105. test -d \$dldir || mkdir -p \$dldir~
  13106. $install_prog $dir/$dlname \$dldir/$dlname'
  13107. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13108. dlpath=$dir/\$dldll~
  13109. $RM \$dlpath'
  13110. shlibpath_overrides_runpath=yes
  13111. dynamic_linker='Win32 link.exe'
  13112. ;;
  13113. *)
  13114. # Assume MSVC wrapper
  13115. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13116. dynamic_linker='Win32 ld.exe'
  13117. ;;
  13118. esac
  13119. # FIXME: first we should search . and the directory the executable is in
  13120. shlibpath_var=PATH
  13121. ;;
  13122. darwin* | rhapsody*)
  13123. dynamic_linker="$host_os dyld"
  13124. version_type=darwin
  13125. need_lib_prefix=no
  13126. need_version=no
  13127. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13128. soname_spec='${libname}${release}${major}$shared_ext'
  13129. shlibpath_overrides_runpath=yes
  13130. shlibpath_var=DYLD_LIBRARY_PATH
  13131. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13132. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13133. ;;
  13134. dgux*)
  13135. version_type=linux # correct to gnu/linux during the next big refactor
  13136. need_lib_prefix=no
  13137. need_version=no
  13138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13139. soname_spec='${libname}${release}${shared_ext}$major'
  13140. shlibpath_var=LD_LIBRARY_PATH
  13141. ;;
  13142. freebsd* | dragonfly*)
  13143. # DragonFly does not have aout. When/if they implement a new
  13144. # versioning mechanism, adjust this.
  13145. if test -x /usr/bin/objformat; then
  13146. objformat=`/usr/bin/objformat`
  13147. else
  13148. case $host_os in
  13149. freebsd[23].*) objformat=aout ;;
  13150. *) objformat=elf ;;
  13151. esac
  13152. fi
  13153. version_type=freebsd-$objformat
  13154. case $version_type in
  13155. freebsd-elf*)
  13156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13157. need_version=no
  13158. need_lib_prefix=no
  13159. ;;
  13160. freebsd-*)
  13161. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13162. need_version=yes
  13163. ;;
  13164. esac
  13165. shlibpath_var=LD_LIBRARY_PATH
  13166. case $host_os in
  13167. freebsd2.*)
  13168. shlibpath_overrides_runpath=yes
  13169. ;;
  13170. freebsd3.[01]* | freebsdelf3.[01]*)
  13171. shlibpath_overrides_runpath=yes
  13172. hardcode_into_libs=yes
  13173. ;;
  13174. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13175. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13176. shlibpath_overrides_runpath=no
  13177. hardcode_into_libs=yes
  13178. ;;
  13179. *) # from 4.6 on, and DragonFly
  13180. shlibpath_overrides_runpath=yes
  13181. hardcode_into_libs=yes
  13182. ;;
  13183. esac
  13184. ;;
  13185. gnu*)
  13186. version_type=linux # correct to gnu/linux during the next big refactor
  13187. need_lib_prefix=no
  13188. need_version=no
  13189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13190. soname_spec='${libname}${release}${shared_ext}$major'
  13191. shlibpath_var=LD_LIBRARY_PATH
  13192. shlibpath_overrides_runpath=no
  13193. hardcode_into_libs=yes
  13194. ;;
  13195. haiku*)
  13196. version_type=linux # correct to gnu/linux during the next big refactor
  13197. need_lib_prefix=no
  13198. need_version=no
  13199. dynamic_linker="$host_os runtime_loader"
  13200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13201. soname_spec='${libname}${release}${shared_ext}$major'
  13202. shlibpath_var=LIBRARY_PATH
  13203. shlibpath_overrides_runpath=yes
  13204. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13205. hardcode_into_libs=yes
  13206. ;;
  13207. hpux9* | hpux10* | hpux11*)
  13208. # Give a soname corresponding to the major version so that dld.sl refuses to
  13209. # link against other versions.
  13210. version_type=sunos
  13211. need_lib_prefix=no
  13212. need_version=no
  13213. case $host_cpu in
  13214. ia64*)
  13215. shrext_cmds='.so'
  13216. hardcode_into_libs=yes
  13217. dynamic_linker="$host_os dld.so"
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13221. soname_spec='${libname}${release}${shared_ext}$major'
  13222. if test "X$HPUX_IA64_MODE" = X32; then
  13223. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13224. else
  13225. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13226. fi
  13227. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13228. ;;
  13229. hppa*64*)
  13230. shrext_cmds='.sl'
  13231. hardcode_into_libs=yes
  13232. dynamic_linker="$host_os dld.sl"
  13233. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13234. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13236. soname_spec='${libname}${release}${shared_ext}$major'
  13237. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13238. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13239. ;;
  13240. *)
  13241. shrext_cmds='.sl'
  13242. dynamic_linker="$host_os dld.sl"
  13243. shlibpath_var=SHLIB_PATH
  13244. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13246. soname_spec='${libname}${release}${shared_ext}$major'
  13247. ;;
  13248. esac
  13249. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13250. postinstall_cmds='chmod 555 $lib'
  13251. # or fails outright, so override atomically:
  13252. install_override_mode=555
  13253. ;;
  13254. interix[3-9]*)
  13255. version_type=linux # correct to gnu/linux during the next big refactor
  13256. need_lib_prefix=no
  13257. need_version=no
  13258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13259. soname_spec='${libname}${release}${shared_ext}$major'
  13260. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13261. shlibpath_var=LD_LIBRARY_PATH
  13262. shlibpath_overrides_runpath=no
  13263. hardcode_into_libs=yes
  13264. ;;
  13265. irix5* | irix6* | nonstopux*)
  13266. case $host_os in
  13267. nonstopux*) version_type=nonstopux ;;
  13268. *)
  13269. if test "$lt_cv_prog_gnu_ld" = yes; then
  13270. version_type=linux # correct to gnu/linux during the next big refactor
  13271. else
  13272. version_type=irix
  13273. fi ;;
  13274. esac
  13275. need_lib_prefix=no
  13276. need_version=no
  13277. soname_spec='${libname}${release}${shared_ext}$major'
  13278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13279. case $host_os in
  13280. irix5* | nonstopux*)
  13281. libsuff= shlibsuff=
  13282. ;;
  13283. *)
  13284. case $LD in # libtool.m4 will add one of these switches to LD
  13285. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13286. libsuff= shlibsuff= libmagic=32-bit;;
  13287. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13288. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13289. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13290. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13291. *) libsuff= shlibsuff= libmagic=never-match;;
  13292. esac
  13293. ;;
  13294. esac
  13295. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13296. shlibpath_overrides_runpath=no
  13297. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13298. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13299. hardcode_into_libs=yes
  13300. ;;
  13301. # No shared lib support for Linux oldld, aout, or coff.
  13302. linux*oldld* | linux*aout* | linux*coff*)
  13303. dynamic_linker=no
  13304. ;;
  13305. # This must be glibc/ELF.
  13306. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13307. version_type=linux # correct to gnu/linux during the next big refactor
  13308. need_lib_prefix=no
  13309. need_version=no
  13310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13311. soname_spec='${libname}${release}${shared_ext}$major'
  13312. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13313. shlibpath_var=LD_LIBRARY_PATH
  13314. shlibpath_overrides_runpath=no
  13315. # Some binutils ld are patched to set DT_RUNPATH
  13316. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13317. $as_echo_n "(cached) " >&6
  13318. else
  13319. lt_cv_shlibpath_overrides_runpath=no
  13320. save_LDFLAGS=$LDFLAGS
  13321. save_libdir=$libdir
  13322. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13323. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13325. /* end confdefs.h. */
  13326. int
  13327. main ()
  13328. {
  13329. ;
  13330. return 0;
  13331. }
  13332. _ACEOF
  13333. if ac_fn_cxx_try_link "$LINENO"; then :
  13334. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13335. lt_cv_shlibpath_overrides_runpath=yes
  13336. fi
  13337. fi
  13338. rm -f core conftest.err conftest.$ac_objext \
  13339. conftest$ac_exeext conftest.$ac_ext
  13340. LDFLAGS=$save_LDFLAGS
  13341. libdir=$save_libdir
  13342. fi
  13343. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13344. # This implies no fast_install, which is unacceptable.
  13345. # Some rework will be needed to allow for fast_install
  13346. # before this can be enabled.
  13347. hardcode_into_libs=yes
  13348. # Append ld.so.conf contents to the search path
  13349. if test -f /etc/ld.so.conf; then
  13350. 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' ' '`
  13351. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13352. fi
  13353. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13354. # powerpc, because MkLinux only supported shared libraries with the
  13355. # GNU dynamic linker. Since this was broken with cross compilers,
  13356. # most powerpc-linux boxes support dynamic linking these days and
  13357. # people can always --disable-shared, the test was removed, and we
  13358. # assume the GNU/Linux dynamic linker is in use.
  13359. dynamic_linker='GNU/Linux ld.so'
  13360. ;;
  13361. netbsd*)
  13362. version_type=sunos
  13363. need_lib_prefix=no
  13364. need_version=no
  13365. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13367. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13368. dynamic_linker='NetBSD (a.out) ld.so'
  13369. else
  13370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13371. soname_spec='${libname}${release}${shared_ext}$major'
  13372. dynamic_linker='NetBSD ld.elf_so'
  13373. fi
  13374. shlibpath_var=LD_LIBRARY_PATH
  13375. shlibpath_overrides_runpath=yes
  13376. hardcode_into_libs=yes
  13377. ;;
  13378. newsos6)
  13379. version_type=linux # correct to gnu/linux during the next big refactor
  13380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13381. shlibpath_var=LD_LIBRARY_PATH
  13382. shlibpath_overrides_runpath=yes
  13383. ;;
  13384. *nto* | *qnx*)
  13385. version_type=qnx
  13386. need_lib_prefix=no
  13387. need_version=no
  13388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13389. soname_spec='${libname}${release}${shared_ext}$major'
  13390. shlibpath_var=LD_LIBRARY_PATH
  13391. shlibpath_overrides_runpath=no
  13392. hardcode_into_libs=yes
  13393. dynamic_linker='ldqnx.so'
  13394. ;;
  13395. openbsd*)
  13396. version_type=sunos
  13397. sys_lib_dlsearch_path_spec="/usr/lib"
  13398. need_lib_prefix=no
  13399. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13400. case $host_os in
  13401. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13402. *) need_version=no ;;
  13403. esac
  13404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13405. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13406. shlibpath_var=LD_LIBRARY_PATH
  13407. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13408. case $host_os in
  13409. openbsd2.[89] | openbsd2.[89].*)
  13410. shlibpath_overrides_runpath=no
  13411. ;;
  13412. *)
  13413. shlibpath_overrides_runpath=yes
  13414. ;;
  13415. esac
  13416. else
  13417. shlibpath_overrides_runpath=yes
  13418. fi
  13419. ;;
  13420. os2*)
  13421. libname_spec='$name'
  13422. shrext_cmds=".dll"
  13423. need_lib_prefix=no
  13424. library_names_spec='$libname${shared_ext} $libname.a'
  13425. dynamic_linker='OS/2 ld.exe'
  13426. shlibpath_var=LIBPATH
  13427. ;;
  13428. osf3* | osf4* | osf5*)
  13429. version_type=osf
  13430. need_lib_prefix=no
  13431. need_version=no
  13432. soname_spec='${libname}${release}${shared_ext}$major'
  13433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13434. shlibpath_var=LD_LIBRARY_PATH
  13435. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13436. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13437. ;;
  13438. rdos*)
  13439. dynamic_linker=no
  13440. ;;
  13441. solaris*)
  13442. version_type=linux # correct to gnu/linux during the next big refactor
  13443. need_lib_prefix=no
  13444. need_version=no
  13445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13446. soname_spec='${libname}${release}${shared_ext}$major'
  13447. shlibpath_var=LD_LIBRARY_PATH
  13448. shlibpath_overrides_runpath=yes
  13449. hardcode_into_libs=yes
  13450. # ldd complains unless libraries are executable
  13451. postinstall_cmds='chmod +x $lib'
  13452. ;;
  13453. sunos4*)
  13454. version_type=sunos
  13455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13456. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13457. shlibpath_var=LD_LIBRARY_PATH
  13458. shlibpath_overrides_runpath=yes
  13459. if test "$with_gnu_ld" = yes; then
  13460. need_lib_prefix=no
  13461. fi
  13462. need_version=yes
  13463. ;;
  13464. sysv4 | sysv4.3*)
  13465. version_type=linux # correct to gnu/linux during the next big refactor
  13466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13467. soname_spec='${libname}${release}${shared_ext}$major'
  13468. shlibpath_var=LD_LIBRARY_PATH
  13469. case $host_vendor in
  13470. sni)
  13471. shlibpath_overrides_runpath=no
  13472. need_lib_prefix=no
  13473. runpath_var=LD_RUN_PATH
  13474. ;;
  13475. siemens)
  13476. need_lib_prefix=no
  13477. ;;
  13478. motorola)
  13479. need_lib_prefix=no
  13480. need_version=no
  13481. shlibpath_overrides_runpath=no
  13482. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13483. ;;
  13484. esac
  13485. ;;
  13486. sysv4*MP*)
  13487. if test -d /usr/nec ;then
  13488. version_type=linux # correct to gnu/linux during the next big refactor
  13489. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13490. soname_spec='$libname${shared_ext}.$major'
  13491. shlibpath_var=LD_LIBRARY_PATH
  13492. fi
  13493. ;;
  13494. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13495. version_type=freebsd-elf
  13496. need_lib_prefix=no
  13497. need_version=no
  13498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13499. soname_spec='${libname}${release}${shared_ext}$major'
  13500. shlibpath_var=LD_LIBRARY_PATH
  13501. shlibpath_overrides_runpath=yes
  13502. hardcode_into_libs=yes
  13503. if test "$with_gnu_ld" = yes; then
  13504. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13505. else
  13506. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13507. case $host_os in
  13508. sco3.2v5*)
  13509. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13510. ;;
  13511. esac
  13512. fi
  13513. sys_lib_dlsearch_path_spec='/usr/lib'
  13514. ;;
  13515. tpf*)
  13516. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13517. version_type=linux # correct to gnu/linux during the next big refactor
  13518. need_lib_prefix=no
  13519. need_version=no
  13520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13521. shlibpath_var=LD_LIBRARY_PATH
  13522. shlibpath_overrides_runpath=no
  13523. hardcode_into_libs=yes
  13524. ;;
  13525. uts4*)
  13526. version_type=linux # correct to gnu/linux during the next big refactor
  13527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13528. soname_spec='${libname}${release}${shared_ext}$major'
  13529. shlibpath_var=LD_LIBRARY_PATH
  13530. ;;
  13531. *)
  13532. dynamic_linker=no
  13533. ;;
  13534. esac
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13536. $as_echo "$dynamic_linker" >&6; }
  13537. test "$dynamic_linker" = no && can_build_shared=no
  13538. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13539. if test "$GCC" = yes; then
  13540. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13541. fi
  13542. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13543. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13544. fi
  13545. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13546. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13547. fi
  13548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13549. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13550. hardcode_action_CXX=
  13551. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13552. test -n "$runpath_var_CXX" ||
  13553. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13554. # We can hardcode non-existent directories.
  13555. if test "$hardcode_direct_CXX" != no &&
  13556. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13557. # have to relink, otherwise we might link with an installed library
  13558. # when we should be linking with a yet-to-be-installed one
  13559. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13560. test "$hardcode_minus_L_CXX" != no; then
  13561. # Linking always hardcodes the temporary library directory.
  13562. hardcode_action_CXX=relink
  13563. else
  13564. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13565. hardcode_action_CXX=immediate
  13566. fi
  13567. else
  13568. # We cannot hardcode anything, or else we can only hardcode existing
  13569. # directories.
  13570. hardcode_action_CXX=unsupported
  13571. fi
  13572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13573. $as_echo "$hardcode_action_CXX" >&6; }
  13574. if test "$hardcode_action_CXX" = relink ||
  13575. test "$inherit_rpath_CXX" = yes; then
  13576. # Fast installation is not supported
  13577. enable_fast_install=no
  13578. elif test "$shlibpath_overrides_runpath" = yes ||
  13579. test "$enable_shared" = no; then
  13580. # Fast installation is not necessary
  13581. enable_fast_install=needless
  13582. fi
  13583. fi # test -n "$compiler"
  13584. CC=$lt_save_CC
  13585. CFLAGS=$lt_save_CFLAGS
  13586. LDCXX=$LD
  13587. LD=$lt_save_LD
  13588. GCC=$lt_save_GCC
  13589. with_gnu_ld=$lt_save_with_gnu_ld
  13590. lt_cv_path_LDCXX=$lt_cv_path_LD
  13591. lt_cv_path_LD=$lt_save_path_LD
  13592. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13593. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13594. fi # test "$_lt_caught_CXX_error" != yes
  13595. ac_ext=c
  13596. ac_cpp='$CPP $CPPFLAGS'
  13597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13600. # Find a good install program. We prefer a C program (faster),
  13601. # so one script is as good as another. But avoid the broken or
  13602. # incompatible versions:
  13603. # SysV /etc/install, /usr/sbin/install
  13604. # SunOS /usr/etc/install
  13605. # IRIX /sbin/install
  13606. # AIX /bin/install
  13607. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13608. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13609. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13610. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13611. # OS/2's system install, which has a completely different semantic
  13612. # ./install, which can be erroneously created by make from ./install.sh.
  13613. # Reject install programs that cannot install multiple files.
  13614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13615. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13616. if test -z "$INSTALL"; then
  13617. if ${ac_cv_path_install+:} false; then :
  13618. $as_echo_n "(cached) " >&6
  13619. else
  13620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13621. for as_dir in $PATH
  13622. do
  13623. IFS=$as_save_IFS
  13624. test -z "$as_dir" && as_dir=.
  13625. # Account for people who put trailing slashes in PATH elements.
  13626. case $as_dir/ in #((
  13627. ./ | .// | /[cC]/* | \
  13628. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13629. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13630. /usr/ucb/* ) ;;
  13631. *)
  13632. # OSF1 and SCO ODT 3.0 have their own names for install.
  13633. # Don't use installbsd from OSF since it installs stuff as root
  13634. # by default.
  13635. for ac_prog in ginstall scoinst install; do
  13636. for ac_exec_ext in '' $ac_executable_extensions; do
  13637. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13638. if test $ac_prog = install &&
  13639. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13640. # AIX install. It has an incompatible calling convention.
  13641. :
  13642. elif test $ac_prog = install &&
  13643. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13644. # program-specific install script used by HP pwplus--don't use.
  13645. :
  13646. else
  13647. rm -rf conftest.one conftest.two conftest.dir
  13648. echo one > conftest.one
  13649. echo two > conftest.two
  13650. mkdir conftest.dir
  13651. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13652. test -s conftest.one && test -s conftest.two &&
  13653. test -s conftest.dir/conftest.one &&
  13654. test -s conftest.dir/conftest.two
  13655. then
  13656. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13657. break 3
  13658. fi
  13659. fi
  13660. fi
  13661. done
  13662. done
  13663. ;;
  13664. esac
  13665. done
  13666. IFS=$as_save_IFS
  13667. rm -rf conftest.one conftest.two conftest.dir
  13668. fi
  13669. if test "${ac_cv_path_install+set}" = set; then
  13670. INSTALL=$ac_cv_path_install
  13671. else
  13672. # As a last resort, use the slow shell script. Don't cache a
  13673. # value for INSTALL within a source directory, because that will
  13674. # break other packages using the cache if that directory is
  13675. # removed, or if the value is a relative name.
  13676. INSTALL=$ac_install_sh
  13677. fi
  13678. fi
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13680. $as_echo "$INSTALL" >&6; }
  13681. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13682. # It thinks the first close brace ends the variable substitution.
  13683. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13684. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13685. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13687. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13688. set x ${MAKE-make}
  13689. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13690. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13691. $as_echo_n "(cached) " >&6
  13692. else
  13693. cat >conftest.make <<\_ACEOF
  13694. SHELL = /bin/sh
  13695. all:
  13696. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13697. _ACEOF
  13698. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13699. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13700. *@@@%%%=?*=@@@%%%*)
  13701. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13702. *)
  13703. eval ac_cv_prog_make_${ac_make}_set=no;;
  13704. esac
  13705. rm -f conftest.make
  13706. fi
  13707. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13709. $as_echo "yes" >&6; }
  13710. SET_MAKE=
  13711. else
  13712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13713. $as_echo "no" >&6; }
  13714. SET_MAKE="MAKE=${MAKE-make}"
  13715. fi
  13716. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13717. if test -n "$ac_tool_prefix"; then
  13718. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13719. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13721. $as_echo_n "checking for $ac_word... " >&6; }
  13722. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13723. $as_echo_n "(cached) " >&6
  13724. else
  13725. case $PKG_CONFIG in
  13726. [\\/]* | ?:[\\/]*)
  13727. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13728. ;;
  13729. *)
  13730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13731. for as_dir in $PATH
  13732. do
  13733. IFS=$as_save_IFS
  13734. test -z "$as_dir" && as_dir=.
  13735. for ac_exec_ext in '' $ac_executable_extensions; do
  13736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13737. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13739. break 2
  13740. fi
  13741. done
  13742. done
  13743. IFS=$as_save_IFS
  13744. ;;
  13745. esac
  13746. fi
  13747. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13748. if test -n "$PKG_CONFIG"; then
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13750. $as_echo "$PKG_CONFIG" >&6; }
  13751. else
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13753. $as_echo "no" >&6; }
  13754. fi
  13755. fi
  13756. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13757. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13758. # Extract the first word of "pkg-config", so it can be a program name with args.
  13759. set dummy pkg-config; ac_word=$2
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13761. $as_echo_n "checking for $ac_word... " >&6; }
  13762. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13763. $as_echo_n "(cached) " >&6
  13764. else
  13765. case $ac_pt_PKG_CONFIG in
  13766. [\\/]* | ?:[\\/]*)
  13767. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13768. ;;
  13769. *)
  13770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13771. for as_dir in $PATH
  13772. do
  13773. IFS=$as_save_IFS
  13774. test -z "$as_dir" && as_dir=.
  13775. for ac_exec_ext in '' $ac_executable_extensions; do
  13776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13777. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13779. break 2
  13780. fi
  13781. done
  13782. done
  13783. IFS=$as_save_IFS
  13784. ;;
  13785. esac
  13786. fi
  13787. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13788. if test -n "$ac_pt_PKG_CONFIG"; then
  13789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13790. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13791. else
  13792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13793. $as_echo "no" >&6; }
  13794. fi
  13795. if test "x$ac_pt_PKG_CONFIG" = x; then
  13796. PKG_CONFIG=""
  13797. else
  13798. case $cross_compiling:$ac_tool_warned in
  13799. yes:)
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13802. ac_tool_warned=yes ;;
  13803. esac
  13804. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13805. fi
  13806. else
  13807. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13808. fi
  13809. fi
  13810. if test -n "$PKG_CONFIG"; then
  13811. _pkg_min_version=0.9.0
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13813. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13814. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13816. $as_echo "yes" >&6; }
  13817. else
  13818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13819. $as_echo "no" >&6; }
  13820. PKG_CONFIG=""
  13821. fi
  13822. fi
  13823. case "$host" in
  13824. *-*-mingw*)
  13825. # Except on msys, where make can't handle full pathnames (bug 1972)
  13826. ;;
  13827. *)
  13828. srcdir=`cd $srcdir && pwd`
  13829. ;;
  13830. esac
  13831. INCLUDE="-I$srcdir/include"
  13832. case "$host" in
  13833. *-*-nto-qnx*)
  13834. ;;
  13835. *)
  13836. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13837. ;;
  13838. esac
  13839. if test x$srcdir != x.; then
  13840. INCLUDE="-Iinclude $INCLUDE"
  13841. elif test -d .git; then
  13842. as_fn_error $? "
  13843. *** When building from a git clone you should configure and build in a
  13844. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13845. " "$LINENO" 5
  13846. fi
  13847. BASE_CFLAGS=""
  13848. BASE_LDFLAGS=""
  13849. case "$host" in
  13850. *-*-cygwin*)
  13851. # We build SDL on cygwin without the UNIX emulation layer
  13852. save_CFLAGS="$CFLAGS"
  13853. have_no_cygwin=no
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13855. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13856. CFLAGS="$save_CFLAGS -mno-cygwin"
  13857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13858. /* end confdefs.h. */
  13859. int
  13860. main ()
  13861. {
  13862. ;
  13863. return 0;
  13864. }
  13865. _ACEOF
  13866. if ac_fn_c_try_compile "$LINENO"; then :
  13867. have_no_cygwin=yes
  13868. fi
  13869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13871. $as_echo "$have_no_cygwin" >&6; }
  13872. CFLAGS="$save_CFLAGS"
  13873. if test x$have_no_cygwin = xyes; then
  13874. BASE_CFLAGS="-mno-cygwin"
  13875. BASE_LDFLAGS="-mno-cygwin"
  13876. fi
  13877. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13878. ;;
  13879. esac
  13880. # Uncomment the following line if you want to force SDL and applications
  13881. # built with it to be compiled for a particular architecture.
  13882. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13883. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13884. # The default optimization for SDL is -O3 (Bug #31)
  13885. if test "x$orig_CFLAGS" = x; then
  13886. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13887. fi
  13888. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13889. BUILD_LDFLAGS="$LDFLAGS"
  13890. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13891. ## These are common directories to find software packages
  13892. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13893. # if test -d $path/include; then
  13894. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13895. # fi
  13896. # if test -d $path/lib; then
  13897. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13898. # fi
  13899. #done
  13900. SDL_CFLAGS="$BASE_CFLAGS"
  13901. SDL_LIBS="-lSDL2"
  13902. if test "x$BASE_LDFLAGS" != x; then
  13903. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13904. fi
  13905. if test "x$EXTRA_CFLAGS" != x; then
  13906. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13907. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13908. fi
  13909. if test "x$EXTRA_LDFLAGS" != x; then
  13910. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13911. fi
  13912. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13913. find_lib()
  13914. {
  13915. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13916. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13917. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13918. if test "$cross_compiling" = yes; then
  13919. host_lib_path=""
  13920. else
  13921. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13922. fi
  13923. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13924. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13925. if test x$lib != x; then
  13926. echo $lib
  13927. return
  13928. fi
  13929. done
  13930. # Try again, this time allowing more than one version digit after the .so
  13931. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13932. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13933. if test x$lib != x; then
  13934. echo $lib
  13935. return
  13936. fi
  13937. done
  13938. }
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13940. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13941. if ${ac_cv_c_const+:} false; then :
  13942. $as_echo_n "(cached) " >&6
  13943. else
  13944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13945. /* end confdefs.h. */
  13946. int
  13947. main ()
  13948. {
  13949. #ifndef __cplusplus
  13950. /* Ultrix mips cc rejects this sort of thing. */
  13951. typedef int charset[2];
  13952. const charset cs = { 0, 0 };
  13953. /* SunOS 4.1.1 cc rejects this. */
  13954. char const *const *pcpcc;
  13955. char **ppc;
  13956. /* NEC SVR4.0.2 mips cc rejects this. */
  13957. struct point {int x, y;};
  13958. static struct point const zero = {0,0};
  13959. /* AIX XL C 1.02.0.0 rejects this.
  13960. It does not let you subtract one const X* pointer from another in
  13961. an arm of an if-expression whose if-part is not a constant
  13962. expression */
  13963. const char *g = "string";
  13964. pcpcc = &g + (g ? g-g : 0);
  13965. /* HPUX 7.0 cc rejects these. */
  13966. ++pcpcc;
  13967. ppc = (char**) pcpcc;
  13968. pcpcc = (char const *const *) ppc;
  13969. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13970. char tx;
  13971. char *t = &tx;
  13972. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13973. *t++ = 0;
  13974. if (s) return 0;
  13975. }
  13976. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13977. int x[] = {25, 17};
  13978. const int *foo = &x[0];
  13979. ++foo;
  13980. }
  13981. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13982. typedef const int *iptr;
  13983. iptr p = 0;
  13984. ++p;
  13985. }
  13986. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13987. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13988. struct s { int j; const int *ap[3]; } bx;
  13989. struct s *b = &bx; b->j = 5;
  13990. }
  13991. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13992. const int foo = 10;
  13993. if (!foo) return 0;
  13994. }
  13995. return !cs[0] && !zero.x;
  13996. #endif
  13997. ;
  13998. return 0;
  13999. }
  14000. _ACEOF
  14001. if ac_fn_c_try_compile "$LINENO"; then :
  14002. ac_cv_c_const=yes
  14003. else
  14004. ac_cv_c_const=no
  14005. fi
  14006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14007. fi
  14008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14009. $as_echo "$ac_cv_c_const" >&6; }
  14010. if test $ac_cv_c_const = no; then
  14011. $as_echo "#define const /**/" >>confdefs.h
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14014. $as_echo_n "checking for inline... " >&6; }
  14015. if ${ac_cv_c_inline+:} false; then :
  14016. $as_echo_n "(cached) " >&6
  14017. else
  14018. ac_cv_c_inline=no
  14019. for ac_kw in inline __inline__ __inline; do
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. #ifndef __cplusplus
  14023. typedef int foo_t;
  14024. static $ac_kw foo_t static_foo () {return 0; }
  14025. $ac_kw foo_t foo () {return 0; }
  14026. #endif
  14027. _ACEOF
  14028. if ac_fn_c_try_compile "$LINENO"; then :
  14029. ac_cv_c_inline=$ac_kw
  14030. fi
  14031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14032. test "$ac_cv_c_inline" != no && break
  14033. done
  14034. fi
  14035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14036. $as_echo "$ac_cv_c_inline" >&6; }
  14037. case $ac_cv_c_inline in
  14038. inline | yes) ;;
  14039. *)
  14040. case $ac_cv_c_inline in
  14041. no) ac_val=;;
  14042. *) ac_val=$ac_cv_c_inline;;
  14043. esac
  14044. cat >>confdefs.h <<_ACEOF
  14045. #ifndef __cplusplus
  14046. #define inline $ac_val
  14047. #endif
  14048. _ACEOF
  14049. ;;
  14050. esac
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14052. $as_echo_n "checking for working volatile... " >&6; }
  14053. if ${ac_cv_c_volatile+:} false; then :
  14054. $as_echo_n "(cached) " >&6
  14055. else
  14056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14057. /* end confdefs.h. */
  14058. int
  14059. main ()
  14060. {
  14061. volatile int x;
  14062. int * volatile y = (int *) 0;
  14063. return !x && !y;
  14064. ;
  14065. return 0;
  14066. }
  14067. _ACEOF
  14068. if ac_fn_c_try_compile "$LINENO"; then :
  14069. ac_cv_c_volatile=yes
  14070. else
  14071. ac_cv_c_volatile=no
  14072. fi
  14073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14074. fi
  14075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14076. $as_echo "$ac_cv_c_volatile" >&6; }
  14077. if test $ac_cv_c_volatile = no; then
  14078. $as_echo "#define volatile /**/" >>confdefs.h
  14079. fi
  14080. # Check whether --enable-assertions was given.
  14081. if test "${enable_assertions+set}" = set; then :
  14082. enableval=$enable_assertions;
  14083. else
  14084. enable_assertions=auto
  14085. fi
  14086. case "$enable_assertions" in
  14087. auto) # Use optimization settings to determine assertion level
  14088. ;;
  14089. disabled)
  14090. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14091. ;;
  14092. release)
  14093. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14094. ;;
  14095. enabled)
  14096. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14097. ;;
  14098. paranoid)
  14099. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14100. ;;
  14101. *)
  14102. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14103. ;;
  14104. esac
  14105. # Check whether --enable-dependency-tracking was given.
  14106. if test "${enable_dependency_tracking+set}" = set; then :
  14107. enableval=$enable_dependency_tracking;
  14108. else
  14109. enable_dependency_tracking=yes
  14110. fi
  14111. if test x$enable_dependency_tracking = xyes; then
  14112. have_gcc_mmd_mt=no
  14113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14114. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14116. /* end confdefs.h. */
  14117. #if !defined(__GNUC__) || __GNUC__ < 3
  14118. #error Dependency tracking requires GCC 3.0 or newer
  14119. #endif
  14120. int
  14121. main ()
  14122. {
  14123. ;
  14124. return 0;
  14125. }
  14126. _ACEOF
  14127. if ac_fn_c_try_compile "$LINENO"; then :
  14128. have_gcc_mmd_mt=yes
  14129. fi
  14130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14132. $as_echo "$have_gcc_mmd_mt" >&6; }
  14133. if test x$have_gcc_mmd_mt = xyes; then
  14134. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14135. fi
  14136. fi
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14138. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14139. have_no_undefined=no
  14140. case "$host" in
  14141. *-*-openbsd*)
  14142. ;;
  14143. *)
  14144. save_LDFLAGS="$LDFLAGS"
  14145. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14147. /* end confdefs.h. */
  14148. int
  14149. main ()
  14150. {
  14151. ;
  14152. return 0;
  14153. }
  14154. _ACEOF
  14155. if ac_fn_c_try_link "$LINENO"; then :
  14156. have_no_undefined=yes
  14157. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14158. fi
  14159. rm -f core conftest.err conftest.$ac_objext \
  14160. conftest$ac_exeext conftest.$ac_ext
  14161. LDFLAGS="$save_LDFLAGS"
  14162. ;;
  14163. esac
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14165. $as_echo "$have_no_undefined" >&6; }
  14166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14167. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14168. have_dynamicbase=no
  14169. case "$host" in
  14170. *)
  14171. save_LDFLAGS="$LDFLAGS"
  14172. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14174. /* end confdefs.h. */
  14175. int
  14176. main ()
  14177. {
  14178. ;
  14179. return 0;
  14180. }
  14181. _ACEOF
  14182. if ac_fn_c_try_link "$LINENO"; then :
  14183. have_dynamicbase=yes
  14184. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14185. fi
  14186. rm -f core conftest.err conftest.$ac_objext \
  14187. conftest$ac_exeext conftest.$ac_ext
  14188. LDFLAGS="$save_LDFLAGS"
  14189. ;;
  14190. esac
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14192. $as_echo "$have_dynamicbase" >&6; }
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14194. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14195. have_nxcompat=no
  14196. case "$host" in
  14197. *)
  14198. save_LDFLAGS="$LDFLAGS"
  14199. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14201. /* end confdefs.h. */
  14202. int
  14203. main ()
  14204. {
  14205. ;
  14206. return 0;
  14207. }
  14208. _ACEOF
  14209. if ac_fn_c_try_link "$LINENO"; then :
  14210. have_nxcompat=yes
  14211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14212. fi
  14213. rm -f core conftest.err conftest.$ac_objext \
  14214. conftest$ac_exeext conftest.$ac_ext
  14215. LDFLAGS="$save_LDFLAGS"
  14216. ;;
  14217. esac
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14219. $as_echo "$have_nxcompat" >&6; }
  14220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14221. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14222. have_high_entropy_va=no
  14223. case "$host" in
  14224. *)
  14225. save_LDFLAGS="$LDFLAGS"
  14226. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14228. /* end confdefs.h. */
  14229. int
  14230. main ()
  14231. {
  14232. ;
  14233. return 0;
  14234. }
  14235. _ACEOF
  14236. if ac_fn_c_try_link "$LINENO"; then :
  14237. have_high_entropy_va=yes
  14238. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14239. fi
  14240. rm -f core conftest.err conftest.$ac_objext \
  14241. conftest$ac_exeext conftest.$ac_ext
  14242. LDFLAGS="$save_LDFLAGS"
  14243. ;;
  14244. esac
  14245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14246. $as_echo "$have_high_entropy_va" >&6; }
  14247. # Check whether --enable-libc was given.
  14248. if test "${enable_libc+set}" = set; then :
  14249. enableval=$enable_libc;
  14250. else
  14251. enable_libc=yes
  14252. fi
  14253. if test x$enable_libc = xyes; then
  14254. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14256. $as_echo_n "checking for ANSI C header files... " >&6; }
  14257. if ${ac_cv_header_stdc+:} false; then :
  14258. $as_echo_n "(cached) " >&6
  14259. else
  14260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14261. /* end confdefs.h. */
  14262. #include <stdlib.h>
  14263. #include <stdarg.h>
  14264. #include <string.h>
  14265. #include <float.h>
  14266. int
  14267. main ()
  14268. {
  14269. ;
  14270. return 0;
  14271. }
  14272. _ACEOF
  14273. if ac_fn_c_try_compile "$LINENO"; then :
  14274. ac_cv_header_stdc=yes
  14275. else
  14276. ac_cv_header_stdc=no
  14277. fi
  14278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14279. if test $ac_cv_header_stdc = yes; then
  14280. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. #include <string.h>
  14284. _ACEOF
  14285. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14286. $EGREP "memchr" >/dev/null 2>&1; then :
  14287. else
  14288. ac_cv_header_stdc=no
  14289. fi
  14290. rm -f conftest*
  14291. fi
  14292. if test $ac_cv_header_stdc = yes; then
  14293. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14295. /* end confdefs.h. */
  14296. #include <stdlib.h>
  14297. _ACEOF
  14298. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14299. $EGREP "free" >/dev/null 2>&1; then :
  14300. else
  14301. ac_cv_header_stdc=no
  14302. fi
  14303. rm -f conftest*
  14304. fi
  14305. if test $ac_cv_header_stdc = yes; then
  14306. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14307. if test "$cross_compiling" = yes; then :
  14308. :
  14309. else
  14310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14311. /* end confdefs.h. */
  14312. #include <ctype.h>
  14313. #include <stdlib.h>
  14314. #if ((' ' & 0x0FF) == 0x020)
  14315. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14316. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14317. #else
  14318. # define ISLOWER(c) \
  14319. (('a' <= (c) && (c) <= 'i') \
  14320. || ('j' <= (c) && (c) <= 'r') \
  14321. || ('s' <= (c) && (c) <= 'z'))
  14322. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14323. #endif
  14324. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14325. int
  14326. main ()
  14327. {
  14328. int i;
  14329. for (i = 0; i < 256; i++)
  14330. if (XOR (islower (i), ISLOWER (i))
  14331. || toupper (i) != TOUPPER (i))
  14332. return 2;
  14333. return 0;
  14334. }
  14335. _ACEOF
  14336. if ac_fn_c_try_run "$LINENO"; then :
  14337. else
  14338. ac_cv_header_stdc=no
  14339. fi
  14340. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14341. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14342. fi
  14343. fi
  14344. fi
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14346. $as_echo "$ac_cv_header_stdc" >&6; }
  14347. if test $ac_cv_header_stdc = yes; then
  14348. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14349. fi
  14350. 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
  14351. do :
  14352. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14353. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14354. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14355. cat >>confdefs.h <<_ACEOF
  14356. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14357. _ACEOF
  14358. fi
  14359. done
  14360. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14361. if test "x$ac_cv_type_size_t" = xyes; then :
  14362. else
  14363. cat >>confdefs.h <<_ACEOF
  14364. #define size_t unsigned int
  14365. _ACEOF
  14366. fi
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14368. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14369. if ${ac_cv_define_M_PI+:} false; then :
  14370. $as_echo_n "(cached) " >&6
  14371. else
  14372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14373. /* end confdefs.h. */
  14374. #include <math.h>
  14375. #ifdef M_PI
  14376. YES_IS_DEFINED
  14377. #endif
  14378. _ACEOF
  14379. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14380. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14381. ac_cv_define_M_PI=yes
  14382. else
  14383. ac_cv_define_M_PI=no
  14384. fi
  14385. rm -f conftest*
  14386. fi
  14387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14388. $as_echo "$ac_cv_define_M_PI" >&6; }
  14389. if test "$ac_cv_define_M_PI" = "yes" ; then
  14390. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14391. fi
  14392. case "$host" in
  14393. *-*-cygwin* | *-*-mingw*)
  14394. ;;
  14395. *)
  14396. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14397. # for constant arguments. Useless!
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14399. $as_echo_n "checking for working alloca.h... " >&6; }
  14400. if ${ac_cv_working_alloca_h+:} false; then :
  14401. $as_echo_n "(cached) " >&6
  14402. else
  14403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14404. /* end confdefs.h. */
  14405. #include <alloca.h>
  14406. int
  14407. main ()
  14408. {
  14409. char *p = (char *) alloca (2 * sizeof (int));
  14410. if (p) return 0;
  14411. ;
  14412. return 0;
  14413. }
  14414. _ACEOF
  14415. if ac_fn_c_try_link "$LINENO"; then :
  14416. ac_cv_working_alloca_h=yes
  14417. else
  14418. ac_cv_working_alloca_h=no
  14419. fi
  14420. rm -f core conftest.err conftest.$ac_objext \
  14421. conftest$ac_exeext conftest.$ac_ext
  14422. fi
  14423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14424. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14425. if test $ac_cv_working_alloca_h = yes; then
  14426. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14427. fi
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14429. $as_echo_n "checking for alloca... " >&6; }
  14430. if ${ac_cv_func_alloca_works+:} false; then :
  14431. $as_echo_n "(cached) " >&6
  14432. else
  14433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14434. /* end confdefs.h. */
  14435. #ifdef __GNUC__
  14436. # define alloca __builtin_alloca
  14437. #else
  14438. # ifdef _MSC_VER
  14439. # include <malloc.h>
  14440. # define alloca _alloca
  14441. # else
  14442. # ifdef HAVE_ALLOCA_H
  14443. # include <alloca.h>
  14444. # else
  14445. # ifdef _AIX
  14446. #pragma alloca
  14447. # else
  14448. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14449. void *alloca (size_t);
  14450. # endif
  14451. # endif
  14452. # endif
  14453. # endif
  14454. #endif
  14455. int
  14456. main ()
  14457. {
  14458. char *p = (char *) alloca (1);
  14459. if (p) return 0;
  14460. ;
  14461. return 0;
  14462. }
  14463. _ACEOF
  14464. if ac_fn_c_try_link "$LINENO"; then :
  14465. ac_cv_func_alloca_works=yes
  14466. else
  14467. ac_cv_func_alloca_works=no
  14468. fi
  14469. rm -f core conftest.err conftest.$ac_objext \
  14470. conftest$ac_exeext conftest.$ac_ext
  14471. fi
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14473. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14474. if test $ac_cv_func_alloca_works = yes; then
  14475. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14476. else
  14477. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14478. # that cause trouble. Some versions do not even contain alloca or
  14479. # contain a buggy version. If you still want to use their alloca,
  14480. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14481. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14482. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14484. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14485. if ${ac_cv_os_cray+:} false; then :
  14486. $as_echo_n "(cached) " >&6
  14487. else
  14488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14489. /* end confdefs.h. */
  14490. #if defined CRAY && ! defined CRAY2
  14491. webecray
  14492. #else
  14493. wenotbecray
  14494. #endif
  14495. _ACEOF
  14496. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14497. $EGREP "webecray" >/dev/null 2>&1; then :
  14498. ac_cv_os_cray=yes
  14499. else
  14500. ac_cv_os_cray=no
  14501. fi
  14502. rm -f conftest*
  14503. fi
  14504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14505. $as_echo "$ac_cv_os_cray" >&6; }
  14506. if test $ac_cv_os_cray = yes; then
  14507. for ac_func in _getb67 GETB67 getb67; do
  14508. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14509. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14510. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14511. cat >>confdefs.h <<_ACEOF
  14512. #define CRAY_STACKSEG_END $ac_func
  14513. _ACEOF
  14514. break
  14515. fi
  14516. done
  14517. fi
  14518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14519. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14520. if ${ac_cv_c_stack_direction+:} false; then :
  14521. $as_echo_n "(cached) " >&6
  14522. else
  14523. if test "$cross_compiling" = yes; then :
  14524. ac_cv_c_stack_direction=0
  14525. else
  14526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14527. /* end confdefs.h. */
  14528. $ac_includes_default
  14529. int
  14530. find_stack_direction (int *addr, int depth)
  14531. {
  14532. int dir, dummy = 0;
  14533. if (! addr)
  14534. addr = &dummy;
  14535. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14536. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14537. return dir + dummy;
  14538. }
  14539. int
  14540. main (int argc, char **argv)
  14541. {
  14542. return find_stack_direction (0, argc + !argv + 20) < 0;
  14543. }
  14544. _ACEOF
  14545. if ac_fn_c_try_run "$LINENO"; then :
  14546. ac_cv_c_stack_direction=1
  14547. else
  14548. ac_cv_c_stack_direction=-1
  14549. fi
  14550. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14551. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14552. fi
  14553. fi
  14554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14555. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14556. cat >>confdefs.h <<_ACEOF
  14557. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14558. _ACEOF
  14559. fi
  14560. ;;
  14561. esac
  14562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14563. $as_echo_n "checking for working memcmp... " >&6; }
  14564. if ${ac_cv_func_memcmp_working+:} false; then :
  14565. $as_echo_n "(cached) " >&6
  14566. else
  14567. if test "$cross_compiling" = yes; then :
  14568. ac_cv_func_memcmp_working=no
  14569. else
  14570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14571. /* end confdefs.h. */
  14572. $ac_includes_default
  14573. int
  14574. main ()
  14575. {
  14576. /* Some versions of memcmp are not 8-bit clean. */
  14577. char c0 = '\100', c1 = '\200', c2 = '\201';
  14578. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14579. return 1;
  14580. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14581. or more and with at least one buffer not starting on a 4-byte boundary.
  14582. William Lewis provided this test program. */
  14583. {
  14584. char foo[21];
  14585. char bar[21];
  14586. int i;
  14587. for (i = 0; i < 4; i++)
  14588. {
  14589. char *a = foo + i;
  14590. char *b = bar + i;
  14591. strcpy (a, "--------01111111");
  14592. strcpy (b, "--------10000000");
  14593. if (memcmp (a, b, 16) >= 0)
  14594. return 1;
  14595. }
  14596. return 0;
  14597. }
  14598. ;
  14599. return 0;
  14600. }
  14601. _ACEOF
  14602. if ac_fn_c_try_run "$LINENO"; then :
  14603. ac_cv_func_memcmp_working=yes
  14604. else
  14605. ac_cv_func_memcmp_working=no
  14606. fi
  14607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14608. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14609. fi
  14610. fi
  14611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14612. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14613. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14614. *" memcmp.$ac_objext "* ) ;;
  14615. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14616. ;;
  14617. esac
  14618. if test x$ac_cv_func_memcmp_working = xyes; then
  14619. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14620. fi
  14621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14622. $as_echo_n "checking for working strtod... " >&6; }
  14623. if ${ac_cv_func_strtod+:} false; then :
  14624. $as_echo_n "(cached) " >&6
  14625. else
  14626. if test "$cross_compiling" = yes; then :
  14627. ac_cv_func_strtod=no
  14628. else
  14629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14630. /* end confdefs.h. */
  14631. $ac_includes_default
  14632. #ifndef strtod
  14633. double strtod ();
  14634. #endif
  14635. int
  14636. main()
  14637. {
  14638. {
  14639. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14640. char *string = " +69";
  14641. char *term;
  14642. double value;
  14643. value = strtod (string, &term);
  14644. if (value != 69 || term != (string + 4))
  14645. return 1;
  14646. }
  14647. {
  14648. /* Under Solaris 2.4, strtod returns the wrong value for the
  14649. terminating character under some conditions. */
  14650. char *string = "NaN";
  14651. char *term;
  14652. strtod (string, &term);
  14653. if (term != string && *(term - 1) == 0)
  14654. return 1;
  14655. }
  14656. return 0;
  14657. }
  14658. _ACEOF
  14659. if ac_fn_c_try_run "$LINENO"; then :
  14660. ac_cv_func_strtod=yes
  14661. else
  14662. ac_cv_func_strtod=no
  14663. fi
  14664. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14665. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14666. fi
  14667. fi
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14669. $as_echo "$ac_cv_func_strtod" >&6; }
  14670. if test $ac_cv_func_strtod = no; then
  14671. case " $LIBOBJS " in
  14672. *" strtod.$ac_objext "* ) ;;
  14673. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14674. ;;
  14675. esac
  14676. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14677. if test "x$ac_cv_func_pow" = xyes; then :
  14678. fi
  14679. if test $ac_cv_func_pow = no; then
  14680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14681. $as_echo_n "checking for pow in -lm... " >&6; }
  14682. if ${ac_cv_lib_m_pow+:} false; then :
  14683. $as_echo_n "(cached) " >&6
  14684. else
  14685. ac_check_lib_save_LIBS=$LIBS
  14686. LIBS="-lm $LIBS"
  14687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14688. /* end confdefs.h. */
  14689. /* Override any GCC internal prototype to avoid an error.
  14690. Use char because int might match the return type of a GCC
  14691. builtin and then its argument prototype would still apply. */
  14692. #ifdef __cplusplus
  14693. extern "C"
  14694. #endif
  14695. char pow ();
  14696. int
  14697. main ()
  14698. {
  14699. return pow ();
  14700. ;
  14701. return 0;
  14702. }
  14703. _ACEOF
  14704. if ac_fn_c_try_link "$LINENO"; then :
  14705. ac_cv_lib_m_pow=yes
  14706. else
  14707. ac_cv_lib_m_pow=no
  14708. fi
  14709. rm -f core conftest.err conftest.$ac_objext \
  14710. conftest$ac_exeext conftest.$ac_ext
  14711. LIBS=$ac_check_lib_save_LIBS
  14712. fi
  14713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14714. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14715. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14716. POW_LIB=-lm
  14717. else
  14718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14719. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14720. fi
  14721. fi
  14722. fi
  14723. if test x$ac_cv_func_strtod = xyes; then
  14724. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14725. fi
  14726. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14727. if test "x$ac_cv_func_mprotect" = xyes; then :
  14728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14729. /* end confdefs.h. */
  14730. #include <sys/types.h>
  14731. #include <sys/mman.h>
  14732. int
  14733. main ()
  14734. {
  14735. ;
  14736. return 0;
  14737. }
  14738. _ACEOF
  14739. if ac_fn_c_try_compile "$LINENO"; then :
  14740. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14741. fi
  14742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14743. fi
  14744. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv 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
  14745. do :
  14746. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14747. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14748. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14749. cat >>confdefs.h <<_ACEOF
  14750. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14751. _ACEOF
  14752. fi
  14753. done
  14754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14755. $as_echo_n "checking for pow in -lm... " >&6; }
  14756. if ${ac_cv_lib_m_pow+:} false; then :
  14757. $as_echo_n "(cached) " >&6
  14758. else
  14759. ac_check_lib_save_LIBS=$LIBS
  14760. LIBS="-lm $LIBS"
  14761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14762. /* end confdefs.h. */
  14763. /* Override any GCC internal prototype to avoid an error.
  14764. Use char because int might match the return type of a GCC
  14765. builtin and then its argument prototype would still apply. */
  14766. #ifdef __cplusplus
  14767. extern "C"
  14768. #endif
  14769. char pow ();
  14770. int
  14771. main ()
  14772. {
  14773. return pow ();
  14774. ;
  14775. return 0;
  14776. }
  14777. _ACEOF
  14778. if ac_fn_c_try_link "$LINENO"; then :
  14779. ac_cv_lib_m_pow=yes
  14780. else
  14781. ac_cv_lib_m_pow=no
  14782. fi
  14783. rm -f core conftest.err conftest.$ac_objext \
  14784. conftest$ac_exeext conftest.$ac_ext
  14785. LIBS=$ac_check_lib_save_LIBS
  14786. fi
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14788. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14789. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14790. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14791. fi
  14792. 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
  14793. do :
  14794. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14795. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14796. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14797. cat >>confdefs.h <<_ACEOF
  14798. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14799. _ACEOF
  14800. fi
  14801. done
  14802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14803. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14804. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14805. $as_echo_n "(cached) " >&6
  14806. else
  14807. ac_check_lib_save_LIBS=$LIBS
  14808. LIBS="-liconv $LIBS"
  14809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14810. /* end confdefs.h. */
  14811. /* Override any GCC internal prototype to avoid an error.
  14812. Use char because int might match the return type of a GCC
  14813. builtin and then its argument prototype would still apply. */
  14814. #ifdef __cplusplus
  14815. extern "C"
  14816. #endif
  14817. char iconv_open ();
  14818. int
  14819. main ()
  14820. {
  14821. return iconv_open ();
  14822. ;
  14823. return 0;
  14824. }
  14825. _ACEOF
  14826. if ac_fn_c_try_link "$LINENO"; then :
  14827. ac_cv_lib_iconv_iconv_open=yes
  14828. else
  14829. ac_cv_lib_iconv_iconv_open=no
  14830. fi
  14831. rm -f core conftest.err conftest.$ac_objext \
  14832. conftest$ac_exeext conftest.$ac_ext
  14833. LIBS=$ac_check_lib_save_LIBS
  14834. fi
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14836. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14837. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14838. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14839. fi
  14840. for ac_func in iconv
  14841. do :
  14842. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14843. if test "x$ac_cv_func_iconv" = xyes; then :
  14844. cat >>confdefs.h <<_ACEOF
  14845. #define HAVE_ICONV 1
  14846. _ACEOF
  14847. fi
  14848. done
  14849. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14850. "
  14851. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14852. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14853. fi
  14854. for ac_header in libunwind.h
  14855. do :
  14856. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14857. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14858. cat >>confdefs.h <<_ACEOF
  14859. #define HAVE_LIBUNWIND_H 1
  14860. _ACEOF
  14861. fi
  14862. done
  14863. fi
  14864. # Check whether --enable-gcc-atomics was given.
  14865. if test "${enable_gcc_atomics+set}" = set; then :
  14866. enableval=$enable_gcc_atomics;
  14867. else
  14868. enable_gcc_atomics=yes
  14869. fi
  14870. if test x$enable_gcc_atomics = xyes; then
  14871. have_gcc_atomics=no
  14872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14873. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14875. /* end confdefs.h. */
  14876. int
  14877. main ()
  14878. {
  14879. int a;
  14880. void *x, *y, *z;
  14881. __sync_lock_test_and_set(&a, 4);
  14882. __sync_lock_test_and_set(&x, y);
  14883. __sync_fetch_and_add(&a, 1);
  14884. __sync_bool_compare_and_swap(&a, 5, 10);
  14885. __sync_bool_compare_and_swap(&x, y, z);
  14886. ;
  14887. return 0;
  14888. }
  14889. _ACEOF
  14890. if ac_fn_c_try_link "$LINENO"; then :
  14891. have_gcc_atomics=yes
  14892. fi
  14893. rm -f core conftest.err conftest.$ac_objext \
  14894. conftest$ac_exeext conftest.$ac_ext
  14895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14896. $as_echo "$have_gcc_atomics" >&6; }
  14897. if test x$have_gcc_atomics = xyes; then
  14898. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14899. else
  14900. # See if we have the minimum operation needed for GCC atomics
  14901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14902. /* end confdefs.h. */
  14903. int
  14904. main ()
  14905. {
  14906. int a;
  14907. __sync_lock_test_and_set(&a, 1);
  14908. __sync_lock_release(&a);
  14909. ;
  14910. return 0;
  14911. }
  14912. _ACEOF
  14913. if ac_fn_c_try_link "$LINENO"; then :
  14914. have_gcc_sync_lock_test_and_set=yes
  14915. fi
  14916. rm -f core conftest.err conftest.$ac_objext \
  14917. conftest$ac_exeext conftest.$ac_ext
  14918. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14919. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14920. fi
  14921. fi
  14922. fi
  14923. # Standard C sources
  14924. SOURCES="$SOURCES $srcdir/src/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14933. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14934. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14935. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14936. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14937. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14938. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14939. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14945. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14946. # Check whether --enable-atomic was given.
  14947. if test "${enable_atomic+set}" = set; then :
  14948. enableval=$enable_atomic;
  14949. else
  14950. enable_atomic=yes
  14951. fi
  14952. if test x$enable_atomic != xyes; then
  14953. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14954. else
  14955. SUMMARY_modules="${SUMMARY_modules} atomic"
  14956. fi
  14957. # Check whether --enable-audio was given.
  14958. if test "${enable_audio+set}" = set; then :
  14959. enableval=$enable_audio;
  14960. else
  14961. enable_audio=yes
  14962. fi
  14963. if test x$enable_audio != xyes; then
  14964. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14965. else
  14966. SUMMARY_modules="${SUMMARY_modules} audio"
  14967. fi
  14968. # Check whether --enable-video was given.
  14969. if test "${enable_video+set}" = set; then :
  14970. enableval=$enable_video;
  14971. else
  14972. enable_video=yes
  14973. fi
  14974. if test x$enable_video != xyes; then
  14975. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14976. else
  14977. SUMMARY_modules="${SUMMARY_modules} video"
  14978. fi
  14979. # Check whether --enable-render was given.
  14980. if test "${enable_render+set}" = set; then :
  14981. enableval=$enable_render;
  14982. else
  14983. enable_render=yes
  14984. fi
  14985. if test x$enable_render != xyes; then
  14986. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14987. else
  14988. SUMMARY_modules="${SUMMARY_modules} render"
  14989. fi
  14990. # Check whether --enable-events was given.
  14991. if test "${enable_events+set}" = set; then :
  14992. enableval=$enable_events;
  14993. else
  14994. enable_events=yes
  14995. fi
  14996. if test x$enable_events != xyes; then
  14997. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14998. else
  14999. SUMMARY_modules="${SUMMARY_modules} events"
  15000. fi
  15001. # Check whether --enable-joystick was given.
  15002. if test "${enable_joystick+set}" = set; then :
  15003. enableval=$enable_joystick;
  15004. else
  15005. enable_joystick=yes
  15006. fi
  15007. if test x$enable_joystick != xyes; then
  15008. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15009. else
  15010. SUMMARY_modules="${SUMMARY_modules} joystick"
  15011. fi
  15012. # Check whether --enable-haptic was given.
  15013. if test "${enable_haptic+set}" = set; then :
  15014. enableval=$enable_haptic;
  15015. else
  15016. enable_haptic=yes
  15017. fi
  15018. if test x$enable_haptic != xyes; then
  15019. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15020. else
  15021. SUMMARY_modules="${SUMMARY_modules} haptic"
  15022. fi
  15023. # Check whether --enable-sensor was given.
  15024. if test "${enable_sensor+set}" = set; then :
  15025. enableval=$enable_sensor;
  15026. else
  15027. enable_sensor=yes
  15028. fi
  15029. if test x$enable_sensor != xyes; then
  15030. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15031. else
  15032. SUMMARY_modules="${SUMMARY_modules} sensor"
  15033. fi
  15034. # Check whether --enable-power was given.
  15035. if test "${enable_power+set}" = set; then :
  15036. enableval=$enable_power;
  15037. else
  15038. enable_power=yes
  15039. fi
  15040. if test x$enable_power != xyes; then
  15041. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15042. else
  15043. SUMMARY_modules="${SUMMARY_modules} power"
  15044. fi
  15045. # Check whether --enable-filesystem was given.
  15046. if test "${enable_filesystem+set}" = set; then :
  15047. enableval=$enable_filesystem;
  15048. else
  15049. enable_filesystem=yes
  15050. fi
  15051. if test x$enable_filesystem != xyes; then
  15052. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15053. else
  15054. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15055. fi
  15056. # Check whether --enable-threads was given.
  15057. if test "${enable_threads+set}" = set; then :
  15058. enableval=$enable_threads;
  15059. else
  15060. enable_threads=yes
  15061. fi
  15062. if test x$enable_threads != xyes; then
  15063. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15064. else
  15065. SUMMARY_modules="${SUMMARY_modules} threads"
  15066. fi
  15067. # Check whether --enable-timers was given.
  15068. if test "${enable_timers+set}" = set; then :
  15069. enableval=$enable_timers;
  15070. else
  15071. enable_timers=yes
  15072. fi
  15073. if test x$enable_timers != xyes; then
  15074. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15075. else
  15076. SUMMARY_modules="${SUMMARY_modules} timers"
  15077. fi
  15078. # Check whether --enable-file was given.
  15079. if test "${enable_file+set}" = set; then :
  15080. enableval=$enable_file;
  15081. else
  15082. enable_file=yes
  15083. fi
  15084. if test x$enable_file != xyes; then
  15085. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15086. else
  15087. SUMMARY_modules="${SUMMARY_modules} file"
  15088. fi
  15089. # Check whether --enable-loadso was given.
  15090. if test "${enable_loadso+set}" = set; then :
  15091. enableval=$enable_loadso;
  15092. else
  15093. enable_loadso=yes
  15094. fi
  15095. if test x$enable_loadso != xyes; then
  15096. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15097. else
  15098. SUMMARY_modules="${SUMMARY_modules} loadso"
  15099. fi
  15100. # Check whether --enable-cpuinfo was given.
  15101. if test "${enable_cpuinfo+set}" = set; then :
  15102. enableval=$enable_cpuinfo;
  15103. else
  15104. enable_cpuinfo=yes
  15105. fi
  15106. if test x$enable_cpuinfo != xyes; then
  15107. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15108. else
  15109. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15110. fi
  15111. # Check whether --enable-assembly was given.
  15112. if test "${enable_assembly+set}" = set; then :
  15113. enableval=$enable_assembly;
  15114. else
  15115. enable_assembly=yes
  15116. fi
  15117. if test x$enable_assembly = xyes; then
  15118. SUMMARY_modules="${SUMMARY_modules} assembly"
  15119. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15120. # Make sure that we don't generate floating point code that would
  15121. # cause illegal instruction exceptions on older processors
  15122. case "$host" in
  15123. *-*-darwin*)
  15124. # Don't need to worry about Apple hardware, it's all SSE capable
  15125. default_ssemath=yes
  15126. ;;
  15127. *64-*-*)
  15128. # x86 64-bit architectures all have SSE instructions
  15129. default_ssemath=yes
  15130. ;;
  15131. *)
  15132. default_ssemath=no
  15133. ;;
  15134. esac
  15135. # Check whether --enable-ssemath was given.
  15136. if test "${enable_ssemath+set}" = set; then :
  15137. enableval=$enable_ssemath;
  15138. else
  15139. enable_ssemath=$default_ssemath
  15140. fi
  15141. if test x$enable_ssemath = xno; then
  15142. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15143. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15144. fi
  15145. fi
  15146. # Check whether --enable-mmx was given.
  15147. if test "${enable_mmx+set}" = set; then :
  15148. enableval=$enable_mmx;
  15149. else
  15150. enable_mmx=yes
  15151. fi
  15152. if test x$enable_mmx = xyes; then
  15153. save_CFLAGS="$CFLAGS"
  15154. have_gcc_mmx=no
  15155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15156. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15157. mmx_CFLAGS="-mmmx"
  15158. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15160. /* end confdefs.h. */
  15161. #ifdef __MINGW32__
  15162. #include <_mingw.h>
  15163. #ifdef __MINGW64_VERSION_MAJOR
  15164. #include <intrin.h>
  15165. #else
  15166. #include <mmintrin.h>
  15167. #endif
  15168. #else
  15169. #include <mmintrin.h>
  15170. #endif
  15171. #ifndef __MMX__
  15172. #error Assembler CPP flag not enabled
  15173. #endif
  15174. int
  15175. main ()
  15176. {
  15177. ;
  15178. return 0;
  15179. }
  15180. _ACEOF
  15181. if ac_fn_c_try_compile "$LINENO"; then :
  15182. have_gcc_mmx=yes
  15183. fi
  15184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15186. $as_echo "$have_gcc_mmx" >&6; }
  15187. CFLAGS="$save_CFLAGS"
  15188. if test x$have_gcc_mmx = xyes; then
  15189. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15190. SUMMARY_math="${SUMMARY_math} mmx"
  15191. fi
  15192. fi
  15193. # Check whether --enable-3dnow was given.
  15194. if test "${enable_3dnow+set}" = set; then :
  15195. enableval=$enable_3dnow;
  15196. else
  15197. enable_3dnow=yes
  15198. fi
  15199. if test x$enable_3dnow = xyes; then
  15200. save_CFLAGS="$CFLAGS"
  15201. have_gcc_3dnow=no
  15202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15203. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15204. amd3dnow_CFLAGS="-m3dnow"
  15205. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15207. /* end confdefs.h. */
  15208. #include <mm3dnow.h>
  15209. #ifndef __3dNOW__
  15210. #error Assembler CPP flag not enabled
  15211. #endif
  15212. int
  15213. main ()
  15214. {
  15215. void *p = 0;
  15216. _m_prefetch(p);
  15217. ;
  15218. return 0;
  15219. }
  15220. _ACEOF
  15221. if ac_fn_c_try_link "$LINENO"; then :
  15222. have_gcc_3dnow=yes
  15223. fi
  15224. rm -f core conftest.err conftest.$ac_objext \
  15225. conftest$ac_exeext conftest.$ac_ext
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15227. $as_echo "$have_gcc_3dnow" >&6; }
  15228. CFLAGS="$save_CFLAGS"
  15229. if test x$have_gcc_3dnow = xyes; then
  15230. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15231. SUMMARY_math="${SUMMARY_math} 3dnow"
  15232. fi
  15233. fi
  15234. # Check whether --enable-sse was given.
  15235. if test "${enable_sse+set}" = set; then :
  15236. enableval=$enable_sse;
  15237. else
  15238. enable_sse=yes
  15239. fi
  15240. if test x$enable_sse = xyes; then
  15241. save_CFLAGS="$CFLAGS"
  15242. have_gcc_sse=no
  15243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15244. $as_echo_n "checking for GCC -msse option... " >&6; }
  15245. sse_CFLAGS="-msse"
  15246. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15248. /* end confdefs.h. */
  15249. #ifdef __MINGW32__
  15250. #include <_mingw.h>
  15251. #ifdef __MINGW64_VERSION_MAJOR
  15252. #include <intrin.h>
  15253. #else
  15254. #include <xmmintrin.h>
  15255. #endif
  15256. #else
  15257. #include <xmmintrin.h>
  15258. #endif
  15259. #ifndef __SSE__
  15260. #error Assembler CPP flag not enabled
  15261. #endif
  15262. int
  15263. main ()
  15264. {
  15265. ;
  15266. return 0;
  15267. }
  15268. _ACEOF
  15269. if ac_fn_c_try_compile "$LINENO"; then :
  15270. have_gcc_sse=yes
  15271. fi
  15272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15274. $as_echo "$have_gcc_sse" >&6; }
  15275. CFLAGS="$save_CFLAGS"
  15276. if test x$have_gcc_sse = xyes; then
  15277. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15278. SUMMARY_math="${SUMMARY_math} sse"
  15279. fi
  15280. fi
  15281. # Check whether --enable-sse2 was given.
  15282. if test "${enable_sse2+set}" = set; then :
  15283. enableval=$enable_sse2;
  15284. else
  15285. enable_sse2=$default_ssemath
  15286. fi
  15287. if test x$enable_sse2 = xyes; then
  15288. save_CFLAGS="$CFLAGS"
  15289. have_gcc_sse2=no
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15291. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15292. sse2_CFLAGS="-msse2"
  15293. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15295. /* end confdefs.h. */
  15296. #ifdef __MINGW32__
  15297. #include <_mingw.h>
  15298. #ifdef __MINGW64_VERSION_MAJOR
  15299. #include <intrin.h>
  15300. #else
  15301. #include <emmintrin.h>
  15302. #endif
  15303. #else
  15304. #include <emmintrin.h>
  15305. #endif
  15306. #ifndef __SSE2__
  15307. #error Assembler CPP flag not enabled
  15308. #endif
  15309. int
  15310. main ()
  15311. {
  15312. ;
  15313. return 0;
  15314. }
  15315. _ACEOF
  15316. if ac_fn_c_try_compile "$LINENO"; then :
  15317. have_gcc_sse2=yes
  15318. fi
  15319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15321. $as_echo "$have_gcc_sse2" >&6; }
  15322. CFLAGS="$save_CFLAGS"
  15323. if test x$have_gcc_sse2 = xyes; then
  15324. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15325. SUMMARY_math="${SUMMARY_math} sse2"
  15326. fi
  15327. fi
  15328. # Check whether --enable-sse3 was given.
  15329. if test "${enable_sse3+set}" = set; then :
  15330. enableval=$enable_sse3;
  15331. else
  15332. enable_sse3=$default_ssemath
  15333. fi
  15334. if test x$enable_sse3 = xyes; then
  15335. save_CFLAGS="$CFLAGS"
  15336. have_gcc_sse3=no
  15337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15338. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15339. sse3_CFLAGS="-msse3"
  15340. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15342. /* end confdefs.h. */
  15343. #ifdef __MINGW32__
  15344. #include <_mingw.h>
  15345. #ifdef __MINGW64_VERSION_MAJOR
  15346. #include <intrin.h>
  15347. #else
  15348. #include <pmmintrin.h>
  15349. #endif
  15350. #else
  15351. #include <pmmintrin.h>
  15352. #endif
  15353. #ifndef __SSE2__
  15354. #error Assembler CPP flag not enabled
  15355. #endif
  15356. int
  15357. main ()
  15358. {
  15359. ;
  15360. return 0;
  15361. }
  15362. _ACEOF
  15363. if ac_fn_c_try_compile "$LINENO"; then :
  15364. have_gcc_sse3=yes
  15365. fi
  15366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15368. $as_echo "$have_gcc_sse3" >&6; }
  15369. CFLAGS="$save_CFLAGS"
  15370. if test x$have_gcc_sse3 = xyes; then
  15371. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15372. SUMMARY_math="${SUMMARY_math} sse3"
  15373. fi
  15374. fi
  15375. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15376. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15377. have_immintrin_h_hdr=yes
  15378. else
  15379. have_immintrin_h_hdr=no
  15380. fi
  15381. if test x$have_immintrin_h_hdr = xyes; then
  15382. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15383. fi
  15384. # Check whether --enable-altivec was given.
  15385. if test "${enable_altivec+set}" = set; then :
  15386. enableval=$enable_altivec;
  15387. else
  15388. enable_altivec=yes
  15389. fi
  15390. if test x$enable_altivec = xyes; then
  15391. save_CFLAGS="$CFLAGS"
  15392. have_gcc_altivec=no
  15393. have_altivec_h_hdr=no
  15394. altivec_CFLAGS="-maltivec"
  15395. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15397. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15399. /* end confdefs.h. */
  15400. #include <altivec.h>
  15401. vector unsigned int vzero() {
  15402. return vec_splat_u32(0);
  15403. }
  15404. int
  15405. main ()
  15406. {
  15407. ;
  15408. return 0;
  15409. }
  15410. _ACEOF
  15411. if ac_fn_c_try_compile "$LINENO"; then :
  15412. have_gcc_altivec=yes
  15413. have_altivec_h_hdr=yes
  15414. fi
  15415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15417. $as_echo "$have_gcc_altivec" >&6; }
  15418. if test x$have_gcc_altivec = xno; then
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15420. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15422. /* end confdefs.h. */
  15423. vector unsigned int vzero() {
  15424. return vec_splat_u32(0);
  15425. }
  15426. int
  15427. main ()
  15428. {
  15429. ;
  15430. return 0;
  15431. }
  15432. _ACEOF
  15433. if ac_fn_c_try_compile "$LINENO"; then :
  15434. have_gcc_altivec=yes
  15435. fi
  15436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15438. $as_echo "$have_gcc_altivec" >&6; }
  15439. fi
  15440. if test x$have_gcc_altivec = xno; then
  15441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15442. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15443. altivec_CFLAGS="-faltivec"
  15444. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15446. /* end confdefs.h. */
  15447. #include <altivec.h>
  15448. vector unsigned int vzero() {
  15449. return vec_splat_u32(0);
  15450. }
  15451. int
  15452. main ()
  15453. {
  15454. ;
  15455. return 0;
  15456. }
  15457. _ACEOF
  15458. if ac_fn_c_try_compile "$LINENO"; then :
  15459. have_gcc_altivec=yes
  15460. have_altivec_h_hdr=yes
  15461. fi
  15462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15464. $as_echo "$have_gcc_altivec" >&6; }
  15465. fi
  15466. if test x$have_gcc_altivec = xno; then
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15468. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15470. /* end confdefs.h. */
  15471. vector unsigned int vzero() {
  15472. return vec_splat_u32(0);
  15473. }
  15474. int
  15475. main ()
  15476. {
  15477. ;
  15478. return 0;
  15479. }
  15480. _ACEOF
  15481. if ac_fn_c_try_compile "$LINENO"; then :
  15482. have_gcc_altivec=yes
  15483. fi
  15484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15486. $as_echo "$have_gcc_altivec" >&6; }
  15487. fi
  15488. CFLAGS="$save_CFLAGS"
  15489. if test x$have_gcc_altivec = xyes; then
  15490. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15491. if test x$have_altivec_h_hdr = xyes; then
  15492. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15493. fi
  15494. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15495. SUMMARY_math="${SUMMARY_math} altivec"
  15496. fi
  15497. fi
  15498. fi
  15499. CheckOSS()
  15500. {
  15501. # Check whether --enable-oss was given.
  15502. if test "${enable_oss+set}" = set; then :
  15503. enableval=$enable_oss;
  15504. else
  15505. enable_oss=maybe
  15506. fi
  15507. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15508. # use sndio instead. So on there, we default to disabled. You can force
  15509. # it on if you really want, though.
  15510. if test x$enable_oss = xmaybe; then
  15511. enable_oss=yes
  15512. case "$host" in
  15513. *-*-openbsd*)
  15514. enable_oss=no;;
  15515. esac
  15516. fi
  15517. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15519. $as_echo_n "checking for OSS audio support... " >&6; }
  15520. have_oss=no
  15521. if test x$have_oss != xyes; then
  15522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15523. /* end confdefs.h. */
  15524. #include <sys/soundcard.h>
  15525. int
  15526. main ()
  15527. {
  15528. int arg = SNDCTL_DSP_SETFRAGMENT;
  15529. ;
  15530. return 0;
  15531. }
  15532. _ACEOF
  15533. if ac_fn_c_try_compile "$LINENO"; then :
  15534. have_oss=yes
  15535. fi
  15536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15537. fi
  15538. if test x$have_oss != xyes; then
  15539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15540. /* end confdefs.h. */
  15541. #include <soundcard.h>
  15542. int
  15543. main ()
  15544. {
  15545. int arg = SNDCTL_DSP_SETFRAGMENT;
  15546. ;
  15547. return 0;
  15548. }
  15549. _ACEOF
  15550. if ac_fn_c_try_compile "$LINENO"; then :
  15551. have_oss=yes
  15552. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15553. fi
  15554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15555. fi
  15556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15557. $as_echo "$have_oss" >&6; }
  15558. if test x$have_oss = xyes; then
  15559. SUMMARY_audio="${SUMMARY_audio} oss"
  15560. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15561. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15562. have_audio=yes
  15563. # We may need to link with ossaudio emulation library
  15564. case "$host" in
  15565. *-*-openbsd*|*-*-netbsd*)
  15566. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15567. esac
  15568. fi
  15569. fi
  15570. }
  15571. CheckALSA()
  15572. {
  15573. # Check whether --enable-alsa was given.
  15574. if test "${enable_alsa+set}" = set; then :
  15575. enableval=$enable_alsa;
  15576. else
  15577. enable_alsa=yes
  15578. fi
  15579. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15580. alsa_save_CFLAGS="$CFLAGS"
  15581. alsa_save_LDFLAGS="$LDFLAGS"
  15582. alsa_save_LIBS="$LIBS"
  15583. alsa_found=yes
  15584. # Check whether --with-alsa-prefix was given.
  15585. if test "${with_alsa_prefix+set}" = set; then :
  15586. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15587. else
  15588. alsa_prefix=""
  15589. fi
  15590. # Check whether --with-alsa-inc-prefix was given.
  15591. if test "${with_alsa_inc_prefix+set}" = set; then :
  15592. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15593. else
  15594. alsa_inc_prefix=""
  15595. fi
  15596. # Check whether --enable-alsatest was given.
  15597. if test "${enable_alsatest+set}" = set; then :
  15598. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15599. else
  15600. enable_alsatest=yes
  15601. fi
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15603. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15604. if test "$alsa_inc_prefix" != "" ; then
  15605. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15606. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15607. fi
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15609. $as_echo "$ALSA_CFLAGS" >&6; }
  15610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15611. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15612. if test "$alsa_prefix" != "" ; then
  15613. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15614. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15615. fi
  15616. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15617. LIBS=`echo $LIBS | sed 's/-lm//'`
  15618. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15619. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15620. LIBS=`echo $LIBS | sed 's/ //'`
  15621. LIBS="$ALSA_LIBS $LIBS"
  15622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15623. $as_echo "$ALSA_LIBS" >&6; }
  15624. min_alsa_version=1.0.11
  15625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15626. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15627. no_alsa=""
  15628. alsa_min_major_version=`echo $min_alsa_version | \
  15629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15630. alsa_min_minor_version=`echo $min_alsa_version | \
  15631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15632. alsa_min_micro_version=`echo $min_alsa_version | \
  15633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15634. ac_ext=c
  15635. ac_cpp='$CPP $CPPFLAGS'
  15636. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15637. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15638. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15640. /* end confdefs.h. */
  15641. #include <alsa/asoundlib.h>
  15642. int
  15643. main ()
  15644. {
  15645. /* ensure backward compatibility */
  15646. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15647. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15648. #endif
  15649. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15650. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15651. #endif
  15652. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15653. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15654. #endif
  15655. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15656. exit(0);
  15657. # else
  15658. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15659. # error not present
  15660. # endif
  15661. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15662. exit(0);
  15663. # else
  15664. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15665. # error not present
  15666. # endif
  15667. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15668. # error not present
  15669. # endif
  15670. # endif
  15671. # endif
  15672. exit(0);
  15673. ;
  15674. return 0;
  15675. }
  15676. _ACEOF
  15677. if ac_fn_c_try_compile "$LINENO"; then :
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15679. $as_echo "found." >&6; }
  15680. else
  15681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15682. $as_echo "not present." >&6; }
  15683. alsa_found=no
  15684. fi
  15685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15686. ac_ext=c
  15687. ac_cpp='$CPP $CPPFLAGS'
  15688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15691. if test "x$enable_alsatest" = "xyes"; then
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15693. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15694. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15695. $as_echo_n "(cached) " >&6
  15696. else
  15697. ac_check_lib_save_LIBS=$LIBS
  15698. LIBS="-lasound $LIBS"
  15699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15700. /* end confdefs.h. */
  15701. /* Override any GCC internal prototype to avoid an error.
  15702. Use char because int might match the return type of a GCC
  15703. builtin and then its argument prototype would still apply. */
  15704. #ifdef __cplusplus
  15705. extern "C"
  15706. #endif
  15707. char snd_ctl_open ();
  15708. int
  15709. main ()
  15710. {
  15711. return snd_ctl_open ();
  15712. ;
  15713. return 0;
  15714. }
  15715. _ACEOF
  15716. if ac_fn_c_try_link "$LINENO"; then :
  15717. ac_cv_lib_asound_snd_ctl_open=yes
  15718. else
  15719. ac_cv_lib_asound_snd_ctl_open=no
  15720. fi
  15721. rm -f core conftest.err conftest.$ac_objext \
  15722. conftest$ac_exeext conftest.$ac_ext
  15723. LIBS=$ac_check_lib_save_LIBS
  15724. fi
  15725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15726. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15727. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15728. cat >>confdefs.h <<_ACEOF
  15729. #define HAVE_LIBASOUND 1
  15730. _ACEOF
  15731. LIBS="-lasound $LIBS"
  15732. else
  15733. alsa_found=no
  15734. fi
  15735. fi
  15736. if test "x$alsa_found" = "xyes" ; then
  15737. have_alsa=yes
  15738. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15739. LIBS=`echo $LIBS | sed 's/ //'`
  15740. LIBS="-lasound $LIBS"
  15741. fi
  15742. if test "x$alsa_found" = "xno" ; then
  15743. have_alsa=no
  15744. CFLAGS="$alsa_save_CFLAGS"
  15745. LDFLAGS="$alsa_save_LDFLAGS"
  15746. LIBS="$alsa_save_LIBS"
  15747. ALSA_CFLAGS=""
  15748. ALSA_LIBS=""
  15749. fi
  15750. # Restore all flags from before the ALSA detection runs
  15751. CFLAGS="$alsa_save_CFLAGS"
  15752. LDFLAGS="$alsa_save_LDFLAGS"
  15753. LIBS="$alsa_save_LIBS"
  15754. if test x$have_alsa = xyes; then
  15755. # Check whether --enable-alsa-shared was given.
  15756. if test "${enable_alsa_shared+set}" = set; then :
  15757. enableval=$enable_alsa_shared;
  15758. else
  15759. enable_alsa_shared=yes
  15760. fi
  15761. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15762. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15763. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15764. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15765. if test x$have_loadso != xyes && \
  15766. test x$enable_alsa_shared = xyes; then
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15768. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15769. fi
  15770. if test x$have_loadso = xyes && \
  15771. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15772. echo "-- dynamic libasound -> $alsa_lib"
  15773. cat >>confdefs.h <<_ACEOF
  15774. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15775. _ACEOF
  15776. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15777. else
  15778. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15779. SUMMARY_audio="${SUMMARY_audio} alsa"
  15780. fi
  15781. have_audio=yes
  15782. fi
  15783. fi
  15784. }
  15785. CheckJACK()
  15786. {
  15787. # Check whether --enable-jack was given.
  15788. if test "${enable_jack+set}" = set; then :
  15789. enableval=$enable_jack;
  15790. else
  15791. enable_jack=yes
  15792. fi
  15793. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15794. pkg_failed=no
  15795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15796. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15797. if test -n "$JACK_CFLAGS"; then
  15798. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15799. elif test -n "$PKG_CONFIG"; then
  15800. if test -n "$PKG_CONFIG" && \
  15801. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15802. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15803. ac_status=$?
  15804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15805. test $ac_status = 0; }; then
  15806. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15807. test "x$?" != "x0" && pkg_failed=yes
  15808. else
  15809. pkg_failed=yes
  15810. fi
  15811. else
  15812. pkg_failed=untried
  15813. fi
  15814. if test -n "$JACK_LIBS"; then
  15815. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15816. elif test -n "$PKG_CONFIG"; then
  15817. if test -n "$PKG_CONFIG" && \
  15818. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15819. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15820. ac_status=$?
  15821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15822. test $ac_status = 0; }; then
  15823. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15824. test "x$?" != "x0" && pkg_failed=yes
  15825. else
  15826. pkg_failed=yes
  15827. fi
  15828. else
  15829. pkg_failed=untried
  15830. fi
  15831. if test $pkg_failed = yes; then
  15832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15833. $as_echo "no" >&6; }
  15834. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15835. _pkg_short_errors_supported=yes
  15836. else
  15837. _pkg_short_errors_supported=no
  15838. fi
  15839. if test $_pkg_short_errors_supported = yes; then
  15840. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15841. else
  15842. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15843. fi
  15844. # Put the nasty error message in config.log where it belongs
  15845. echo "$JACK_PKG_ERRORS" >&5
  15846. audio_jack=no
  15847. elif test $pkg_failed = untried; then
  15848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15849. $as_echo "no" >&6; }
  15850. audio_jack=no
  15851. else
  15852. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15853. JACK_LIBS=$pkg_cv_JACK_LIBS
  15854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15855. $as_echo "yes" >&6; }
  15856. audio_jack=yes
  15857. fi
  15858. if test x$audio_jack = xyes; then
  15859. # Check whether --enable-jack-shared was given.
  15860. if test "${enable_jack_shared+set}" = set; then :
  15861. enableval=$enable_jack_shared;
  15862. else
  15863. enable_jack_shared=yes
  15864. fi
  15865. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15866. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15867. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15868. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15869. if test x$have_loadso != xyes && \
  15870. test x$enable_jack_shared = xyes; then
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15872. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15873. fi
  15874. if test x$have_loadso = xyes && \
  15875. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15876. echo "-- dynamic libjack -> $jack_lib"
  15877. cat >>confdefs.h <<_ACEOF
  15878. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15879. _ACEOF
  15880. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15881. case "$host" in
  15882. # On Solaris, jack must be linked deferred explicitly
  15883. # to prevent undefined symbol failures.
  15884. *-*-solaris*)
  15885. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15886. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15887. esac
  15888. else
  15889. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15890. SUMMARY_audio="${SUMMARY_audio} jack"
  15891. fi
  15892. have_audio=yes
  15893. fi
  15894. fi
  15895. }
  15896. CheckESD()
  15897. {
  15898. # Check whether --enable-esd was given.
  15899. if test "${enable_esd+set}" = set; then :
  15900. enableval=$enable_esd;
  15901. else
  15902. enable_esd=yes
  15903. fi
  15904. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15905. # Check whether --with-esd-prefix was given.
  15906. if test "${with_esd_prefix+set}" = set; then :
  15907. withval=$with_esd_prefix; esd_prefix="$withval"
  15908. else
  15909. esd_prefix=""
  15910. fi
  15911. # Check whether --with-esd-exec-prefix was given.
  15912. if test "${with_esd_exec_prefix+set}" = set; then :
  15913. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15914. else
  15915. esd_exec_prefix=""
  15916. fi
  15917. # Check whether --enable-esdtest was given.
  15918. if test "${enable_esdtest+set}" = set; then :
  15919. enableval=$enable_esdtest;
  15920. else
  15921. enable_esdtest=yes
  15922. fi
  15923. if test x$esd_exec_prefix != x ; then
  15924. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15925. if test x${ESD_CONFIG+set} != xset ; then
  15926. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15927. fi
  15928. fi
  15929. if test x$esd_prefix != x ; then
  15930. esd_args="$esd_args --prefix=$esd_prefix"
  15931. if test x${ESD_CONFIG+set} != xset ; then
  15932. ESD_CONFIG=$esd_prefix/bin/esd-config
  15933. fi
  15934. fi
  15935. # Extract the first word of "esd-config", so it can be a program name with args.
  15936. set dummy esd-config; ac_word=$2
  15937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15938. $as_echo_n "checking for $ac_word... " >&6; }
  15939. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15940. $as_echo_n "(cached) " >&6
  15941. else
  15942. case $ESD_CONFIG in
  15943. [\\/]* | ?:[\\/]*)
  15944. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15945. ;;
  15946. *)
  15947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15948. for as_dir in $PATH
  15949. do
  15950. IFS=$as_save_IFS
  15951. test -z "$as_dir" && as_dir=.
  15952. for ac_exec_ext in '' $ac_executable_extensions; do
  15953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15954. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15956. break 2
  15957. fi
  15958. done
  15959. done
  15960. IFS=$as_save_IFS
  15961. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15962. ;;
  15963. esac
  15964. fi
  15965. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15966. if test -n "$ESD_CONFIG"; then
  15967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15968. $as_echo "$ESD_CONFIG" >&6; }
  15969. else
  15970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15971. $as_echo "no" >&6; }
  15972. fi
  15973. min_esd_version=0.2.8
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15975. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15976. no_esd=""
  15977. if test "$ESD_CONFIG" = "no" ; then
  15978. no_esd=yes
  15979. else
  15980. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15981. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15982. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15983. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15984. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15985. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15986. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15987. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15988. if test "x$enable_esdtest" = "xyes" ; then
  15989. ac_ext=c
  15990. ac_cpp='$CPP $CPPFLAGS'
  15991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15994. ac_save_CFLAGS="$CFLAGS"
  15995. ac_save_LIBS="$LIBS"
  15996. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15997. LIBS="$LIBS $ESD_LIBS"
  15998. rm -f conf.esdtest
  15999. if test "$cross_compiling" = yes; then :
  16000. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16001. else
  16002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16003. /* end confdefs.h. */
  16004. #include <stdio.h>
  16005. #include <stdlib.h>
  16006. #include <esd.h>
  16007. int main (void)
  16008. {
  16009. int major, minor, micro;
  16010. FILE *fp = fopen("conf.esdtest", "w");
  16011. if (fp) fclose(fp);
  16012. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16013. printf("%s, bad version string\n", "$min_esd_version");
  16014. exit(1);
  16015. }
  16016. if (($esd_major_version > major) ||
  16017. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16018. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16019. {
  16020. return 0;
  16021. }
  16022. else
  16023. {
  16024. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16025. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16026. printf("*** best to upgrade to the required version.\n");
  16027. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16028. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16029. printf("*** config.cache before re-running configure\n");
  16030. return 1;
  16031. }
  16032. }
  16033. _ACEOF
  16034. if ac_fn_c_try_run "$LINENO"; then :
  16035. else
  16036. no_esd=yes
  16037. fi
  16038. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16039. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16040. fi
  16041. CFLAGS="$ac_save_CFLAGS"
  16042. LIBS="$ac_save_LIBS"
  16043. ac_ext=c
  16044. ac_cpp='$CPP $CPPFLAGS'
  16045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16048. fi
  16049. fi
  16050. if test "x$no_esd" = x ; then
  16051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16052. $as_echo "yes" >&6; }
  16053. have_esd=yes
  16054. else
  16055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16056. $as_echo "no" >&6; }
  16057. if test "$ESD_CONFIG" = "no" ; then
  16058. echo "*** The esd-config script installed by ESD could not be found"
  16059. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16060. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16061. echo "*** full path to esd-config."
  16062. else
  16063. if test -f conf.esdtest ; then
  16064. :
  16065. else
  16066. echo "*** Could not run ESD test program, checking why..."
  16067. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16068. LIBS="$LIBS $ESD_LIBS"
  16069. ac_ext=c
  16070. ac_cpp='$CPP $CPPFLAGS'
  16071. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16072. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16073. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16075. /* end confdefs.h. */
  16076. #include <stdio.h>
  16077. #include <esd.h>
  16078. int
  16079. main ()
  16080. {
  16081. return 0;
  16082. ;
  16083. return 0;
  16084. }
  16085. _ACEOF
  16086. if ac_fn_c_try_link "$LINENO"; then :
  16087. echo "*** The test program compiled, but did not run. This usually means"
  16088. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16089. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16090. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16091. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16092. echo "*** is required on your system"
  16093. echo "***"
  16094. echo "*** If you have an old version installed, it is best to remove it, although"
  16095. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16096. else
  16097. echo "*** The test program failed to compile or link. See the file config.log for the"
  16098. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16099. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16100. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16101. fi
  16102. rm -f core conftest.err conftest.$ac_objext \
  16103. conftest$ac_exeext conftest.$ac_ext
  16104. CFLAGS="$ac_save_CFLAGS"
  16105. LIBS="$ac_save_LIBS"
  16106. ac_ext=c
  16107. ac_cpp='$CPP $CPPFLAGS'
  16108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16111. fi
  16112. fi
  16113. ESD_CFLAGS=""
  16114. ESD_LIBS=""
  16115. have_esd=no
  16116. fi
  16117. rm -f conf.esdtest
  16118. if test x$have_esd = xyes; then
  16119. # Check whether --enable-esd-shared was given.
  16120. if test "${enable_esd_shared+set}" = set; then :
  16121. enableval=$enable_esd_shared;
  16122. else
  16123. enable_esd_shared=yes
  16124. fi
  16125. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16126. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16127. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16128. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16129. if test x$have_loadso != xyes && \
  16130. test x$enable_esd_shared = xyes; then
  16131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16132. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16133. fi
  16134. if test x$have_loadso = xyes && \
  16135. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16136. echo "-- dynamic libesd -> $esd_lib"
  16137. cat >>confdefs.h <<_ACEOF
  16138. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16139. _ACEOF
  16140. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16141. else
  16142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16143. SUMMARY_audio="${SUMMARY_audio} esd"
  16144. fi
  16145. have_audio=yes
  16146. fi
  16147. fi
  16148. }
  16149. CheckPipewire()
  16150. {
  16151. # Check whether --enable-pipewire was given.
  16152. if test "${enable_pipewire+set}" = set; then :
  16153. enableval=$enable_pipewire;
  16154. else
  16155. enable_pipewire=yes
  16156. fi
  16157. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16158. pkg_failed=no
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16160. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16161. if test -n "$PIPEWIRE_CFLAGS"; then
  16162. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16163. elif test -n "$PKG_CONFIG"; then
  16164. if test -n "$PKG_CONFIG" && \
  16165. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16166. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16167. ac_status=$?
  16168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16169. test $ac_status = 0; }; then
  16170. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16171. test "x$?" != "x0" && pkg_failed=yes
  16172. else
  16173. pkg_failed=yes
  16174. fi
  16175. else
  16176. pkg_failed=untried
  16177. fi
  16178. if test -n "$PIPEWIRE_LIBS"; then
  16179. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16180. elif test -n "$PKG_CONFIG"; then
  16181. if test -n "$PKG_CONFIG" && \
  16182. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16183. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16184. ac_status=$?
  16185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16186. test $ac_status = 0; }; then
  16187. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16188. test "x$?" != "x0" && pkg_failed=yes
  16189. else
  16190. pkg_failed=yes
  16191. fi
  16192. else
  16193. pkg_failed=untried
  16194. fi
  16195. if test $pkg_failed = yes; then
  16196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16197. $as_echo "no" >&6; }
  16198. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16199. _pkg_short_errors_supported=yes
  16200. else
  16201. _pkg_short_errors_supported=no
  16202. fi
  16203. if test $_pkg_short_errors_supported = yes; then
  16204. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16205. else
  16206. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16207. fi
  16208. # Put the nasty error message in config.log where it belongs
  16209. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16210. audio_pipewire=no
  16211. elif test $pkg_failed = untried; then
  16212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16213. $as_echo "no" >&6; }
  16214. audio_pipewire=no
  16215. else
  16216. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16217. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16219. $as_echo "yes" >&6; }
  16220. audio_pipewire=yes
  16221. fi
  16222. if test x$audio_pipewire = xyes; then
  16223. # Check whether --enable-pipewire-shared was given.
  16224. if test "${enable_pipewire_shared+set}" = set; then :
  16225. enableval=$enable_pipewire_shared;
  16226. else
  16227. enable_pipewire_shared=yes
  16228. fi
  16229. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16230. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16231. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16232. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16233. if test x$have_loadso != xyes && \
  16234. test x$enable_pipewire_shared = xyes; then
  16235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16236. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16237. fi
  16238. if test x$have_loadso = xyes && \
  16239. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16240. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16241. cat >>confdefs.h <<_ACEOF
  16242. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16243. _ACEOF
  16244. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16245. else
  16246. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16247. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16248. fi
  16249. have_audio=yes
  16250. fi
  16251. fi
  16252. }
  16253. CheckPulseAudio()
  16254. {
  16255. # Check whether --enable-pulseaudio was given.
  16256. if test "${enable_pulseaudio+set}" = set; then :
  16257. enableval=$enable_pulseaudio;
  16258. else
  16259. enable_pulseaudio=yes
  16260. fi
  16261. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16262. pkg_failed=no
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16264. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16265. if test -n "$PULSEAUDIO_CFLAGS"; then
  16266. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16267. elif test -n "$PKG_CONFIG"; then
  16268. if test -n "$PKG_CONFIG" && \
  16269. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16270. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16271. ac_status=$?
  16272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16273. test $ac_status = 0; }; then
  16274. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16275. test "x$?" != "x0" && pkg_failed=yes
  16276. else
  16277. pkg_failed=yes
  16278. fi
  16279. else
  16280. pkg_failed=untried
  16281. fi
  16282. if test -n "$PULSEAUDIO_LIBS"; then
  16283. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16284. elif test -n "$PKG_CONFIG"; then
  16285. if test -n "$PKG_CONFIG" && \
  16286. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16287. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16288. ac_status=$?
  16289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16290. test $ac_status = 0; }; then
  16291. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16292. test "x$?" != "x0" && pkg_failed=yes
  16293. else
  16294. pkg_failed=yes
  16295. fi
  16296. else
  16297. pkg_failed=untried
  16298. fi
  16299. if test $pkg_failed = yes; then
  16300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16301. $as_echo "no" >&6; }
  16302. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16303. _pkg_short_errors_supported=yes
  16304. else
  16305. _pkg_short_errors_supported=no
  16306. fi
  16307. if test $_pkg_short_errors_supported = yes; then
  16308. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16309. else
  16310. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16311. fi
  16312. # Put the nasty error message in config.log where it belongs
  16313. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16314. audio_pulseaudio=no
  16315. elif test $pkg_failed = untried; then
  16316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16317. $as_echo "no" >&6; }
  16318. audio_pulseaudio=no
  16319. else
  16320. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16321. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16323. $as_echo "yes" >&6; }
  16324. audio_pulseaudio=yes
  16325. fi
  16326. if test x$audio_pulseaudio = xyes; then
  16327. # Check whether --enable-pulseaudio-shared was given.
  16328. if test "${enable_pulseaudio_shared+set}" = set; then :
  16329. enableval=$enable_pulseaudio_shared;
  16330. else
  16331. enable_pulseaudio_shared=yes
  16332. fi
  16333. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16334. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16335. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16336. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16337. if test x$have_loadso != xyes && \
  16338. test x$enable_pulseaudio_shared = xyes; then
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16340. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16341. fi
  16342. if test x$have_loadso = xyes && \
  16343. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16344. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16345. cat >>confdefs.h <<_ACEOF
  16346. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16347. _ACEOF
  16348. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16349. case "$host" in
  16350. # On Solaris, pulseaudio must be linked deferred explicitly
  16351. # to prevent undefined symbol failures.
  16352. *-*-solaris*)
  16353. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16355. esac
  16356. else
  16357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16358. SUMMARY_audio="${SUMMARY_audio} pulse"
  16359. fi
  16360. have_audio=yes
  16361. fi
  16362. fi
  16363. }
  16364. CheckARTSC()
  16365. {
  16366. # Check whether --enable-arts was given.
  16367. if test "${enable_arts+set}" = set; then :
  16368. enableval=$enable_arts;
  16369. else
  16370. enable_arts=yes
  16371. fi
  16372. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16373. # Extract the first word of "artsc-config", so it can be a program name with args.
  16374. set dummy artsc-config; ac_word=$2
  16375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16376. $as_echo_n "checking for $ac_word... " >&6; }
  16377. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16378. $as_echo_n "(cached) " >&6
  16379. else
  16380. case $ARTSCONFIG in
  16381. [\\/]* | ?:[\\/]*)
  16382. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16383. ;;
  16384. *)
  16385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16386. for as_dir in $PATH
  16387. do
  16388. IFS=$as_save_IFS
  16389. test -z "$as_dir" && as_dir=.
  16390. for ac_exec_ext in '' $ac_executable_extensions; do
  16391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16392. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16394. break 2
  16395. fi
  16396. done
  16397. done
  16398. IFS=$as_save_IFS
  16399. ;;
  16400. esac
  16401. fi
  16402. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16403. if test -n "$ARTSCONFIG"; then
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16405. $as_echo "$ARTSCONFIG" >&6; }
  16406. else
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16408. $as_echo "no" >&6; }
  16409. fi
  16410. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16411. : # arts isn't installed
  16412. else
  16413. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16414. ARTS_LIBS=`$ARTSCONFIG --libs`
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16416. $as_echo_n "checking for aRts development environment... " >&6; }
  16417. audio_arts=no
  16418. save_CFLAGS="$CFLAGS"
  16419. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16421. /* end confdefs.h. */
  16422. #include <artsc.h>
  16423. int
  16424. main ()
  16425. {
  16426. arts_stream_t stream;
  16427. ;
  16428. return 0;
  16429. }
  16430. _ACEOF
  16431. if ac_fn_c_try_compile "$LINENO"; then :
  16432. audio_arts=yes
  16433. fi
  16434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16435. CFLAGS="$save_CFLAGS"
  16436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16437. $as_echo "$audio_arts" >&6; }
  16438. if test x$audio_arts = xyes; then
  16439. # Check whether --enable-arts-shared was given.
  16440. if test "${enable_arts_shared+set}" = set; then :
  16441. enableval=$enable_arts_shared;
  16442. else
  16443. enable_arts_shared=yes
  16444. fi
  16445. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16446. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16447. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16448. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16449. if test x$have_loadso != xyes && \
  16450. test x$enable_arts_shared = xyes; then
  16451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16452. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16453. fi
  16454. if test x$have_loadso = xyes && \
  16455. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16456. echo "-- dynamic libartsc -> $arts_lib"
  16457. cat >>confdefs.h <<_ACEOF
  16458. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16459. _ACEOF
  16460. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16461. else
  16462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16463. SUMMARY_audio="${SUMMARY_audio} arts"
  16464. fi
  16465. have_audio=yes
  16466. fi
  16467. fi
  16468. fi
  16469. }
  16470. CheckNAS()
  16471. {
  16472. # Check whether --enable-nas was given.
  16473. if test "${enable_nas+set}" = set; then :
  16474. enableval=$enable_nas;
  16475. else
  16476. enable_nas=yes
  16477. fi
  16478. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16479. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16480. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16481. have_nas_hdr=yes
  16482. fi
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16484. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16485. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16486. $as_echo_n "(cached) " >&6
  16487. else
  16488. ac_check_lib_save_LIBS=$LIBS
  16489. LIBS="-laudio $LIBS"
  16490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16491. /* end confdefs.h. */
  16492. /* Override any GCC internal prototype to avoid an error.
  16493. Use char because int might match the return type of a GCC
  16494. builtin and then its argument prototype would still apply. */
  16495. #ifdef __cplusplus
  16496. extern "C"
  16497. #endif
  16498. char AuOpenServer ();
  16499. int
  16500. main ()
  16501. {
  16502. return AuOpenServer ();
  16503. ;
  16504. return 0;
  16505. }
  16506. _ACEOF
  16507. if ac_fn_c_try_link "$LINENO"; then :
  16508. ac_cv_lib_audio_AuOpenServer=yes
  16509. else
  16510. ac_cv_lib_audio_AuOpenServer=no
  16511. fi
  16512. rm -f core conftest.err conftest.$ac_objext \
  16513. conftest$ac_exeext conftest.$ac_ext
  16514. LIBS=$ac_check_lib_save_LIBS
  16515. fi
  16516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16517. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16518. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16519. have_nas_lib=yes
  16520. fi
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16522. $as_echo_n "checking for NAS audio support... " >&6; }
  16523. have_nas=no
  16524. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16525. have_nas=yes
  16526. NAS_LIBS="-laudio"
  16527. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16528. have_nas=yes
  16529. NAS_CFLAGS="-I/usr/X11R6/include/"
  16530. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16531. fi
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16533. $as_echo "$have_nas" >&6; }
  16534. if test x$have_nas = xyes; then
  16535. # Check whether --enable-nas-shared was given.
  16536. if test "${enable_nas_shared+set}" = set; then :
  16537. enableval=$enable_nas_shared;
  16538. else
  16539. enable_nas_shared=yes
  16540. fi
  16541. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16542. if test x$have_loadso != xyes && \
  16543. test x$enable_nas_shared = xyes; then
  16544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16545. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16546. fi
  16547. if test x$have_loadso = xyes && \
  16548. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16549. echo "-- dynamic libaudio -> $nas_lib"
  16550. cat >>confdefs.h <<_ACEOF
  16551. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16552. _ACEOF
  16553. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16554. else
  16555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16556. SUMMARY_audio="${SUMMARY_audio} nas"
  16557. fi
  16558. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16559. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16560. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16561. have_audio=yes
  16562. fi
  16563. fi
  16564. }
  16565. CheckSNDIO()
  16566. {
  16567. # Check whether --enable-sndio was given.
  16568. if test "${enable_sndio+set}" = set; then :
  16569. enableval=$enable_sndio;
  16570. else
  16571. enable_sndio=yes
  16572. fi
  16573. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16574. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16575. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16576. have_sndio_hdr=yes
  16577. fi
  16578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16579. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16580. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16581. $as_echo_n "(cached) " >&6
  16582. else
  16583. ac_check_lib_save_LIBS=$LIBS
  16584. LIBS="-lsndio $LIBS"
  16585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16586. /* end confdefs.h. */
  16587. /* Override any GCC internal prototype to avoid an error.
  16588. Use char because int might match the return type of a GCC
  16589. builtin and then its argument prototype would still apply. */
  16590. #ifdef __cplusplus
  16591. extern "C"
  16592. #endif
  16593. char sio_open ();
  16594. int
  16595. main ()
  16596. {
  16597. return sio_open ();
  16598. ;
  16599. return 0;
  16600. }
  16601. _ACEOF
  16602. if ac_fn_c_try_link "$LINENO"; then :
  16603. ac_cv_lib_sndio_sio_open=yes
  16604. else
  16605. ac_cv_lib_sndio_sio_open=no
  16606. fi
  16607. rm -f core conftest.err conftest.$ac_objext \
  16608. conftest$ac_exeext conftest.$ac_ext
  16609. LIBS=$ac_check_lib_save_LIBS
  16610. fi
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16612. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16613. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16614. have_sndio_lib=yes
  16615. fi
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16617. $as_echo_n "checking for sndio audio support... " >&6; }
  16618. have_sndio=no
  16619. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16620. have_sndio=yes
  16621. SNDIO_LIBS="-lsndio"
  16622. fi
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16624. $as_echo "$have_sndio" >&6; }
  16625. if test x$have_sndio = xyes; then
  16626. # Check whether --enable-sndio-shared was given.
  16627. if test "${enable_sndio_shared+set}" = set; then :
  16628. enableval=$enable_sndio_shared;
  16629. else
  16630. enable_sndio_shared=yes
  16631. fi
  16632. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16633. if test x$have_loadso != xyes && \
  16634. test x$enable_sndio_shared = xyes; then
  16635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16636. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16637. fi
  16638. if test x$have_loadso = xyes && \
  16639. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16640. echo "-- dynamic libsndio -> $sndio_lib"
  16641. cat >>confdefs.h <<_ACEOF
  16642. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16643. _ACEOF
  16644. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16645. else
  16646. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16647. SUMMARY_audio="${SUMMARY_audio} sndio"
  16648. fi
  16649. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16650. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16651. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16652. have_audio=yes
  16653. fi
  16654. fi
  16655. }
  16656. CheckFusionSound()
  16657. {
  16658. # Check whether --enable-fusionsound was given.
  16659. if test "${enable_fusionsound+set}" = set; then :
  16660. enableval=$enable_fusionsound;
  16661. else
  16662. enable_fusionsound=no
  16663. fi
  16664. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16665. pkg_failed=no
  16666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16667. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16668. if test -n "$FUSIONSOUND_CFLAGS"; then
  16669. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16670. elif test -n "$PKG_CONFIG"; then
  16671. if test -n "$PKG_CONFIG" && \
  16672. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16673. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16674. ac_status=$?
  16675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16676. test $ac_status = 0; }; then
  16677. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16678. test "x$?" != "x0" && pkg_failed=yes
  16679. else
  16680. pkg_failed=yes
  16681. fi
  16682. else
  16683. pkg_failed=untried
  16684. fi
  16685. if test -n "$FUSIONSOUND_LIBS"; then
  16686. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16687. elif test -n "$PKG_CONFIG"; then
  16688. if test -n "$PKG_CONFIG" && \
  16689. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16690. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16691. ac_status=$?
  16692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16693. test $ac_status = 0; }; then
  16694. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16695. test "x$?" != "x0" && pkg_failed=yes
  16696. else
  16697. pkg_failed=yes
  16698. fi
  16699. else
  16700. pkg_failed=untried
  16701. fi
  16702. if test $pkg_failed = yes; then
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16704. $as_echo "no" >&6; }
  16705. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16706. _pkg_short_errors_supported=yes
  16707. else
  16708. _pkg_short_errors_supported=no
  16709. fi
  16710. if test $_pkg_short_errors_supported = yes; then
  16711. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16712. else
  16713. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16714. fi
  16715. # Put the nasty error message in config.log where it belongs
  16716. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16717. fusionsound=no
  16718. elif test $pkg_failed = untried; then
  16719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16720. $as_echo "no" >&6; }
  16721. fusionsound=no
  16722. else
  16723. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16724. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16726. $as_echo "yes" >&6; }
  16727. fusionsound=yes
  16728. fi
  16729. if test x$fusionsound = xyes; then
  16730. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16731. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16732. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16733. # Check whether --enable-fusionsound-shared was given.
  16734. if test "${enable_fusionsound_shared+set}" = set; then :
  16735. enableval=$enable_fusionsound_shared;
  16736. else
  16737. enable_fusionsound_shared=yes
  16738. fi
  16739. fusionsound_shared=no
  16740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16741. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16742. if test x$have_loadso != xyes && \
  16743. test x$enable_fusionsound_shared = xyes; then
  16744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16745. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16746. fi
  16747. if test x$have_loadso = xyes && \
  16748. test x$enable_fusionsound_shared = xyes; then
  16749. cat >>confdefs.h <<_ACEOF
  16750. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16751. _ACEOF
  16752. fusionsound_shared=yes
  16753. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16754. else
  16755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16756. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16757. fi
  16758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16759. $as_echo "$fusionsound_shared" >&6; }
  16760. have_audio=yes
  16761. fi
  16762. fi
  16763. }
  16764. CheckDiskAudio()
  16765. {
  16766. # Check whether --enable-diskaudio was given.
  16767. if test "${enable_diskaudio+set}" = set; then :
  16768. enableval=$enable_diskaudio;
  16769. else
  16770. enable_diskaudio=yes
  16771. fi
  16772. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16773. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16774. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16775. SUMMARY_audio="${SUMMARY_audio} disk"
  16776. fi
  16777. }
  16778. CheckDummyAudio()
  16779. {
  16780. # Check whether --enable-dummyaudio was given.
  16781. if test "${enable_dummyaudio+set}" = set; then :
  16782. enableval=$enable_dummyaudio;
  16783. else
  16784. enable_dummyaudio=yes
  16785. fi
  16786. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16787. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16788. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16789. SUMMARY_audio="${SUMMARY_audio} dummy"
  16790. fi
  16791. }
  16792. CheckLibSampleRate()
  16793. {
  16794. # Check whether --enable-libsamplerate was given.
  16795. if test "${enable_libsamplerate+set}" = set; then :
  16796. enableval=$enable_libsamplerate;
  16797. else
  16798. enable_libsamplerate=yes
  16799. fi
  16800. if test x$enable_libsamplerate = xyes; then
  16801. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16802. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16803. have_samplerate_h_hdr=yes
  16804. else
  16805. have_samplerate_h_hdr=no
  16806. fi
  16807. if test x$have_samplerate_h_hdr = xyes; then
  16808. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16809. # Check whether --enable-libsamplerate-shared was given.
  16810. if test "${enable_libsamplerate_shared+set}" = set; then :
  16811. enableval=$enable_libsamplerate_shared;
  16812. else
  16813. enable_libsamplerate_shared=yes
  16814. fi
  16815. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16816. if test x$have_loadso != xyes && \
  16817. test x$enable_libsamplerate_shared = xyes; then
  16818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16819. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16820. fi
  16821. if test x$have_loadso = xyes && \
  16822. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16823. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16824. cat >>confdefs.h <<_ACEOF
  16825. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16826. _ACEOF
  16827. else
  16828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16829. fi
  16830. fi
  16831. fi
  16832. }
  16833. CheckARM()
  16834. {
  16835. # Check whether --enable-arm-simd was given.
  16836. if test "${enable_arm_simd+set}" = set; then :
  16837. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16838. else
  16839. enable_arm_simd=no
  16840. fi
  16841. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16842. save_CFLAGS="$CFLAGS"
  16843. have_arm_simd=no
  16844. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16846. $as_echo_n "checking for ARM SIMD... " >&6; }
  16847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16848. /* end confdefs.h. */
  16849. .text
  16850. .arch armv6
  16851. .object_arch armv4
  16852. .arm
  16853. .altmacro
  16854. #ifndef __ARM_EABI__
  16855. #error EABI is required (to be sure that calling conventions are compatible)
  16856. #endif
  16857. pld [r0]
  16858. uqadd8 r0, r0, r0
  16859. _ACEOF
  16860. if ac_fn_c_try_compile "$LINENO"; then :
  16861. have_arm_simd=yes
  16862. fi
  16863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16865. $as_echo "$have_arm_simd" >&6; }
  16866. CFLAGS="$save_CFLAGS"
  16867. if test x$have_arm_simd = xyes; then
  16868. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16869. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16870. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16871. fi
  16872. fi
  16873. }
  16874. CheckNEON()
  16875. {
  16876. # Check whether --enable-arm-neon was given.
  16877. if test "${enable_arm_neon+set}" = set; then :
  16878. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16879. else
  16880. enable_arm_neon=no
  16881. fi
  16882. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16883. save_CFLAGS="$CFLAGS"
  16884. have_arm_neon=no
  16885. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16887. $as_echo_n "checking for ARM NEON... " >&6; }
  16888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16889. /* end confdefs.h. */
  16890. .text
  16891. .fpu neon
  16892. .arch armv7a
  16893. .object_arch armv4
  16894. .eabi_attribute 10, 0
  16895. .arm
  16896. .altmacro
  16897. #ifndef __ARM_EABI__
  16898. #error EABI is required (to be sure that calling conventions are compatible)
  16899. #endif
  16900. pld [r0]
  16901. vmovn.u16 d0, q0
  16902. _ACEOF
  16903. if ac_fn_c_try_compile "$LINENO"; then :
  16904. have_arm_neon=yes
  16905. fi
  16906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16908. $as_echo "$have_arm_neon" >&6; }
  16909. CFLAGS="$save_CFLAGS"
  16910. if test x$have_arm_neon = xyes; then
  16911. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16912. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16913. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16914. fi
  16915. fi
  16916. }
  16917. CheckVisibilityHidden()
  16918. {
  16919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16920. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16921. have_gcc_fvisibility=no
  16922. visibility_CFLAGS="-fvisibility=hidden"
  16923. save_CFLAGS="$CFLAGS"
  16924. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16926. /* end confdefs.h. */
  16927. #if !defined(__GNUC__) || __GNUC__ < 4
  16928. #error SDL only uses visibility attributes in GCC 4 or newer
  16929. #endif
  16930. int
  16931. main ()
  16932. {
  16933. ;
  16934. return 0;
  16935. }
  16936. _ACEOF
  16937. if ac_fn_c_try_compile "$LINENO"; then :
  16938. have_gcc_fvisibility=yes
  16939. fi
  16940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16942. $as_echo "$have_gcc_fvisibility" >&6; }
  16943. CFLAGS="$save_CFLAGS"
  16944. if test x$have_gcc_fvisibility = xyes; then
  16945. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16946. fi
  16947. }
  16948. CheckNoStrictAliasing()
  16949. {
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16951. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16952. have_gcc_no_strict_aliasing=no
  16953. save_CFLAGS="$CFLAGS"
  16954. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16956. /* end confdefs.h. */
  16957. int x = 0;
  16958. int
  16959. main ()
  16960. {
  16961. ;
  16962. return 0;
  16963. }
  16964. _ACEOF
  16965. if ac_fn_c_try_compile "$LINENO"; then :
  16966. have_gcc_no_strict_aliasing=yes
  16967. fi
  16968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16970. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16971. CFLAGS="$save_CFLAGS"
  16972. if test x$have_gcc_no_strict_aliasing = xyes; then
  16973. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16974. fi
  16975. }
  16976. CheckStackBoundary()
  16977. {
  16978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16979. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16980. have_gcc_preferred_stack_boundary=no
  16981. save_CFLAGS="$CFLAGS"
  16982. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16984. /* end confdefs.h. */
  16985. int x = 0;
  16986. int
  16987. main ()
  16988. {
  16989. ;
  16990. return 0;
  16991. }
  16992. _ACEOF
  16993. if ac_fn_c_try_compile "$LINENO"; then :
  16994. have_gcc_preferred_stack_boundary=yes
  16995. fi
  16996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16998. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16999. CFLAGS="$save_CFLAGS"
  17000. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17001. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17002. fi
  17003. }
  17004. CheckDeclarationAfterStatement()
  17005. {
  17006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17007. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17008. have_gcc_declaration_after_statement=no
  17009. save_CFLAGS="$CFLAGS"
  17010. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17012. /* end confdefs.h. */
  17013. int x = 0;
  17014. int
  17015. main ()
  17016. {
  17017. ;
  17018. return 0;
  17019. }
  17020. _ACEOF
  17021. if ac_fn_c_try_compile "$LINENO"; then :
  17022. have_gcc_declaration_after_statement=yes
  17023. fi
  17024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17026. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17027. CFLAGS="$save_CFLAGS"
  17028. if test x$have_gcc_declaration_after_statement = xyes; then
  17029. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17030. fi
  17031. }
  17032. CheckWarnAll()
  17033. {
  17034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17035. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17036. have_gcc_Wall=no
  17037. save_CFLAGS="$CFLAGS"
  17038. CFLAGS="$save_CFLAGS -Wall"
  17039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17040. /* end confdefs.h. */
  17041. int x = 0;
  17042. int
  17043. main ()
  17044. {
  17045. ;
  17046. return 0;
  17047. }
  17048. _ACEOF
  17049. if ac_fn_c_try_compile "$LINENO"; then :
  17050. have_gcc_Wall=yes
  17051. fi
  17052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17054. $as_echo "$have_gcc_Wall" >&6; }
  17055. CFLAGS="$save_CFLAGS"
  17056. if test x$have_gcc_Wall = xyes; then
  17057. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17059. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17060. need_gcc_Wno_multichar=no
  17061. case "$host" in
  17062. *-*-haiku*)
  17063. need_gcc_Wno_multichar=yes
  17064. ;;
  17065. esac
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17067. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17068. if test x$need_gcc_Wno_multichar = xyes; then
  17069. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17070. fi
  17071. fi
  17072. }
  17073. CheckWayland()
  17074. {
  17075. # Check whether --enable-video-wayland was given.
  17076. if test "${enable_video_wayland+set}" = set; then :
  17077. enableval=$enable_video_wayland;
  17078. else
  17079. enable_video_wayland=yes
  17080. fi
  17081. # Check whether --enable-video-wayland-qt-touch was given.
  17082. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17083. enableval=$enable_video_wayland_qt_touch;
  17084. else
  17085. enable_video_wayland_qt_touch=yes
  17086. fi
  17087. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17089. $as_echo_n "checking for Wayland support... " >&6; }
  17090. video_wayland=no
  17091. if test x$video_opengl_egl = xyes && \
  17092. test x$video_opengles_v2 = xyes; then
  17093. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  17094. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17095. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17096. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17097. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17098. WAYLAND_SCANNER_CODE_MODE=private-code
  17099. else
  17100. WAYLAND_SCANNER_CODE_MODE=code
  17101. fi
  17102. video_wayland=yes
  17103. fi
  17104. fi
  17105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17106. $as_echo "$video_wayland" >&6; }
  17107. if test x$video_wayland = xyes; then
  17108. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17109. if test x$enable_video_wayland_qt_touch = xyes; then
  17110. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17111. fi
  17112. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17113. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17114. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17115. # Check whether --enable-wayland-shared was given.
  17116. if test "${enable_wayland_shared+set}" = set; then :
  17117. enableval=$enable_wayland_shared;
  17118. else
  17119. enable_wayland_shared=maybe
  17120. fi
  17121. case "$host" in
  17122. *)
  17123. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17124. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17125. if test x$wayland_egl_lib = x; then
  17126. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17127. fi
  17128. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17129. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17130. ;;
  17131. esac
  17132. if test x$enable_wayland_shared = xmaybe; then
  17133. enable_wayland_shared=yes
  17134. fi
  17135. if test x$have_loadso != xyes && \
  17136. test x$enable_wayland_shared = xyes; then
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17138. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17139. enable_wayland_shared=no
  17140. fi
  17141. if test x$have_loadso = xyes && \
  17142. test x$enable_wayland_shared = xyes && \
  17143. test x$wayland_client_lib != x && \
  17144. test x$wayland_egl_lib != x && \
  17145. test x$wayland_cursor_lib != x && \
  17146. test x$xkbcommon_lib != x; then
  17147. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17148. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17149. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17150. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17151. cat >>confdefs.h <<_ACEOF
  17152. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17153. _ACEOF
  17154. cat >>confdefs.h <<_ACEOF
  17155. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17156. _ACEOF
  17157. cat >>confdefs.h <<_ACEOF
  17158. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17159. _ACEOF
  17160. cat >>confdefs.h <<_ACEOF
  17161. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17162. _ACEOF
  17163. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17164. else
  17165. enable_wayland_shared=no
  17166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17167. SUMMARY_video="${SUMMARY_video} wayland"
  17168. fi
  17169. have_video=yes
  17170. fi
  17171. fi
  17172. }
  17173. CheckNativeClient()
  17174. {
  17175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17176. /* end confdefs.h. */
  17177. #if !defined(__native_client__)
  17178. #error "NO NACL"
  17179. #endif
  17180. int
  17181. main ()
  17182. {
  17183. ;
  17184. return 0;
  17185. }
  17186. _ACEOF
  17187. if ac_fn_c_try_compile "$LINENO"; then :
  17188. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17189. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17190. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17191. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17192. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17193. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17194. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17195. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17196. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17197. SUMMARY_audio="${SUMMARY_audio} nacl"
  17198. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17199. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17200. fi
  17201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17202. }
  17203. CheckRPI()
  17204. {
  17205. # Check whether --enable-video-rpi was given.
  17206. if test "${enable_video_rpi+set}" = set; then :
  17207. enableval=$enable_video_rpi;
  17208. else
  17209. enable_video_rpi=yes
  17210. fi
  17211. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17212. pkg_failed=no
  17213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17214. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17215. if test -n "$RPI_CFLAGS"; then
  17216. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17217. elif test -n "$PKG_CONFIG"; then
  17218. if test -n "$PKG_CONFIG" && \
  17219. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17220. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17221. ac_status=$?
  17222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17223. test $ac_status = 0; }; then
  17224. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17225. test "x$?" != "x0" && pkg_failed=yes
  17226. else
  17227. pkg_failed=yes
  17228. fi
  17229. else
  17230. pkg_failed=untried
  17231. fi
  17232. if test -n "$RPI_LIBS"; then
  17233. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17234. elif test -n "$PKG_CONFIG"; then
  17235. if test -n "$PKG_CONFIG" && \
  17236. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17237. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17238. ac_status=$?
  17239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17240. test $ac_status = 0; }; then
  17241. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17242. test "x$?" != "x0" && pkg_failed=yes
  17243. else
  17244. pkg_failed=yes
  17245. fi
  17246. else
  17247. pkg_failed=untried
  17248. fi
  17249. if test $pkg_failed = yes; then
  17250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17251. $as_echo "no" >&6; }
  17252. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17253. _pkg_short_errors_supported=yes
  17254. else
  17255. _pkg_short_errors_supported=no
  17256. fi
  17257. if test $_pkg_short_errors_supported = yes; then
  17258. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17259. else
  17260. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17261. fi
  17262. # Put the nasty error message in config.log where it belongs
  17263. echo "$RPI_PKG_ERRORS" >&5
  17264. video_rpi=no
  17265. elif test $pkg_failed = untried; then
  17266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17267. $as_echo "no" >&6; }
  17268. video_rpi=no
  17269. else
  17270. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17271. RPI_LIBS=$pkg_cv_RPI_LIBS
  17272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17273. $as_echo "yes" >&6; }
  17274. video_rpi=yes
  17275. fi
  17276. if test x$video_rpi = xno; then
  17277. if test x$ARCH = xnetbsd; then
  17278. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17279. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17280. else
  17281. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17282. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17283. fi
  17284. fi
  17285. # Save the original compiler flags and libraries
  17286. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17287. # Add the Raspberry Pi compiler flags and libraries
  17288. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17290. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17291. have_video_rpi=no
  17292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17293. /* end confdefs.h. */
  17294. #include <bcm_host.h>
  17295. int
  17296. main ()
  17297. {
  17298. bcm_host_init();
  17299. ;
  17300. return 0;
  17301. }
  17302. _ACEOF
  17303. if ac_fn_c_try_link "$LINENO"; then :
  17304. have_video_rpi=yes
  17305. fi
  17306. rm -f core conftest.err conftest.$ac_objext \
  17307. conftest$ac_exeext conftest.$ac_ext
  17308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17309. $as_echo "$have_video_rpi" >&6; }
  17310. # Restore the compiler flags and libraries
  17311. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17312. if test x$have_video_rpi = xyes; then
  17313. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17314. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17315. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17317. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17318. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17319. SUMMARY_video="${SUMMARY_video} rpi"
  17320. fi
  17321. fi
  17322. }
  17323. CheckX11()
  17324. {
  17325. # Check whether --enable-video-x11 was given.
  17326. if test "${enable_video_x11+set}" = set; then :
  17327. enableval=$enable_video_x11;
  17328. else
  17329. enable_video_x11=yes
  17330. fi
  17331. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17332. case "$host" in
  17333. *-*-darwin*)
  17334. # This isn't necessary for X11, but fixes GLX detection
  17335. if test "x$x_includes" = xNONE && \
  17336. test "x$x_libraries" = xNONE && \
  17337. test -d /opt/X11/include && \
  17338. test -d /opt/X11/lib; then
  17339. x_includes="/opt/X11/include"
  17340. x_libraries="/opt/X11/lib"
  17341. fi
  17342. ;;
  17343. esac
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17345. $as_echo_n "checking for X... " >&6; }
  17346. # Check whether --with-x was given.
  17347. if test "${with_x+set}" = set; then :
  17348. withval=$with_x;
  17349. fi
  17350. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17351. if test "x$with_x" = xno; then
  17352. # The user explicitly disabled X.
  17353. have_x=disabled
  17354. else
  17355. case $x_includes,$x_libraries in #(
  17356. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17357. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17358. $as_echo_n "(cached) " >&6
  17359. else
  17360. # One or both of the vars are not set, and there is no cached value.
  17361. ac_x_includes=no
  17362. ac_x_libraries=no
  17363. # Do we need to do anything special at all?
  17364. ac_save_LIBS=$LIBS
  17365. LIBS="-lX11 $LIBS"
  17366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17367. /* end confdefs.h. */
  17368. #include <X11/Xlib.h>
  17369. int
  17370. main ()
  17371. {
  17372. XrmInitialize ()
  17373. ;
  17374. return 0;
  17375. }
  17376. _ACEOF
  17377. if ac_fn_c_try_link "$LINENO"; then :
  17378. # We can compile and link X programs with no special options.
  17379. ac_x_includes=
  17380. ac_x_libraries=
  17381. fi
  17382. rm -f core conftest.err conftest.$ac_objext \
  17383. conftest$ac_exeext conftest.$ac_ext
  17384. LIBS="$ac_save_LIBS"
  17385. # If that didn't work, only try xmkmf and filesystem searches
  17386. # for native compilation.
  17387. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17388. rm -f -r conftest.dir
  17389. if mkdir conftest.dir; then
  17390. cd conftest.dir
  17391. cat >Imakefile <<'_ACEOF'
  17392. incroot:
  17393. @echo incroot='${INCROOT}'
  17394. usrlibdir:
  17395. @echo usrlibdir='${USRLIBDIR}'
  17396. libdir:
  17397. @echo libdir='${LIBDIR}'
  17398. _ACEOF
  17399. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17400. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17401. for ac_var in incroot usrlibdir libdir; do
  17402. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17403. done
  17404. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17405. for ac_extension in a so sl dylib la dll; do
  17406. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17407. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17408. ac_im_usrlibdir=$ac_im_libdir; break
  17409. fi
  17410. done
  17411. # Screen out bogus values from the imake configuration. They are
  17412. # bogus both because they are the default anyway, and because
  17413. # using them would break gcc on systems where it needs fixed includes.
  17414. case $ac_im_incroot in
  17415. /usr/include) ac_x_includes= ;;
  17416. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17417. esac
  17418. case $ac_im_usrlibdir in
  17419. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17420. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17421. esac
  17422. fi
  17423. cd ..
  17424. rm -f -r conftest.dir
  17425. fi
  17426. # Standard set of common directories for X headers.
  17427. # Check X11 before X11Rn because it is often a symlink to the current release.
  17428. ac_x_header_dirs='
  17429. /usr/X11/include
  17430. /usr/X11R7/include
  17431. /usr/X11R6/include
  17432. /usr/X11R5/include
  17433. /usr/X11R4/include
  17434. /usr/include/X11
  17435. /usr/include/X11R7
  17436. /usr/include/X11R6
  17437. /usr/include/X11R5
  17438. /usr/include/X11R4
  17439. /usr/local/X11/include
  17440. /usr/local/X11R7/include
  17441. /usr/local/X11R6/include
  17442. /usr/local/X11R5/include
  17443. /usr/local/X11R4/include
  17444. /usr/local/include/X11
  17445. /usr/local/include/X11R7
  17446. /usr/local/include/X11R6
  17447. /usr/local/include/X11R5
  17448. /usr/local/include/X11R4
  17449. /opt/X11/include
  17450. /usr/X386/include
  17451. /usr/x386/include
  17452. /usr/XFree86/include/X11
  17453. /usr/include
  17454. /usr/local/include
  17455. /usr/unsupported/include
  17456. /usr/athena/include
  17457. /usr/local/x11r5/include
  17458. /usr/lpp/Xamples/include
  17459. /usr/openwin/include
  17460. /usr/openwin/share/include'
  17461. if test "$ac_x_includes" = no; then
  17462. # Guess where to find include files, by looking for Xlib.h.
  17463. # First, try using that file with no special directory specified.
  17464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17465. /* end confdefs.h. */
  17466. #include <X11/Xlib.h>
  17467. _ACEOF
  17468. if ac_fn_c_try_cpp "$LINENO"; then :
  17469. # We can compile using X headers with no special include directory.
  17470. ac_x_includes=
  17471. else
  17472. for ac_dir in $ac_x_header_dirs; do
  17473. if test -r "$ac_dir/X11/Xlib.h"; then
  17474. ac_x_includes=$ac_dir
  17475. break
  17476. fi
  17477. done
  17478. fi
  17479. rm -f conftest.err conftest.i conftest.$ac_ext
  17480. fi # $ac_x_includes = no
  17481. if test "$ac_x_libraries" = no; then
  17482. # Check for the libraries.
  17483. # See if we find them without any special options.
  17484. # Don't add to $LIBS permanently.
  17485. ac_save_LIBS=$LIBS
  17486. LIBS="-lX11 $LIBS"
  17487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17488. /* end confdefs.h. */
  17489. #include <X11/Xlib.h>
  17490. int
  17491. main ()
  17492. {
  17493. XrmInitialize ()
  17494. ;
  17495. return 0;
  17496. }
  17497. _ACEOF
  17498. if ac_fn_c_try_link "$LINENO"; then :
  17499. LIBS=$ac_save_LIBS
  17500. # We can link X programs with no special library path.
  17501. ac_x_libraries=
  17502. else
  17503. LIBS=$ac_save_LIBS
  17504. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17505. do
  17506. # Don't even attempt the hair of trying to link an X program!
  17507. for ac_extension in a so sl dylib la dll; do
  17508. if test -r "$ac_dir/libX11.$ac_extension"; then
  17509. ac_x_libraries=$ac_dir
  17510. break 2
  17511. fi
  17512. done
  17513. done
  17514. fi
  17515. rm -f core conftest.err conftest.$ac_objext \
  17516. conftest$ac_exeext conftest.$ac_ext
  17517. fi # $ac_x_libraries = no
  17518. fi
  17519. # Record the results.
  17520. case $ac_x_includes,$ac_x_libraries in #(
  17521. no,* | *,no | *\'*) :
  17522. # Didn't find X, or a directory has "'" in its name.
  17523. ac_cv_have_x="have_x=no" ;; #(
  17524. *) :
  17525. # Record where we found X for the cache.
  17526. ac_cv_have_x="have_x=yes\
  17527. ac_x_includes='$ac_x_includes'\
  17528. ac_x_libraries='$ac_x_libraries'" ;;
  17529. esac
  17530. fi
  17531. ;; #(
  17532. *) have_x=yes;;
  17533. esac
  17534. eval "$ac_cv_have_x"
  17535. fi # $with_x != no
  17536. if test "$have_x" != yes; then
  17537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17538. $as_echo "$have_x" >&6; }
  17539. no_x=yes
  17540. else
  17541. # If each of the values was on the command line, it overrides each guess.
  17542. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17543. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17544. # Update the cache value to reflect the command line values.
  17545. ac_cv_have_x="have_x=yes\
  17546. ac_x_includes='$x_includes'\
  17547. ac_x_libraries='$x_libraries'"
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17549. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17550. fi
  17551. if test "$no_x" = yes; then
  17552. # Not all programs may use this symbol, but it does not hurt to define it.
  17553. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17554. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17555. else
  17556. if test -n "$x_includes"; then
  17557. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17558. fi
  17559. # It would also be nice to do this for all -L options, not just this one.
  17560. if test -n "$x_libraries"; then
  17561. X_LIBS="$X_LIBS -L$x_libraries"
  17562. # For Solaris; some versions of Sun CC require a space after -R and
  17563. # others require no space. Words are not sufficient . . . .
  17564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17565. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17566. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17567. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17568. ac_c_werror_flag=yes
  17569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17570. /* end confdefs.h. */
  17571. int
  17572. main ()
  17573. {
  17574. ;
  17575. return 0;
  17576. }
  17577. _ACEOF
  17578. if ac_fn_c_try_link "$LINENO"; then :
  17579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17580. $as_echo "no" >&6; }
  17581. X_LIBS="$X_LIBS -R$x_libraries"
  17582. else
  17583. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17585. /* end confdefs.h. */
  17586. int
  17587. main ()
  17588. {
  17589. ;
  17590. return 0;
  17591. }
  17592. _ACEOF
  17593. if ac_fn_c_try_link "$LINENO"; then :
  17594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17595. $as_echo "yes" >&6; }
  17596. X_LIBS="$X_LIBS -R $x_libraries"
  17597. else
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17599. $as_echo "neither works" >&6; }
  17600. fi
  17601. rm -f core conftest.err conftest.$ac_objext \
  17602. conftest$ac_exeext conftest.$ac_ext
  17603. fi
  17604. rm -f core conftest.err conftest.$ac_objext \
  17605. conftest$ac_exeext conftest.$ac_ext
  17606. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17607. LIBS=$ac_xsave_LIBS
  17608. fi
  17609. # Check for system-dependent libraries X programs must link with.
  17610. # Do this before checking for the system-independent R6 libraries
  17611. # (-lICE), since we may need -lsocket or whatever for X linking.
  17612. if test "$ISC" = yes; then
  17613. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17614. else
  17615. # Martyn Johnson says this is needed for Ultrix, if the X
  17616. # libraries were built with DECnet support. And Karl Berry says
  17617. # the Alpha needs dnet_stub (dnet does not exist).
  17618. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17620. /* end confdefs.h. */
  17621. /* Override any GCC internal prototype to avoid an error.
  17622. Use char because int might match the return type of a GCC
  17623. builtin and then its argument prototype would still apply. */
  17624. #ifdef __cplusplus
  17625. extern "C"
  17626. #endif
  17627. char XOpenDisplay ();
  17628. int
  17629. main ()
  17630. {
  17631. return XOpenDisplay ();
  17632. ;
  17633. return 0;
  17634. }
  17635. _ACEOF
  17636. if ac_fn_c_try_link "$LINENO"; then :
  17637. else
  17638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17639. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17640. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17641. $as_echo_n "(cached) " >&6
  17642. else
  17643. ac_check_lib_save_LIBS=$LIBS
  17644. LIBS="-ldnet $LIBS"
  17645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17646. /* end confdefs.h. */
  17647. /* Override any GCC internal prototype to avoid an error.
  17648. Use char because int might match the return type of a GCC
  17649. builtin and then its argument prototype would still apply. */
  17650. #ifdef __cplusplus
  17651. extern "C"
  17652. #endif
  17653. char dnet_ntoa ();
  17654. int
  17655. main ()
  17656. {
  17657. return dnet_ntoa ();
  17658. ;
  17659. return 0;
  17660. }
  17661. _ACEOF
  17662. if ac_fn_c_try_link "$LINENO"; then :
  17663. ac_cv_lib_dnet_dnet_ntoa=yes
  17664. else
  17665. ac_cv_lib_dnet_dnet_ntoa=no
  17666. fi
  17667. rm -f core conftest.err conftest.$ac_objext \
  17668. conftest$ac_exeext conftest.$ac_ext
  17669. LIBS=$ac_check_lib_save_LIBS
  17670. fi
  17671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17672. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17673. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17674. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17675. fi
  17676. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17678. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17679. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17680. $as_echo_n "(cached) " >&6
  17681. else
  17682. ac_check_lib_save_LIBS=$LIBS
  17683. LIBS="-ldnet_stub $LIBS"
  17684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17685. /* end confdefs.h. */
  17686. /* Override any GCC internal prototype to avoid an error.
  17687. Use char because int might match the return type of a GCC
  17688. builtin and then its argument prototype would still apply. */
  17689. #ifdef __cplusplus
  17690. extern "C"
  17691. #endif
  17692. char dnet_ntoa ();
  17693. int
  17694. main ()
  17695. {
  17696. return dnet_ntoa ();
  17697. ;
  17698. return 0;
  17699. }
  17700. _ACEOF
  17701. if ac_fn_c_try_link "$LINENO"; then :
  17702. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17703. else
  17704. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17705. fi
  17706. rm -f core conftest.err conftest.$ac_objext \
  17707. conftest$ac_exeext conftest.$ac_ext
  17708. LIBS=$ac_check_lib_save_LIBS
  17709. fi
  17710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17711. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17712. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17713. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17714. fi
  17715. fi
  17716. fi
  17717. rm -f core conftest.err conftest.$ac_objext \
  17718. conftest$ac_exeext conftest.$ac_ext
  17719. LIBS="$ac_xsave_LIBS"
  17720. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17721. # to get the SysV transport functions.
  17722. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17723. # needs -lnsl.
  17724. # The nsl library prevents programs from opening the X display
  17725. # on Irix 5.2, according to T.E. Dickey.
  17726. # The functions gethostbyname, getservbyname, and inet_addr are
  17727. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17728. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17729. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17730. fi
  17731. if test $ac_cv_func_gethostbyname = no; then
  17732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17733. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17734. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17735. $as_echo_n "(cached) " >&6
  17736. else
  17737. ac_check_lib_save_LIBS=$LIBS
  17738. LIBS="-lnsl $LIBS"
  17739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17740. /* end confdefs.h. */
  17741. /* Override any GCC internal prototype to avoid an error.
  17742. Use char because int might match the return type of a GCC
  17743. builtin and then its argument prototype would still apply. */
  17744. #ifdef __cplusplus
  17745. extern "C"
  17746. #endif
  17747. char gethostbyname ();
  17748. int
  17749. main ()
  17750. {
  17751. return gethostbyname ();
  17752. ;
  17753. return 0;
  17754. }
  17755. _ACEOF
  17756. if ac_fn_c_try_link "$LINENO"; then :
  17757. ac_cv_lib_nsl_gethostbyname=yes
  17758. else
  17759. ac_cv_lib_nsl_gethostbyname=no
  17760. fi
  17761. rm -f core conftest.err conftest.$ac_objext \
  17762. conftest$ac_exeext conftest.$ac_ext
  17763. LIBS=$ac_check_lib_save_LIBS
  17764. fi
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17766. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17767. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17768. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17769. fi
  17770. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17772. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17773. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17774. $as_echo_n "(cached) " >&6
  17775. else
  17776. ac_check_lib_save_LIBS=$LIBS
  17777. LIBS="-lbsd $LIBS"
  17778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17779. /* end confdefs.h. */
  17780. /* Override any GCC internal prototype to avoid an error.
  17781. Use char because int might match the return type of a GCC
  17782. builtin and then its argument prototype would still apply. */
  17783. #ifdef __cplusplus
  17784. extern "C"
  17785. #endif
  17786. char gethostbyname ();
  17787. int
  17788. main ()
  17789. {
  17790. return gethostbyname ();
  17791. ;
  17792. return 0;
  17793. }
  17794. _ACEOF
  17795. if ac_fn_c_try_link "$LINENO"; then :
  17796. ac_cv_lib_bsd_gethostbyname=yes
  17797. else
  17798. ac_cv_lib_bsd_gethostbyname=no
  17799. fi
  17800. rm -f core conftest.err conftest.$ac_objext \
  17801. conftest$ac_exeext conftest.$ac_ext
  17802. LIBS=$ac_check_lib_save_LIBS
  17803. fi
  17804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17805. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17806. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17807. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17808. fi
  17809. fi
  17810. fi
  17811. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17812. # socket/setsockopt and other routines are undefined under SCO ODT
  17813. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17814. # on later versions), says Simon Leinen: it contains gethostby*
  17815. # variants that don't use the name server (or something). -lsocket
  17816. # must be given before -lnsl if both are needed. We assume that
  17817. # if connect needs -lnsl, so does gethostbyname.
  17818. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17819. if test "x$ac_cv_func_connect" = xyes; then :
  17820. fi
  17821. if test $ac_cv_func_connect = no; then
  17822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17823. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17824. if ${ac_cv_lib_socket_connect+:} false; then :
  17825. $as_echo_n "(cached) " >&6
  17826. else
  17827. ac_check_lib_save_LIBS=$LIBS
  17828. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17830. /* end confdefs.h. */
  17831. /* Override any GCC internal prototype to avoid an error.
  17832. Use char because int might match the return type of a GCC
  17833. builtin and then its argument prototype would still apply. */
  17834. #ifdef __cplusplus
  17835. extern "C"
  17836. #endif
  17837. char connect ();
  17838. int
  17839. main ()
  17840. {
  17841. return connect ();
  17842. ;
  17843. return 0;
  17844. }
  17845. _ACEOF
  17846. if ac_fn_c_try_link "$LINENO"; then :
  17847. ac_cv_lib_socket_connect=yes
  17848. else
  17849. ac_cv_lib_socket_connect=no
  17850. fi
  17851. rm -f core conftest.err conftest.$ac_objext \
  17852. conftest$ac_exeext conftest.$ac_ext
  17853. LIBS=$ac_check_lib_save_LIBS
  17854. fi
  17855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17856. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17857. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17858. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17859. fi
  17860. fi
  17861. # Guillermo Gomez says -lposix is necessary on A/UX.
  17862. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17863. if test "x$ac_cv_func_remove" = xyes; then :
  17864. fi
  17865. if test $ac_cv_func_remove = no; then
  17866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17867. $as_echo_n "checking for remove in -lposix... " >&6; }
  17868. if ${ac_cv_lib_posix_remove+:} false; then :
  17869. $as_echo_n "(cached) " >&6
  17870. else
  17871. ac_check_lib_save_LIBS=$LIBS
  17872. LIBS="-lposix $LIBS"
  17873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17874. /* end confdefs.h. */
  17875. /* Override any GCC internal prototype to avoid an error.
  17876. Use char because int might match the return type of a GCC
  17877. builtin and then its argument prototype would still apply. */
  17878. #ifdef __cplusplus
  17879. extern "C"
  17880. #endif
  17881. char remove ();
  17882. int
  17883. main ()
  17884. {
  17885. return remove ();
  17886. ;
  17887. return 0;
  17888. }
  17889. _ACEOF
  17890. if ac_fn_c_try_link "$LINENO"; then :
  17891. ac_cv_lib_posix_remove=yes
  17892. else
  17893. ac_cv_lib_posix_remove=no
  17894. fi
  17895. rm -f core conftest.err conftest.$ac_objext \
  17896. conftest$ac_exeext conftest.$ac_ext
  17897. LIBS=$ac_check_lib_save_LIBS
  17898. fi
  17899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17900. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17901. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17902. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17903. fi
  17904. fi
  17905. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17906. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17907. if test "x$ac_cv_func_shmat" = xyes; then :
  17908. fi
  17909. if test $ac_cv_func_shmat = no; then
  17910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17911. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17912. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17913. $as_echo_n "(cached) " >&6
  17914. else
  17915. ac_check_lib_save_LIBS=$LIBS
  17916. LIBS="-lipc $LIBS"
  17917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17918. /* end confdefs.h. */
  17919. /* Override any GCC internal prototype to avoid an error.
  17920. Use char because int might match the return type of a GCC
  17921. builtin and then its argument prototype would still apply. */
  17922. #ifdef __cplusplus
  17923. extern "C"
  17924. #endif
  17925. char shmat ();
  17926. int
  17927. main ()
  17928. {
  17929. return shmat ();
  17930. ;
  17931. return 0;
  17932. }
  17933. _ACEOF
  17934. if ac_fn_c_try_link "$LINENO"; then :
  17935. ac_cv_lib_ipc_shmat=yes
  17936. else
  17937. ac_cv_lib_ipc_shmat=no
  17938. fi
  17939. rm -f core conftest.err conftest.$ac_objext \
  17940. conftest$ac_exeext conftest.$ac_ext
  17941. LIBS=$ac_check_lib_save_LIBS
  17942. fi
  17943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17944. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17945. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17946. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17947. fi
  17948. fi
  17949. fi
  17950. # Check for libraries that X11R6 Xt/Xaw programs need.
  17951. ac_save_LDFLAGS=$LDFLAGS
  17952. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17953. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17954. # check for ICE first), but we must link in the order -lSM -lICE or
  17955. # we get undefined symbols. So assume we have SM if we have ICE.
  17956. # These have to be linked with before -lX11, unlike the other
  17957. # libraries we check for below, so use a different variable.
  17958. # John Interrante, Karl Berry
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17960. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17961. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17962. $as_echo_n "(cached) " >&6
  17963. else
  17964. ac_check_lib_save_LIBS=$LIBS
  17965. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17967. /* end confdefs.h. */
  17968. /* Override any GCC internal prototype to avoid an error.
  17969. Use char because int might match the return type of a GCC
  17970. builtin and then its argument prototype would still apply. */
  17971. #ifdef __cplusplus
  17972. extern "C"
  17973. #endif
  17974. char IceConnectionNumber ();
  17975. int
  17976. main ()
  17977. {
  17978. return IceConnectionNumber ();
  17979. ;
  17980. return 0;
  17981. }
  17982. _ACEOF
  17983. if ac_fn_c_try_link "$LINENO"; then :
  17984. ac_cv_lib_ICE_IceConnectionNumber=yes
  17985. else
  17986. ac_cv_lib_ICE_IceConnectionNumber=no
  17987. fi
  17988. rm -f core conftest.err conftest.$ac_objext \
  17989. conftest$ac_exeext conftest.$ac_ext
  17990. LIBS=$ac_check_lib_save_LIBS
  17991. fi
  17992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17993. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17994. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17995. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17996. fi
  17997. LDFLAGS=$ac_save_LDFLAGS
  17998. fi
  17999. if test x$have_x = xyes; then
  18000. # Check whether --enable-x11-shared was given.
  18001. if test "${enable_x11_shared+set}" = set; then :
  18002. enableval=$enable_x11_shared;
  18003. else
  18004. enable_x11_shared=maybe
  18005. fi
  18006. case "$host" in
  18007. *-*-darwin*)
  18008. # Apple now puts this in /opt/X11
  18009. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18010. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18011. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18012. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18013. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18014. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18015. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18016. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18017. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18018. ;;
  18019. *-*-openbsd*)
  18020. x11_lib='libX11.so'
  18021. x11ext_lib='libXext.so'
  18022. xcursor_lib='libXcursor.so'
  18023. xinerama_lib='libXinerama.so'
  18024. xinput_lib='libXi.so'
  18025. xrandr_lib='libXrandr.so'
  18026. xrender_lib='libXrender.so'
  18027. xss_lib='libXss.so'
  18028. xvidmode_lib='libXxf86vm.so'
  18029. ;;
  18030. *)
  18031. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18032. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18033. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18034. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18035. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18036. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18037. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18038. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18039. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18040. ;;
  18041. esac
  18042. if test x$ac_cv_func_shmat != xyes; then
  18043. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18044. fi
  18045. CFLAGS="$CFLAGS $X_CFLAGS"
  18046. LDFLAGS="$LDFLAGS $X_LIBS"
  18047. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18048. #include <X11/Xproto.h>
  18049. "
  18050. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18051. have_xext_h_hdr=yes
  18052. else
  18053. have_xext_h_hdr=no
  18054. fi
  18055. if test x$have_xext_h_hdr != xyes; then
  18056. as_fn_error $? "
  18057. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18058. " "$LINENO" 5
  18059. fi
  18060. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18061. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18062. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18063. # Needed so SDL applications can include SDL_syswm.h
  18064. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18065. if test x$enable_x11_shared = xmaybe; then
  18066. enable_x11_shared=yes
  18067. fi
  18068. if test x$have_loadso != xyes && \
  18069. test x$enable_x11_shared = xyes; then
  18070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18071. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18072. enable_x11_shared=no
  18073. fi
  18074. if test x$have_loadso = xyes && \
  18075. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18076. echo "-- dynamic libX11 -> $x11_lib"
  18077. echo "-- dynamic libX11ext -> $x11ext_lib"
  18078. cat >>confdefs.h <<_ACEOF
  18079. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18080. _ACEOF
  18081. cat >>confdefs.h <<_ACEOF
  18082. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18083. _ACEOF
  18084. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18085. else
  18086. enable_x11_shared=no
  18087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18088. SUMMARY_video="${SUMMARY_video} x11"
  18089. fi
  18090. have_video=yes
  18091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  18092. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  18093. have_const_param_XextAddDisplay=no
  18094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18095. /* end confdefs.h. */
  18096. #include <X11/Xlib.h>
  18097. #include <X11/Xproto.h>
  18098. #include <X11/extensions/Xext.h>
  18099. #include <X11/extensions/extutil.h>
  18100. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  18101. int
  18102. main ()
  18103. {
  18104. ;
  18105. return 0;
  18106. }
  18107. _ACEOF
  18108. if ac_fn_c_try_compile "$LINENO"; then :
  18109. have_const_param_XextAddDisplay=yes
  18110. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  18111. fi
  18112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  18114. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  18115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18116. $as_echo_n "checking for XGenericEvent... " >&6; }
  18117. have_XGenericEvent=no
  18118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18119. /* end confdefs.h. */
  18120. #include <X11/Xlib.h>
  18121. int
  18122. main ()
  18123. {
  18124. Display *display;
  18125. XEvent event;
  18126. XGenericEventCookie *cookie = &event.xcookie;
  18127. XNextEvent(display, &event);
  18128. XGetEventData(display, cookie);
  18129. XFreeEventData(display, cookie);
  18130. ;
  18131. return 0;
  18132. }
  18133. _ACEOF
  18134. if ac_fn_c_try_compile "$LINENO"; then :
  18135. have_XGenericEvent=yes
  18136. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18137. fi
  18138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18140. $as_echo "$have_XGenericEvent" >&6; }
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18142. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18143. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18144. $as_echo_n "(cached) " >&6
  18145. else
  18146. ac_check_lib_save_LIBS=$LIBS
  18147. LIBS="-lX11 $LIBS"
  18148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18149. /* end confdefs.h. */
  18150. /* Override any GCC internal prototype to avoid an error.
  18151. Use char because int might match the return type of a GCC
  18152. builtin and then its argument prototype would still apply. */
  18153. #ifdef __cplusplus
  18154. extern "C"
  18155. #endif
  18156. char XkbKeycodeToKeysym ();
  18157. int
  18158. main ()
  18159. {
  18160. return XkbKeycodeToKeysym ();
  18161. ;
  18162. return 0;
  18163. }
  18164. _ACEOF
  18165. if ac_fn_c_try_link "$LINENO"; then :
  18166. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18167. else
  18168. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18169. fi
  18170. rm -f core conftest.err conftest.$ac_objext \
  18171. conftest$ac_exeext conftest.$ac_ext
  18172. LIBS=$ac_check_lib_save_LIBS
  18173. fi
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18175. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18176. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18177. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18178. fi
  18179. # Check whether --enable-video-x11-xcursor was given.
  18180. if test "${enable_video_x11_xcursor+set}" = set; then :
  18181. enableval=$enable_video_x11_xcursor;
  18182. else
  18183. enable_video_x11_xcursor=yes
  18184. fi
  18185. if test x$enable_video_x11_xcursor = xyes; then
  18186. definitely_enable_video_x11_xcursor=no
  18187. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18188. "
  18189. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18190. have_xcursor_h_hdr=yes
  18191. else
  18192. have_xcursor_h_hdr=no
  18193. fi
  18194. if test x$have_xcursor_h_hdr = xyes; then
  18195. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18196. echo "-- dynamic libXcursor -> $xcursor_lib"
  18197. cat >>confdefs.h <<_ACEOF
  18198. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18199. _ACEOF
  18200. definitely_enable_video_x11_xcursor=yes
  18201. else
  18202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18203. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18204. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18205. $as_echo_n "(cached) " >&6
  18206. else
  18207. ac_check_lib_save_LIBS=$LIBS
  18208. LIBS="-lXcursor $LIBS"
  18209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18210. /* end confdefs.h. */
  18211. /* Override any GCC internal prototype to avoid an error.
  18212. Use char because int might match the return type of a GCC
  18213. builtin and then its argument prototype would still apply. */
  18214. #ifdef __cplusplus
  18215. extern "C"
  18216. #endif
  18217. char XcursorImageCreate ();
  18218. int
  18219. main ()
  18220. {
  18221. return XcursorImageCreate ();
  18222. ;
  18223. return 0;
  18224. }
  18225. _ACEOF
  18226. if ac_fn_c_try_link "$LINENO"; then :
  18227. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18228. else
  18229. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18230. fi
  18231. rm -f core conftest.err conftest.$ac_objext \
  18232. conftest$ac_exeext conftest.$ac_ext
  18233. LIBS=$ac_check_lib_save_LIBS
  18234. fi
  18235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18236. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18237. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18238. have_xcursor_lib=yes
  18239. fi
  18240. if test x$have_xcursor_lib = xyes ; then
  18241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18242. definitely_enable_video_x11_xcursor=yes
  18243. fi
  18244. fi
  18245. fi
  18246. fi
  18247. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18248. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18249. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18250. fi
  18251. # Check whether --enable-video-x11-xdbe was given.
  18252. if test "${enable_video_x11_xdbe+set}" = set; then :
  18253. enableval=$enable_video_x11_xdbe;
  18254. else
  18255. enable_video_x11_xdbe=yes
  18256. fi
  18257. if test x$enable_video_x11_xdbe = xyes; then
  18258. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18259. "
  18260. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18261. have_dbe_h_hdr=yes
  18262. else
  18263. have_dbe_h_hdr=no
  18264. fi
  18265. if test x$have_dbe_h_hdr = xyes; then
  18266. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18267. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18268. fi
  18269. fi
  18270. # Check whether --enable-video-x11-xinerama was given.
  18271. if test "${enable_video_x11_xinerama+set}" = set; then :
  18272. enableval=$enable_video_x11_xinerama;
  18273. else
  18274. enable_video_x11_xinerama=yes
  18275. fi
  18276. if test x$enable_video_x11_xinerama = xyes; then
  18277. definitely_enable_video_x11_xinerama=no
  18278. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18279. "
  18280. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18281. have_xinerama_h_hdr=yes
  18282. else
  18283. have_xinerama_h_hdr=no
  18284. fi
  18285. if test x$have_xinerama_h_hdr = xyes; then
  18286. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18287. echo "-- dynamic libXinerama -> $xinerama_lib"
  18288. cat >>confdefs.h <<_ACEOF
  18289. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18290. _ACEOF
  18291. definitely_enable_video_x11_xinerama=yes
  18292. else
  18293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18294. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18295. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18296. $as_echo_n "(cached) " >&6
  18297. else
  18298. ac_check_lib_save_LIBS=$LIBS
  18299. LIBS="-lXinerama $LIBS"
  18300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18301. /* end confdefs.h. */
  18302. /* Override any GCC internal prototype to avoid an error.
  18303. Use char because int might match the return type of a GCC
  18304. builtin and then its argument prototype would still apply. */
  18305. #ifdef __cplusplus
  18306. extern "C"
  18307. #endif
  18308. char XineramaQueryExtension ();
  18309. int
  18310. main ()
  18311. {
  18312. return XineramaQueryExtension ();
  18313. ;
  18314. return 0;
  18315. }
  18316. _ACEOF
  18317. if ac_fn_c_try_link "$LINENO"; then :
  18318. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18319. else
  18320. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18321. fi
  18322. rm -f core conftest.err conftest.$ac_objext \
  18323. conftest$ac_exeext conftest.$ac_ext
  18324. LIBS=$ac_check_lib_save_LIBS
  18325. fi
  18326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18327. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18328. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18329. have_xinerama_lib=yes
  18330. fi
  18331. if test x$have_xinerama_lib = xyes ; then
  18332. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18333. definitely_enable_video_x11_xinerama=yes
  18334. fi
  18335. fi
  18336. fi
  18337. fi
  18338. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18339. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18340. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18341. fi
  18342. # Check whether --enable-video-x11-xinput was given.
  18343. if test "${enable_video_x11_xinput+set}" = set; then :
  18344. enableval=$enable_video_x11_xinput;
  18345. else
  18346. enable_video_x11_xinput=yes
  18347. fi
  18348. if test x$enable_video_x11_xinput = xyes; then
  18349. definitely_enable_video_x11_xinput=no
  18350. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18351. "
  18352. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18353. have_xinput_h_hdr=yes
  18354. else
  18355. have_xinput_h_hdr=no
  18356. fi
  18357. if test x$have_xinput_h_hdr = xyes; then
  18358. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18359. echo "-- dynamic libXi -> $xinput_lib"
  18360. cat >>confdefs.h <<_ACEOF
  18361. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18362. _ACEOF
  18363. definitely_enable_video_x11_xinput=yes
  18364. else
  18365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18366. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18367. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18368. $as_echo_n "(cached) " >&6
  18369. else
  18370. ac_check_lib_save_LIBS=$LIBS
  18371. LIBS="-lXi $LIBS"
  18372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18373. /* end confdefs.h. */
  18374. /* Override any GCC internal prototype to avoid an error.
  18375. Use char because int might match the return type of a GCC
  18376. builtin and then its argument prototype would still apply. */
  18377. #ifdef __cplusplus
  18378. extern "C"
  18379. #endif
  18380. char XOpenDevice ();
  18381. int
  18382. main ()
  18383. {
  18384. return XOpenDevice ();
  18385. ;
  18386. return 0;
  18387. }
  18388. _ACEOF
  18389. if ac_fn_c_try_link "$LINENO"; then :
  18390. ac_cv_lib_Xi_XOpenDevice=yes
  18391. else
  18392. ac_cv_lib_Xi_XOpenDevice=no
  18393. fi
  18394. rm -f core conftest.err conftest.$ac_objext \
  18395. conftest$ac_exeext conftest.$ac_ext
  18396. LIBS=$ac_check_lib_save_LIBS
  18397. fi
  18398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18399. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18400. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18401. have_xinput_lib=yes
  18402. fi
  18403. if test x$have_xinput_lib = xyes ; then
  18404. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18405. definitely_enable_video_x11_xinput=yes
  18406. fi
  18407. fi
  18408. fi
  18409. fi
  18410. if test x$definitely_enable_video_x11_xinput = xyes; then
  18411. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18412. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18414. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18415. have_xinput2_multitouch=no
  18416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18417. /* end confdefs.h. */
  18418. #include <X11/Xlib.h>
  18419. #include <X11/Xproto.h>
  18420. #include <X11/extensions/XInput2.h>
  18421. int
  18422. main ()
  18423. {
  18424. int event_type = XI_TouchBegin;
  18425. XITouchClassInfo *t;
  18426. ;
  18427. return 0;
  18428. }
  18429. _ACEOF
  18430. if ac_fn_c_try_compile "$LINENO"; then :
  18431. have_xinput2_multitouch=yes
  18432. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18433. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18434. fi
  18435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18437. $as_echo "$have_xinput2_multitouch" >&6; }
  18438. fi
  18439. # Check whether --enable-video-x11-xrandr was given.
  18440. if test "${enable_video_x11_xrandr+set}" = set; then :
  18441. enableval=$enable_video_x11_xrandr;
  18442. else
  18443. enable_video_x11_xrandr=yes
  18444. fi
  18445. if test x$enable_video_x11_xrandr = xyes; then
  18446. definitely_enable_video_x11_xrandr=no
  18447. have_xrandr_h_hdr=no
  18448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18449. /* end confdefs.h. */
  18450. #include <X11/Xlib.h>
  18451. #include <X11/extensions/Xrandr.h>
  18452. int
  18453. main ()
  18454. {
  18455. XRRScreenResources *res = NULL;
  18456. ;
  18457. return 0;
  18458. }
  18459. _ACEOF
  18460. if ac_fn_c_try_compile "$LINENO"; then :
  18461. have_xrandr_h_hdr=yes
  18462. fi
  18463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18464. if test x$have_xrandr_h_hdr = xyes; then
  18465. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18466. echo "-- dynamic libXrandr -> $xrandr_lib"
  18467. cat >>confdefs.h <<_ACEOF
  18468. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18469. _ACEOF
  18470. definitely_enable_video_x11_xrandr=yes
  18471. else
  18472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18473. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18474. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18475. $as_echo_n "(cached) " >&6
  18476. else
  18477. ac_check_lib_save_LIBS=$LIBS
  18478. LIBS="-lXrandr $LIBS"
  18479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18480. /* end confdefs.h. */
  18481. /* Override any GCC internal prototype to avoid an error.
  18482. Use char because int might match the return type of a GCC
  18483. builtin and then its argument prototype would still apply. */
  18484. #ifdef __cplusplus
  18485. extern "C"
  18486. #endif
  18487. char XRRQueryExtension ();
  18488. int
  18489. main ()
  18490. {
  18491. return XRRQueryExtension ();
  18492. ;
  18493. return 0;
  18494. }
  18495. _ACEOF
  18496. if ac_fn_c_try_link "$LINENO"; then :
  18497. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18498. else
  18499. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18500. fi
  18501. rm -f core conftest.err conftest.$ac_objext \
  18502. conftest$ac_exeext conftest.$ac_ext
  18503. LIBS=$ac_check_lib_save_LIBS
  18504. fi
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18506. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18507. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18508. have_xrandr_lib=yes
  18509. fi
  18510. if test x$have_xrandr_lib = xyes ; then
  18511. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18512. definitely_enable_video_x11_xrandr=yes
  18513. fi
  18514. fi
  18515. fi
  18516. fi
  18517. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18518. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18519. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18520. fi
  18521. # Check whether --enable-video-x11-scrnsaver was given.
  18522. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18523. enableval=$enable_video_x11_scrnsaver;
  18524. else
  18525. enable_video_x11_scrnsaver=yes
  18526. fi
  18527. if test x$enable_video_x11_scrnsaver = xyes; then
  18528. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18529. "
  18530. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18531. have_scrnsaver_h_hdr=yes
  18532. else
  18533. have_scrnsaver_h_hdr=no
  18534. fi
  18535. if test x$have_scrnsaver_h_hdr = xyes; then
  18536. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18537. echo "-- dynamic libXss -> $xss_lib"
  18538. cat >>confdefs.h <<_ACEOF
  18539. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18540. _ACEOF
  18541. definitely_enable_video_x11_scrnsaver=yes
  18542. else
  18543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18544. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18545. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18546. $as_echo_n "(cached) " >&6
  18547. else
  18548. ac_check_lib_save_LIBS=$LIBS
  18549. LIBS="-lXss $LIBS"
  18550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18551. /* end confdefs.h. */
  18552. /* Override any GCC internal prototype to avoid an error.
  18553. Use char because int might match the return type of a GCC
  18554. builtin and then its argument prototype would still apply. */
  18555. #ifdef __cplusplus
  18556. extern "C"
  18557. #endif
  18558. char XScreenSaverSuspend ();
  18559. int
  18560. main ()
  18561. {
  18562. return XScreenSaverSuspend ();
  18563. ;
  18564. return 0;
  18565. }
  18566. _ACEOF
  18567. if ac_fn_c_try_link "$LINENO"; then :
  18568. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18569. else
  18570. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18571. fi
  18572. rm -f core conftest.err conftest.$ac_objext \
  18573. conftest$ac_exeext conftest.$ac_ext
  18574. LIBS=$ac_check_lib_save_LIBS
  18575. fi
  18576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18577. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18578. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18579. have_xss_lib=yes
  18580. fi
  18581. if test x$have_xss_lib = xyes ; then
  18582. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18583. definitely_enable_video_x11_scrnsaver=yes
  18584. fi
  18585. fi
  18586. fi
  18587. fi
  18588. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18589. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18590. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18591. fi
  18592. # Check whether --enable-video-x11-xshape was given.
  18593. if test "${enable_video_x11_xshape+set}" = set; then :
  18594. enableval=$enable_video_x11_xshape;
  18595. else
  18596. enable_video_x11_xshape=yes
  18597. fi
  18598. if test x$enable_video_x11_xshape = xyes; then
  18599. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18600. "
  18601. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18602. have_shape_h_hdr=yes
  18603. else
  18604. have_shape_h_hdr=no
  18605. fi
  18606. if test x$have_shape_h_hdr = xyes; then
  18607. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18608. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18609. fi
  18610. fi
  18611. # Check whether --enable-video-x11-vm was given.
  18612. if test "${enable_video_x11_vm+set}" = set; then :
  18613. enableval=$enable_video_x11_vm;
  18614. else
  18615. enable_video_x11_vm=yes
  18616. fi
  18617. if test x$enable_video_x11_vm = xyes; then
  18618. definitely_enable_video_x11_vm=no
  18619. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18620. "
  18621. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18622. have_vm_h_hdr=yes
  18623. else
  18624. have_vm_h_hdr=no
  18625. fi
  18626. if test x$have_vm_h_hdr = xyes; then
  18627. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18628. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18629. cat >>confdefs.h <<_ACEOF
  18630. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18631. _ACEOF
  18632. definitely_enable_video_x11_vm=yes
  18633. else
  18634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18635. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18636. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18637. $as_echo_n "(cached) " >&6
  18638. else
  18639. ac_check_lib_save_LIBS=$LIBS
  18640. LIBS="-lXxf86vm $LIBS"
  18641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18642. /* end confdefs.h. */
  18643. /* Override any GCC internal prototype to avoid an error.
  18644. Use char because int might match the return type of a GCC
  18645. builtin and then its argument prototype would still apply. */
  18646. #ifdef __cplusplus
  18647. extern "C"
  18648. #endif
  18649. char XF86VidModeQueryVersion ();
  18650. int
  18651. main ()
  18652. {
  18653. return XF86VidModeQueryVersion ();
  18654. ;
  18655. return 0;
  18656. }
  18657. _ACEOF
  18658. if ac_fn_c_try_link "$LINENO"; then :
  18659. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18660. else
  18661. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18662. fi
  18663. rm -f core conftest.err conftest.$ac_objext \
  18664. conftest$ac_exeext conftest.$ac_ext
  18665. LIBS=$ac_check_lib_save_LIBS
  18666. fi
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18668. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18669. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18670. have_vm_lib=yes
  18671. fi
  18672. if test x$have_vm_lib = xyes ; then
  18673. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18674. definitely_enable_video_x11_vm=yes
  18675. fi
  18676. fi
  18677. fi
  18678. fi
  18679. if test x$definitely_enable_video_x11_vm = xyes; then
  18680. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18681. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18682. fi
  18683. fi
  18684. fi
  18685. if test x$have_x != xyes; then
  18686. # Prevent Mesa from including X11 headers
  18687. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18688. fi
  18689. }
  18690. CheckVivanteVideo()
  18691. {
  18692. # Check whether --enable-video-vivante was given.
  18693. if test "${enable_video_vivante+set}" = set; then :
  18694. enableval=$enable_video_vivante;
  18695. else
  18696. enable_video_vivante=yes
  18697. fi
  18698. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18700. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18701. have_vivante_vdk=no
  18702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18703. /* end confdefs.h. */
  18704. #define LINUX
  18705. #define EGL_API_FB
  18706. #include <gc_vdk.h>
  18707. int
  18708. main ()
  18709. {
  18710. ;
  18711. return 0;
  18712. }
  18713. _ACEOF
  18714. if ac_fn_c_try_compile "$LINENO"; then :
  18715. have_vivante_vdk=yes
  18716. fi
  18717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18719. $as_echo "$have_vivante_vdk" >&6; }
  18720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18721. $as_echo_n "checking for Vivante FB API... " >&6; }
  18722. have_vivante_egl=no
  18723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18724. /* end confdefs.h. */
  18725. #define LINUX
  18726. #define EGL_API_FB
  18727. #include <EGL/eglvivante.h>
  18728. int
  18729. main ()
  18730. {
  18731. ;
  18732. return 0;
  18733. }
  18734. _ACEOF
  18735. if ac_fn_c_try_compile "$LINENO"; then :
  18736. have_vivante_egl=yes
  18737. fi
  18738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18740. $as_echo "$have_vivante_egl" >&6; }
  18741. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18742. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18743. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18744. if test x$have_vivante_vdk = xyes; then
  18745. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18747. fi
  18748. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18749. SUMMARY_video="${SUMMARY_video} vivante"
  18750. have_video=yes
  18751. fi
  18752. fi
  18753. }
  18754. CheckHaikuVideo()
  18755. {
  18756. if test x$enable_video = xyes; then
  18757. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18758. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18759. have_video=yes
  18760. SUMMARY_video="${SUMMARY_video} haiku"
  18761. fi
  18762. }
  18763. CheckCOCOA()
  18764. {
  18765. # Check whether --enable-video-cocoa was given.
  18766. if test "${enable_video_cocoa+set}" = set; then :
  18767. enableval=$enable_video_cocoa;
  18768. else
  18769. enable_video_cocoa=yes
  18770. fi
  18771. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18772. save_CFLAGS="$CFLAGS"
  18773. CFLAGS="$CFLAGS -x objective-c"
  18774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18775. $as_echo_n "checking for Cocoa framework... " >&6; }
  18776. have_cocoa=no
  18777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18778. /* end confdefs.h. */
  18779. #import <Cocoa/Cocoa.h>
  18780. int
  18781. main ()
  18782. {
  18783. ;
  18784. return 0;
  18785. }
  18786. _ACEOF
  18787. if ac_fn_c_try_compile "$LINENO"; then :
  18788. have_cocoa=yes
  18789. fi
  18790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18792. $as_echo "$have_cocoa" >&6; }
  18793. CFLAGS="$save_CFLAGS"
  18794. if test x$have_cocoa = xyes; then
  18795. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18796. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18797. SUMMARY_video="${SUMMARY_video} cocoa"
  18798. have_video=yes
  18799. fi
  18800. fi
  18801. }
  18802. CheckMETAL()
  18803. {
  18804. # Check whether --enable-video-metal was given.
  18805. if test "${enable_video_metal+set}" = set; then :
  18806. enableval=$enable_video_metal;
  18807. else
  18808. enable_video_metal=yes
  18809. fi
  18810. # Check whether --enable-render-metal was given.
  18811. if test "${enable_render_metal+set}" = set; then :
  18812. enableval=$enable_render_metal;
  18813. else
  18814. enable_render_metal=yes
  18815. fi
  18816. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18817. save_CFLAGS="$CFLAGS"
  18818. CFLAGS="$CFLAGS -x objective-c"
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18820. $as_echo_n "checking for Metal framework... " >&6; }
  18821. have_metal=no
  18822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18823. /* end confdefs.h. */
  18824. #import <Cocoa/Cocoa.h>
  18825. #import <Metal/Metal.h>
  18826. #import <QuartzCore/CAMetalLayer.h>
  18827. #if TARGET_CPU_X86
  18828. #error Metal doesn't work on this configuration
  18829. #endif
  18830. int
  18831. main ()
  18832. {
  18833. ;
  18834. return 0;
  18835. }
  18836. _ACEOF
  18837. if ac_fn_c_try_compile "$LINENO"; then :
  18838. have_metal=yes
  18839. fi
  18840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18841. CFLAGS="$save_CFLAGS"
  18842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18843. $as_echo "$have_metal" >&6; }
  18844. if test x$have_metal = xyes; then
  18845. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18846. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18847. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18848. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18849. fi
  18850. SUMMARY_video="${SUMMARY_video} metal"
  18851. else
  18852. enable_video_metal=no
  18853. enable_render_metal=no
  18854. fi
  18855. fi
  18856. }
  18857. CheckDirectFB()
  18858. {
  18859. # Check whether --enable-video-directfb was given.
  18860. if test "${enable_video_directfb+set}" = set; then :
  18861. enableval=$enable_video_directfb;
  18862. else
  18863. enable_video_directfb=no
  18864. fi
  18865. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18866. pkg_failed=no
  18867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18868. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18869. if test -n "$DIRECTFB_CFLAGS"; then
  18870. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18871. elif test -n "$PKG_CONFIG"; then
  18872. if test -n "$PKG_CONFIG" && \
  18873. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18874. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18875. ac_status=$?
  18876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18877. test $ac_status = 0; }; then
  18878. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18879. test "x$?" != "x0" && pkg_failed=yes
  18880. else
  18881. pkg_failed=yes
  18882. fi
  18883. else
  18884. pkg_failed=untried
  18885. fi
  18886. if test -n "$DIRECTFB_LIBS"; then
  18887. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18888. elif test -n "$PKG_CONFIG"; then
  18889. if test -n "$PKG_CONFIG" && \
  18890. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18891. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18892. ac_status=$?
  18893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18894. test $ac_status = 0; }; then
  18895. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18896. test "x$?" != "x0" && pkg_failed=yes
  18897. else
  18898. pkg_failed=yes
  18899. fi
  18900. else
  18901. pkg_failed=untried
  18902. fi
  18903. if test $pkg_failed = yes; then
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18905. $as_echo "no" >&6; }
  18906. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18907. _pkg_short_errors_supported=yes
  18908. else
  18909. _pkg_short_errors_supported=no
  18910. fi
  18911. if test $_pkg_short_errors_supported = yes; then
  18912. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18913. else
  18914. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18915. fi
  18916. # Put the nasty error message in config.log where it belongs
  18917. echo "$DIRECTFB_PKG_ERRORS" >&5
  18918. video_directfb=no
  18919. elif test $pkg_failed = untried; then
  18920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18921. $as_echo "no" >&6; }
  18922. video_directfb=no
  18923. else
  18924. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18925. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18927. $as_echo "yes" >&6; }
  18928. video_directfb=yes
  18929. fi
  18930. if test x$video_directfb = xyes; then
  18931. # SuSE 11.1 installs directfb-config without directfb-devel
  18932. save_CPPFLAGS="$CPPFLAGS"
  18933. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18934. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18935. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18936. have_directfb_hdr=yes
  18937. else
  18938. have_directfb_hdr=no
  18939. fi
  18940. CPPFLAGS="$save_CPPFLAGS"
  18941. video_directfb=$have_directfb_hdr
  18942. fi
  18943. if test x$video_directfb = xyes; then
  18944. # Check whether --enable-directfb-shared was given.
  18945. if test "${enable_directfb_shared+set}" = set; then :
  18946. enableval=$enable_directfb_shared;
  18947. else
  18948. enable_directfb_shared=yes
  18949. fi
  18950. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18951. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18952. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18953. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18954. directfb_shared=no
  18955. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18956. if test x$have_loadso != xyes && \
  18957. test x$enable_directfb_shared = xyes; then
  18958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18959. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18960. fi
  18961. if test x$have_loadso = xyes && \
  18962. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18963. directfb_shared=yes
  18964. echo "-- dynamic libdirectfb -> $directfb_lib"
  18965. cat >>confdefs.h <<_ACEOF
  18966. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18967. _ACEOF
  18968. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18969. else
  18970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18971. SUMMARY_video="${SUMMARY_video} directfb"
  18972. fi
  18973. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18974. have_video=yes
  18975. fi
  18976. fi
  18977. }
  18978. CheckKMSDRM()
  18979. {
  18980. # Check whether --enable-video-kmsdrm was given.
  18981. if test "${enable_video_kmsdrm+set}" = set; then :
  18982. enableval=$enable_video_kmsdrm;
  18983. else
  18984. enable_video_kmsdrm=yes
  18985. fi
  18986. if test x$enable_video = xyes && \
  18987. test x$enable_video_kmsdrm = xyes && \
  18988. test x$video_opengl_egl = xyes; then
  18989. video_kmsdrm=no
  18990. pkg_failed=no
  18991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  18992. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  18993. if test -n "$LIBDRM_CFLAGS"; then
  18994. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18995. elif test -n "$PKG_CONFIG"; then
  18996. if test -n "$PKG_CONFIG" && \
  18997. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18998. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18999. ac_status=$?
  19000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19001. test $ac_status = 0; }; then
  19002. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19003. test "x$?" != "x0" && pkg_failed=yes
  19004. else
  19005. pkg_failed=yes
  19006. fi
  19007. else
  19008. pkg_failed=untried
  19009. fi
  19010. if test -n "$LIBDRM_LIBS"; then
  19011. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19012. elif test -n "$PKG_CONFIG"; then
  19013. if test -n "$PKG_CONFIG" && \
  19014. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19015. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19016. ac_status=$?
  19017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19018. test $ac_status = 0; }; then
  19019. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19020. test "x$?" != "x0" && pkg_failed=yes
  19021. else
  19022. pkg_failed=yes
  19023. fi
  19024. else
  19025. pkg_failed=untried
  19026. fi
  19027. if test $pkg_failed = yes; then
  19028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19029. $as_echo "no" >&6; }
  19030. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19031. _pkg_short_errors_supported=yes
  19032. else
  19033. _pkg_short_errors_supported=no
  19034. fi
  19035. if test $_pkg_short_errors_supported = yes; then
  19036. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19037. else
  19038. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19039. fi
  19040. # Put the nasty error message in config.log where it belongs
  19041. echo "$LIBDRM_PKG_ERRORS" >&5
  19042. libdrm_avail=no
  19043. elif test $pkg_failed = untried; then
  19044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19045. $as_echo "no" >&6; }
  19046. libdrm_avail=no
  19047. else
  19048. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19049. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19051. $as_echo "yes" >&6; }
  19052. libdrm_avail=yes
  19053. fi
  19054. pkg_failed=no
  19055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19056. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19057. if test -n "$LIBGBM_CFLAGS"; then
  19058. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19059. elif test -n "$PKG_CONFIG"; then
  19060. if test -n "$PKG_CONFIG" && \
  19061. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19062. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19063. ac_status=$?
  19064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19065. test $ac_status = 0; }; then
  19066. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19067. test "x$?" != "x0" && pkg_failed=yes
  19068. else
  19069. pkg_failed=yes
  19070. fi
  19071. else
  19072. pkg_failed=untried
  19073. fi
  19074. if test -n "$LIBGBM_LIBS"; then
  19075. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19076. elif test -n "$PKG_CONFIG"; then
  19077. if test -n "$PKG_CONFIG" && \
  19078. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19079. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19080. ac_status=$?
  19081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19082. test $ac_status = 0; }; then
  19083. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19084. test "x$?" != "x0" && pkg_failed=yes
  19085. else
  19086. pkg_failed=yes
  19087. fi
  19088. else
  19089. pkg_failed=untried
  19090. fi
  19091. if test $pkg_failed = yes; then
  19092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19093. $as_echo "no" >&6; }
  19094. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19095. _pkg_short_errors_supported=yes
  19096. else
  19097. _pkg_short_errors_supported=no
  19098. fi
  19099. if test $_pkg_short_errors_supported = yes; then
  19100. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19101. else
  19102. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19103. fi
  19104. # Put the nasty error message in config.log where it belongs
  19105. echo "$LIBGBM_PKG_ERRORS" >&5
  19106. libgbm_avail=no
  19107. elif test $pkg_failed = untried; then
  19108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19109. $as_echo "no" >&6; }
  19110. libgbm_avail=no
  19111. else
  19112. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19113. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19115. $as_echo "yes" >&6; }
  19116. libgbm_avail=yes
  19117. fi
  19118. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19119. video_kmsdrm=yes
  19120. fi
  19121. if test x$video_kmsdrm = xyes; then
  19122. # Check whether --enable-kmsdrm-shared was given.
  19123. if test "${enable_kmsdrm_shared+set}" = set; then :
  19124. enableval=$enable_kmsdrm_shared;
  19125. else
  19126. enable_kmsdrm_shared=yes
  19127. fi
  19128. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19129. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19130. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19132. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19133. kmsdrm_shared=no
  19134. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  19135. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  19136. if test x$have_loadso != xyes && \
  19137. test x$enable_kmsdrm_shared = xyes; then
  19138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19139. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19140. fi
  19141. if test x$have_loadso = xyes && \
  19142. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19143. kmsdrm_shared=yes
  19144. cat >>confdefs.h <<_ACEOF
  19145. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19146. _ACEOF
  19147. cat >>confdefs.h <<_ACEOF
  19148. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19149. _ACEOF
  19150. cat >>confdefs.h <<_ACEOF
  19151. #define HAVE_KMSDRM_SHARED "TRUE"
  19152. _ACEOF
  19153. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19154. else
  19155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19156. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19157. fi
  19158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19159. $as_echo "$kmsdrm_shared" >&6; }
  19160. have_video=yes
  19161. fi
  19162. fi
  19163. }
  19164. CheckDummyVideo()
  19165. {
  19166. # Check whether --enable-video-dummy was given.
  19167. if test "${enable_video_dummy+set}" = set; then :
  19168. enableval=$enable_video_dummy;
  19169. else
  19170. enable_video_dummy=yes
  19171. fi
  19172. if test x$enable_video_dummy = xyes; then
  19173. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19174. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19175. have_video=yes
  19176. SUMMARY_video="${SUMMARY_video} dummy"
  19177. fi
  19178. }
  19179. CheckQNXVideo()
  19180. {
  19181. if test x$enable_video = xyes; then
  19182. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19183. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19184. have_video=yes
  19185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19186. SUMMARY_video="${SUMMARY_video} qnx"
  19187. fi
  19188. }
  19189. CheckQNXAudio()
  19190. {
  19191. if test x$enable_audio = xyes; then
  19192. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19193. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19194. have_audio=yes
  19195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19196. SUMMARY_audio="${SUMMARY_audio} qsa"
  19197. fi
  19198. }
  19199. # Check whether --enable-video-opengl was given.
  19200. if test "${enable_video_opengl+set}" = set; then :
  19201. enableval=$enable_video_opengl;
  19202. else
  19203. enable_video_opengl=yes
  19204. fi
  19205. CheckGLX()
  19206. {
  19207. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19209. $as_echo_n "checking for GLX support... " >&6; }
  19210. video_opengl_glx=no
  19211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19212. /* end confdefs.h. */
  19213. #include <GL/glx.h>
  19214. int
  19215. main ()
  19216. {
  19217. ;
  19218. return 0;
  19219. }
  19220. _ACEOF
  19221. if ac_fn_c_try_compile "$LINENO"; then :
  19222. video_opengl_glx=yes
  19223. fi
  19224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19226. $as_echo "$video_opengl_glx" >&6; }
  19227. if test x$video_opengl_glx = xyes; then
  19228. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19229. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19230. fi
  19231. fi
  19232. }
  19233. # Check whether --enable-video-opengles was given.
  19234. if test "${enable_video_opengles+set}" = set; then :
  19235. enableval=$enable_video_opengles;
  19236. else
  19237. enable_video_opengles=yes
  19238. fi
  19239. # Check whether --enable-video-opengles1 was given.
  19240. if test "${enable_video_opengles1+set}" = set; then :
  19241. enableval=$enable_video_opengles1;
  19242. else
  19243. enable_video_opengles1=yes
  19244. fi
  19245. # Check whether --enable-video-opengles2 was given.
  19246. if test "${enable_video_opengles2+set}" = set; then :
  19247. enableval=$enable_video_opengles2;
  19248. else
  19249. enable_video_opengles2=yes
  19250. fi
  19251. CheckEGL()
  19252. {
  19253. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19255. $as_echo_n "checking for EGL support... " >&6; }
  19256. video_opengl_egl=no
  19257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19258. /* end confdefs.h. */
  19259. #define LINUX
  19260. #define EGL_API_FB
  19261. #define MESA_EGL_NO_X11_HEADERS
  19262. #define EGL_NO_X11
  19263. #include <EGL/egl.h>
  19264. #include <EGL/eglext.h>
  19265. int
  19266. main ()
  19267. {
  19268. ;
  19269. return 0;
  19270. }
  19271. _ACEOF
  19272. if ac_fn_c_try_compile "$LINENO"; then :
  19273. video_opengl_egl=yes
  19274. fi
  19275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19277. $as_echo "$video_opengl_egl" >&6; }
  19278. if test x$video_opengl_egl = xyes; then
  19279. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19280. fi
  19281. fi
  19282. }
  19283. CheckOpenGL()
  19284. {
  19285. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19287. $as_echo_n "checking for OpenGL headers... " >&6; }
  19288. video_opengl=no
  19289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19290. /* end confdefs.h. */
  19291. #include <GL/gl.h>
  19292. #include <GL/glext.h>
  19293. int
  19294. main ()
  19295. {
  19296. ;
  19297. return 0;
  19298. }
  19299. _ACEOF
  19300. if ac_fn_c_try_compile "$LINENO"; then :
  19301. video_opengl=yes
  19302. fi
  19303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19305. $as_echo "$video_opengl" >&6; }
  19306. if test x$video_opengl = xyes; then
  19307. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19308. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19309. SUMMARY_video="${SUMMARY_video} opengl"
  19310. fi
  19311. fi
  19312. }
  19313. CheckOpenGLES()
  19314. {
  19315. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19316. if test x$enable_video_opengles1 = xyes; then
  19317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19318. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19319. video_opengles_v1=no
  19320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19321. /* end confdefs.h. */
  19322. #include <GLES/gl.h>
  19323. #include <GLES/glext.h>
  19324. int
  19325. main ()
  19326. {
  19327. ;
  19328. return 0;
  19329. }
  19330. _ACEOF
  19331. if ac_fn_c_try_compile "$LINENO"; then :
  19332. video_opengles_v1=yes
  19333. fi
  19334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19336. $as_echo "$video_opengles_v1" >&6; }
  19337. if test x$video_opengles_v1 = xyes; then
  19338. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19339. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19340. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19341. fi
  19342. fi
  19343. if test x$enable_video_opengles2 = xyes; then
  19344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19345. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19346. video_opengles_v2=no
  19347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19348. /* end confdefs.h. */
  19349. #include <GLES2/gl2.h>
  19350. #include <GLES2/gl2ext.h>
  19351. int
  19352. main ()
  19353. {
  19354. ;
  19355. return 0;
  19356. }
  19357. _ACEOF
  19358. if ac_fn_c_try_compile "$LINENO"; then :
  19359. video_opengles_v2=yes
  19360. fi
  19361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19363. $as_echo "$video_opengles_v2" >&6; }
  19364. if test x$video_opengles_v2 = xyes; then
  19365. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19366. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19367. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19368. fi
  19369. fi
  19370. fi
  19371. }
  19372. CheckWINDOWSGL()
  19373. {
  19374. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19375. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19376. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19377. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19378. SUMMARY_video="${SUMMARY_video} opengl"
  19379. fi
  19380. }
  19381. CheckWINDOWSGLES()
  19382. {
  19383. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19385. $as_echo_n "checking for EGL support... " >&6; }
  19386. video_opengl_egl=no
  19387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19388. /* end confdefs.h. */
  19389. #include <EGL/egl.h>
  19390. int
  19391. main ()
  19392. {
  19393. ;
  19394. return 0;
  19395. }
  19396. _ACEOF
  19397. if ac_fn_c_try_compile "$LINENO"; then :
  19398. video_opengl_egl=yes
  19399. fi
  19400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19402. $as_echo "$video_opengl_egl" >&6; }
  19403. if test x$video_opengl_egl = xyes; then
  19404. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19405. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19406. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19407. fi
  19408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19409. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19410. video_opengles_v2=no
  19411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19412. /* end confdefs.h. */
  19413. #include <GLES2/gl2.h>
  19414. #include <GLES2/gl2ext.h>
  19415. int
  19416. main ()
  19417. {
  19418. ;
  19419. return 0;
  19420. }
  19421. _ACEOF
  19422. if ac_fn_c_try_compile "$LINENO"; then :
  19423. video_opengles_v2=yes
  19424. fi
  19425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19427. $as_echo "$video_opengles_v2" >&6; }
  19428. if test x$video_opengles_v2 = xyes; then
  19429. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19430. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19431. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19432. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19433. fi
  19434. fi
  19435. }
  19436. CheckHaikuGL()
  19437. {
  19438. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19439. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19440. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19441. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19442. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19443. SUMMARY_video="${SUMMARY_video} opengl"
  19444. fi
  19445. }
  19446. CheckMacGL()
  19447. {
  19448. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19449. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19450. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19451. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19452. SUMMARY_video="${SUMMARY_video} opengl"
  19453. fi
  19454. }
  19455. CheckMacGLES()
  19456. {
  19457. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19458. video_opengl_egl=yes
  19459. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19460. video_opengles_v2=yes
  19461. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19462. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19463. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19464. fi
  19465. }
  19466. CheckEmscriptenGLES()
  19467. {
  19468. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19470. $as_echo_n "checking for EGL support... " >&6; }
  19471. video_opengl_egl=no
  19472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19473. /* end confdefs.h. */
  19474. #include <EGL/egl.h>
  19475. int
  19476. main ()
  19477. {
  19478. ;
  19479. return 0;
  19480. }
  19481. _ACEOF
  19482. if ac_fn_c_try_compile "$LINENO"; then :
  19483. video_opengl_egl=yes
  19484. fi
  19485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19487. $as_echo "$video_opengl_egl" >&6; }
  19488. if test x$video_opengl_egl = xyes; then
  19489. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19490. fi
  19491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19492. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19493. video_opengles_v2=no
  19494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19495. /* end confdefs.h. */
  19496. #include <GLES2/gl2.h>
  19497. #include <GLES2/gl2ext.h>
  19498. int
  19499. main ()
  19500. {
  19501. ;
  19502. return 0;
  19503. }
  19504. _ACEOF
  19505. if ac_fn_c_try_compile "$LINENO"; then :
  19506. video_opengles_v2=yes
  19507. fi
  19508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19510. $as_echo "$video_opengles_v2" >&6; }
  19511. if test x$video_opengles_v2 = xyes; then
  19512. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19513. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19514. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19515. fi
  19516. fi
  19517. }
  19518. # Check whether --enable-video-vulkan was given.
  19519. if test "${enable_video_vulkan+set}" = set; then :
  19520. enableval=$enable_video_vulkan;
  19521. else
  19522. enable_video_vulkan=yes
  19523. fi
  19524. CheckVulkan()
  19525. {
  19526. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19527. case "$host" in
  19528. *-*-android*)
  19529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19530. /* end confdefs.h. */
  19531. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19532. #error Vulkan doesn't work on this configuration
  19533. #endif
  19534. int
  19535. main ()
  19536. {
  19537. ;
  19538. return 0;
  19539. }
  19540. _ACEOF
  19541. if ac_fn_c_try_compile "$LINENO"; then :
  19542. else
  19543. enable_video_vulkan=no
  19544. fi
  19545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19546. ;;
  19547. *-*-darwin*)
  19548. save_CFLAGS="$CFLAGS"
  19549. CFLAGS="$CFLAGS -x objective-c"
  19550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19551. /* end confdefs.h. */
  19552. #include <Cocoa/Cocoa.h>
  19553. #include <Metal/Metal.h>
  19554. #include <QuartzCore/CAMetalLayer.h>
  19555. #if TARGET_CPU_X86
  19556. #error Vulkan doesn't work on this configuration
  19557. #endif
  19558. int
  19559. main ()
  19560. {
  19561. ;
  19562. return 0;
  19563. }
  19564. _ACEOF
  19565. if ac_fn_c_try_compile "$LINENO"; then :
  19566. else
  19567. enable_video_vulkan=no
  19568. fi
  19569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19570. CFLAGS="$save_CFLAGS"
  19571. ;;
  19572. *)
  19573. ;;
  19574. esac
  19575. if test x$enable_video_vulkan = xno; then
  19576. # For reasons I am totally unable to see, I get an undefined macro error if
  19577. # I put this in the AC_TRY_COMPILE.
  19578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19579. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19580. fi
  19581. fi
  19582. if test x$enable_video_vulkan = xyes; then
  19583. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19584. SUMMARY_video="${SUMMARY_video} vulkan"
  19585. fi
  19586. }
  19587. CheckInputEvents()
  19588. {
  19589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19590. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19591. use_input_events=no
  19592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19593. /* end confdefs.h. */
  19594. #include <linux/input.h>
  19595. int
  19596. main ()
  19597. {
  19598. #ifndef EVIOCGNAME
  19599. #error EVIOCGNAME() ioctl not available
  19600. #endif
  19601. ;
  19602. return 0;
  19603. }
  19604. _ACEOF
  19605. if ac_fn_c_try_compile "$LINENO"; then :
  19606. use_input_events=yes
  19607. fi
  19608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19610. $as_echo "$use_input_events" >&6; }
  19611. if test x$use_input_events = xyes; then
  19612. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19613. SUMMARY_input="${SUMMARY_input} linuxev"
  19614. fi
  19615. }
  19616. CheckInputKD()
  19617. {
  19618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19619. $as_echo_n "checking for Linux kd.h... " >&6; }
  19620. use_input_kd=no
  19621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19622. /* end confdefs.h. */
  19623. #include <linux/kd.h>
  19624. #include <linux/keyboard.h>
  19625. int
  19626. main ()
  19627. {
  19628. struct kbentry kbe;
  19629. kbe.kb_table = KG_CTRL;
  19630. ioctl(0, KDGKBENT, &kbe);
  19631. ;
  19632. return 0;
  19633. }
  19634. _ACEOF
  19635. if ac_fn_c_try_compile "$LINENO"; then :
  19636. use_input_kd=yes
  19637. fi
  19638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19640. $as_echo "$use_input_kd" >&6; }
  19641. if test x$use_input_kd = xyes; then
  19642. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19643. SUMMARY_input="${SUMMARY_input} linuxkd"
  19644. fi
  19645. }
  19646. CheckInputKBIO()
  19647. {
  19648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19649. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19650. use_input_kbio=no
  19651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19652. /* end confdefs.h. */
  19653. #include <sys/kbio.h>
  19654. #include <sys/ioctl.h>
  19655. int
  19656. main ()
  19657. {
  19658. accentmap_t accTable;
  19659. ioctl(0, KDENABIO, 1);
  19660. ;
  19661. return 0;
  19662. }
  19663. _ACEOF
  19664. if ac_fn_c_try_compile "$LINENO"; then :
  19665. use_input_kbio=yes
  19666. fi
  19667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19669. $as_echo "$use_input_kbio" >&6; }
  19670. if test x$use_input_kbio = xyes; then
  19671. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19672. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19673. fi
  19674. }
  19675. CheckInputWSCONS()
  19676. {
  19677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19678. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19679. use_input_wscons=no
  19680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19681. /* end confdefs.h. */
  19682. #include <sys/time.h>
  19683. #include <dev/wscons/wsconsio.h>
  19684. #include <dev/wscons/wsksymdef.h>
  19685. #include <dev/wscons/wsksymvar.h>
  19686. #include <sys/ioctl.h>
  19687. int
  19688. main ()
  19689. {
  19690. struct wskbd_map_data data;
  19691. ioctl(0, WSKBDIO_GETMAP, &data);
  19692. ;
  19693. return 0;
  19694. }
  19695. _ACEOF
  19696. if ac_fn_c_try_compile "$LINENO"; then :
  19697. use_input_wscons=yes
  19698. fi
  19699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19701. $as_echo "$use_input_wscons" >&6; }
  19702. if test x$use_input_wscons = xyes; then
  19703. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19704. SUMMARY_input="${SUMMARY_input} wscons"
  19705. fi
  19706. }
  19707. CheckLibUDev()
  19708. {
  19709. # Check whether --enable-libudev was given.
  19710. if test "${enable_libudev+set}" = set; then :
  19711. enableval=$enable_libudev;
  19712. else
  19713. enable_libudev=yes
  19714. fi
  19715. if test x$enable_libudev = xyes; then
  19716. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19717. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19718. have_libudev_h_hdr=yes
  19719. else
  19720. have_libudev_h_hdr=no
  19721. fi
  19722. if test x$have_libudev_h_hdr = xyes; then
  19723. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19724. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19725. if test x$udev_lib != x; then
  19726. echo "-- dynamic udev -> $udev_lib"
  19727. cat >>confdefs.h <<_ACEOF
  19728. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19729. _ACEOF
  19730. fi
  19731. fi
  19732. fi
  19733. }
  19734. CheckDBus()
  19735. {
  19736. # Check whether --enable-dbus was given.
  19737. if test "${enable_dbus+set}" = set; then :
  19738. enableval=$enable_dbus;
  19739. else
  19740. enable_dbus=yes
  19741. fi
  19742. if test x$enable_dbus = xyes; then
  19743. pkg_failed=no
  19744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19745. $as_echo_n "checking for dbus-1... " >&6; }
  19746. if test -n "$DBUS_CFLAGS"; then
  19747. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19748. elif test -n "$PKG_CONFIG"; then
  19749. if test -n "$PKG_CONFIG" && \
  19750. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19751. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19752. ac_status=$?
  19753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19754. test $ac_status = 0; }; then
  19755. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19756. test "x$?" != "x0" && pkg_failed=yes
  19757. else
  19758. pkg_failed=yes
  19759. fi
  19760. else
  19761. pkg_failed=untried
  19762. fi
  19763. if test -n "$DBUS_LIBS"; then
  19764. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19765. elif test -n "$PKG_CONFIG"; then
  19766. if test -n "$PKG_CONFIG" && \
  19767. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19768. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19769. ac_status=$?
  19770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19771. test $ac_status = 0; }; then
  19772. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19773. test "x$?" != "x0" && pkg_failed=yes
  19774. else
  19775. pkg_failed=yes
  19776. fi
  19777. else
  19778. pkg_failed=untried
  19779. fi
  19780. if test $pkg_failed = yes; then
  19781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19782. $as_echo "no" >&6; }
  19783. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19784. _pkg_short_errors_supported=yes
  19785. else
  19786. _pkg_short_errors_supported=no
  19787. fi
  19788. if test $_pkg_short_errors_supported = yes; then
  19789. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19790. else
  19791. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19792. fi
  19793. # Put the nasty error message in config.log where it belongs
  19794. echo "$DBUS_PKG_ERRORS" >&5
  19795. have_dbus=no
  19796. elif test $pkg_failed = untried; then
  19797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19798. $as_echo "no" >&6; }
  19799. have_dbus=no
  19800. else
  19801. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19802. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19804. $as_echo "yes" >&6; }
  19805. have_dbus=yes
  19806. fi
  19807. save_CPPFLAGS="$CPPFLAGS"
  19808. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19809. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19810. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19811. have_dbus_dbus_h_hdr=yes
  19812. else
  19813. have_dbus_dbus_h_hdr=no
  19814. fi
  19815. CPPFLAGS="$save_CPPFLAGS"
  19816. if test x$have_dbus_dbus_h_hdr = xyes; then
  19817. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19818. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19819. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19820. fi
  19821. fi
  19822. }
  19823. CheckIME()
  19824. {
  19825. # Check whether --enable-ime was given.
  19826. if test "${enable_ime+set}" = set; then :
  19827. enableval=$enable_ime;
  19828. else
  19829. enable_ime=yes
  19830. fi
  19831. if test x$enable_ime = xyes; then
  19832. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19833. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19834. fi
  19835. }
  19836. CheckInotify()
  19837. {
  19838. save_LIBS="$LIBS"
  19839. case "$host" in
  19840. *-*-freebsd*) LIBS="$LIBS -linotify"
  19841. ;;
  19842. esac
  19843. for ac_header in sys/inotify.h
  19844. do :
  19845. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19846. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19847. cat >>confdefs.h <<_ACEOF
  19848. #define HAVE_SYS_INOTIFY_H 1
  19849. _ACEOF
  19850. have_inotify_inotify_h_hdr=yes
  19851. fi
  19852. done
  19853. for ac_func in inotify_init
  19854. do :
  19855. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19856. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19857. cat >>confdefs.h <<_ACEOF
  19858. #define HAVE_INOTIFY_INIT 1
  19859. _ACEOF
  19860. have_inotify=yes
  19861. fi
  19862. done
  19863. for ac_func in inotify_init1
  19864. do :
  19865. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19866. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19867. cat >>confdefs.h <<_ACEOF
  19868. #define HAVE_INOTIFY_INIT1 1
  19869. _ACEOF
  19870. fi
  19871. done
  19872. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19873. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19874. case "$host" in
  19875. *-*-freebsd*)
  19876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19877. ;;
  19878. esac
  19879. fi
  19880. LIBS="$save_LIBS"
  19881. }
  19882. CheckIBus()
  19883. {
  19884. # Check whether --enable-ibus was given.
  19885. if test "${enable_ibus+set}" = set; then :
  19886. enableval=$enable_ibus;
  19887. else
  19888. enable_ibus=yes
  19889. fi
  19890. if test x$enable_ibus = xyes; then
  19891. pkg_failed=no
  19892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19893. $as_echo_n "checking for ibus-1.0... " >&6; }
  19894. if test -n "$IBUS_CFLAGS"; then
  19895. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19896. elif test -n "$PKG_CONFIG"; then
  19897. if test -n "$PKG_CONFIG" && \
  19898. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19899. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19900. ac_status=$?
  19901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19902. test $ac_status = 0; }; then
  19903. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19904. test "x$?" != "x0" && pkg_failed=yes
  19905. else
  19906. pkg_failed=yes
  19907. fi
  19908. else
  19909. pkg_failed=untried
  19910. fi
  19911. if test -n "$IBUS_LIBS"; then
  19912. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19913. elif test -n "$PKG_CONFIG"; then
  19914. if test -n "$PKG_CONFIG" && \
  19915. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19916. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19917. ac_status=$?
  19918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19919. test $ac_status = 0; }; then
  19920. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19921. test "x$?" != "x0" && pkg_failed=yes
  19922. else
  19923. pkg_failed=yes
  19924. fi
  19925. else
  19926. pkg_failed=untried
  19927. fi
  19928. if test $pkg_failed = yes; then
  19929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19930. $as_echo "no" >&6; }
  19931. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19932. _pkg_short_errors_supported=yes
  19933. else
  19934. _pkg_short_errors_supported=no
  19935. fi
  19936. if test $_pkg_short_errors_supported = yes; then
  19937. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19938. else
  19939. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19940. fi
  19941. # Put the nasty error message in config.log where it belongs
  19942. echo "$IBUS_PKG_ERRORS" >&5
  19943. have_ibus=no
  19944. elif test $pkg_failed = untried; then
  19945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19946. $as_echo "no" >&6; }
  19947. have_ibus=no
  19948. else
  19949. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19950. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19952. $as_echo "yes" >&6; }
  19953. have_ibus=yes
  19954. fi
  19955. save_CPPFLAGS="$CPPFLAGS"
  19956. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  19957. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19958. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19959. have_ibus_ibus_h_hdr=yes
  19960. else
  19961. have_ibus_ibus_h_hdr=no
  19962. fi
  19963. CPPFLAGS="$save_CPPFLAGS"
  19964. if test x$have_ibus_ibus_h_hdr = xyes; then
  19965. if test x$enable_ime != xyes; then
  19966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19967. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19968. have_ibus_ibus_h_hdr=no
  19969. elif test x$enable_dbus != xyes; then
  19970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19971. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19972. have_ibus_ibus_h_hdr=no
  19973. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19975. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19976. have_ibus_ibus_h_hdr=no
  19977. else
  19978. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19979. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19980. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19981. fi
  19982. fi
  19983. fi
  19984. }
  19985. CheckFcitx()
  19986. {
  19987. # Check whether --enable-fcitx was given.
  19988. if test "${enable_fcitx+set}" = set; then :
  19989. enableval=$enable_fcitx;
  19990. else
  19991. enable_fcitx=yes
  19992. fi
  19993. if test x$enable_fcitx = xyes; then
  19994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19995. $as_echo_n "checking for fcitx support... " >&6; }
  19996. have_fcitx=no
  19997. if test x$enable_ime != xyes; then
  19998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19999. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20000. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20002. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20003. else
  20004. have_fcitx=yes
  20005. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20006. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20007. fi
  20008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20009. $as_echo "$have_fcitx" >&6; }
  20010. fi
  20011. }
  20012. CheckJoystickMFI()
  20013. {
  20014. # Check whether --enable-joystick-mfi was given.
  20015. if test "${enable_joystick_mfi+set}" = set; then :
  20016. enableval=$enable_joystick_mfi;
  20017. else
  20018. enable_joystick_mfi=yes
  20019. fi
  20020. if test x$enable_joystick_mfi = xyes; then
  20021. save_CFLAGS="$CFLAGS"
  20022. save_LDFLAGS="$LDFLAGS"
  20023. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20024. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20026. $as_echo_n "checking for GameController framework... " >&6; }
  20027. enable_joystick_mfi=no
  20028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20029. /* end confdefs.h. */
  20030. #include <AvailabilityMacros.h>
  20031. #include <TargetConditionals.h>
  20032. #import <GameController/GameController.h>
  20033. int
  20034. main ()
  20035. {
  20036. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20037. #error GameController framework doesn't work on this configuration
  20038. #endif
  20039. #if TARGET_CPU_X86
  20040. #error GameController framework doesn't work on this configuration
  20041. #endif
  20042. ;
  20043. return 0;
  20044. }
  20045. _ACEOF
  20046. if ac_fn_c_try_link "$LINENO"; then :
  20047. enable_joystick_mfi=yes
  20048. fi
  20049. rm -f core conftest.err conftest.$ac_objext \
  20050. conftest$ac_exeext conftest.$ac_ext
  20051. CFLAGS="$save_CFLAGS"
  20052. LDFLAGS="$save_LDFLAGS"
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20054. $as_echo "$enable_joystick_mfi" >&6; }
  20055. if test x$enable_joystick_mfi = xyes; then
  20056. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20057. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20059. fi
  20060. fi
  20061. }
  20062. CheckPTHREAD()
  20063. {
  20064. case "$host" in
  20065. *-*-emscripten*)
  20066. enable_pthreads_default=no
  20067. ;;
  20068. *)
  20069. enable_pthreads_default=yes
  20070. ;;
  20071. esac
  20072. # Check whether --enable-pthreads was given.
  20073. if test "${enable_pthreads+set}" = set; then :
  20074. enableval=$enable_pthreads;
  20075. else
  20076. enable_pthreads=maybe
  20077. fi
  20078. # Check whether --enable-pthread-sem was given.
  20079. if test "${enable_pthread_sem+set}" = set; then :
  20080. enableval=$enable_pthread_sem;
  20081. else
  20082. enable_pthread_sem=maybe
  20083. fi
  20084. if test x$enable_pthreads = xmaybe; then
  20085. enable_pthreads=$enable_pthreads_default
  20086. fi
  20087. if test x$enable_pthread_sem = xmaybe; then
  20088. enable_pthread_sem=$enable_pthreads
  20089. fi
  20090. case "$host" in
  20091. *-*-android*)
  20092. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20093. pthread_lib=""
  20094. ;;
  20095. *-*-linux*|*-*-uclinux*)
  20096. pthread_cflags="-D_REENTRANT"
  20097. pthread_lib="-lpthread"
  20098. ;;
  20099. *-*-bsdi*)
  20100. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20101. pthread_lib=""
  20102. ;;
  20103. *-*-darwin*)
  20104. pthread_cflags="-D_THREAD_SAFE"
  20105. # causes Carbon.p complaints?
  20106. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20107. ;;
  20108. *-*-freebsd*|*-*-dragonfly*)
  20109. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20110. pthread_lib="-pthread"
  20111. ;;
  20112. *-*-netbsd*)
  20113. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20114. pthread_lib="-lpthread"
  20115. ;;
  20116. *-*-openbsd*)
  20117. pthread_cflags="-D_REENTRANT"
  20118. pthread_lib="-pthread"
  20119. ;;
  20120. *-*-solaris2.9)
  20121. # From Solaris 9+, posix4's preferred name is rt.
  20122. pthread_cflags="-D_REENTRANT"
  20123. pthread_lib="-lpthread -lrt"
  20124. ;;
  20125. *-*-solaris2.10)
  20126. # Solaris 10+ merged pthread into libc.
  20127. pthread_cflags="-D_REENTRANT"
  20128. pthread_lib="-lrt"
  20129. ;;
  20130. *-*-solaris*)
  20131. # Solaris 11+ merged rt into libc.
  20132. pthread_cflags="-D_REENTRANT"
  20133. pthread_lib=""
  20134. ;;
  20135. *-*-sysv5*)
  20136. pthread_cflags="-D_REENTRANT -Kthread"
  20137. pthread_lib=""
  20138. ;;
  20139. *-*-aix*)
  20140. pthread_cflags="-D_REENTRANT -mthreads"
  20141. pthread_lib="-lpthread"
  20142. ;;
  20143. *-*-hpux11*)
  20144. pthread_cflags="-D_REENTRANT"
  20145. pthread_lib="-L/usr/lib -lpthread"
  20146. ;;
  20147. *-*-haiku*)
  20148. pthread_cflags="-D_REENTRANT"
  20149. pthread_lib=""
  20150. ;;
  20151. *-*-nto*)
  20152. pthread_cflags="-D_REENTRANT"
  20153. pthread_lib=""
  20154. ;;
  20155. *-*-emscripten*)
  20156. pthread_cflags="-D_REENTRANT -pthread"
  20157. pthread_lib="-pthread"
  20158. ;;
  20159. *)
  20160. pthread_cflags="-D_REENTRANT"
  20161. pthread_lib="-lpthread"
  20162. ;;
  20163. esac
  20164. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20165. # Save the original compiler flags and libraries
  20166. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20167. # Add the pthread compiler flags and libraries
  20168. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20169. # Check to see if we have pthread support on this system
  20170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20171. $as_echo_n "checking for pthreads... " >&6; }
  20172. use_pthreads=no
  20173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20174. /* end confdefs.h. */
  20175. #include <pthread.h>
  20176. int
  20177. main ()
  20178. {
  20179. pthread_attr_t type;
  20180. pthread_attr_init(&type);
  20181. ;
  20182. return 0;
  20183. }
  20184. _ACEOF
  20185. if ac_fn_c_try_link "$LINENO"; then :
  20186. use_pthreads=yes
  20187. fi
  20188. rm -f core conftest.err conftest.$ac_objext \
  20189. conftest$ac_exeext conftest.$ac_ext
  20190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20191. $as_echo "$use_pthreads" >&6; }
  20192. # Restore the compiler flags and libraries
  20193. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20194. # Do futher testing if we have pthread support...
  20195. if test x$use_pthreads = xyes; then
  20196. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20197. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20198. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20199. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20200. # Save the original compiler flags and libraries
  20201. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20202. # Add the pthread compiler flags and libraries
  20203. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20204. # Check to see if recursive mutexes are available
  20205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20206. $as_echo_n "checking for recursive mutexes... " >&6; }
  20207. has_recursive_mutexes=no
  20208. if test x$has_recursive_mutexes = xno; then
  20209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20210. /* end confdefs.h. */
  20211. #define _GNU_SOURCE 1
  20212. #include <pthread.h>
  20213. int
  20214. main ()
  20215. {
  20216. pthread_mutexattr_t attr;
  20217. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20218. ;
  20219. return 0;
  20220. }
  20221. _ACEOF
  20222. if ac_fn_c_try_link "$LINENO"; then :
  20223. has_recursive_mutexes=yes
  20224. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20225. fi
  20226. rm -f core conftest.err conftest.$ac_objext \
  20227. conftest$ac_exeext conftest.$ac_ext
  20228. fi
  20229. if test x$has_recursive_mutexes = xno; then
  20230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20231. /* end confdefs.h. */
  20232. #define _GNU_SOURCE 1
  20233. #include <pthread.h>
  20234. int
  20235. main ()
  20236. {
  20237. pthread_mutexattr_t attr;
  20238. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20239. ;
  20240. return 0;
  20241. }
  20242. _ACEOF
  20243. if ac_fn_c_try_link "$LINENO"; then :
  20244. has_recursive_mutexes=yes
  20245. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20246. fi
  20247. rm -f core conftest.err conftest.$ac_objext \
  20248. conftest$ac_exeext conftest.$ac_ext
  20249. fi
  20250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20251. $as_echo "$has_recursive_mutexes" >&6; }
  20252. # Check to see if pthread semaphore support is missing
  20253. if test x$enable_pthread_sem = xyes; then
  20254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20255. $as_echo_n "checking for pthread semaphores... " >&6; }
  20256. have_pthread_sem=no
  20257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20258. /* end confdefs.h. */
  20259. #include <pthread.h>
  20260. #include <semaphore.h>
  20261. int
  20262. main ()
  20263. {
  20264. ;
  20265. return 0;
  20266. }
  20267. _ACEOF
  20268. if ac_fn_c_try_compile "$LINENO"; then :
  20269. have_pthread_sem=yes
  20270. fi
  20271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20273. $as_echo "$have_pthread_sem" >&6; }
  20274. fi
  20275. if test x$have_pthread_sem = xyes; then
  20276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20277. $as_echo_n "checking for sem_timedwait... " >&6; }
  20278. have_sem_timedwait=no
  20279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20280. /* end confdefs.h. */
  20281. #include <pthread.h>
  20282. #include <semaphore.h>
  20283. int
  20284. main ()
  20285. {
  20286. sem_timedwait(NULL, NULL);
  20287. ;
  20288. return 0;
  20289. }
  20290. _ACEOF
  20291. if ac_fn_c_try_link "$LINENO"; then :
  20292. have_sem_timedwait=yes
  20293. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20294. fi
  20295. rm -f core conftest.err conftest.$ac_objext \
  20296. conftest$ac_exeext conftest.$ac_ext
  20297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20298. $as_echo "$have_sem_timedwait" >&6; }
  20299. fi
  20300. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20301. "
  20302. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20303. have_pthread_np_h=yes
  20304. else
  20305. have_pthread_np_h=no
  20306. fi
  20307. if test x$have_pthread_np_h = xyes; then
  20308. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20309. fi
  20310. # Check to see if pthread naming is available
  20311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20312. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20314. /* end confdefs.h. */
  20315. /* Override any GCC internal prototype to avoid an error.
  20316. Use char because int might match the return type of a GCC
  20317. builtin and then its argument prototype would still apply. */
  20318. #ifdef __cplusplus
  20319. extern "C"
  20320. #endif
  20321. char pthread_setname_np ();
  20322. int
  20323. main ()
  20324. {
  20325. return pthread_setname_np ();
  20326. ;
  20327. return 0;
  20328. }
  20329. _ACEOF
  20330. if ac_fn_c_try_link "$LINENO"; then :
  20331. has_pthread_setname_np=yes
  20332. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20333. else
  20334. has_pthread_setname_np=no
  20335. fi
  20336. rm -f core conftest.err conftest.$ac_objext \
  20337. conftest$ac_exeext conftest.$ac_ext
  20338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20339. $as_echo "$has_pthread_setname_np" >&6; }
  20340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20341. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20343. /* end confdefs.h. */
  20344. /* Override any GCC internal prototype to avoid an error.
  20345. Use char because int might match the return type of a GCC
  20346. builtin and then its argument prototype would still apply. */
  20347. #ifdef __cplusplus
  20348. extern "C"
  20349. #endif
  20350. char pthread_set_name_np ();
  20351. int
  20352. main ()
  20353. {
  20354. return pthread_set_name_np ();
  20355. ;
  20356. return 0;
  20357. }
  20358. _ACEOF
  20359. if ac_fn_c_try_link "$LINENO"; then :
  20360. has_pthread_set_name_np=yes
  20361. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20362. else
  20363. has_pthread_set_name_np=no
  20364. fi
  20365. rm -f core conftest.err conftest.$ac_objext \
  20366. conftest$ac_exeext conftest.$ac_ext
  20367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20368. $as_echo "$has_pthread_set_name_np" >&6; }
  20369. # Restore the compiler flags and libraries
  20370. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20371. # Basic thread creation functions
  20372. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20373. # Semaphores
  20374. # We can fake these with mutexes and condition variables if necessary
  20375. if test x$have_pthread_sem = xyes; then
  20376. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20377. else
  20378. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20379. fi
  20380. # Mutexes
  20381. # We can fake these with semaphores if necessary
  20382. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20383. # Condition variables
  20384. # We can fake these with semaphores and mutexes if necessary
  20385. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20386. # Thread local storage
  20387. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20388. have_threads=yes
  20389. fi
  20390. fi
  20391. }
  20392. CheckWINDOWS()
  20393. {
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20395. $as_echo_n "checking Windows compiler... " >&6; }
  20396. have_win32_gcc=no
  20397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20398. /* end confdefs.h. */
  20399. #include <windows.h>
  20400. int
  20401. main ()
  20402. {
  20403. ;
  20404. return 0;
  20405. }
  20406. _ACEOF
  20407. if ac_fn_c_try_compile "$LINENO"; then :
  20408. have_win32_gcc=yes
  20409. fi
  20410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20412. $as_echo "$have_win32_gcc" >&6; }
  20413. if test x$have_win32_gcc != xyes; then
  20414. as_fn_error $? "
  20415. *** Your compiler ($CC) does not produce Windows executables!
  20416. " "$LINENO" 5
  20417. fi
  20418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20419. $as_echo_n "checking Windows CE... " >&6; }
  20420. have_wince=no
  20421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20422. /* end confdefs.h. */
  20423. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20424. #error This is not Windows CE
  20425. #endif
  20426. int
  20427. main ()
  20428. {
  20429. ;
  20430. return 0;
  20431. }
  20432. _ACEOF
  20433. if ac_fn_c_try_compile "$LINENO"; then :
  20434. have_wince=yes
  20435. as_fn_error $? "
  20436. *** Sorry, Windows CE is no longer supported.
  20437. " "$LINENO" 5
  20438. fi
  20439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20441. $as_echo "$have_wince" >&6; }
  20442. # This fixes Windows stack alignment with newer GCC
  20443. CheckStackBoundary
  20444. }
  20445. CheckDIRECTX()
  20446. {
  20447. # Check whether --enable-directx was given.
  20448. if test "${enable_directx+set}" = set; then :
  20449. enableval=$enable_directx;
  20450. else
  20451. enable_directx=yes
  20452. fi
  20453. if test x$enable_directx = xyes; then
  20454. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20455. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20456. have_d3d=yes
  20457. fi
  20458. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20459. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20460. have_d3d11=yes
  20461. fi
  20462. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20463. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20464. have_ddraw=yes
  20465. fi
  20466. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20467. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20468. have_dsound=yes
  20469. fi
  20470. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20471. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20472. have_dinput=yes
  20473. fi
  20474. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20475. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20476. have_dxgi=yes
  20477. fi
  20478. if test x$have_ddraw = xyes; then
  20479. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20480. fi
  20481. if test x$have_dinput = xyes; then
  20482. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20483. fi
  20484. if test x$have_dsound = xyes; then
  20485. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20486. fi
  20487. if test x$have_dxgi = xyes; then
  20488. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20489. fi
  20490. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20491. # FIXME: ...so force it off for now.
  20492. case "$host" in
  20493. *-*-cygwin*)
  20494. have_dinput=false
  20495. ;;
  20496. esac
  20497. fi
  20498. # Check whether --enable-xinput was given.
  20499. if test "${enable_xinput+set}" = set; then :
  20500. enableval=$enable_xinput;
  20501. else
  20502. enable_xinput=yes
  20503. fi
  20504. if test x$enable_xinput = xyes; then
  20505. have_xinput_gamepadex=no
  20506. have_xinput_stateex=no
  20507. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20508. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20509. have_xinput=yes
  20510. fi
  20511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20512. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20514. /* end confdefs.h. */
  20515. #include <windows.h>
  20516. #include <xinput.h>
  20517. XINPUT_GAMEPAD_EX x1;
  20518. int
  20519. main ()
  20520. {
  20521. ;
  20522. return 0;
  20523. }
  20524. _ACEOF
  20525. if ac_fn_c_try_compile "$LINENO"; then :
  20526. have_xinput_gamepadex=yes
  20527. fi
  20528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20530. $as_echo "$have_xinput_gamepadex" >&6; }
  20531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20532. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20534. /* end confdefs.h. */
  20535. #include <windows.h>
  20536. #include <xinput.h>
  20537. XINPUT_STATE_EX s1;
  20538. int
  20539. main ()
  20540. {
  20541. ;
  20542. return 0;
  20543. }
  20544. _ACEOF
  20545. if ac_fn_c_try_compile "$LINENO"; then :
  20546. have_xinput_stateex=yes
  20547. fi
  20548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20550. $as_echo "$have_xinput_stateex" >&6; }
  20551. if test x$have_xinput = xyes; then
  20552. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20553. fi
  20554. if test x$have_xinput_gamepadex = xyes; then
  20555. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20556. fi
  20557. if test x$have_xinput_stateex = xyes; then
  20558. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20559. fi
  20560. fi
  20561. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20562. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20563. have_wasapi=yes
  20564. fi
  20565. if test x$have_wasapi = xyes; then
  20566. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20567. fi
  20568. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20569. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20570. else
  20571. have_wasapi=no
  20572. fi
  20573. if test x$have_wasapi = xyes; then
  20574. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20575. fi
  20576. # Check whether --enable-wasapi was given.
  20577. if test "${enable_wasapi+set}" = set; then :
  20578. enableval=$enable_wasapi;
  20579. else
  20580. enable_wasapi=yes
  20581. fi
  20582. }
  20583. CheckDLOPEN()
  20584. {
  20585. # Check whether --enable-sdl-dlopen was given.
  20586. if test "${enable_sdl_dlopen+set}" = set; then :
  20587. enableval=$enable_sdl_dlopen;
  20588. else
  20589. enable_sdl_dlopen=yes
  20590. fi
  20591. if test x$enable_sdl_dlopen = xyes; then
  20592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20593. $as_echo_n "checking for dlopen... " >&6; }
  20594. have_dlopen=no
  20595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20596. /* end confdefs.h. */
  20597. #include <dlfcn.h>
  20598. int
  20599. main ()
  20600. {
  20601. void *handle = dlopen("", RTLD_NOW);
  20602. const char *loaderror = (char *) dlerror();
  20603. ;
  20604. return 0;
  20605. }
  20606. _ACEOF
  20607. if ac_fn_c_try_compile "$LINENO"; then :
  20608. have_dlopen=yes
  20609. fi
  20610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20612. $as_echo "$have_dlopen" >&6; }
  20613. if test x$have_dlopen = xyes; then
  20614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20615. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20616. if ${ac_cv_lib_c_dlopen+:} false; then :
  20617. $as_echo_n "(cached) " >&6
  20618. else
  20619. ac_check_lib_save_LIBS=$LIBS
  20620. LIBS="-lc $LIBS"
  20621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20622. /* end confdefs.h. */
  20623. /* Override any GCC internal prototype to avoid an error.
  20624. Use char because int might match the return type of a GCC
  20625. builtin and then its argument prototype would still apply. */
  20626. #ifdef __cplusplus
  20627. extern "C"
  20628. #endif
  20629. char dlopen ();
  20630. int
  20631. main ()
  20632. {
  20633. return dlopen ();
  20634. ;
  20635. return 0;
  20636. }
  20637. _ACEOF
  20638. if ac_fn_c_try_link "$LINENO"; then :
  20639. ac_cv_lib_c_dlopen=yes
  20640. else
  20641. ac_cv_lib_c_dlopen=no
  20642. fi
  20643. rm -f core conftest.err conftest.$ac_objext \
  20644. conftest$ac_exeext conftest.$ac_ext
  20645. LIBS=$ac_check_lib_save_LIBS
  20646. fi
  20647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20648. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20649. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20650. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20651. else
  20652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20653. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20654. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20655. $as_echo_n "(cached) " >&6
  20656. else
  20657. ac_check_lib_save_LIBS=$LIBS
  20658. LIBS="-ldl $LIBS"
  20659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20660. /* end confdefs.h. */
  20661. /* Override any GCC internal prototype to avoid an error.
  20662. Use char because int might match the return type of a GCC
  20663. builtin and then its argument prototype would still apply. */
  20664. #ifdef __cplusplus
  20665. extern "C"
  20666. #endif
  20667. char dlopen ();
  20668. int
  20669. main ()
  20670. {
  20671. return dlopen ();
  20672. ;
  20673. return 0;
  20674. }
  20675. _ACEOF
  20676. if ac_fn_c_try_link "$LINENO"; then :
  20677. ac_cv_lib_dl_dlopen=yes
  20678. else
  20679. ac_cv_lib_dl_dlopen=no
  20680. fi
  20681. rm -f core conftest.err conftest.$ac_objext \
  20682. conftest$ac_exeext conftest.$ac_ext
  20683. LIBS=$ac_check_lib_save_LIBS
  20684. fi
  20685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20686. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20687. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20689. else
  20690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20691. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20692. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20693. $as_echo_n "(cached) " >&6
  20694. else
  20695. ac_check_lib_save_LIBS=$LIBS
  20696. LIBS="-lltdl $LIBS"
  20697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20698. /* end confdefs.h. */
  20699. /* Override any GCC internal prototype to avoid an error.
  20700. Use char because int might match the return type of a GCC
  20701. builtin and then its argument prototype would still apply. */
  20702. #ifdef __cplusplus
  20703. extern "C"
  20704. #endif
  20705. char dlopen ();
  20706. int
  20707. main ()
  20708. {
  20709. return dlopen ();
  20710. ;
  20711. return 0;
  20712. }
  20713. _ACEOF
  20714. if ac_fn_c_try_link "$LINENO"; then :
  20715. ac_cv_lib_ltdl_dlopen=yes
  20716. else
  20717. ac_cv_lib_ltdl_dlopen=no
  20718. fi
  20719. rm -f core conftest.err conftest.$ac_objext \
  20720. conftest$ac_exeext conftest.$ac_ext
  20721. LIBS=$ac_check_lib_save_LIBS
  20722. fi
  20723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20724. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20725. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20727. fi
  20728. fi
  20729. fi
  20730. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20731. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20732. have_loadso=yes
  20733. fi
  20734. fi
  20735. }
  20736. CheckUSBHID()
  20737. {
  20738. case "$host" in
  20739. *-*-*bsd*|*-*-dragonfly*)
  20740. if test x$enable_joystick = xyes; then
  20741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20742. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20743. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20744. $as_echo_n "(cached) " >&6
  20745. else
  20746. ac_check_lib_save_LIBS=$LIBS
  20747. LIBS="-lusbhid $LIBS"
  20748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20749. /* end confdefs.h. */
  20750. /* Override any GCC internal prototype to avoid an error.
  20751. Use char because int might match the return type of a GCC
  20752. builtin and then its argument prototype would still apply. */
  20753. #ifdef __cplusplus
  20754. extern "C"
  20755. #endif
  20756. char hid_init ();
  20757. int
  20758. main ()
  20759. {
  20760. return hid_init ();
  20761. ;
  20762. return 0;
  20763. }
  20764. _ACEOF
  20765. if ac_fn_c_try_link "$LINENO"; then :
  20766. ac_cv_lib_usbhid_hid_init=yes
  20767. else
  20768. ac_cv_lib_usbhid_hid_init=no
  20769. fi
  20770. rm -f core conftest.err conftest.$ac_objext \
  20771. conftest$ac_exeext conftest.$ac_ext
  20772. LIBS=$ac_check_lib_save_LIBS
  20773. fi
  20774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20775. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20776. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20777. have_libusbhid=yes
  20778. fi
  20779. if test x$have_libusbhid = xyes; then
  20780. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20781. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20782. USB_CFLAGS="-DHAVE_USBHID_H"
  20783. fi
  20784. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20785. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20786. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20787. fi
  20788. USB_LIBS="$USB_LIBS -lusbhid"
  20789. else
  20790. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20791. if test "x$ac_cv_header_usb_h" = xyes; then :
  20792. USB_CFLAGS="-DHAVE_USB_H"
  20793. fi
  20794. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20795. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20796. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20797. fi
  20798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20799. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20800. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20801. $as_echo_n "(cached) " >&6
  20802. else
  20803. ac_check_lib_save_LIBS=$LIBS
  20804. LIBS="-lusb $LIBS"
  20805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20806. /* end confdefs.h. */
  20807. /* Override any GCC internal prototype to avoid an error.
  20808. Use char because int might match the return type of a GCC
  20809. builtin and then its argument prototype would still apply. */
  20810. #ifdef __cplusplus
  20811. extern "C"
  20812. #endif
  20813. char hid_init ();
  20814. int
  20815. main ()
  20816. {
  20817. return hid_init ();
  20818. ;
  20819. return 0;
  20820. }
  20821. _ACEOF
  20822. if ac_fn_c_try_link "$LINENO"; then :
  20823. ac_cv_lib_usb_hid_init=yes
  20824. else
  20825. ac_cv_lib_usb_hid_init=no
  20826. fi
  20827. rm -f core conftest.err conftest.$ac_objext \
  20828. conftest$ac_exeext conftest.$ac_ext
  20829. LIBS=$ac_check_lib_save_LIBS
  20830. fi
  20831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20832. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20833. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20834. USB_LIBS="$USB_LIBS -lusb"
  20835. fi
  20836. fi
  20837. save_CFLAGS="$CFLAGS"
  20838. CFLAGS="$CFLAGS $USB_CFLAGS"
  20839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20840. $as_echo_n "checking for usbhid... " >&6; }
  20841. have_usbhid=no
  20842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20843. /* end confdefs.h. */
  20844. #include <sys/types.h>
  20845. #if defined(HAVE_USB_H)
  20846. #include <usb.h>
  20847. #endif
  20848. #ifdef __DragonFly__
  20849. # include <bus/u4b/usb.h>
  20850. # include <bus/u4b/usbhid.h>
  20851. #else
  20852. # include <dev/usb/usb.h>
  20853. # include <dev/usb/usbhid.h>
  20854. #endif
  20855. #if defined(HAVE_USBHID_H)
  20856. #include <usbhid.h>
  20857. #elif defined(HAVE_LIBUSB_H)
  20858. #include <libusb.h>
  20859. #elif defined(HAVE_LIBUSBHID_H)
  20860. #include <libusbhid.h>
  20861. #endif
  20862. int
  20863. main ()
  20864. {
  20865. struct report_desc *repdesc;
  20866. struct usb_ctl_report *repbuf;
  20867. hid_kind_t hidkind;
  20868. ;
  20869. return 0;
  20870. }
  20871. _ACEOF
  20872. if ac_fn_c_try_compile "$LINENO"; then :
  20873. have_usbhid=yes
  20874. fi
  20875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20877. $as_echo "$have_usbhid" >&6; }
  20878. if test x$have_usbhid = xyes; then
  20879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20880. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20881. have_usbhid_ucr_data=no
  20882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20883. /* end confdefs.h. */
  20884. #include <sys/types.h>
  20885. #if defined(HAVE_USB_H)
  20886. #include <usb.h>
  20887. #endif
  20888. #ifdef __DragonFly__
  20889. # include <bus/u4b/usb.h>
  20890. # include <bus/u4b/usbhid.h>
  20891. #else
  20892. # include <dev/usb/usb.h>
  20893. # include <dev/usb/usbhid.h>
  20894. #endif
  20895. #if defined(HAVE_USBHID_H)
  20896. #include <usbhid.h>
  20897. #elif defined(HAVE_LIBUSB_H)
  20898. #include <libusb.h>
  20899. #elif defined(HAVE_LIBUSBHID_H)
  20900. #include <libusbhid.h>
  20901. #endif
  20902. int
  20903. main ()
  20904. {
  20905. struct usb_ctl_report buf;
  20906. if (buf.ucr_data) { }
  20907. ;
  20908. return 0;
  20909. }
  20910. _ACEOF
  20911. if ac_fn_c_try_compile "$LINENO"; then :
  20912. have_usbhid_ucr_data=yes
  20913. fi
  20914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20915. if test x$have_usbhid_ucr_data = xyes; then
  20916. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20917. fi
  20918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20919. $as_echo "$have_usbhid_ucr_data" >&6; }
  20920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20921. $as_echo_n "checking for new usbhid API... " >&6; }
  20922. have_usbhid_new=no
  20923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20924. /* end confdefs.h. */
  20925. #include <sys/types.h>
  20926. #if defined(HAVE_USB_H)
  20927. #include <usb.h>
  20928. #endif
  20929. #ifdef __DragonFly__
  20930. #include <bus/u4b/usb.h>
  20931. #include <bus/u4b/usbhid.h>
  20932. #else
  20933. #include <dev/usb/usb.h>
  20934. #include <dev/usb/usbhid.h>
  20935. #endif
  20936. #if defined(HAVE_USBHID_H)
  20937. #include <usbhid.h>
  20938. #elif defined(HAVE_LIBUSB_H)
  20939. #include <libusb.h>
  20940. #elif defined(HAVE_LIBUSBHID_H)
  20941. #include <libusbhid.h>
  20942. #endif
  20943. int
  20944. main ()
  20945. {
  20946. report_desc_t d;
  20947. hid_start_parse(d, 1, 1);
  20948. ;
  20949. return 0;
  20950. }
  20951. _ACEOF
  20952. if ac_fn_c_try_compile "$LINENO"; then :
  20953. have_usbhid_new=yes
  20954. fi
  20955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20956. if test x$have_usbhid_new = xyes; then
  20957. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20958. fi
  20959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20960. $as_echo "$have_usbhid_new" >&6; }
  20961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20962. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20963. have_machine_joystick=no
  20964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20965. /* end confdefs.h. */
  20966. #include <machine/joystick.h>
  20967. int
  20968. main ()
  20969. {
  20970. struct joystick t;
  20971. ;
  20972. return 0;
  20973. }
  20974. _ACEOF
  20975. if ac_fn_c_try_compile "$LINENO"; then :
  20976. have_machine_joystick=yes
  20977. fi
  20978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20979. if test x$have_machine_joystick = xyes; then
  20980. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20981. fi
  20982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20983. $as_echo "$have_machine_joystick" >&6; }
  20984. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20985. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20986. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20988. have_joystick=yes
  20989. fi
  20990. CFLAGS="$save_CFLAGS"
  20991. fi
  20992. ;;
  20993. esac
  20994. }
  20995. CheckHIDAPI()
  20996. {
  20997. # Check whether --enable-hidapi was given.
  20998. if test "${enable_hidapi+set}" = set; then :
  20999. enableval=$enable_hidapi;
  21000. else
  21001. enable_hidapi=yes
  21002. fi
  21003. # Check whether --enable-hidapi-libusb was given.
  21004. if test "${enable_hidapi_libusb+set}" = set; then :
  21005. enableval=$enable_hidapi_libusb;
  21006. else
  21007. enable_hidapi_libusb=maybe
  21008. fi
  21009. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  21010. case "$host" in
  21011. # libusb does not support iOS
  21012. *-ios-* )
  21013. enable_hidapi_libusb=no
  21014. ;;
  21015. # On the other hand, *BSD specifically uses libusb only
  21016. *-*-*bsd* )
  21017. enable_hidapi_libusb=yes
  21018. require_hidapi_libusb=yes
  21019. ;;
  21020. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  21021. *-*-cygwin* | *-*-mingw*)
  21022. enable_joystick_rawinput=yes
  21023. ;;
  21024. esac
  21025. hidapi_support=yes
  21026. if test x$enable_hidapi_libusb = xyes; then
  21027. pkg_failed=no
  21028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21029. $as_echo_n "checking for libusb-1.0... " >&6; }
  21030. if test -n "$LIBUSB_CFLAGS"; then
  21031. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21032. elif test -n "$PKG_CONFIG"; then
  21033. if test -n "$PKG_CONFIG" && \
  21034. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21035. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21036. ac_status=$?
  21037. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21038. test $ac_status = 0; }; then
  21039. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21040. test "x$?" != "x0" && pkg_failed=yes
  21041. else
  21042. pkg_failed=yes
  21043. fi
  21044. else
  21045. pkg_failed=untried
  21046. fi
  21047. if test -n "$LIBUSB_LIBS"; then
  21048. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21049. elif test -n "$PKG_CONFIG"; then
  21050. if test -n "$PKG_CONFIG" && \
  21051. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21052. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21053. ac_status=$?
  21054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21055. test $ac_status = 0; }; then
  21056. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21057. test "x$?" != "x0" && pkg_failed=yes
  21058. else
  21059. pkg_failed=yes
  21060. fi
  21061. else
  21062. pkg_failed=untried
  21063. fi
  21064. if test $pkg_failed = yes; then
  21065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21066. $as_echo "no" >&6; }
  21067. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21068. _pkg_short_errors_supported=yes
  21069. else
  21070. _pkg_short_errors_supported=no
  21071. fi
  21072. if test $_pkg_short_errors_supported = yes; then
  21073. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21074. else
  21075. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21076. fi
  21077. # Put the nasty error message in config.log where it belongs
  21078. echo "$LIBUSB_PKG_ERRORS" >&5
  21079. have_libusb=no
  21080. elif test $pkg_failed = untried; then
  21081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21082. $as_echo "no" >&6; }
  21083. have_libusb=no
  21084. else
  21085. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21086. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21088. $as_echo "yes" >&6; }
  21089. have_libusb=yes
  21090. fi
  21091. save_CPPFLAGS="$CPPFLAGS"
  21092. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21093. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21094. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21095. have_libusb_h=yes
  21096. else
  21097. have_libusb_h=no
  21098. fi
  21099. CPPFLAGS="$save_CPPFLAGS"
  21100. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21101. hidapi_support=no
  21102. fi
  21103. fi
  21104. if test x$hidapi_support = xyes; then
  21105. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21106. if test x$enable_joystick_rawinput = xyes; then
  21107. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21108. fi
  21109. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21110. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21111. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  21112. if test x$have_libusb_h = xyes; then
  21113. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21114. if test x$require_hidapi_libusb = xyes; then
  21115. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21116. else
  21117. if test x$have_loadso != xyes; then
  21118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21119. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21120. fi
  21121. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21122. libusb_lib=""
  21123. case "$host" in
  21124. *-*-darwin* )
  21125. libusb_lib="libusb-1.0.0.dylib"
  21126. ;;
  21127. *-*-cygwin* | *-*-mingw* )
  21128. libusb_lib="libusb-1.0.dll"
  21129. ;;
  21130. esac
  21131. if test x$libusb_lib = x; then
  21132. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21133. fi
  21134. cat >>confdefs.h <<_ACEOF
  21135. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21136. _ACEOF
  21137. fi
  21138. fi
  21139. fi
  21140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21141. $as_echo_n "checking for hidapi support... " >&6; }
  21142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21143. $as_echo "$hidapi_support" >&6; }
  21144. fi
  21145. }
  21146. CheckClockGettime()
  21147. {
  21148. # Check whether --enable-clock_gettime was given.
  21149. if test "${enable_clock_gettime+set}" = set; then :
  21150. enableval=$enable_clock_gettime;
  21151. else
  21152. enable_clock_gettime=yes
  21153. fi
  21154. if test x$enable_clock_gettime = xyes; then
  21155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21156. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21157. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21158. $as_echo_n "(cached) " >&6
  21159. else
  21160. ac_check_lib_save_LIBS=$LIBS
  21161. LIBS="-lrt $LIBS"
  21162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21163. /* end confdefs.h. */
  21164. /* Override any GCC internal prototype to avoid an error.
  21165. Use char because int might match the return type of a GCC
  21166. builtin and then its argument prototype would still apply. */
  21167. #ifdef __cplusplus
  21168. extern "C"
  21169. #endif
  21170. char clock_gettime ();
  21171. int
  21172. main ()
  21173. {
  21174. return clock_gettime ();
  21175. ;
  21176. return 0;
  21177. }
  21178. _ACEOF
  21179. if ac_fn_c_try_link "$LINENO"; then :
  21180. ac_cv_lib_rt_clock_gettime=yes
  21181. else
  21182. ac_cv_lib_rt_clock_gettime=no
  21183. fi
  21184. rm -f core conftest.err conftest.$ac_objext \
  21185. conftest$ac_exeext conftest.$ac_ext
  21186. LIBS=$ac_check_lib_save_LIBS
  21187. fi
  21188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21189. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21190. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21191. have_clock_gettime=yes
  21192. fi
  21193. if test x$have_clock_gettime = xyes; then
  21194. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21196. else
  21197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21198. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21199. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21200. $as_echo_n "(cached) " >&6
  21201. else
  21202. ac_check_lib_save_LIBS=$LIBS
  21203. LIBS="-lc $LIBS"
  21204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21205. /* end confdefs.h. */
  21206. /* Override any GCC internal prototype to avoid an error.
  21207. Use char because int might match the return type of a GCC
  21208. builtin and then its argument prototype would still apply. */
  21209. #ifdef __cplusplus
  21210. extern "C"
  21211. #endif
  21212. char clock_gettime ();
  21213. int
  21214. main ()
  21215. {
  21216. return clock_gettime ();
  21217. ;
  21218. return 0;
  21219. }
  21220. _ACEOF
  21221. if ac_fn_c_try_link "$LINENO"; then :
  21222. ac_cv_lib_c_clock_gettime=yes
  21223. else
  21224. ac_cv_lib_c_clock_gettime=no
  21225. fi
  21226. rm -f core conftest.err conftest.$ac_objext \
  21227. conftest$ac_exeext conftest.$ac_ext
  21228. LIBS=$ac_check_lib_save_LIBS
  21229. fi
  21230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21231. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21232. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21233. have_clock_gettime=yes
  21234. fi
  21235. if test x$have_clock_gettime = xyes; then
  21236. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21238. fi
  21239. fi
  21240. fi
  21241. }
  21242. CheckLinuxVersion()
  21243. {
  21244. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21245. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21246. have_linux_version_h=yes
  21247. fi
  21248. if test x$have_linux_version_h = xyes; then
  21249. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21250. fi
  21251. }
  21252. CheckRPATH()
  21253. {
  21254. # Check whether --enable-rpath was given.
  21255. if test "${enable_rpath+set}" = set; then :
  21256. enableval=$enable_rpath;
  21257. else
  21258. enable_rpath=yes
  21259. fi
  21260. }
  21261. CheckEventSignals()
  21262. {
  21263. # Check whether --enable-backgrounding-signal was given.
  21264. if test "${enable_backgrounding_signal+set}" = set; then :
  21265. enableval=$enable_backgrounding_signal;
  21266. else
  21267. enable_backgrounding_signal=no
  21268. fi
  21269. if test x$enable_backgrounding_signal != xno; then
  21270. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21271. fi
  21272. # Check whether --enable-foregrounding-signal was given.
  21273. if test "${enable_foregrounding_signal+set}" = set; then :
  21274. enableval=$enable_foregrounding_signal;
  21275. else
  21276. enable_foregrounding_signal=no
  21277. fi
  21278. if test x$enable_foregrounding_signal != xno; then
  21279. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21280. fi
  21281. }
  21282. CheckVirtualJoystick()
  21283. {
  21284. # Check whether --enable-joystick-virtual was given.
  21285. if test "${enable_joystick_virtual+set}" = set; then :
  21286. enableval=$enable_joystick_virtual;
  21287. else
  21288. enable_joystick_virtual=yes
  21289. fi
  21290. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21291. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21292. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21293. have_joystick_virtual=yes
  21294. fi
  21295. }
  21296. CheckWarnAll
  21297. CheckNoStrictAliasing
  21298. CheckEventSignals
  21299. have_locale=no
  21300. case "$host" in
  21301. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21302. case "$host" in
  21303. *-*-android*)
  21304. # Android
  21305. ARCH=android
  21306. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21307. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21308. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21309. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21310. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21311. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21312. if test x$enable_video = xyes; then
  21313. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21314. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21315. SUMMARY_video="${SUMMARY_video} android"
  21316. fi
  21317. ;;
  21318. *-*-linux*) ARCH=linux ;;
  21319. *-*-uclinux*) ARCH=linux ;;
  21320. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21321. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21322. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21323. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21324. *-*-bsdi*) ARCH=bsdi ;;
  21325. *-*-freebsd*) ARCH=freebsd ;;
  21326. *-*-dragonfly*) ARCH=freebsd ;;
  21327. *-*-netbsd*) ARCH=netbsd ;;
  21328. *-*-openbsd*) ARCH=openbsd ;;
  21329. *-*-sysv5*) ARCH=sysv5 ;;
  21330. *-*-solaris*) ARCH=solaris ;;
  21331. *-*-hpux*) ARCH=hpux ;;
  21332. *-*-aix*) ARCH=aix ;;
  21333. *-*-minix*) ARCH=minix ;;
  21334. *-*-nto*) ARCH=nto
  21335. CheckQNXVideo
  21336. ;;
  21337. esac
  21338. CheckVisibilityHidden
  21339. CheckDeclarationAfterStatement
  21340. CheckDummyVideo
  21341. CheckDiskAudio
  21342. CheckDummyAudio
  21343. CheckDLOPEN
  21344. CheckARM
  21345. CheckNEON
  21346. CheckOSS
  21347. CheckALSA
  21348. CheckPipewire
  21349. CheckPulseAudio
  21350. CheckJACK
  21351. CheckARTSC
  21352. CheckESD
  21353. CheckNAS
  21354. CheckSNDIO
  21355. CheckFusionSound
  21356. CheckLibSampleRate
  21357. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21358. CheckRPI
  21359. CheckX11
  21360. CheckDirectFB
  21361. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  21362. CheckEGL
  21363. CheckKMSDRM
  21364. CheckGLX
  21365. CheckOpenGL
  21366. CheckOpenGLES
  21367. CheckVulkan
  21368. CheckWayland
  21369. CheckInputEvents
  21370. CheckLibUDev
  21371. CheckDBus
  21372. CheckIME
  21373. CheckInotify
  21374. CheckIBus
  21375. CheckFcitx
  21376. case $ARCH in
  21377. linux)
  21378. CheckInputKD
  21379. ;;
  21380. freebsd)
  21381. CheckInputKBIO
  21382. ;;
  21383. openbsd|netbsd)
  21384. CheckInputWSCONS
  21385. ;;
  21386. esac
  21387. CheckUSBHID
  21388. CheckHIDAPI
  21389. CheckPTHREAD
  21390. CheckClockGettime
  21391. CheckLinuxVersion
  21392. CheckRPATH
  21393. CheckVivanteVideo
  21394. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21395. have_misc=yes
  21396. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21397. have_locale=yes
  21398. # Set up files for the audio library
  21399. if test x$enable_audio = xyes; then
  21400. case $ARCH in
  21401. sysv5|solaris|hpux)
  21402. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21403. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21404. SUMMARY_audio="${SUMMARY_audio} sun"
  21405. have_audio=yes
  21406. ;;
  21407. netbsd) # Don't use this on OpenBSD, it's busted.
  21408. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21409. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21410. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21411. have_audio=yes
  21412. ;;
  21413. aix)
  21414. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21415. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21416. SUMMARY_audio="${SUMMARY_audio} paudio"
  21417. have_audio=yes
  21418. ;;
  21419. android)
  21420. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21421. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21422. SUMMARY_audio="${SUMMARY_audio} android"
  21423. have_audio=yes
  21424. ;;
  21425. nto)
  21426. CheckQNXAudio
  21427. ;;
  21428. esac
  21429. fi
  21430. # Set up files for the joystick library
  21431. if test x$enable_joystick = xyes; then
  21432. case $ARCH in
  21433. linux)
  21434. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21435. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21436. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21437. have_joystick=yes
  21438. ;;
  21439. freebsd)
  21440. if test x$use_input_events = xyes; then
  21441. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21442. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21443. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21444. have_joystick=yes
  21445. fi
  21446. ;;
  21447. android)
  21448. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21449. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21450. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21451. have_joystick=yes
  21452. ;;
  21453. esac
  21454. fi
  21455. # Set up files for the haptic library
  21456. if test x$enable_haptic = xyes; then
  21457. case $ARCH in
  21458. linux|freebsd)
  21459. if test x$use_input_events = xyes; then
  21460. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21461. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21462. have_haptic=yes
  21463. fi
  21464. ;;
  21465. android)
  21466. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21467. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21468. have_haptic=yes
  21469. ;;
  21470. esac
  21471. fi
  21472. # Set up files for the sensor library
  21473. if test x$enable_sensor = xyes; then
  21474. case $ARCH in
  21475. android)
  21476. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21477. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21478. have_sensor=yes
  21479. ;;
  21480. esac
  21481. fi
  21482. # Set up files for the power library
  21483. if test x$enable_power = xyes; then
  21484. case $ARCH in
  21485. linux)
  21486. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21487. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21488. have_power=yes
  21489. ;;
  21490. android)
  21491. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21492. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21493. have_power=yes
  21494. ;;
  21495. esac
  21496. fi
  21497. # Set up files for the filesystem library
  21498. if test x$enable_filesystem = xyes; then
  21499. case $ARCH in
  21500. android)
  21501. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21502. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21503. have_filesystem=yes
  21504. ;;
  21505. *)
  21506. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21507. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21508. have_filesystem=yes
  21509. ;;
  21510. esac
  21511. fi
  21512. # Set up files for the timer library
  21513. if test x$enable_timers = xyes; then
  21514. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21515. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21516. have_timers=yes
  21517. fi
  21518. # Set up files for udev hotplugging support
  21519. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21520. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21521. fi
  21522. # Set up files for evdev input
  21523. if test x$use_input_events = xyes; then
  21524. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21525. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21526. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21527. fi
  21528. # Set up files for wscons input
  21529. if test x$use_input_wscons = xyes; then
  21530. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21531. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21532. fi
  21533. # Set up other core UNIX files
  21534. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21535. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21536. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21537. ;;
  21538. *-*-cygwin* | *-*-mingw*)
  21539. ARCH=win32
  21540. if test "$build" != "$host"; then # cross-compiling
  21541. # Default cross-compile location
  21542. ac_default_prefix=/usr/local/cross-tools/$host
  21543. else
  21544. # Look for the location of the tools and install there
  21545. if test "$BUILD_PREFIX" != ""; then
  21546. ac_default_prefix=$BUILD_PREFIX
  21547. fi
  21548. fi
  21549. CheckDeclarationAfterStatement
  21550. CheckDummyVideo
  21551. CheckDiskAudio
  21552. CheckDummyAudio
  21553. CheckWINDOWS
  21554. CheckWINDOWSGL
  21555. CheckWINDOWSGLES
  21556. CheckVulkan
  21557. CheckDIRECTX
  21558. CheckHIDAPI
  21559. # Set up the core platform files
  21560. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21561. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21562. have_misc=yes
  21563. # Use the Windows locale APIs.
  21564. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21565. have_locale=yes
  21566. # Set up files for the video library
  21567. if test x$enable_video = xyes; then
  21568. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21569. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21570. have_video=yes
  21571. # Check whether --enable-render-d3d was given.
  21572. if test "${enable_render_d3d+set}" = set; then :
  21573. enableval=$enable_render_d3d;
  21574. else
  21575. enable_render_d3d=yes
  21576. fi
  21577. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21578. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21579. SUMMARY_video="${SUMMARY_video} d3d9"
  21580. fi
  21581. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21582. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21583. SUMMARY_video="${SUMMARY_video} d3d11"
  21584. fi
  21585. fi
  21586. # Set up files for the audio library
  21587. if test x$enable_audio = xyes; then
  21588. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21589. SUMMARY_audio="${SUMMARY_audio} winmm"
  21590. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21591. if test x$have_dsound = xyes; then
  21592. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21593. SUMMARY_audio="${SUMMARY_audio} directsound"
  21594. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21595. fi
  21596. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21597. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21598. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21599. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21600. fi
  21601. have_audio=yes
  21602. fi
  21603. # Set up files for the joystick library
  21604. if test x$enable_joystick = xyes; then
  21605. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21606. if test x$have_xinput = xyes; then
  21607. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21608. fi
  21609. if test x$have_dinput = xyes; then
  21610. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21612. fi
  21613. else
  21614. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21615. fi
  21616. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21617. have_joystick=yes
  21618. fi
  21619. if test x$enable_haptic = xyes; then
  21620. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21621. if test x$have_xinput = xyes; then
  21622. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21623. fi
  21624. if test x$have_dinput = xyes; then
  21625. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21626. fi
  21627. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21628. have_haptic=yes
  21629. fi
  21630. fi
  21631. # Set up files for the sensor library
  21632. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21633. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21634. have_winsensors=yes
  21635. else
  21636. have_winsensors=no
  21637. fi
  21638. if test x$have_winsensors = xyes; then
  21639. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21640. fi
  21641. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21642. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21643. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21644. have_sensor=yes
  21645. fi
  21646. # Set up files for the power library
  21647. if test x$enable_power = xyes; then
  21648. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21649. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21650. have_power=yes
  21651. fi
  21652. # Set up files for the filesystem library
  21653. if test x$enable_filesystem = xyes; then
  21654. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21655. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21656. have_filesystem=yes
  21657. fi
  21658. # Set up files for the thread library
  21659. if test x$enable_threads = xyes; then
  21660. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21661. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21662. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21663. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21664. have_threads=yes
  21665. fi
  21666. # Set up files for the timer library
  21667. if test x$enable_timers = xyes; then
  21668. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21669. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21670. have_timers=yes
  21671. fi
  21672. # Set up files for the shared object loading library
  21673. if test x$enable_loadso = xyes; then
  21674. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21675. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21676. have_loadso=yes
  21677. fi
  21678. # Set up the system libraries we need
  21679. if test -f /lib/w32api/libuuid.a; then
  21680. LIBUUID=/lib/w32api/libuuid.a
  21681. else
  21682. LIBUUID=-luuid
  21683. fi
  21684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21685. # The Windows platform requires special setup
  21686. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21687. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21688. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21689. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21690. # Check to see if this is a mingw or cygwin build
  21691. have_mingw32=
  21692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21693. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21694. if ${ac_cv_lib_mingw32_main+:} false; then :
  21695. $as_echo_n "(cached) " >&6
  21696. else
  21697. ac_check_lib_save_LIBS=$LIBS
  21698. LIBS="-lmingw32 $LIBS"
  21699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21700. /* end confdefs.h. */
  21701. int
  21702. main ()
  21703. {
  21704. return main ();
  21705. ;
  21706. return 0;
  21707. }
  21708. _ACEOF
  21709. if ac_fn_c_try_link "$LINENO"; then :
  21710. ac_cv_lib_mingw32_main=yes
  21711. else
  21712. ac_cv_lib_mingw32_main=no
  21713. fi
  21714. rm -f core conftest.err conftest.$ac_objext \
  21715. conftest$ac_exeext conftest.$ac_ext
  21716. LIBS=$ac_check_lib_save_LIBS
  21717. fi
  21718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21719. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21720. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21721. have_mingw32=yes
  21722. fi
  21723. if test x$have_mingw32 = xyes; then
  21724. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21725. else
  21726. SDL_LIBS="-lcygwin $SDL_LIBS"
  21727. fi
  21728. ;;
  21729. *-*-beos*)
  21730. as_fn_error $? "
  21731. *** BeOS support has been removed as of SDL 2.0.2.
  21732. " "$LINENO" 5
  21733. ;;
  21734. *-*-haiku*)
  21735. ARCH=haiku
  21736. ac_default_prefix=/boot/system
  21737. CheckDummyVideo
  21738. CheckDiskAudio
  21739. CheckDummyAudio
  21740. CheckDLOPEN
  21741. CheckHaikuVideo
  21742. CheckHaikuGL
  21743. CheckPTHREAD
  21744. # Set up files for the audio library
  21745. if test x$enable_audio = xyes; then
  21746. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21747. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21748. SUMMARY_audio="${SUMMARY_audio} haiku"
  21749. have_audio=yes
  21750. fi
  21751. # Set up files for the joystick library
  21752. if test x$enable_joystick = xyes; then
  21753. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21754. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21755. have_joystick=yes
  21756. fi
  21757. # Set up files for the timer library
  21758. if test x$enable_timers = xyes; then
  21759. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21760. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21761. have_timers=yes
  21762. fi
  21763. # Set up files for the system power library
  21764. if test x$enable_power = xyes; then
  21765. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21766. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21767. have_power=yes
  21768. fi
  21769. # Set up files for the system filesystem library
  21770. if test x$enable_filesystem = xyes; then
  21771. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21772. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21773. have_filesystem=yes
  21774. fi
  21775. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21776. have_misc=yes
  21777. # Set up files for the locale library
  21778. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21779. have_locale=yes
  21780. # The Haiku platform requires special setup.
  21781. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21783. ;;
  21784. *-ios-*)
  21785. ARCH=ios
  21786. CheckVisibilityHidden
  21787. CheckDeclarationAfterStatement
  21788. CheckDummyVideo
  21789. CheckDiskAudio
  21790. CheckDummyAudio
  21791. CheckDLOPEN
  21792. CheckMETAL
  21793. CheckVulkan
  21794. CheckPTHREAD
  21795. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21796. have_misc=yes
  21797. # Set up files for the locale library
  21798. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21799. have_locale=yes
  21800. # Set up files for the audio library
  21801. if test x$enable_audio = xyes; then
  21802. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21803. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21804. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21805. have_audio=yes
  21806. fi
  21807. # Set up files for the joystick library
  21808. if test x$enable_joystick = xyes; then
  21809. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21810. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21811. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21812. have_joystick=yes
  21813. else
  21814. # Need this code for accelerometer as joystick support
  21815. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21816. fi
  21817. # Set up files for the haptic library
  21818. #if test x$enable_haptic = xyes; then
  21819. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21820. # have_haptic=yes
  21821. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21822. #fi
  21823. # Set up files for the sensor library
  21824. if test x$enable_sensor = xyes; then
  21825. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21826. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21827. have_sensor=yes
  21828. fi
  21829. # Set up files for the power library
  21830. if test x$enable_power = xyes; then
  21831. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21832. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21833. have_power=yes
  21834. fi
  21835. # Set up files for the filesystem library
  21836. if test x$enable_filesystem = xyes; then
  21837. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21838. have_filesystem=yes
  21839. fi
  21840. # Set up additional files for the file library
  21841. if test x$enable_file = xyes; then
  21842. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21843. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21844. fi
  21845. # Set up files for the timer library
  21846. if test x$enable_timers = xyes; then
  21847. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21848. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21849. have_timers=yes
  21850. fi
  21851. # Set up other core UNIX files
  21852. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21853. # The iOS platform requires special setup.
  21854. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21855. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21856. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21857. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21858. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21859. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21860. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21861. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21863. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21865. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21866. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21867. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21868. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21871. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21873. fi
  21874. ;;
  21875. *-*-darwin* )
  21876. # This could be either full "Mac OS X", or plain "Darwin" which is
  21877. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21878. # Next line is broken, and a few files below require Mac OS X (full)
  21879. ARCH=macosx
  21880. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21881. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21882. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21883. CheckVisibilityHidden
  21884. CheckDeclarationAfterStatement
  21885. CheckDummyVideo
  21886. CheckDiskAudio
  21887. CheckDummyAudio
  21888. CheckDLOPEN
  21889. CheckCOCOA
  21890. CheckMETAL
  21891. CheckX11
  21892. CheckMacGL
  21893. CheckMacGLES
  21894. CheckGLX
  21895. CheckOpenGL
  21896. CheckVulkan
  21897. CheckPTHREAD
  21898. CheckHIDAPI
  21899. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21900. have_misc=yes
  21901. # Set up files for the locale library
  21902. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21903. have_locale=yes
  21904. # Set up files for the audio library
  21905. if test x$enable_audio = xyes; then
  21906. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21907. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21909. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21910. have_audio=yes
  21911. fi
  21912. # Set up files for the joystick library
  21913. if test x$enable_joystick = xyes; then
  21914. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21915. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21916. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21917. CheckJoystickMFI
  21918. have_joystick=yes
  21919. fi
  21920. # Set up files for the haptic library
  21921. if test x$enable_haptic = xyes; then
  21922. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21923. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21924. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21925. have_haptic=yes
  21926. fi
  21927. # Set up files for the power library
  21928. if test x$enable_power = xyes; then
  21929. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21930. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21931. have_power=yes
  21932. fi
  21933. # Set up files for the filesystem library
  21934. if test x$enable_filesystem = xyes; then
  21935. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21936. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21937. have_filesystem=yes
  21938. fi
  21939. # Set up files for the timer library
  21940. if test x$enable_timers = xyes; then
  21941. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21942. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21943. have_timers=yes
  21944. fi
  21945. # Set up additional files for the file library
  21946. if test x$enable_file = xyes; then
  21947. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21948. fi
  21949. # Set up other core UNIX files
  21950. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21951. # The Mac OS X platform requires special setup.
  21952. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21953. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21955. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21956. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21957. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21959. fi
  21960. ;;
  21961. *-nacl|*-pnacl)
  21962. ARCH=nacl
  21963. CheckNativeClient
  21964. CheckDummyAudio
  21965. CheckDummyVideo
  21966. CheckInputEvents
  21967. CheckPTHREAD
  21968. # Set up files for the timer library
  21969. if test x$enable_timers = xyes; then
  21970. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21971. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21972. have_timers=yes
  21973. fi
  21974. if test x$enable_filesystem = xyes; then
  21975. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21976. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21977. have_filesystem=yes
  21978. fi
  21979. ;;
  21980. *-*-emscripten* )
  21981. if test x$enable_video = xyes; then
  21982. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21983. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21984. have_video=yes
  21985. SUMMARY_video="${SUMMARY_video} emscripten"
  21986. fi
  21987. if test x$enable_audio = xyes; then
  21988. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21989. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21990. have_audio=yes
  21991. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21992. fi
  21993. CheckVisibilityHidden
  21994. CheckDeclarationAfterStatement
  21995. CheckDummyVideo
  21996. CheckDiskAudio
  21997. CheckDummyAudio
  21998. CheckPTHREAD
  21999. CheckDLOPEN
  22000. CheckClockGettime
  22001. CheckEmscriptenGLES
  22002. # Set up files for the power library
  22003. if test x$enable_power = xyes; then
  22004. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22005. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22006. have_power=yes
  22007. fi
  22008. # Set up files for the power library
  22009. if test x$enable_joystick = xyes; then
  22010. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22011. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22012. have_joystick=yes
  22013. fi
  22014. # Set up files for the filesystem library
  22015. if test x$enable_filesystem = xyes; then
  22016. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22017. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22018. have_filesystem=yes
  22019. fi
  22020. # Set up files for the timer library
  22021. if test x$enable_timers = xyes; then
  22022. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22023. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22024. have_timers=yes
  22025. fi
  22026. # Set up files for the locale library
  22027. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22028. have_locale=yes
  22029. ;;
  22030. *-*-riscos*)
  22031. ARCH=riscos
  22032. CheckVisibilityHidden
  22033. CheckDeclarationAfterStatement
  22034. CheckDummyVideo
  22035. CheckDiskAudio
  22036. CheckDummyAudio
  22037. CheckDLOPEN
  22038. CheckOSS
  22039. CheckPTHREAD
  22040. CheckClockGettime
  22041. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22042. have_misc=yes
  22043. # Set up files for the timer library
  22044. if test x$enable_timers = xyes; then
  22045. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22046. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22047. have_timers=yes
  22048. fi
  22049. ;;
  22050. *)
  22051. as_fn_error $? "
  22052. *** Unsupported host: Please add to configure.ac
  22053. " "$LINENO" 5
  22054. ;;
  22055. esac
  22056. CheckVirtualJoystick
  22057. # Check whether to install sdl2-config
  22058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22059. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22060. # Check whether --enable-sdl2-config was given.
  22061. if test "${enable_sdl2_config+set}" = set; then :
  22062. enableval=$enable_sdl2_config; case "${enableval}" in
  22063. yes) enable_sdl2_config="TRUE" ;;
  22064. no) enable_sdl2_config="FALSE" ;;
  22065. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22066. esac
  22067. else
  22068. enable_sdl2_config="TRUE"
  22069. fi
  22070. if test "$enable_sdl2_config" = "TRUE"; then
  22071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22072. $as_echo "yes" >&6; }
  22073. else
  22074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22075. $as_echo "no" >&6; }
  22076. fi
  22077. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22078. # Verify that we have all the platform specific files we need
  22079. if test x$have_misc != xyes; then
  22080. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22081. fi
  22082. if test x$have_locale != xyes; then
  22083. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22084. fi
  22085. if test x$have_joystick != xyes; then
  22086. if test x$enable_joystick = xyes; then
  22087. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22088. fi
  22089. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22090. fi
  22091. if test x$have_haptic != xyes; then
  22092. if test x$enable_haptic = xyes; then
  22093. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22094. fi
  22095. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22096. fi
  22097. if test x$have_sensor != xyes; then
  22098. if test x$enable_sensor = xyes; then
  22099. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22100. fi
  22101. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22102. fi
  22103. if test x$have_threads != xyes; then
  22104. if test x$enable_threads = xyes; then
  22105. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22106. fi
  22107. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22108. fi
  22109. if test x$have_timers != xyes; then
  22110. if test x$enable_timers = xyes; then
  22111. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22112. fi
  22113. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22114. fi
  22115. if test x$have_filesystem != xyes; then
  22116. if test x$enable_filesystem = xyes; then
  22117. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22118. fi
  22119. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22120. fi
  22121. if test x$have_loadso != xyes; then
  22122. if test x$enable_loadso = xyes; then
  22123. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22124. fi
  22125. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22126. fi
  22127. if test x$SDLMAIN_SOURCES = x; then
  22128. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22129. fi
  22130. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22131. if test x$video_wayland = xyes; then
  22132. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22133. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22134. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22135. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22136. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22137. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22138. echo ;\
  22139. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22140. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22141. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22142. echo ;\
  22143. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22144. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22145. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22146. echo ;\
  22147. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22148. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22149. done ;\
  22150. echo ;\
  22151. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22152. fi
  22153. OBJECTS=`echo $SOURCES`
  22154. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22155. for EXT in asm cc m c S; do
  22156. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22157. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22158. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22159. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22160. done
  22161. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22162. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22163. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22164. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22165. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22166. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22167. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22168. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22169. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22170. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22171. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22172. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22173. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22174. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22175. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22176. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22177. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22178. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22179. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22180. # Set runtime shared library paths as needed
  22181. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22182. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22183. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22185. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22186. have_enable_new_dtags=no
  22187. save_LDFLAGS="$LDFLAGS"
  22188. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22190. /* end confdefs.h. */
  22191. int
  22192. main ()
  22193. {
  22194. ;
  22195. return 0;
  22196. }
  22197. _ACEOF
  22198. if ac_fn_c_try_link "$LINENO"; then :
  22199. have_enable_new_dtags=yes
  22200. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22201. fi
  22202. rm -f core conftest.err conftest.$ac_objext \
  22203. conftest$ac_exeext conftest.$ac_ext
  22204. LDFLAGS="$save_LDFLAGS"
  22205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22206. $as_echo "$have_enable_new_dtags" >&6; }
  22207. fi
  22208. if test $ARCH = solaris; then
  22209. SDL_RLD_FLAGS="-R\${libdir}"
  22210. fi
  22211. else
  22212. SDL_RLD_FLAGS=""
  22213. fi
  22214. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22215. if test x$enable_shared = xyes; then
  22216. PKGCONFIG_LIBS_PRIV="
  22217. Libs.private:"
  22218. ENABLE_SHARED_TRUE=
  22219. ENABLE_SHARED_FALSE="#"
  22220. else
  22221. PKGCONFIG_LIBS_PRIV=
  22222. ENABLE_SHARED_TRUE="#"
  22223. ENABLE_SHARED_FALSE=
  22224. fi
  22225. if test x$enable_static = xyes; then
  22226. ENABLE_STATIC_TRUE=
  22227. ENABLE_STATIC_FALSE="#"
  22228. else
  22229. ENABLE_STATIC_TRUE="#"
  22230. ENABLE_STATIC_FALSE=
  22231. fi
  22232. cat >Makefile.rules <<__EOF__
  22233. # Build rules for objects
  22234. -include \$(OBJECTS:.lo=.d)
  22235. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22236. $srcdir/src/SDL.c: update-revision
  22237. $DEPENDS
  22238. $VERSION_DEPENDS
  22239. $SDLMAIN_DEPENDS
  22240. $SDLTEST_DEPENDS
  22241. $WAYLAND_PROTOCOLS_DEPENDS
  22242. __EOF__
  22243. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22244. ac_config_commands="$ac_config_commands sdl2_config"
  22245. SUMMARY="SDL2 Configure Summary:\n"
  22246. if test x$enable_shared = xyes; then
  22247. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22248. fi
  22249. if test x$enable_static = xyes; then
  22250. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22251. fi
  22252. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22253. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22254. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22255. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22256. if test x$have_x = xyes; then
  22257. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22258. fi
  22259. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22260. if test x$have_joystick_virtual = xyes; then
  22261. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22262. else
  22263. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22264. fi
  22265. if test x$have_samplerate_h_hdr = xyes; then
  22266. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22267. else
  22268. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22269. fi
  22270. if test x$have_libudev_h_hdr = xyes; then
  22271. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22272. else
  22273. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22274. fi
  22275. if test x$have_dbus_dbus_h_hdr = xyes; then
  22276. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22277. else
  22278. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22279. fi
  22280. if test x$enable_ime = xyes; then
  22281. SUMMARY="${SUMMARY}Using ime : YES\n"
  22282. else
  22283. SUMMARY="${SUMMARY}Using ime : NO\n"
  22284. fi
  22285. if test x$have_ibus_ibus_h_hdr = xyes; then
  22286. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22287. else
  22288. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22289. fi
  22290. if test x$have_fcitx = xyes; then
  22291. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22292. else
  22293. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22294. fi
  22295. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22296. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22297. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22298. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22299. SUMMARY="${SUMMARY}configure script with:\n"
  22300. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22301. fi
  22302. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22303. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22304. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22305. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22306. SUMMARY="${SUMMARY}configure script with:\n"
  22307. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22308. fi
  22309. ac_config_commands="$ac_config_commands summary"
  22310. cat >confcache <<\_ACEOF
  22311. # This file is a shell script that caches the results of configure
  22312. # tests run on this system so they can be shared between configure
  22313. # scripts and configure runs, see configure's option --config-cache.
  22314. # It is not useful on other systems. If it contains results you don't
  22315. # want to keep, you may remove or edit it.
  22316. #
  22317. # config.status only pays attention to the cache file if you give it
  22318. # the --recheck option to rerun configure.
  22319. #
  22320. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22321. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22322. # following values.
  22323. _ACEOF
  22324. # The following way of writing the cache mishandles newlines in values,
  22325. # but we know of no workaround that is simple, portable, and efficient.
  22326. # So, we kill variables containing newlines.
  22327. # Ultrix sh set writes to stderr and can't be redirected directly,
  22328. # and sets the high bit in the cache file unless we assign to the vars.
  22329. (
  22330. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22331. eval ac_val=\$$ac_var
  22332. case $ac_val in #(
  22333. *${as_nl}*)
  22334. case $ac_var in #(
  22335. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22336. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22337. esac
  22338. case $ac_var in #(
  22339. _ | IFS | as_nl) ;; #(
  22340. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22341. *) { eval $ac_var=; unset $ac_var;} ;;
  22342. esac ;;
  22343. esac
  22344. done
  22345. (set) 2>&1 |
  22346. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22347. *${as_nl}ac_space=\ *)
  22348. # `set' does not quote correctly, so add quotes: double-quote
  22349. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22350. sed -n \
  22351. "s/'/'\\\\''/g;
  22352. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22353. ;; #(
  22354. *)
  22355. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22356. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22357. ;;
  22358. esac |
  22359. sort
  22360. ) |
  22361. sed '
  22362. /^ac_cv_env_/b end
  22363. t clear
  22364. :clear
  22365. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22366. t end
  22367. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22368. :end' >>confcache
  22369. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22370. if test -w "$cache_file"; then
  22371. if test "x$cache_file" != "x/dev/null"; then
  22372. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22373. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22374. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22375. cat confcache >"$cache_file"
  22376. else
  22377. case $cache_file in #(
  22378. */* | ?:*)
  22379. mv -f confcache "$cache_file"$$ &&
  22380. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22381. *)
  22382. mv -f confcache "$cache_file" ;;
  22383. esac
  22384. fi
  22385. fi
  22386. else
  22387. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22388. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22389. fi
  22390. fi
  22391. rm -f confcache
  22392. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22393. # Let make expand exec_prefix.
  22394. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22395. DEFS=-DHAVE_CONFIG_H
  22396. ac_libobjs=
  22397. ac_ltlibobjs=
  22398. U=
  22399. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22400. # 1. Remove the extension, and $U if already installed.
  22401. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22402. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22403. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22404. # will be set to the directory where LIBOBJS objects are built.
  22405. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22406. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22407. done
  22408. LIBOBJS=$ac_libobjs
  22409. LTLIBOBJS=$ac_ltlibobjs
  22410. : "${CONFIG_STATUS=./config.status}"
  22411. ac_write_fail=0
  22412. ac_clean_files_save=$ac_clean_files
  22413. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22414. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22415. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22416. as_write_fail=0
  22417. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22418. #! $SHELL
  22419. # Generated by $as_me.
  22420. # Run this file to recreate the current configuration.
  22421. # Compiler output produced by configure, useful for debugging
  22422. # configure, is in config.log if it exists.
  22423. debug=false
  22424. ac_cs_recheck=false
  22425. ac_cs_silent=false
  22426. SHELL=\${CONFIG_SHELL-$SHELL}
  22427. export SHELL
  22428. _ASEOF
  22429. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22430. ## -------------------- ##
  22431. ## M4sh Initialization. ##
  22432. ## -------------------- ##
  22433. # Be more Bourne compatible
  22434. DUALCASE=1; export DUALCASE # for MKS sh
  22435. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22436. emulate sh
  22437. NULLCMD=:
  22438. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22439. # is contrary to our usage. Disable this feature.
  22440. alias -g '${1+"$@"}'='"$@"'
  22441. setopt NO_GLOB_SUBST
  22442. else
  22443. case `(set -o) 2>/dev/null` in #(
  22444. *posix*) :
  22445. set -o posix ;; #(
  22446. *) :
  22447. ;;
  22448. esac
  22449. fi
  22450. as_nl='
  22451. '
  22452. export as_nl
  22453. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22454. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22455. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22456. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22457. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22458. # but without wasting forks for bash or zsh.
  22459. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22460. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22461. as_echo='print -r --'
  22462. as_echo_n='print -rn --'
  22463. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22464. as_echo='printf %s\n'
  22465. as_echo_n='printf %s'
  22466. else
  22467. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22468. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22469. as_echo_n='/usr/ucb/echo -n'
  22470. else
  22471. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22472. as_echo_n_body='eval
  22473. arg=$1;
  22474. case $arg in #(
  22475. *"$as_nl"*)
  22476. expr "X$arg" : "X\\(.*\\)$as_nl";
  22477. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22478. esac;
  22479. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22480. '
  22481. export as_echo_n_body
  22482. as_echo_n='sh -c $as_echo_n_body as_echo'
  22483. fi
  22484. export as_echo_body
  22485. as_echo='sh -c $as_echo_body as_echo'
  22486. fi
  22487. # The user is always right.
  22488. if test "${PATH_SEPARATOR+set}" != set; then
  22489. PATH_SEPARATOR=:
  22490. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22491. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22492. PATH_SEPARATOR=';'
  22493. }
  22494. fi
  22495. # IFS
  22496. # We need space, tab and new line, in precisely that order. Quoting is
  22497. # there to prevent editors from complaining about space-tab.
  22498. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22499. # splitting by setting IFS to empty value.)
  22500. IFS=" "" $as_nl"
  22501. # Find who we are. Look in the path if we contain no directory separator.
  22502. as_myself=
  22503. case $0 in #((
  22504. *[\\/]* ) as_myself=$0 ;;
  22505. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22506. for as_dir in $PATH
  22507. do
  22508. IFS=$as_save_IFS
  22509. test -z "$as_dir" && as_dir=.
  22510. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22511. done
  22512. IFS=$as_save_IFS
  22513. ;;
  22514. esac
  22515. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22516. # in which case we are not to be found in the path.
  22517. if test "x$as_myself" = x; then
  22518. as_myself=$0
  22519. fi
  22520. if test ! -f "$as_myself"; then
  22521. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22522. exit 1
  22523. fi
  22524. # Unset variables that we do not need and which cause bugs (e.g. in
  22525. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22526. # suppresses any "Segmentation fault" message there. '((' could
  22527. # trigger a bug in pdksh 5.2.14.
  22528. for as_var in BASH_ENV ENV MAIL MAILPATH
  22529. do eval test x\${$as_var+set} = xset \
  22530. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22531. done
  22532. PS1='$ '
  22533. PS2='> '
  22534. PS4='+ '
  22535. # NLS nuisances.
  22536. LC_ALL=C
  22537. export LC_ALL
  22538. LANGUAGE=C
  22539. export LANGUAGE
  22540. # CDPATH.
  22541. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22542. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22543. # ----------------------------------------
  22544. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22545. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22546. # script with STATUS, using 1 if that was 0.
  22547. as_fn_error ()
  22548. {
  22549. as_status=$1; test $as_status -eq 0 && as_status=1
  22550. if test "$4"; then
  22551. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22552. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22553. fi
  22554. $as_echo "$as_me: error: $2" >&2
  22555. as_fn_exit $as_status
  22556. } # as_fn_error
  22557. # as_fn_set_status STATUS
  22558. # -----------------------
  22559. # Set $? to STATUS, without forking.
  22560. as_fn_set_status ()
  22561. {
  22562. return $1
  22563. } # as_fn_set_status
  22564. # as_fn_exit STATUS
  22565. # -----------------
  22566. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22567. as_fn_exit ()
  22568. {
  22569. set +e
  22570. as_fn_set_status $1
  22571. exit $1
  22572. } # as_fn_exit
  22573. # as_fn_unset VAR
  22574. # ---------------
  22575. # Portably unset VAR.
  22576. as_fn_unset ()
  22577. {
  22578. { eval $1=; unset $1;}
  22579. }
  22580. as_unset=as_fn_unset
  22581. # as_fn_append VAR VALUE
  22582. # ----------------------
  22583. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22584. # advantage of any shell optimizations that allow amortized linear growth over
  22585. # repeated appends, instead of the typical quadratic growth present in naive
  22586. # implementations.
  22587. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22588. eval 'as_fn_append ()
  22589. {
  22590. eval $1+=\$2
  22591. }'
  22592. else
  22593. as_fn_append ()
  22594. {
  22595. eval $1=\$$1\$2
  22596. }
  22597. fi # as_fn_append
  22598. # as_fn_arith ARG...
  22599. # ------------------
  22600. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22601. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22602. # must be portable across $(()) and expr.
  22603. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22604. eval 'as_fn_arith ()
  22605. {
  22606. as_val=$(( $* ))
  22607. }'
  22608. else
  22609. as_fn_arith ()
  22610. {
  22611. as_val=`expr "$@" || test $? -eq 1`
  22612. }
  22613. fi # as_fn_arith
  22614. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22615. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22616. as_expr=expr
  22617. else
  22618. as_expr=false
  22619. fi
  22620. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22621. as_basename=basename
  22622. else
  22623. as_basename=false
  22624. fi
  22625. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22626. as_dirname=dirname
  22627. else
  22628. as_dirname=false
  22629. fi
  22630. as_me=`$as_basename -- "$0" ||
  22631. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22632. X"$0" : 'X\(//\)$' \| \
  22633. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22634. $as_echo X/"$0" |
  22635. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22636. s//\1/
  22637. q
  22638. }
  22639. /^X\/\(\/\/\)$/{
  22640. s//\1/
  22641. q
  22642. }
  22643. /^X\/\(\/\).*/{
  22644. s//\1/
  22645. q
  22646. }
  22647. s/.*/./; q'`
  22648. # Avoid depending upon Character Ranges.
  22649. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22650. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22651. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22652. as_cr_digits='0123456789'
  22653. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22654. ECHO_C= ECHO_N= ECHO_T=
  22655. case `echo -n x` in #(((((
  22656. -n*)
  22657. case `echo 'xy\c'` in
  22658. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22659. xy) ECHO_C='\c';;
  22660. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22661. ECHO_T=' ';;
  22662. esac;;
  22663. *)
  22664. ECHO_N='-n';;
  22665. esac
  22666. rm -f conf$$ conf$$.exe conf$$.file
  22667. if test -d conf$$.dir; then
  22668. rm -f conf$$.dir/conf$$.file
  22669. else
  22670. rm -f conf$$.dir
  22671. mkdir conf$$.dir 2>/dev/null
  22672. fi
  22673. if (echo >conf$$.file) 2>/dev/null; then
  22674. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22675. as_ln_s='ln -s'
  22676. # ... but there are two gotchas:
  22677. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22678. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22679. # In both cases, we have to default to `cp -pR'.
  22680. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22681. as_ln_s='cp -pR'
  22682. elif ln conf$$.file conf$$ 2>/dev/null; then
  22683. as_ln_s=ln
  22684. else
  22685. as_ln_s='cp -pR'
  22686. fi
  22687. else
  22688. as_ln_s='cp -pR'
  22689. fi
  22690. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22691. rmdir conf$$.dir 2>/dev/null
  22692. # as_fn_mkdir_p
  22693. # -------------
  22694. # Create "$as_dir" as a directory, including parents if necessary.
  22695. as_fn_mkdir_p ()
  22696. {
  22697. case $as_dir in #(
  22698. -*) as_dir=./$as_dir;;
  22699. esac
  22700. test -d "$as_dir" || eval $as_mkdir_p || {
  22701. as_dirs=
  22702. while :; do
  22703. case $as_dir in #(
  22704. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22705. *) as_qdir=$as_dir;;
  22706. esac
  22707. as_dirs="'$as_qdir' $as_dirs"
  22708. as_dir=`$as_dirname -- "$as_dir" ||
  22709. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22710. X"$as_dir" : 'X\(//\)[^/]' \| \
  22711. X"$as_dir" : 'X\(//\)$' \| \
  22712. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22713. $as_echo X"$as_dir" |
  22714. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22715. s//\1/
  22716. q
  22717. }
  22718. /^X\(\/\/\)[^/].*/{
  22719. s//\1/
  22720. q
  22721. }
  22722. /^X\(\/\/\)$/{
  22723. s//\1/
  22724. q
  22725. }
  22726. /^X\(\/\).*/{
  22727. s//\1/
  22728. q
  22729. }
  22730. s/.*/./; q'`
  22731. test -d "$as_dir" && break
  22732. done
  22733. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22734. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22735. } # as_fn_mkdir_p
  22736. if mkdir -p . 2>/dev/null; then
  22737. as_mkdir_p='mkdir -p "$as_dir"'
  22738. else
  22739. test -d ./-p && rmdir ./-p
  22740. as_mkdir_p=false
  22741. fi
  22742. # as_fn_executable_p FILE
  22743. # -----------------------
  22744. # Test if FILE is an executable regular file.
  22745. as_fn_executable_p ()
  22746. {
  22747. test -f "$1" && test -x "$1"
  22748. } # as_fn_executable_p
  22749. as_test_x='test -x'
  22750. as_executable_p=as_fn_executable_p
  22751. # Sed expression to map a string onto a valid CPP name.
  22752. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22753. # Sed expression to map a string onto a valid variable name.
  22754. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22755. exec 6>&1
  22756. ## ----------------------------------- ##
  22757. ## Main body of $CONFIG_STATUS script. ##
  22758. ## ----------------------------------- ##
  22759. _ASEOF
  22760. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22761. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22762. # Save the log message, to keep $0 and so on meaningful, and to
  22763. # report actual input values of CONFIG_FILES etc. instead of their
  22764. # values after options handling.
  22765. ac_log="
  22766. This file was extended by $as_me, which was
  22767. generated by GNU Autoconf 2.69. Invocation command line was
  22768. CONFIG_FILES = $CONFIG_FILES
  22769. CONFIG_HEADERS = $CONFIG_HEADERS
  22770. CONFIG_LINKS = $CONFIG_LINKS
  22771. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22772. $ $0 $@
  22773. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22774. "
  22775. _ACEOF
  22776. case $ac_config_files in *"
  22777. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22778. esac
  22779. case $ac_config_headers in *"
  22780. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22781. esac
  22782. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22783. # Files that config.status was made for.
  22784. config_files="$ac_config_files"
  22785. config_headers="$ac_config_headers"
  22786. config_commands="$ac_config_commands"
  22787. _ACEOF
  22788. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22789. ac_cs_usage="\
  22790. \`$as_me' instantiates files and other configuration actions
  22791. from templates according to the current configuration. Unless the files
  22792. and actions are specified as TAGs, all are instantiated by default.
  22793. Usage: $0 [OPTION]... [TAG]...
  22794. -h, --help print this help, then exit
  22795. -V, --version print version number and configuration settings, then exit
  22796. --config print configuration, then exit
  22797. -q, --quiet, --silent
  22798. do not print progress messages
  22799. -d, --debug don't remove temporary files
  22800. --recheck update $as_me by reconfiguring in the same conditions
  22801. --file=FILE[:TEMPLATE]
  22802. instantiate the configuration file FILE
  22803. --header=FILE[:TEMPLATE]
  22804. instantiate the configuration header FILE
  22805. Configuration files:
  22806. $config_files
  22807. Configuration headers:
  22808. $config_headers
  22809. Configuration commands:
  22810. $config_commands
  22811. Report bugs to the package provider."
  22812. _ACEOF
  22813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22814. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22815. ac_cs_version="\\
  22816. config.status
  22817. configured by $0, generated by GNU Autoconf 2.69,
  22818. with options \\"\$ac_cs_config\\"
  22819. Copyright (C) 2012 Free Software Foundation, Inc.
  22820. This config.status script is free software; the Free Software Foundation
  22821. gives unlimited permission to copy, distribute and modify it."
  22822. ac_pwd='$ac_pwd'
  22823. srcdir='$srcdir'
  22824. INSTALL='$INSTALL'
  22825. AWK='$AWK'
  22826. test -n "\$AWK" || AWK=awk
  22827. _ACEOF
  22828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22829. # The default lists apply if the user does not specify any file.
  22830. ac_need_defaults=:
  22831. while test $# != 0
  22832. do
  22833. case $1 in
  22834. --*=?*)
  22835. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22836. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22837. ac_shift=:
  22838. ;;
  22839. --*=)
  22840. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22841. ac_optarg=
  22842. ac_shift=:
  22843. ;;
  22844. *)
  22845. ac_option=$1
  22846. ac_optarg=$2
  22847. ac_shift=shift
  22848. ;;
  22849. esac
  22850. case $ac_option in
  22851. # Handling of the options.
  22852. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22853. ac_cs_recheck=: ;;
  22854. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22855. $as_echo "$ac_cs_version"; exit ;;
  22856. --config | --confi | --conf | --con | --co | --c )
  22857. $as_echo "$ac_cs_config"; exit ;;
  22858. --debug | --debu | --deb | --de | --d | -d )
  22859. debug=: ;;
  22860. --file | --fil | --fi | --f )
  22861. $ac_shift
  22862. case $ac_optarg in
  22863. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22864. '') as_fn_error $? "missing file argument" ;;
  22865. esac
  22866. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22867. ac_need_defaults=false;;
  22868. --header | --heade | --head | --hea )
  22869. $ac_shift
  22870. case $ac_optarg in
  22871. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22872. esac
  22873. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22874. ac_need_defaults=false;;
  22875. --he | --h)
  22876. # Conflict between --help and --header
  22877. as_fn_error $? "ambiguous option: \`$1'
  22878. Try \`$0 --help' for more information.";;
  22879. --help | --hel | -h )
  22880. $as_echo "$ac_cs_usage"; exit ;;
  22881. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22882. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22883. ac_cs_silent=: ;;
  22884. # This is an error.
  22885. -*) as_fn_error $? "unrecognized option: \`$1'
  22886. Try \`$0 --help' for more information." ;;
  22887. *) as_fn_append ac_config_targets " $1"
  22888. ac_need_defaults=false ;;
  22889. esac
  22890. shift
  22891. done
  22892. ac_configure_extra_args=
  22893. if $ac_cs_silent; then
  22894. exec 6>/dev/null
  22895. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22896. fi
  22897. _ACEOF
  22898. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22899. if \$ac_cs_recheck; then
  22900. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22901. shift
  22902. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22903. CONFIG_SHELL='$SHELL'
  22904. export CONFIG_SHELL
  22905. exec "\$@"
  22906. fi
  22907. _ACEOF
  22908. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22909. exec 5>>config.log
  22910. {
  22911. echo
  22912. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22913. ## Running $as_me. ##
  22914. _ASBOX
  22915. $as_echo "$ac_log"
  22916. } >&5
  22917. _ACEOF
  22918. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22919. #
  22920. # INIT-COMMANDS
  22921. #
  22922. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22923. # if CDPATH is set.
  22924. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22925. sed_quote_subst='$sed_quote_subst'
  22926. double_quote_subst='$double_quote_subst'
  22927. delay_variable_subst='$delay_variable_subst'
  22928. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22929. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22930. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22931. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22932. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22933. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22934. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22935. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22936. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22937. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22938. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22939. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22940. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22941. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22942. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22943. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22944. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22945. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22946. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22947. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22948. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22949. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22950. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22951. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22952. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22953. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22954. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22955. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22956. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22957. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22958. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22959. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22960. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22961. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22962. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22963. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22964. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22965. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22966. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22967. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22968. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22969. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22970. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22971. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22972. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22973. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22974. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22975. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22976. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22977. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22978. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22979. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22980. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22981. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22982. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22983. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22984. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22985. 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"`'
  22986. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22987. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22988. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22989. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22990. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22991. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22992. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22993. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22994. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22995. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22996. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22997. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22998. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22999. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23000. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23001. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23002. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23003. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23004. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23005. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23006. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23007. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23008. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23009. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23010. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23011. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23012. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23013. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23014. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23015. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23016. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23017. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23018. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23019. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23020. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23021. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23022. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23023. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23024. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23025. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23026. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23027. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23028. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23029. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23030. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23031. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23032. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23033. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23034. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23035. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23036. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23037. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23038. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23039. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23040. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23041. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23042. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23043. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23044. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23045. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23046. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23047. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23048. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23049. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23050. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23051. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23052. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23053. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23054. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23055. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23056. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23057. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23058. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23059. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23060. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23061. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23062. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23063. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23064. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23065. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23066. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23067. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23068. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23069. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23070. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23071. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23072. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23073. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23074. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23075. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23076. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23077. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23078. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23079. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23080. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23081. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23082. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23083. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23084. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23085. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23086. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23087. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23088. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23089. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23090. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23091. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23092. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23093. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23094. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23095. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23096. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23097. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23098. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23099. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23100. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23101. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23102. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23103. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23104. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23105. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23106. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23107. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23108. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23109. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23110. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23111. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23112. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23113. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23114. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23115. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23116. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23117. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23118. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23119. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23120. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23121. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23122. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23123. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23124. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23125. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23126. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23127. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23128. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23129. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23130. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23131. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23132. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23133. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23134. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23135. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23136. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23137. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23138. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23139. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23140. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23141. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23142. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23143. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23144. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23145. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23146. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23147. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23148. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23149. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23150. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23151. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23152. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23153. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23154. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23155. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23156. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23157. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23158. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23159. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23160. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23161. LTCC='$LTCC'
  23162. LTCFLAGS='$LTCFLAGS'
  23163. compiler='$compiler_DEFAULT'
  23164. # A function that is used when there is no print builtin or printf.
  23165. func_fallback_echo ()
  23166. {
  23167. eval 'cat <<_LTECHO_EOF
  23168. \$1
  23169. _LTECHO_EOF'
  23170. }
  23171. # Quote evaled strings.
  23172. for var in AS \
  23173. DLLTOOL \
  23174. OBJDUMP \
  23175. SHELL \
  23176. ECHO \
  23177. PATH_SEPARATOR \
  23178. SED \
  23179. GREP \
  23180. EGREP \
  23181. FGREP \
  23182. LD \
  23183. NM \
  23184. LN_S \
  23185. lt_SP2NL \
  23186. lt_NL2SP \
  23187. reload_flag \
  23188. deplibs_check_method \
  23189. file_magic_cmd \
  23190. file_magic_glob \
  23191. want_nocaseglob \
  23192. sharedlib_from_linklib_cmd \
  23193. AR \
  23194. AR_FLAGS \
  23195. archiver_list_spec \
  23196. STRIP \
  23197. RANLIB \
  23198. CC \
  23199. CFLAGS \
  23200. compiler \
  23201. lt_cv_sys_global_symbol_pipe \
  23202. lt_cv_sys_global_symbol_to_cdecl \
  23203. lt_cv_sys_global_symbol_to_c_name_address \
  23204. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23205. nm_file_list_spec \
  23206. lt_prog_compiler_no_builtin_flag \
  23207. lt_prog_compiler_pic \
  23208. lt_prog_compiler_wl \
  23209. lt_prog_compiler_static \
  23210. lt_cv_prog_compiler_c_o \
  23211. need_locks \
  23212. MANIFEST_TOOL \
  23213. DSYMUTIL \
  23214. NMEDIT \
  23215. LIPO \
  23216. OTOOL \
  23217. OTOOL64 \
  23218. shrext_cmds \
  23219. export_dynamic_flag_spec \
  23220. whole_archive_flag_spec \
  23221. compiler_needs_object \
  23222. with_gnu_ld \
  23223. allow_undefined_flag \
  23224. no_undefined_flag \
  23225. hardcode_libdir_flag_spec \
  23226. hardcode_libdir_separator \
  23227. exclude_expsyms \
  23228. include_expsyms \
  23229. file_list_spec \
  23230. variables_saved_for_relink \
  23231. libname_spec \
  23232. library_names_spec \
  23233. soname_spec \
  23234. install_override_mode \
  23235. finish_eval \
  23236. old_striplib \
  23237. striplib \
  23238. compiler_lib_search_dirs \
  23239. predep_objects \
  23240. postdep_objects \
  23241. predeps \
  23242. postdeps \
  23243. compiler_lib_search_path \
  23244. LD_RC \
  23245. LD_CXX \
  23246. reload_flag_RC \
  23247. reload_flag_CXX \
  23248. compiler_RC \
  23249. compiler_CXX \
  23250. lt_prog_compiler_no_builtin_flag_RC \
  23251. lt_prog_compiler_no_builtin_flag_CXX \
  23252. lt_prog_compiler_pic_RC \
  23253. lt_prog_compiler_pic_CXX \
  23254. lt_prog_compiler_wl_RC \
  23255. lt_prog_compiler_wl_CXX \
  23256. lt_prog_compiler_static_RC \
  23257. lt_prog_compiler_static_CXX \
  23258. lt_cv_prog_compiler_c_o_RC \
  23259. lt_cv_prog_compiler_c_o_CXX \
  23260. export_dynamic_flag_spec_RC \
  23261. export_dynamic_flag_spec_CXX \
  23262. whole_archive_flag_spec_RC \
  23263. whole_archive_flag_spec_CXX \
  23264. compiler_needs_object_RC \
  23265. compiler_needs_object_CXX \
  23266. with_gnu_ld_RC \
  23267. with_gnu_ld_CXX \
  23268. allow_undefined_flag_RC \
  23269. allow_undefined_flag_CXX \
  23270. no_undefined_flag_RC \
  23271. no_undefined_flag_CXX \
  23272. hardcode_libdir_flag_spec_RC \
  23273. hardcode_libdir_flag_spec_CXX \
  23274. hardcode_libdir_separator_RC \
  23275. hardcode_libdir_separator_CXX \
  23276. exclude_expsyms_RC \
  23277. exclude_expsyms_CXX \
  23278. include_expsyms_RC \
  23279. include_expsyms_CXX \
  23280. file_list_spec_RC \
  23281. file_list_spec_CXX \
  23282. compiler_lib_search_dirs_RC \
  23283. compiler_lib_search_dirs_CXX \
  23284. predep_objects_RC \
  23285. predep_objects_CXX \
  23286. postdep_objects_RC \
  23287. postdep_objects_CXX \
  23288. predeps_RC \
  23289. predeps_CXX \
  23290. postdeps_RC \
  23291. postdeps_CXX \
  23292. compiler_lib_search_path_RC \
  23293. compiler_lib_search_path_CXX; do
  23294. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23295. *[\\\\\\\`\\"\\\$]*)
  23296. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23297. ;;
  23298. *)
  23299. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23300. ;;
  23301. esac
  23302. done
  23303. # Double-quote double-evaled strings.
  23304. for var in reload_cmds \
  23305. old_postinstall_cmds \
  23306. old_postuninstall_cmds \
  23307. old_archive_cmds \
  23308. extract_expsyms_cmds \
  23309. old_archive_from_new_cmds \
  23310. old_archive_from_expsyms_cmds \
  23311. archive_cmds \
  23312. archive_expsym_cmds \
  23313. module_cmds \
  23314. module_expsym_cmds \
  23315. export_symbols_cmds \
  23316. prelink_cmds \
  23317. postlink_cmds \
  23318. postinstall_cmds \
  23319. postuninstall_cmds \
  23320. finish_cmds \
  23321. sys_lib_search_path_spec \
  23322. sys_lib_dlsearch_path_spec \
  23323. reload_cmds_RC \
  23324. reload_cmds_CXX \
  23325. old_archive_cmds_RC \
  23326. old_archive_cmds_CXX \
  23327. old_archive_from_new_cmds_RC \
  23328. old_archive_from_new_cmds_CXX \
  23329. old_archive_from_expsyms_cmds_RC \
  23330. old_archive_from_expsyms_cmds_CXX \
  23331. archive_cmds_RC \
  23332. archive_cmds_CXX \
  23333. archive_expsym_cmds_RC \
  23334. archive_expsym_cmds_CXX \
  23335. module_cmds_RC \
  23336. module_cmds_CXX \
  23337. module_expsym_cmds_RC \
  23338. module_expsym_cmds_CXX \
  23339. export_symbols_cmds_RC \
  23340. export_symbols_cmds_CXX \
  23341. prelink_cmds_RC \
  23342. prelink_cmds_CXX \
  23343. postlink_cmds_RC \
  23344. postlink_cmds_CXX; do
  23345. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23346. *[\\\\\\\`\\"\\\$]*)
  23347. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23348. ;;
  23349. *)
  23350. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23351. ;;
  23352. esac
  23353. done
  23354. ac_aux_dir='$ac_aux_dir'
  23355. xsi_shell='$xsi_shell'
  23356. lt_shell_append='$lt_shell_append'
  23357. # See if we are running on zsh, and set the options which allow our
  23358. # commands through without removal of \ escapes INIT.
  23359. if test -n "\${ZSH_VERSION+set}" ; then
  23360. setopt NO_GLOB_SUBST
  23361. fi
  23362. PACKAGE='$PACKAGE'
  23363. VERSION='$VERSION'
  23364. TIMESTAMP='$TIMESTAMP'
  23365. RM='$RM'
  23366. ofile='$ofile'
  23367. SUMMARY="$SUMMARY"
  23368. _ACEOF
  23369. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23370. # Handling of arguments.
  23371. for ac_config_target in $ac_config_targets
  23372. do
  23373. case $ac_config_target in
  23374. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23375. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23376. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23377. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23378. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23379. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23380. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23381. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23382. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23383. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23384. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23385. esac
  23386. done
  23387. # If the user did not use the arguments to specify the items to instantiate,
  23388. # then the envvar interface is used. Set only those that are not.
  23389. # We use the long form for the default assignment because of an extremely
  23390. # bizarre bug on SunOS 4.1.3.
  23391. if $ac_need_defaults; then
  23392. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23393. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23394. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23395. fi
  23396. # Have a temporary directory for convenience. Make it in the build tree
  23397. # simply because there is no reason against having it here, and in addition,
  23398. # creating and moving files from /tmp can sometimes cause problems.
  23399. # Hook for its removal unless debugging.
  23400. # Note that there is a small window in which the directory will not be cleaned:
  23401. # after its creation but before its name has been assigned to `$tmp'.
  23402. $debug ||
  23403. {
  23404. tmp= ac_tmp=
  23405. trap 'exit_status=$?
  23406. : "${ac_tmp:=$tmp}"
  23407. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23408. ' 0
  23409. trap 'as_fn_exit 1' 1 2 13 15
  23410. }
  23411. # Create a (secure) tmp directory for tmp files.
  23412. {
  23413. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23414. test -d "$tmp"
  23415. } ||
  23416. {
  23417. tmp=./conf$$-$RANDOM
  23418. (umask 077 && mkdir "$tmp")
  23419. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23420. ac_tmp=$tmp
  23421. # Set up the scripts for CONFIG_FILES section.
  23422. # No need to generate them if there are no CONFIG_FILES.
  23423. # This happens for instance with `./config.status config.h'.
  23424. if test -n "$CONFIG_FILES"; then
  23425. ac_cr=`echo X | tr X '\015'`
  23426. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23427. # But we know of no other shell where ac_cr would be empty at this
  23428. # point, so we can use a bashism as a fallback.
  23429. if test "x$ac_cr" = x; then
  23430. eval ac_cr=\$\'\\r\'
  23431. fi
  23432. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23433. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23434. ac_cs_awk_cr='\\r'
  23435. else
  23436. ac_cs_awk_cr=$ac_cr
  23437. fi
  23438. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23439. _ACEOF
  23440. {
  23441. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23442. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23443. echo "_ACEOF"
  23444. } >conf$$subs.sh ||
  23445. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23446. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23447. ac_delim='%!_!# '
  23448. for ac_last_try in false false false false false :; do
  23449. . ./conf$$subs.sh ||
  23450. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23451. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23452. if test $ac_delim_n = $ac_delim_num; then
  23453. break
  23454. elif $ac_last_try; then
  23455. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23456. else
  23457. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23458. fi
  23459. done
  23460. rm -f conf$$subs.sh
  23461. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23462. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23463. _ACEOF
  23464. sed -n '
  23465. h
  23466. s/^/S["/; s/!.*/"]=/
  23467. p
  23468. g
  23469. s/^[^!]*!//
  23470. :repl
  23471. t repl
  23472. s/'"$ac_delim"'$//
  23473. t delim
  23474. :nl
  23475. h
  23476. s/\(.\{148\}\)..*/\1/
  23477. t more1
  23478. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23479. p
  23480. n
  23481. b repl
  23482. :more1
  23483. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23484. p
  23485. g
  23486. s/.\{148\}//
  23487. t nl
  23488. :delim
  23489. h
  23490. s/\(.\{148\}\)..*/\1/
  23491. t more2
  23492. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23493. p
  23494. b
  23495. :more2
  23496. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23497. p
  23498. g
  23499. s/.\{148\}//
  23500. t delim
  23501. ' <conf$$subs.awk | sed '
  23502. /^[^""]/{
  23503. N
  23504. s/\n//
  23505. }
  23506. ' >>$CONFIG_STATUS || ac_write_fail=1
  23507. rm -f conf$$subs.awk
  23508. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23509. _ACAWK
  23510. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23511. for (key in S) S_is_set[key] = 1
  23512. FS = ""
  23513. }
  23514. {
  23515. line = $ 0
  23516. nfields = split(line, field, "@")
  23517. substed = 0
  23518. len = length(field[1])
  23519. for (i = 2; i < nfields; i++) {
  23520. key = field[i]
  23521. keylen = length(key)
  23522. if (S_is_set[key]) {
  23523. value = S[key]
  23524. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23525. len += length(value) + length(field[++i])
  23526. substed = 1
  23527. } else
  23528. len += 1 + keylen
  23529. }
  23530. print line
  23531. }
  23532. _ACAWK
  23533. _ACEOF
  23534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23535. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23536. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23537. else
  23538. cat
  23539. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23540. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23541. _ACEOF
  23542. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23543. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23544. # trailing colons and then remove the whole line if VPATH becomes empty
  23545. # (actually we leave an empty line to preserve line numbers).
  23546. if test "x$srcdir" = x.; then
  23547. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23548. h
  23549. s///
  23550. s/^/:/
  23551. s/[ ]*$/:/
  23552. s/:\$(srcdir):/:/g
  23553. s/:\${srcdir}:/:/g
  23554. s/:@srcdir@:/:/g
  23555. s/^:*//
  23556. s/:*$//
  23557. x
  23558. s/\(=[ ]*\).*/\1/
  23559. G
  23560. s/\n//
  23561. s/^[^=]*=[ ]*$//
  23562. }'
  23563. fi
  23564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23565. fi # test -n "$CONFIG_FILES"
  23566. # Set up the scripts for CONFIG_HEADERS section.
  23567. # No need to generate them if there are no CONFIG_HEADERS.
  23568. # This happens for instance with `./config.status Makefile'.
  23569. if test -n "$CONFIG_HEADERS"; then
  23570. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23571. BEGIN {
  23572. _ACEOF
  23573. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23574. # here-document in config.status, that substitutes the proper values into
  23575. # config.h.in to produce config.h.
  23576. # Create a delimiter string that does not exist in confdefs.h, to ease
  23577. # handling of long lines.
  23578. ac_delim='%!_!# '
  23579. for ac_last_try in false false :; do
  23580. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23581. if test -z "$ac_tt"; then
  23582. break
  23583. elif $ac_last_try; then
  23584. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23585. else
  23586. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23587. fi
  23588. done
  23589. # For the awk script, D is an array of macro values keyed by name,
  23590. # likewise P contains macro parameters if any. Preserve backslash
  23591. # newline sequences.
  23592. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23593. sed -n '
  23594. s/.\{148\}/&'"$ac_delim"'/g
  23595. t rset
  23596. :rset
  23597. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23598. t def
  23599. d
  23600. :def
  23601. s/\\$//
  23602. t bsnl
  23603. s/["\\]/\\&/g
  23604. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23605. D["\1"]=" \3"/p
  23606. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23607. d
  23608. :bsnl
  23609. s/["\\]/\\&/g
  23610. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23611. D["\1"]=" \3\\\\\\n"\\/p
  23612. t cont
  23613. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23614. t cont
  23615. d
  23616. :cont
  23617. n
  23618. s/.\{148\}/&'"$ac_delim"'/g
  23619. t clear
  23620. :clear
  23621. s/\\$//
  23622. t bsnlc
  23623. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23624. d
  23625. :bsnlc
  23626. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23627. b cont
  23628. ' <confdefs.h | sed '
  23629. s/'"$ac_delim"'/"\\\
  23630. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23631. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23632. for (key in D) D_is_set[key] = 1
  23633. FS = ""
  23634. }
  23635. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23636. line = \$ 0
  23637. split(line, arg, " ")
  23638. if (arg[1] == "#") {
  23639. defundef = arg[2]
  23640. mac1 = arg[3]
  23641. } else {
  23642. defundef = substr(arg[1], 2)
  23643. mac1 = arg[2]
  23644. }
  23645. split(mac1, mac2, "(") #)
  23646. macro = mac2[1]
  23647. prefix = substr(line, 1, index(line, defundef) - 1)
  23648. if (D_is_set[macro]) {
  23649. # Preserve the white space surrounding the "#".
  23650. print prefix "define", macro P[macro] D[macro]
  23651. next
  23652. } else {
  23653. # Replace #undef with comments. This is necessary, for example,
  23654. # in the case of _POSIX_SOURCE, which is predefined and required
  23655. # on some systems where configure will not decide to define it.
  23656. if (defundef == "undef") {
  23657. print "/*", prefix defundef, macro, "*/"
  23658. next
  23659. }
  23660. }
  23661. }
  23662. { print }
  23663. _ACAWK
  23664. _ACEOF
  23665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23666. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23667. fi # test -n "$CONFIG_HEADERS"
  23668. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23669. shift
  23670. for ac_tag
  23671. do
  23672. case $ac_tag in
  23673. :[FHLC]) ac_mode=$ac_tag; continue;;
  23674. esac
  23675. case $ac_mode$ac_tag in
  23676. :[FHL]*:*);;
  23677. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23678. :[FH]-) ac_tag=-:-;;
  23679. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23680. esac
  23681. ac_save_IFS=$IFS
  23682. IFS=:
  23683. set x $ac_tag
  23684. IFS=$ac_save_IFS
  23685. shift
  23686. ac_file=$1
  23687. shift
  23688. case $ac_mode in
  23689. :L) ac_source=$1;;
  23690. :[FH])
  23691. ac_file_inputs=
  23692. for ac_f
  23693. do
  23694. case $ac_f in
  23695. -) ac_f="$ac_tmp/stdin";;
  23696. *) # Look for the file first in the build tree, then in the source tree
  23697. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23698. # because $ac_f cannot contain `:'.
  23699. test -f "$ac_f" ||
  23700. case $ac_f in
  23701. [\\/$]*) false;;
  23702. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23703. esac ||
  23704. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23705. esac
  23706. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23707. as_fn_append ac_file_inputs " '$ac_f'"
  23708. done
  23709. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23710. # use $as_me), people would be surprised to read:
  23711. # /* config.h. Generated by config.status. */
  23712. configure_input='Generated from '`
  23713. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23714. `' by configure.'
  23715. if test x"$ac_file" != x-; then
  23716. configure_input="$ac_file. $configure_input"
  23717. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23718. $as_echo "$as_me: creating $ac_file" >&6;}
  23719. fi
  23720. # Neutralize special characters interpreted by sed in replacement strings.
  23721. case $configure_input in #(
  23722. *\&* | *\|* | *\\* )
  23723. ac_sed_conf_input=`$as_echo "$configure_input" |
  23724. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23725. *) ac_sed_conf_input=$configure_input;;
  23726. esac
  23727. case $ac_tag in
  23728. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23729. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23730. esac
  23731. ;;
  23732. esac
  23733. ac_dir=`$as_dirname -- "$ac_file" ||
  23734. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23735. X"$ac_file" : 'X\(//\)[^/]' \| \
  23736. X"$ac_file" : 'X\(//\)$' \| \
  23737. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23738. $as_echo X"$ac_file" |
  23739. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23740. s//\1/
  23741. q
  23742. }
  23743. /^X\(\/\/\)[^/].*/{
  23744. s//\1/
  23745. q
  23746. }
  23747. /^X\(\/\/\)$/{
  23748. s//\1/
  23749. q
  23750. }
  23751. /^X\(\/\).*/{
  23752. s//\1/
  23753. q
  23754. }
  23755. s/.*/./; q'`
  23756. as_dir="$ac_dir"; as_fn_mkdir_p
  23757. ac_builddir=.
  23758. case "$ac_dir" in
  23759. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23760. *)
  23761. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23762. # A ".." for each directory in $ac_dir_suffix.
  23763. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23764. case $ac_top_builddir_sub in
  23765. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23766. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23767. esac ;;
  23768. esac
  23769. ac_abs_top_builddir=$ac_pwd
  23770. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23771. # for backward compatibility:
  23772. ac_top_builddir=$ac_top_build_prefix
  23773. case $srcdir in
  23774. .) # We are building in place.
  23775. ac_srcdir=.
  23776. ac_top_srcdir=$ac_top_builddir_sub
  23777. ac_abs_top_srcdir=$ac_pwd ;;
  23778. [\\/]* | ?:[\\/]* ) # Absolute name.
  23779. ac_srcdir=$srcdir$ac_dir_suffix;
  23780. ac_top_srcdir=$srcdir
  23781. ac_abs_top_srcdir=$srcdir ;;
  23782. *) # Relative name.
  23783. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23784. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23785. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23786. esac
  23787. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23788. case $ac_mode in
  23789. :F)
  23790. #
  23791. # CONFIG_FILE
  23792. #
  23793. case $INSTALL in
  23794. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23795. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23796. esac
  23797. _ACEOF
  23798. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23799. # If the template does not know about datarootdir, expand it.
  23800. # FIXME: This hack should be removed a few years after 2.60.
  23801. ac_datarootdir_hack=; ac_datarootdir_seen=
  23802. ac_sed_dataroot='
  23803. /datarootdir/ {
  23804. p
  23805. q
  23806. }
  23807. /@datadir@/p
  23808. /@docdir@/p
  23809. /@infodir@/p
  23810. /@localedir@/p
  23811. /@mandir@/p'
  23812. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23813. *datarootdir*) ac_datarootdir_seen=yes;;
  23814. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23816. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23817. _ACEOF
  23818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23819. ac_datarootdir_hack='
  23820. s&@datadir@&$datadir&g
  23821. s&@docdir@&$docdir&g
  23822. s&@infodir@&$infodir&g
  23823. s&@localedir@&$localedir&g
  23824. s&@mandir@&$mandir&g
  23825. s&\\\${datarootdir}&$datarootdir&g' ;;
  23826. esac
  23827. _ACEOF
  23828. # Neutralize VPATH when `$srcdir' = `.'.
  23829. # Shell code in configure.ac might set extrasub.
  23830. # FIXME: do we really want to maintain this feature?
  23831. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23832. ac_sed_extra="$ac_vpsub
  23833. $extrasub
  23834. _ACEOF
  23835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23836. :t
  23837. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23838. s|@configure_input@|$ac_sed_conf_input|;t t
  23839. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23840. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23841. s&@srcdir@&$ac_srcdir&;t t
  23842. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23843. s&@top_srcdir@&$ac_top_srcdir&;t t
  23844. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23845. s&@builddir@&$ac_builddir&;t t
  23846. s&@abs_builddir@&$ac_abs_builddir&;t t
  23847. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23848. s&@INSTALL@&$ac_INSTALL&;t t
  23849. $ac_datarootdir_hack
  23850. "
  23851. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23852. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23853. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23854. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23855. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23856. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23858. which seems to be undefined. Please make sure it is defined" >&5
  23859. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23860. which seems to be undefined. Please make sure it is defined" >&2;}
  23861. rm -f "$ac_tmp/stdin"
  23862. case $ac_file in
  23863. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23864. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23865. esac \
  23866. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23867. ;;
  23868. :H)
  23869. #
  23870. # CONFIG_HEADER
  23871. #
  23872. if test x"$ac_file" != x-; then
  23873. {
  23874. $as_echo "/* $configure_input */" \
  23875. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23876. } >"$ac_tmp/config.h" \
  23877. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23878. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23879. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23880. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23881. else
  23882. rm -f "$ac_file"
  23883. mv "$ac_tmp/config.h" "$ac_file" \
  23884. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23885. fi
  23886. else
  23887. $as_echo "/* $configure_input */" \
  23888. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23889. || as_fn_error $? "could not create -" "$LINENO" 5
  23890. fi
  23891. ;;
  23892. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23893. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23894. ;;
  23895. esac
  23896. case $ac_file$ac_mode in
  23897. "libtool":C)
  23898. # See if we are running on zsh, and set the options which allow our
  23899. # commands through without removal of \ escapes.
  23900. if test -n "${ZSH_VERSION+set}" ; then
  23901. setopt NO_GLOB_SUBST
  23902. fi
  23903. cfgfile="${ofile}T"
  23904. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23905. $RM "$cfgfile"
  23906. cat <<_LT_EOF >> "$cfgfile"
  23907. #! $SHELL
  23908. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23909. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23910. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23911. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23912. #
  23913. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23914. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23915. # Foundation, Inc.
  23916. # Written by Gordon Matzigkeit, 1996
  23917. #
  23918. # This file is part of GNU Libtool.
  23919. #
  23920. # GNU Libtool is free software; you can redistribute it and/or
  23921. # modify it under the terms of the GNU General Public License as
  23922. # published by the Free Software Foundation; either version 2 of
  23923. # the License, or (at your option) any later version.
  23924. #
  23925. # As a special exception to the GNU General Public License,
  23926. # if you distribute this file as part of a program or library that
  23927. # is built using GNU Libtool, you may include this file under the
  23928. # same distribution terms that you use for the rest of that program.
  23929. #
  23930. # GNU Libtool is distributed in the hope that it will be useful,
  23931. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23932. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23933. # GNU General Public License for more details.
  23934. #
  23935. # You should have received a copy of the GNU General Public License
  23936. # along with GNU Libtool; see the file COPYING. If not, a copy
  23937. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23938. # obtained by writing to the Free Software Foundation, Inc.,
  23939. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23940. # The names of the tagged configurations supported by this script.
  23941. available_tags="RC CXX "
  23942. # ### BEGIN LIBTOOL CONFIG
  23943. # Which release of libtool.m4 was used?
  23944. macro_version=$macro_version
  23945. macro_revision=$macro_revision
  23946. # Assembler program.
  23947. AS=$lt_AS
  23948. # DLL creation program.
  23949. DLLTOOL=$lt_DLLTOOL
  23950. # Object dumper program.
  23951. OBJDUMP=$lt_OBJDUMP
  23952. # Whether or not to build shared libraries.
  23953. build_libtool_libs=$enable_shared
  23954. # Whether or not to build static libraries.
  23955. build_old_libs=$enable_static
  23956. # What type of objects to build.
  23957. pic_mode=$pic_mode
  23958. # Whether or not to optimize for fast installation.
  23959. fast_install=$enable_fast_install
  23960. # Shell to use when invoking shell scripts.
  23961. SHELL=$lt_SHELL
  23962. # An echo program that protects backslashes.
  23963. ECHO=$lt_ECHO
  23964. # The PATH separator for the build system.
  23965. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23966. # The host system.
  23967. host_alias=$host_alias
  23968. host=$host
  23969. host_os=$host_os
  23970. # The build system.
  23971. build_alias=$build_alias
  23972. build=$build
  23973. build_os=$build_os
  23974. # A sed program that does not truncate output.
  23975. SED=$lt_SED
  23976. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23977. Xsed="\$SED -e 1s/^X//"
  23978. # A grep program that handles long lines.
  23979. GREP=$lt_GREP
  23980. # An ERE matcher.
  23981. EGREP=$lt_EGREP
  23982. # A literal string matcher.
  23983. FGREP=$lt_FGREP
  23984. # A BSD- or MS-compatible name lister.
  23985. NM=$lt_NM
  23986. # Whether we need soft or hard links.
  23987. LN_S=$lt_LN_S
  23988. # What is the maximum length of a command?
  23989. max_cmd_len=$max_cmd_len
  23990. # Object file suffix (normally "o").
  23991. objext=$ac_objext
  23992. # Executable file suffix (normally "").
  23993. exeext=$exeext
  23994. # whether the shell understands "unset".
  23995. lt_unset=$lt_unset
  23996. # turn spaces into newlines.
  23997. SP2NL=$lt_lt_SP2NL
  23998. # turn newlines into spaces.
  23999. NL2SP=$lt_lt_NL2SP
  24000. # convert \$build file names to \$host format.
  24001. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24002. # convert \$build files to toolchain format.
  24003. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24004. # Method to check whether dependent libraries are shared objects.
  24005. deplibs_check_method=$lt_deplibs_check_method
  24006. # Command to use when deplibs_check_method = "file_magic".
  24007. file_magic_cmd=$lt_file_magic_cmd
  24008. # How to find potential files when deplibs_check_method = "file_magic".
  24009. file_magic_glob=$lt_file_magic_glob
  24010. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24011. want_nocaseglob=$lt_want_nocaseglob
  24012. # Command to associate shared and link libraries.
  24013. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24014. # The archiver.
  24015. AR=$lt_AR
  24016. # Flags to create an archive.
  24017. AR_FLAGS=$lt_AR_FLAGS
  24018. # How to feed a file listing to the archiver.
  24019. archiver_list_spec=$lt_archiver_list_spec
  24020. # A symbol stripping program.
  24021. STRIP=$lt_STRIP
  24022. # Commands used to install an old-style archive.
  24023. RANLIB=$lt_RANLIB
  24024. old_postinstall_cmds=$lt_old_postinstall_cmds
  24025. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24026. # Whether to use a lock for old archive extraction.
  24027. lock_old_archive_extraction=$lock_old_archive_extraction
  24028. # A C compiler.
  24029. LTCC=$lt_CC
  24030. # LTCC compiler flags.
  24031. LTCFLAGS=$lt_CFLAGS
  24032. # Take the output of nm and produce a listing of raw symbols and C names.
  24033. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24034. # Transform the output of nm in a proper C declaration.
  24035. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24036. # Transform the output of nm in a C name address pair.
  24037. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24038. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24039. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24040. # Specify filename containing input files for \$NM.
  24041. nm_file_list_spec=$lt_nm_file_list_spec
  24042. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24043. lt_sysroot=$lt_sysroot
  24044. # The name of the directory that contains temporary libtool files.
  24045. objdir=$objdir
  24046. # Used to examine libraries when file_magic_cmd begins with "file".
  24047. MAGIC_CMD=$MAGIC_CMD
  24048. # Must we lock files when doing compilation?
  24049. need_locks=$lt_need_locks
  24050. # Manifest tool.
  24051. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24052. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24053. DSYMUTIL=$lt_DSYMUTIL
  24054. # Tool to change global to local symbols on Mac OS X.
  24055. NMEDIT=$lt_NMEDIT
  24056. # Tool to manipulate fat objects and archives on Mac OS X.
  24057. LIPO=$lt_LIPO
  24058. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24059. OTOOL=$lt_OTOOL
  24060. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24061. OTOOL64=$lt_OTOOL64
  24062. # Old archive suffix (normally "a").
  24063. libext=$libext
  24064. # Shared library suffix (normally ".so").
  24065. shrext_cmds=$lt_shrext_cmds
  24066. # The commands to extract the exported symbol list from a shared archive.
  24067. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24068. # Variables whose values should be saved in libtool wrapper scripts and
  24069. # restored at link time.
  24070. variables_saved_for_relink=$lt_variables_saved_for_relink
  24071. # Do we need the "lib" prefix for modules?
  24072. need_lib_prefix=$need_lib_prefix
  24073. # Do we need a version for libraries?
  24074. need_version=$need_version
  24075. # Library versioning type.
  24076. version_type=$version_type
  24077. # Shared library runtime path variable.
  24078. runpath_var=$runpath_var
  24079. # Shared library path variable.
  24080. shlibpath_var=$shlibpath_var
  24081. # Is shlibpath searched before the hard-coded library search path?
  24082. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24083. # Format of library name prefix.
  24084. libname_spec=$lt_libname_spec
  24085. # List of archive names. First name is the real one, the rest are links.
  24086. # The last name is the one that the linker finds with -lNAME
  24087. library_names_spec=$lt_library_names_spec
  24088. # The coded name of the library, if different from the real name.
  24089. soname_spec=$lt_soname_spec
  24090. # Permission mode override for installation of shared libraries.
  24091. install_override_mode=$lt_install_override_mode
  24092. # Command to use after installation of a shared archive.
  24093. postinstall_cmds=$lt_postinstall_cmds
  24094. # Command to use after uninstallation of a shared archive.
  24095. postuninstall_cmds=$lt_postuninstall_cmds
  24096. # Commands used to finish a libtool library installation in a directory.
  24097. finish_cmds=$lt_finish_cmds
  24098. # As "finish_cmds", except a single script fragment to be evaled but
  24099. # not shown.
  24100. finish_eval=$lt_finish_eval
  24101. # Whether we should hardcode library paths into libraries.
  24102. hardcode_into_libs=$hardcode_into_libs
  24103. # Compile-time system search path for libraries.
  24104. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24105. # Run-time system search path for libraries.
  24106. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24107. # Whether dlopen is supported.
  24108. dlopen_support=$enable_dlopen
  24109. # Whether dlopen of programs is supported.
  24110. dlopen_self=$enable_dlopen_self
  24111. # Whether dlopen of statically linked programs is supported.
  24112. dlopen_self_static=$enable_dlopen_self_static
  24113. # Commands to strip libraries.
  24114. old_striplib=$lt_old_striplib
  24115. striplib=$lt_striplib
  24116. # The linker used to build libraries.
  24117. LD=$lt_LD
  24118. # How to create reloadable object files.
  24119. reload_flag=$lt_reload_flag
  24120. reload_cmds=$lt_reload_cmds
  24121. # Commands used to build an old-style archive.
  24122. old_archive_cmds=$lt_old_archive_cmds
  24123. # A language specific compiler.
  24124. CC=$lt_compiler
  24125. # Is the compiler the GNU compiler?
  24126. with_gcc=$GCC
  24127. # Compiler flag to turn off builtin functions.
  24128. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24129. # Additional compiler flags for building library objects.
  24130. pic_flag=$lt_lt_prog_compiler_pic
  24131. # How to pass a linker flag through the compiler.
  24132. wl=$lt_lt_prog_compiler_wl
  24133. # Compiler flag to prevent dynamic linking.
  24134. link_static_flag=$lt_lt_prog_compiler_static
  24135. # Does compiler simultaneously support -c and -o options?
  24136. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24137. # Whether or not to add -lc for building shared libraries.
  24138. build_libtool_need_lc=$archive_cmds_need_lc
  24139. # Whether or not to disallow shared libs when runtime libs are static.
  24140. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24141. # Compiler flag to allow reflexive dlopens.
  24142. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24143. # Compiler flag to generate shared objects directly from archives.
  24144. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24145. # Whether the compiler copes with passing no objects directly.
  24146. compiler_needs_object=$lt_compiler_needs_object
  24147. # Create an old-style archive from a shared archive.
  24148. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24149. # Create a temporary old-style archive to link instead of a shared archive.
  24150. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24151. # Commands used to build a shared archive.
  24152. archive_cmds=$lt_archive_cmds
  24153. archive_expsym_cmds=$lt_archive_expsym_cmds
  24154. # Commands used to build a loadable module if different from building
  24155. # a shared archive.
  24156. module_cmds=$lt_module_cmds
  24157. module_expsym_cmds=$lt_module_expsym_cmds
  24158. # Whether we are building with GNU ld or not.
  24159. with_gnu_ld=$lt_with_gnu_ld
  24160. # Flag that allows shared libraries with undefined symbols to be built.
  24161. allow_undefined_flag=$lt_allow_undefined_flag
  24162. # Flag that enforces no undefined symbols.
  24163. no_undefined_flag=$lt_no_undefined_flag
  24164. # Flag to hardcode \$libdir into a binary during linking.
  24165. # This must work even if \$libdir does not exist
  24166. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24167. # Whether we need a single "-rpath" flag with a separated argument.
  24168. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24169. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24170. # DIR into the resulting binary.
  24171. hardcode_direct=$hardcode_direct
  24172. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24173. # DIR into the resulting binary and the resulting library dependency is
  24174. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24175. # library is relocated.
  24176. hardcode_direct_absolute=$hardcode_direct_absolute
  24177. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24178. # into the resulting binary.
  24179. hardcode_minus_L=$hardcode_minus_L
  24180. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24181. # into the resulting binary.
  24182. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24183. # Set to "yes" if building a shared library automatically hardcodes DIR
  24184. # into the library and all subsequent libraries and executables linked
  24185. # against it.
  24186. hardcode_automatic=$hardcode_automatic
  24187. # Set to yes if linker adds runtime paths of dependent libraries
  24188. # to runtime path list.
  24189. inherit_rpath=$inherit_rpath
  24190. # Whether libtool must link a program against all its dependency libraries.
  24191. link_all_deplibs=$link_all_deplibs
  24192. # Set to "yes" if exported symbols are required.
  24193. always_export_symbols=$always_export_symbols
  24194. # The commands to list exported symbols.
  24195. export_symbols_cmds=$lt_export_symbols_cmds
  24196. # Symbols that should not be listed in the preloaded symbols.
  24197. exclude_expsyms=$lt_exclude_expsyms
  24198. # Symbols that must always be exported.
  24199. include_expsyms=$lt_include_expsyms
  24200. # Commands necessary for linking programs (against libraries) with templates.
  24201. prelink_cmds=$lt_prelink_cmds
  24202. # Commands necessary for finishing linking programs.
  24203. postlink_cmds=$lt_postlink_cmds
  24204. # Specify filename containing input files.
  24205. file_list_spec=$lt_file_list_spec
  24206. # How to hardcode a shared library path into an executable.
  24207. hardcode_action=$hardcode_action
  24208. # The directories searched by this compiler when creating a shared library.
  24209. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24210. # Dependencies to place before and after the objects being linked to
  24211. # create a shared library.
  24212. predep_objects=$lt_predep_objects
  24213. postdep_objects=$lt_postdep_objects
  24214. predeps=$lt_predeps
  24215. postdeps=$lt_postdeps
  24216. # The library search path used internally by the compiler when linking
  24217. # a shared library.
  24218. compiler_lib_search_path=$lt_compiler_lib_search_path
  24219. # ### END LIBTOOL CONFIG
  24220. _LT_EOF
  24221. case $host_os in
  24222. aix3*)
  24223. cat <<\_LT_EOF >> "$cfgfile"
  24224. # AIX sometimes has problems with the GCC collect2 program. For some
  24225. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24226. # vanish in a puff of smoke.
  24227. if test "X${COLLECT_NAMES+set}" != Xset; then
  24228. COLLECT_NAMES=
  24229. export COLLECT_NAMES
  24230. fi
  24231. _LT_EOF
  24232. ;;
  24233. esac
  24234. ltmain="$ac_aux_dir/ltmain.sh"
  24235. # We use sed instead of cat because bash on DJGPP gets confused if
  24236. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24237. # text mode, it properly converts lines to CR/LF. This bash problem
  24238. # is reportedly fixed, but why not run on old versions too?
  24239. sed '$q' "$ltmain" >> "$cfgfile" \
  24240. || (rm -f "$cfgfile"; exit 1)
  24241. if test x"$xsi_shell" = xyes; then
  24242. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24243. func_dirname ()\
  24244. {\
  24245. \ case ${1} in\
  24246. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24247. \ * ) func_dirname_result="${3}" ;;\
  24248. \ esac\
  24249. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24250. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24251. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24252. test 0 -eq $? || _lt_function_replace_fail=:
  24253. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24254. func_basename ()\
  24255. {\
  24256. \ func_basename_result="${1##*/}"\
  24257. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24258. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24259. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24260. test 0 -eq $? || _lt_function_replace_fail=:
  24261. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24262. func_dirname_and_basename ()\
  24263. {\
  24264. \ case ${1} in\
  24265. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24266. \ * ) func_dirname_result="${3}" ;;\
  24267. \ esac\
  24268. \ func_basename_result="${1##*/}"\
  24269. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24270. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24271. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24272. test 0 -eq $? || _lt_function_replace_fail=:
  24273. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24274. func_stripname ()\
  24275. {\
  24276. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24277. \ # positional parameters, so assign one to ordinary parameter first.\
  24278. \ func_stripname_result=${3}\
  24279. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24280. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24281. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24282. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24283. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24284. test 0 -eq $? || _lt_function_replace_fail=:
  24285. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24286. func_split_long_opt ()\
  24287. {\
  24288. \ func_split_long_opt_name=${1%%=*}\
  24289. \ func_split_long_opt_arg=${1#*=}\
  24290. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24291. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24292. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24293. test 0 -eq $? || _lt_function_replace_fail=:
  24294. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24295. func_split_short_opt ()\
  24296. {\
  24297. \ func_split_short_opt_arg=${1#??}\
  24298. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24299. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24300. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24301. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24302. test 0 -eq $? || _lt_function_replace_fail=:
  24303. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24304. func_lo2o ()\
  24305. {\
  24306. \ case ${1} in\
  24307. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24308. \ *) func_lo2o_result=${1} ;;\
  24309. \ esac\
  24310. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24311. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24312. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24313. test 0 -eq $? || _lt_function_replace_fail=:
  24314. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24315. func_xform ()\
  24316. {\
  24317. func_xform_result=${1%.*}.lo\
  24318. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24319. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24320. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24321. test 0 -eq $? || _lt_function_replace_fail=:
  24322. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24323. func_arith ()\
  24324. {\
  24325. func_arith_result=$(( $* ))\
  24326. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24327. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24328. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24329. test 0 -eq $? || _lt_function_replace_fail=:
  24330. sed -e '/^func_len ()$/,/^} # func_len /c\
  24331. func_len ()\
  24332. {\
  24333. func_len_result=${#1}\
  24334. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24335. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24336. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24337. test 0 -eq $? || _lt_function_replace_fail=:
  24338. fi
  24339. if test x"$lt_shell_append" = xyes; then
  24340. sed -e '/^func_append ()$/,/^} # func_append /c\
  24341. func_append ()\
  24342. {\
  24343. eval "${1}+=\\${2}"\
  24344. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24345. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24346. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24347. test 0 -eq $? || _lt_function_replace_fail=:
  24348. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24349. func_append_quoted ()\
  24350. {\
  24351. \ func_quote_for_eval "${2}"\
  24352. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24353. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24354. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24355. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24356. test 0 -eq $? || _lt_function_replace_fail=:
  24357. # Save a `func_append' function call where possible by direct use of '+='
  24358. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24359. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24360. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24361. test 0 -eq $? || _lt_function_replace_fail=:
  24362. else
  24363. # Save a `func_append' function call even when '+=' is not available
  24364. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24365. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24366. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24367. test 0 -eq $? || _lt_function_replace_fail=:
  24368. fi
  24369. if test x"$_lt_function_replace_fail" = x":"; then
  24370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24371. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24372. fi
  24373. mv -f "$cfgfile" "$ofile" ||
  24374. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24375. chmod +x "$ofile"
  24376. cat <<_LT_EOF >> "$ofile"
  24377. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24378. # The linker used to build libraries.
  24379. LD=$lt_LD_RC
  24380. # How to create reloadable object files.
  24381. reload_flag=$lt_reload_flag_RC
  24382. reload_cmds=$lt_reload_cmds_RC
  24383. # Commands used to build an old-style archive.
  24384. old_archive_cmds=$lt_old_archive_cmds_RC
  24385. # A language specific compiler.
  24386. CC=$lt_compiler_RC
  24387. # Is the compiler the GNU compiler?
  24388. with_gcc=$GCC_RC
  24389. # Compiler flag to turn off builtin functions.
  24390. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24391. # Additional compiler flags for building library objects.
  24392. pic_flag=$lt_lt_prog_compiler_pic_RC
  24393. # How to pass a linker flag through the compiler.
  24394. wl=$lt_lt_prog_compiler_wl_RC
  24395. # Compiler flag to prevent dynamic linking.
  24396. link_static_flag=$lt_lt_prog_compiler_static_RC
  24397. # Does compiler simultaneously support -c and -o options?
  24398. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24399. # Whether or not to add -lc for building shared libraries.
  24400. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24401. # Whether or not to disallow shared libs when runtime libs are static.
  24402. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24403. # Compiler flag to allow reflexive dlopens.
  24404. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24405. # Compiler flag to generate shared objects directly from archives.
  24406. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24407. # Whether the compiler copes with passing no objects directly.
  24408. compiler_needs_object=$lt_compiler_needs_object_RC
  24409. # Create an old-style archive from a shared archive.
  24410. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24411. # Create a temporary old-style archive to link instead of a shared archive.
  24412. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24413. # Commands used to build a shared archive.
  24414. archive_cmds=$lt_archive_cmds_RC
  24415. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24416. # Commands used to build a loadable module if different from building
  24417. # a shared archive.
  24418. module_cmds=$lt_module_cmds_RC
  24419. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24420. # Whether we are building with GNU ld or not.
  24421. with_gnu_ld=$lt_with_gnu_ld_RC
  24422. # Flag that allows shared libraries with undefined symbols to be built.
  24423. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24424. # Flag that enforces no undefined symbols.
  24425. no_undefined_flag=$lt_no_undefined_flag_RC
  24426. # Flag to hardcode \$libdir into a binary during linking.
  24427. # This must work even if \$libdir does not exist
  24428. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24429. # Whether we need a single "-rpath" flag with a separated argument.
  24430. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24431. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24432. # DIR into the resulting binary.
  24433. hardcode_direct=$hardcode_direct_RC
  24434. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24435. # DIR into the resulting binary and the resulting library dependency is
  24436. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24437. # library is relocated.
  24438. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24439. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24440. # into the resulting binary.
  24441. hardcode_minus_L=$hardcode_minus_L_RC
  24442. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24443. # into the resulting binary.
  24444. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24445. # Set to "yes" if building a shared library automatically hardcodes DIR
  24446. # into the library and all subsequent libraries and executables linked
  24447. # against it.
  24448. hardcode_automatic=$hardcode_automatic_RC
  24449. # Set to yes if linker adds runtime paths of dependent libraries
  24450. # to runtime path list.
  24451. inherit_rpath=$inherit_rpath_RC
  24452. # Whether libtool must link a program against all its dependency libraries.
  24453. link_all_deplibs=$link_all_deplibs_RC
  24454. # Set to "yes" if exported symbols are required.
  24455. always_export_symbols=$always_export_symbols_RC
  24456. # The commands to list exported symbols.
  24457. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24458. # Symbols that should not be listed in the preloaded symbols.
  24459. exclude_expsyms=$lt_exclude_expsyms_RC
  24460. # Symbols that must always be exported.
  24461. include_expsyms=$lt_include_expsyms_RC
  24462. # Commands necessary for linking programs (against libraries) with templates.
  24463. prelink_cmds=$lt_prelink_cmds_RC
  24464. # Commands necessary for finishing linking programs.
  24465. postlink_cmds=$lt_postlink_cmds_RC
  24466. # Specify filename containing input files.
  24467. file_list_spec=$lt_file_list_spec_RC
  24468. # How to hardcode a shared library path into an executable.
  24469. hardcode_action=$hardcode_action_RC
  24470. # The directories searched by this compiler when creating a shared library.
  24471. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24472. # Dependencies to place before and after the objects being linked to
  24473. # create a shared library.
  24474. predep_objects=$lt_predep_objects_RC
  24475. postdep_objects=$lt_postdep_objects_RC
  24476. predeps=$lt_predeps_RC
  24477. postdeps=$lt_postdeps_RC
  24478. # The library search path used internally by the compiler when linking
  24479. # a shared library.
  24480. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24481. # ### END LIBTOOL TAG CONFIG: RC
  24482. _LT_EOF
  24483. cat <<_LT_EOF >> "$ofile"
  24484. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24485. # The linker used to build libraries.
  24486. LD=$lt_LD_CXX
  24487. # How to create reloadable object files.
  24488. reload_flag=$lt_reload_flag_CXX
  24489. reload_cmds=$lt_reload_cmds_CXX
  24490. # Commands used to build an old-style archive.
  24491. old_archive_cmds=$lt_old_archive_cmds_CXX
  24492. # A language specific compiler.
  24493. CC=$lt_compiler_CXX
  24494. # Is the compiler the GNU compiler?
  24495. with_gcc=$GCC_CXX
  24496. # Compiler flag to turn off builtin functions.
  24497. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24498. # Additional compiler flags for building library objects.
  24499. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24500. # How to pass a linker flag through the compiler.
  24501. wl=$lt_lt_prog_compiler_wl_CXX
  24502. # Compiler flag to prevent dynamic linking.
  24503. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24504. # Does compiler simultaneously support -c and -o options?
  24505. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24506. # Whether or not to add -lc for building shared libraries.
  24507. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24508. # Whether or not to disallow shared libs when runtime libs are static.
  24509. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24510. # Compiler flag to allow reflexive dlopens.
  24511. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24512. # Compiler flag to generate shared objects directly from archives.
  24513. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24514. # Whether the compiler copes with passing no objects directly.
  24515. compiler_needs_object=$lt_compiler_needs_object_CXX
  24516. # Create an old-style archive from a shared archive.
  24517. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24518. # Create a temporary old-style archive to link instead of a shared archive.
  24519. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24520. # Commands used to build a shared archive.
  24521. archive_cmds=$lt_archive_cmds_CXX
  24522. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24523. # Commands used to build a loadable module if different from building
  24524. # a shared archive.
  24525. module_cmds=$lt_module_cmds_CXX
  24526. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24527. # Whether we are building with GNU ld or not.
  24528. with_gnu_ld=$lt_with_gnu_ld_CXX
  24529. # Flag that allows shared libraries with undefined symbols to be built.
  24530. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24531. # Flag that enforces no undefined symbols.
  24532. no_undefined_flag=$lt_no_undefined_flag_CXX
  24533. # Flag to hardcode \$libdir into a binary during linking.
  24534. # This must work even if \$libdir does not exist
  24535. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24536. # Whether we need a single "-rpath" flag with a separated argument.
  24537. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24538. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24539. # DIR into the resulting binary.
  24540. hardcode_direct=$hardcode_direct_CXX
  24541. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24542. # DIR into the resulting binary and the resulting library dependency is
  24543. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24544. # library is relocated.
  24545. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24546. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24547. # into the resulting binary.
  24548. hardcode_minus_L=$hardcode_minus_L_CXX
  24549. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24550. # into the resulting binary.
  24551. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24552. # Set to "yes" if building a shared library automatically hardcodes DIR
  24553. # into the library and all subsequent libraries and executables linked
  24554. # against it.
  24555. hardcode_automatic=$hardcode_automatic_CXX
  24556. # Set to yes if linker adds runtime paths of dependent libraries
  24557. # to runtime path list.
  24558. inherit_rpath=$inherit_rpath_CXX
  24559. # Whether libtool must link a program against all its dependency libraries.
  24560. link_all_deplibs=$link_all_deplibs_CXX
  24561. # Set to "yes" if exported symbols are required.
  24562. always_export_symbols=$always_export_symbols_CXX
  24563. # The commands to list exported symbols.
  24564. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24565. # Symbols that should not be listed in the preloaded symbols.
  24566. exclude_expsyms=$lt_exclude_expsyms_CXX
  24567. # Symbols that must always be exported.
  24568. include_expsyms=$lt_include_expsyms_CXX
  24569. # Commands necessary for linking programs (against libraries) with templates.
  24570. prelink_cmds=$lt_prelink_cmds_CXX
  24571. # Commands necessary for finishing linking programs.
  24572. postlink_cmds=$lt_postlink_cmds_CXX
  24573. # Specify filename containing input files.
  24574. file_list_spec=$lt_file_list_spec_CXX
  24575. # How to hardcode a shared library path into an executable.
  24576. hardcode_action=$hardcode_action_CXX
  24577. # The directories searched by this compiler when creating a shared library.
  24578. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24579. # Dependencies to place before and after the objects being linked to
  24580. # create a shared library.
  24581. predep_objects=$lt_predep_objects_CXX
  24582. postdep_objects=$lt_postdep_objects_CXX
  24583. predeps=$lt_predeps_CXX
  24584. postdeps=$lt_postdeps_CXX
  24585. # The library search path used internally by the compiler when linking
  24586. # a shared library.
  24587. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24588. # ### END LIBTOOL TAG CONFIG: CXX
  24589. _LT_EOF
  24590. ;;
  24591. "sdl2_config":C) chmod a+x sdl2-config ;;
  24592. "summary":C) printf "$SUMMARY" ;;
  24593. esac
  24594. done # for ac_tag
  24595. as_fn_exit 0
  24596. _ACEOF
  24597. ac_clean_files=$ac_clean_files_save
  24598. test $ac_write_fail = 0 ||
  24599. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24600. # configure is writing to config.log, and then calls config.status.
  24601. # config.status does its own redirection, appending to config.log.
  24602. # Unfortunately, on DOS this fails, as config.log is still kept open
  24603. # by configure, so config.status won't be able to write to it; its
  24604. # output is simply discarded. So we exec the FD to /dev/null,
  24605. # effectively closing config.log, so it can be properly (re)opened and
  24606. # appended to by config.status. When coming back to configure, we
  24607. # need to make the FD available again.
  24608. if test "$no_create" != yes; then
  24609. ac_cs_success=:
  24610. ac_config_status_args=
  24611. test "$silent" = yes &&
  24612. ac_config_status_args="$ac_config_status_args --quiet"
  24613. exec 5>/dev/null
  24614. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24615. exec 5>>config.log
  24616. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24617. # would make configure fail if this is the last instruction.
  24618. $ac_cs_success || as_fn_exit 1
  24619. fi
  24620. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24622. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24623. fi