configure 809 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668
  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="README.txt"
  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
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_sensor
  737. enable_power
  738. enable_filesystem
  739. enable_threads
  740. enable_timers
  741. enable_file
  742. enable_loadso
  743. enable_cpuinfo
  744. enable_assembly
  745. enable_ssemath
  746. enable_mmx
  747. enable_3dnow
  748. enable_sse
  749. enable_sse2
  750. enable_sse3
  751. enable_altivec
  752. enable_oss
  753. enable_alsa
  754. with_alsa_prefix
  755. with_alsa_inc_prefix
  756. enable_alsatest
  757. enable_alsa_shared
  758. enable_jack
  759. enable_jack_shared
  760. enable_esd
  761. with_esd_prefix
  762. with_esd_exec_prefix
  763. enable_esdtest
  764. enable_esd_shared
  765. enable_pulseaudio
  766. enable_pulseaudio_shared
  767. enable_arts
  768. enable_arts_shared
  769. enable_nas
  770. enable_nas_shared
  771. enable_sndio
  772. enable_sndio_shared
  773. enable_fusionsound
  774. enable_fusionsound_shared
  775. enable_diskaudio
  776. enable_dummyaudio
  777. enable_libsamplerate
  778. enable_libsamplerate_shared
  779. enable_video_wayland
  780. enable_video_wayland_qt_touch
  781. enable_wayland_shared
  782. enable_video_mir
  783. enable_mir_shared
  784. enable_video_rpi
  785. enable_video_x11
  786. with_x
  787. enable_x11_shared
  788. enable_video_x11_xcursor
  789. enable_video_x11_xdbe
  790. enable_video_x11_xinerama
  791. enable_video_x11_xinput
  792. enable_video_x11_xrandr
  793. enable_video_x11_scrnsaver
  794. enable_video_x11_xshape
  795. enable_video_x11_vm
  796. enable_video_vivante
  797. enable_video_cocoa
  798. enable_render_metal
  799. enable_video_directfb
  800. enable_directfb_shared
  801. enable_video_kmsdrm
  802. enable_kmsdrm_shared
  803. enable_video_dummy
  804. enable_video_opengl
  805. enable_video_opengles
  806. enable_video_opengles1
  807. enable_video_opengles2
  808. enable_video_vulkan
  809. enable_libudev
  810. enable_dbus
  811. enable_ime
  812. enable_ibus
  813. enable_fcitx
  814. enable_input_tslib
  815. enable_pthreads
  816. enable_pthread_sem
  817. enable_directx
  818. enable_wasapi
  819. enable_sdl_dlopen
  820. enable_hidapi
  821. enable_clock_gettime
  822. enable_rpath
  823. enable_render_d3d
  824. '
  825. ac_precious_vars='build_alias
  826. host_alias
  827. target_alias
  828. CC
  829. CFLAGS
  830. LDFLAGS
  831. LIBS
  832. CPPFLAGS
  833. CPP
  834. CXX
  835. CXXFLAGS
  836. CCC
  837. CXXCPP
  838. XMKMF'
  839. # Initialize some variables set by options.
  840. ac_init_help=
  841. ac_init_version=false
  842. ac_unrecognized_opts=
  843. ac_unrecognized_sep=
  844. # The variables have the same names as the options, with
  845. # dashes changed to underlines.
  846. cache_file=/dev/null
  847. exec_prefix=NONE
  848. no_create=
  849. no_recursion=
  850. prefix=NONE
  851. program_prefix=NONE
  852. program_suffix=NONE
  853. program_transform_name=s,x,x,
  854. silent=
  855. site=
  856. srcdir=
  857. verbose=
  858. x_includes=NONE
  859. x_libraries=NONE
  860. # Installation directory options.
  861. # These are left unexpanded so users can "make install exec_prefix=/foo"
  862. # and all the variables that are supposed to be based on exec_prefix
  863. # by default will actually change.
  864. # Use braces instead of parens because sh, perl, etc. also accept them.
  865. # (The list follows the same order as the GNU Coding Standards.)
  866. bindir='${exec_prefix}/bin'
  867. sbindir='${exec_prefix}/sbin'
  868. libexecdir='${exec_prefix}/libexec'
  869. datarootdir='${prefix}/share'
  870. datadir='${datarootdir}'
  871. sysconfdir='${prefix}/etc'
  872. sharedstatedir='${prefix}/com'
  873. localstatedir='${prefix}/var'
  874. includedir='${prefix}/include'
  875. oldincludedir='/usr/include'
  876. docdir='${datarootdir}/doc/${PACKAGE}'
  877. infodir='${datarootdir}/info'
  878. htmldir='${docdir}'
  879. dvidir='${docdir}'
  880. pdfdir='${docdir}'
  881. psdir='${docdir}'
  882. libdir='${exec_prefix}/lib'
  883. localedir='${datarootdir}/locale'
  884. mandir='${datarootdir}/man'
  885. ac_prev=
  886. ac_dashdash=
  887. for ac_option
  888. do
  889. # If the previous option needs an argument, assign it.
  890. if test -n "$ac_prev"; then
  891. eval $ac_prev=\$ac_option
  892. ac_prev=
  893. continue
  894. fi
  895. case $ac_option in
  896. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  897. *=) ac_optarg= ;;
  898. *) ac_optarg=yes ;;
  899. esac
  900. # Accept the important Cygnus configure options, so we can diagnose typos.
  901. case $ac_dashdash$ac_option in
  902. --)
  903. ac_dashdash=yes ;;
  904. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  905. ac_prev=bindir ;;
  906. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  907. bindir=$ac_optarg ;;
  908. -build | --build | --buil | --bui | --bu)
  909. ac_prev=build_alias ;;
  910. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  911. build_alias=$ac_optarg ;;
  912. -cache-file | --cache-file | --cache-fil | --cache-fi \
  913. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  914. ac_prev=cache_file ;;
  915. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  916. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  917. cache_file=$ac_optarg ;;
  918. --config-cache | -C)
  919. cache_file=config.cache ;;
  920. -datadir | --datadir | --datadi | --datad)
  921. ac_prev=datadir ;;
  922. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  923. datadir=$ac_optarg ;;
  924. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  925. | --dataroo | --dataro | --datar)
  926. ac_prev=datarootdir ;;
  927. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  928. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  929. datarootdir=$ac_optarg ;;
  930. -disable-* | --disable-*)
  931. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  932. # Reject names that are not valid shell variable names.
  933. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  934. as_fn_error $? "invalid feature name: $ac_useropt"
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "enable_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval enable_$ac_useropt=no ;;
  945. -docdir | --docdir | --docdi | --doc | --do)
  946. ac_prev=docdir ;;
  947. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  948. docdir=$ac_optarg ;;
  949. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  950. ac_prev=dvidir ;;
  951. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  952. dvidir=$ac_optarg ;;
  953. -enable-* | --enable-*)
  954. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  957. as_fn_error $? "invalid feature name: $ac_useropt"
  958. ac_useropt_orig=$ac_useropt
  959. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  960. case $ac_user_opts in
  961. *"
  962. "enable_$ac_useropt"
  963. "*) ;;
  964. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  965. ac_unrecognized_sep=', ';;
  966. esac
  967. eval enable_$ac_useropt=\$ac_optarg ;;
  968. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  969. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  970. | --exec | --exe | --ex)
  971. ac_prev=exec_prefix ;;
  972. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  973. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  974. | --exec=* | --exe=* | --ex=*)
  975. exec_prefix=$ac_optarg ;;
  976. -gas | --gas | --ga | --g)
  977. # Obsolete; use --with-gas.
  978. with_gas=yes ;;
  979. -help | --help | --hel | --he | -h)
  980. ac_init_help=long ;;
  981. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  982. ac_init_help=recursive ;;
  983. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  984. ac_init_help=short ;;
  985. -host | --host | --hos | --ho)
  986. ac_prev=host_alias ;;
  987. -host=* | --host=* | --hos=* | --ho=*)
  988. host_alias=$ac_optarg ;;
  989. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  990. ac_prev=htmldir ;;
  991. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  992. | --ht=*)
  993. htmldir=$ac_optarg ;;
  994. -includedir | --includedir | --includedi | --included | --include \
  995. | --includ | --inclu | --incl | --inc)
  996. ac_prev=includedir ;;
  997. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  998. | --includ=* | --inclu=* | --incl=* | --inc=*)
  999. includedir=$ac_optarg ;;
  1000. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1001. ac_prev=infodir ;;
  1002. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1003. infodir=$ac_optarg ;;
  1004. -libdir | --libdir | --libdi | --libd)
  1005. ac_prev=libdir ;;
  1006. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1007. libdir=$ac_optarg ;;
  1008. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1009. | --libexe | --libex | --libe)
  1010. ac_prev=libexecdir ;;
  1011. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1012. | --libexe=* | --libex=* | --libe=*)
  1013. libexecdir=$ac_optarg ;;
  1014. -localedir | --localedir | --localedi | --localed | --locale)
  1015. ac_prev=localedir ;;
  1016. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1017. localedir=$ac_optarg ;;
  1018. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1019. | --localstate | --localstat | --localsta | --localst | --locals)
  1020. ac_prev=localstatedir ;;
  1021. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1022. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1023. localstatedir=$ac_optarg ;;
  1024. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1025. ac_prev=mandir ;;
  1026. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1027. mandir=$ac_optarg ;;
  1028. -nfp | --nfp | --nf)
  1029. # Obsolete; use --without-fp.
  1030. with_fp=no ;;
  1031. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1032. | --no-cr | --no-c | -n)
  1033. no_create=yes ;;
  1034. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1035. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1036. no_recursion=yes ;;
  1037. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1038. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1039. | --oldin | --oldi | --old | --ol | --o)
  1040. ac_prev=oldincludedir ;;
  1041. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1042. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1043. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1044. oldincludedir=$ac_optarg ;;
  1045. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1046. ac_prev=prefix ;;
  1047. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1048. prefix=$ac_optarg ;;
  1049. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1050. | --program-pre | --program-pr | --program-p)
  1051. ac_prev=program_prefix ;;
  1052. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1053. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1054. program_prefix=$ac_optarg ;;
  1055. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1056. | --program-suf | --program-su | --program-s)
  1057. ac_prev=program_suffix ;;
  1058. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1059. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1060. program_suffix=$ac_optarg ;;
  1061. -program-transform-name | --program-transform-name \
  1062. | --program-transform-nam | --program-transform-na \
  1063. | --program-transform-n | --program-transform- \
  1064. | --program-transform | --program-transfor \
  1065. | --program-transfo | --program-transf \
  1066. | --program-trans | --program-tran \
  1067. | --progr-tra | --program-tr | --program-t)
  1068. ac_prev=program_transform_name ;;
  1069. -program-transform-name=* | --program-transform-name=* \
  1070. | --program-transform-nam=* | --program-transform-na=* \
  1071. | --program-transform-n=* | --program-transform-=* \
  1072. | --program-transform=* | --program-transfor=* \
  1073. | --program-transfo=* | --program-transf=* \
  1074. | --program-trans=* | --program-tran=* \
  1075. | --progr-tra=* | --program-tr=* | --program-t=*)
  1076. program_transform_name=$ac_optarg ;;
  1077. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1078. ac_prev=pdfdir ;;
  1079. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1080. pdfdir=$ac_optarg ;;
  1081. -psdir | --psdir | --psdi | --psd | --ps)
  1082. ac_prev=psdir ;;
  1083. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1084. psdir=$ac_optarg ;;
  1085. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1086. | -silent | --silent | --silen | --sile | --sil)
  1087. silent=yes ;;
  1088. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1089. ac_prev=sbindir ;;
  1090. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1091. | --sbi=* | --sb=*)
  1092. sbindir=$ac_optarg ;;
  1093. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1094. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1095. | --sharedst | --shareds | --shared | --share | --shar \
  1096. | --sha | --sh)
  1097. ac_prev=sharedstatedir ;;
  1098. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1099. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1100. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1101. | --sha=* | --sh=*)
  1102. sharedstatedir=$ac_optarg ;;
  1103. -site | --site | --sit)
  1104. ac_prev=site ;;
  1105. -site=* | --site=* | --sit=*)
  1106. site=$ac_optarg ;;
  1107. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1108. ac_prev=srcdir ;;
  1109. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1110. srcdir=$ac_optarg ;;
  1111. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1112. | --syscon | --sysco | --sysc | --sys | --sy)
  1113. ac_prev=sysconfdir ;;
  1114. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1115. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1116. sysconfdir=$ac_optarg ;;
  1117. -target | --target | --targe | --targ | --tar | --ta | --t)
  1118. ac_prev=target_alias ;;
  1119. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1120. target_alias=$ac_optarg ;;
  1121. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1122. verbose=yes ;;
  1123. -version | --version | --versio | --versi | --vers | -V)
  1124. ac_init_version=: ;;
  1125. -with-* | --with-*)
  1126. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1127. # Reject names that are not valid shell variable names.
  1128. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1129. as_fn_error $? "invalid package name: $ac_useropt"
  1130. ac_useropt_orig=$ac_useropt
  1131. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1132. case $ac_user_opts in
  1133. *"
  1134. "with_$ac_useropt"
  1135. "*) ;;
  1136. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1137. ac_unrecognized_sep=', ';;
  1138. esac
  1139. eval with_$ac_useropt=\$ac_optarg ;;
  1140. -without-* | --without-*)
  1141. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1142. # Reject names that are not valid shell variable names.
  1143. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1144. as_fn_error $? "invalid package name: $ac_useropt"
  1145. ac_useropt_orig=$ac_useropt
  1146. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1147. case $ac_user_opts in
  1148. *"
  1149. "with_$ac_useropt"
  1150. "*) ;;
  1151. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1152. ac_unrecognized_sep=', ';;
  1153. esac
  1154. eval with_$ac_useropt=no ;;
  1155. --x)
  1156. # Obsolete; use --with-x.
  1157. with_x=yes ;;
  1158. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1159. | --x-incl | --x-inc | --x-in | --x-i)
  1160. ac_prev=x_includes ;;
  1161. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1162. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1163. x_includes=$ac_optarg ;;
  1164. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1165. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1166. ac_prev=x_libraries ;;
  1167. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1168. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1169. x_libraries=$ac_optarg ;;
  1170. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1171. Try \`$0 --help' for more information"
  1172. ;;
  1173. *=*)
  1174. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1175. # Reject names that are not valid shell variable names.
  1176. case $ac_envvar in #(
  1177. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1178. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1179. esac
  1180. eval $ac_envvar=\$ac_optarg
  1181. export $ac_envvar ;;
  1182. *)
  1183. # FIXME: should be removed in autoconf 3.0.
  1184. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1185. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1186. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1187. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1188. ;;
  1189. esac
  1190. done
  1191. if test -n "$ac_prev"; then
  1192. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1193. as_fn_error $? "missing argument to $ac_option"
  1194. fi
  1195. if test -n "$ac_unrecognized_opts"; then
  1196. case $enable_option_checking in
  1197. no) ;;
  1198. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1199. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1200. esac
  1201. fi
  1202. # Check all directory arguments for consistency.
  1203. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1204. datadir sysconfdir sharedstatedir localstatedir includedir \
  1205. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1206. libdir localedir mandir
  1207. do
  1208. eval ac_val=\$$ac_var
  1209. # Remove trailing slashes.
  1210. case $ac_val in
  1211. */ )
  1212. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1213. eval $ac_var=\$ac_val;;
  1214. esac
  1215. # Be sure to have absolute directory names.
  1216. case $ac_val in
  1217. [\\/$]* | ?:[\\/]* ) continue;;
  1218. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1219. esac
  1220. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1221. done
  1222. # There might be people who depend on the old broken behavior: `$host'
  1223. # used to hold the argument of --host etc.
  1224. # FIXME: To remove some day.
  1225. build=$build_alias
  1226. host=$host_alias
  1227. target=$target_alias
  1228. # FIXME: To remove some day.
  1229. if test "x$host_alias" != x; then
  1230. if test "x$build_alias" = x; then
  1231. cross_compiling=maybe
  1232. elif test "x$build_alias" != "x$host_alias"; then
  1233. cross_compiling=yes
  1234. fi
  1235. fi
  1236. ac_tool_prefix=
  1237. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1238. test "$silent" = yes && exec 6>/dev/null
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. as_fn_error $? "working directory cannot be determined"
  1243. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1244. as_fn_error $? "pwd does not report name of working directory"
  1245. # Find the source files, if location was not specified.
  1246. if test -z "$srcdir"; then
  1247. ac_srcdir_defaulted=yes
  1248. # Try the directory containing this script, then the parent directory.
  1249. ac_confdir=`$as_dirname -- "$as_myself" ||
  1250. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1251. X"$as_myself" : 'X\(//\)[^/]' \| \
  1252. X"$as_myself" : 'X\(//\)$' \| \
  1253. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1254. $as_echo X"$as_myself" |
  1255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)[^/].*/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\/\)$/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\).*/{
  1268. s//\1/
  1269. q
  1270. }
  1271. s/.*/./; q'`
  1272. srcdir=$ac_confdir
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. srcdir=..
  1275. fi
  1276. else
  1277. ac_srcdir_defaulted=no
  1278. fi
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1281. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1282. fi
  1283. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1284. ac_abs_confdir=`(
  1285. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1286. pwd)`
  1287. # When building in place, set srcdir=.
  1288. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1289. srcdir=.
  1290. fi
  1291. # Remove unnecessary trailing slashes from srcdir.
  1292. # Double slashes in file names in object file debugging info
  1293. # mess up M-x gdb in Emacs.
  1294. case $srcdir in
  1295. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1296. esac
  1297. for ac_var in $ac_precious_vars; do
  1298. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_env_${ac_var}_value=\$${ac_var}
  1300. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1302. done
  1303. #
  1304. # Report the --help message.
  1305. #
  1306. if test "$ac_init_help" = "long"; then
  1307. # Omit some internal or obsolete options to make the list less imposing.
  1308. # This message is too long to be a string in the A/UX 3.1 sh.
  1309. cat <<_ACEOF
  1310. \`configure' configures this package to adapt to many kinds of systems.
  1311. Usage: $0 [OPTION]... [VAR=VALUE]...
  1312. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1313. VAR=VALUE. See below for descriptions of some of the useful variables.
  1314. Defaults for the options are specified in brackets.
  1315. Configuration:
  1316. -h, --help display this help and exit
  1317. --help=short display options specific to this package
  1318. --help=recursive display the short help of all the included packages
  1319. -V, --version display version information and exit
  1320. -q, --quiet, --silent do not print \`checking ...' messages
  1321. --cache-file=FILE cache test results in FILE [disabled]
  1322. -C, --config-cache alias for \`--cache-file=config.cache'
  1323. -n, --no-create do not create output files
  1324. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1325. Installation directories:
  1326. --prefix=PREFIX install architecture-independent files in PREFIX
  1327. [$ac_default_prefix]
  1328. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1329. [PREFIX]
  1330. By default, \`make install' will install all the files in
  1331. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1332. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1333. for instance \`--prefix=\$HOME'.
  1334. For better control, use the options below.
  1335. Fine tuning of the installation directories:
  1336. --bindir=DIR user executables [EPREFIX/bin]
  1337. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1338. --libexecdir=DIR program executables [EPREFIX/libexec]
  1339. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1340. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1341. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1342. --libdir=DIR object code libraries [EPREFIX/lib]
  1343. --includedir=DIR C header files [PREFIX/include]
  1344. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1345. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1346. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1347. --infodir=DIR info documentation [DATAROOTDIR/info]
  1348. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1349. --mandir=DIR man documentation [DATAROOTDIR/man]
  1350. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1351. --htmldir=DIR html documentation [DOCDIR]
  1352. --dvidir=DIR dvi documentation [DOCDIR]
  1353. --pdfdir=DIR pdf documentation [DOCDIR]
  1354. --psdir=DIR ps documentation [DOCDIR]
  1355. _ACEOF
  1356. cat <<\_ACEOF
  1357. X features:
  1358. --x-includes=DIR X include files are in DIR
  1359. --x-libraries=DIR X library files are in DIR
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. _ACEOF
  1364. fi
  1365. if test -n "$ac_init_help"; then
  1366. cat <<\_ACEOF
  1367. Optional Features:
  1368. --disable-option-checking ignore unrecognized --enable/--with options
  1369. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1370. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1371. --enable-shared[=PKGS] build shared libraries [default=yes]
  1372. --enable-static[=PKGS] build static libraries [default=yes]
  1373. --enable-fast-install[=PKGS]
  1374. optimize for fast installation [default=yes]
  1375. --disable-libtool-lock avoid locking (might break parallel builds)
  1376. --enable-assertions Enable internal sanity checks
  1377. (auto/disabled/release/enabled/paranoid)
  1378. [[default=auto]]
  1379. --enable-dependency-tracking
  1380. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1381. --enable-libc Use the system C library [[default=yes]]
  1382. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1383. --enable-atomic Enable the atomic operations subsystem
  1384. [[default=yes]]
  1385. --enable-audio Enable the audio subsystem [[default=yes]]
  1386. --enable-video Enable the video subsystem [[default=yes]]
  1387. --enable-render Enable the render subsystem [[default=yes]]
  1388. --enable-events Enable the events subsystem [[default=yes]]
  1389. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1390. --enable-haptic Enable the haptic (force feedback) subsystem
  1391. [[default=yes]]
  1392. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1393. --enable-power Enable the power subsystem [[default=yes]]
  1394. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1395. --enable-threads Enable the threading subsystem [[default=yes]]
  1396. --enable-timers Enable the timer subsystem [[default=yes]]
  1397. --enable-file Enable the file subsystem [[default=yes]]
  1398. --enable-loadso Enable the shared object loading subsystem
  1399. [[default=yes]]
  1400. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1401. --enable-assembly Enable assembly routines [[default=yes]]
  1402. --enable-ssemath Allow GCC to use SSE floating point math
  1403. [[default=maybe]]
  1404. --enable-mmx use MMX assembly routines [[default=yes]]
  1405. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1406. --enable-sse use SSE assembly routines [[default=yes]]
  1407. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1408. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1409. --enable-altivec use Altivec assembly routines [[default=yes]]
  1410. --enable-oss support the OSS audio API [[default=maybe]]
  1411. --enable-alsa support the ALSA audio API [[default=yes]]
  1412. --disable-alsatest Do not try to compile and run a test Alsa program
  1413. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1414. --enable-jack use JACK audio [[default=yes]]
  1415. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1416. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1417. --disable-esdtest Do not try to compile and run a test ESD program
  1418. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1419. --enable-pulseaudio use PulseAudio [[default=yes]]
  1420. --enable-pulseaudio-shared
  1421. dynamically load PulseAudio support [[default=yes]]
  1422. --enable-arts support the Analog Real Time Synthesizer
  1423. [[default=yes]]
  1424. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1425. --enable-nas support the NAS audio API [[default=yes]]
  1426. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1427. --enable-sndio support the sndio audio API [[default=yes]]
  1428. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1429. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1430. --enable-fusionsound-shared
  1431. dynamically load fusionsound audio support
  1432. [[default=yes]]
  1433. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1434. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1435. --enable-libsamplerate use libsamplerate for audio rate conversion
  1436. [[default=yes]]
  1437. --enable-libsamplerate-shared
  1438. dynamically load libsamplerate [[default=yes]]
  1439. --enable-video-wayland use Wayland video driver [[default=yes]]
  1440. --enable-video-wayland-qt-touch
  1441. QtWayland server support for Wayland video driver
  1442. [[default=yes]]
  1443. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1444. --enable-video-mir use Mir video driver [[default=no]]
  1445. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1446. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1447. --enable-video-x11 use X11 video driver [[default=yes]]
  1448. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1449. --enable-video-x11-xcursor
  1450. enable X11 Xcursor support [[default=yes]]
  1451. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1452. --enable-video-x11-xinerama
  1453. enable X11 Xinerama support [[default=yes]]
  1454. --enable-video-x11-xinput
  1455. enable X11 XInput extension for manymouse, tablets,
  1456. etc [[default=yes]]
  1457. --enable-video-x11-xrandr
  1458. enable X11 Xrandr extension for fullscreen
  1459. [[default=yes]]
  1460. --enable-video-x11-scrnsaver
  1461. enable X11 screensaver extension [[default=yes]]
  1462. --enable-video-x11-xshape
  1463. enable X11 XShape support [[default=yes]]
  1464. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1465. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1466. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1467. --enable-render-metal enable the Metal render driver [[default=yes]]
  1468. --enable-video-directfb use DirectFB video driver [[default=no]]
  1469. --enable-directfb-shared
  1470. dynamically load directfb support [[default=yes]]
  1471. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1472. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1473. --enable-video-dummy use dummy video driver [[default=yes]]
  1474. --enable-video-opengl include OpenGL support [[default=yes]]
  1475. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1476. --enable-video-opengles1
  1477. include OpenGL ES 1.1 support [[default=yes]]
  1478. --enable-video-opengles2
  1479. include OpenGL ES 2.0 support [[default=yes]]
  1480. --enable-video-vulkan include Vulkan support [[default=yes]]
  1481. --enable-libudev enable libudev support [[default=yes]]
  1482. --enable-dbus enable D-Bus support [[default=yes]]
  1483. --enable-ime enable IME support [[default=yes]]
  1484. --enable-ibus enable IBus support [[default=yes]]
  1485. --enable-fcitx enable fcitx support [[default=yes]]
  1486. --enable-input-tslib use the Touchscreen library for input
  1487. [[default=yes]]
  1488. --enable-pthreads use POSIX threads for multi-threading
  1489. [[default=yes]]
  1490. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1491. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1492. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1493. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1494. --enable-hidapi use HIDAPI for low level joystick drivers
  1495. [[default=no]]
  1496. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1497. UNIX [[default=yes]]
  1498. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1499. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1500. Optional Packages:
  1501. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1502. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1503. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1504. both]
  1505. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1506. --with-sysroot=DIR Search for dependent libraries within DIR
  1507. (or the compiler's sysroot if not specified).
  1508. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1509. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1510. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1511. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1512. --with-x use the X Window System
  1513. Some influential environment variables:
  1514. CC C compiler command
  1515. CFLAGS C compiler flags
  1516. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1517. nonstandard directory <lib dir>
  1518. LIBS libraries to pass to the linker, e.g. -l<library>
  1519. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1520. you have headers in a nonstandard directory <include dir>
  1521. CPP C preprocessor
  1522. CXX C++ compiler command
  1523. CXXFLAGS C++ compiler flags
  1524. CXXCPP C++ preprocessor
  1525. XMKMF Path to xmkmf, Makefile generator for X Window System
  1526. Use these variables to override the choices made by `configure' or to help
  1527. it to find libraries and programs with nonstandard names/locations.
  1528. Report bugs to the package provider.
  1529. _ACEOF
  1530. ac_status=$?
  1531. fi
  1532. if test "$ac_init_help" = "recursive"; then
  1533. # If there are subdirs, report their specific --help.
  1534. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1535. test -d "$ac_dir" ||
  1536. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1537. continue
  1538. ac_builddir=.
  1539. case "$ac_dir" in
  1540. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1541. *)
  1542. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1543. # A ".." for each directory in $ac_dir_suffix.
  1544. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1545. case $ac_top_builddir_sub in
  1546. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1547. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1548. esac ;;
  1549. esac
  1550. ac_abs_top_builddir=$ac_pwd
  1551. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1552. # for backward compatibility:
  1553. ac_top_builddir=$ac_top_build_prefix
  1554. case $srcdir in
  1555. .) # We are building in place.
  1556. ac_srcdir=.
  1557. ac_top_srcdir=$ac_top_builddir_sub
  1558. ac_abs_top_srcdir=$ac_pwd ;;
  1559. [\\/]* | ?:[\\/]* ) # Absolute name.
  1560. ac_srcdir=$srcdir$ac_dir_suffix;
  1561. ac_top_srcdir=$srcdir
  1562. ac_abs_top_srcdir=$srcdir ;;
  1563. *) # Relative name.
  1564. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1565. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1566. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1567. esac
  1568. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1569. cd "$ac_dir" || { ac_status=$?; continue; }
  1570. # Check for guested configure.
  1571. if test -f "$ac_srcdir/configure.gnu"; then
  1572. echo &&
  1573. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1574. elif test -f "$ac_srcdir/configure"; then
  1575. echo &&
  1576. $SHELL "$ac_srcdir/configure" --help=recursive
  1577. else
  1578. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1579. fi || ac_status=$?
  1580. cd "$ac_pwd" || { ac_status=$?; break; }
  1581. done
  1582. fi
  1583. test -n "$ac_init_help" && exit $ac_status
  1584. if $ac_init_version; then
  1585. cat <<\_ACEOF
  1586. configure
  1587. generated by GNU Autoconf 2.69
  1588. Copyright (C) 2012 Free Software Foundation, Inc.
  1589. This configure script is free software; the Free Software Foundation
  1590. gives unlimited permission to copy, distribute and modify it.
  1591. _ACEOF
  1592. exit
  1593. fi
  1594. ## ------------------------ ##
  1595. ## Autoconf initialization. ##
  1596. ## ------------------------ ##
  1597. # ac_fn_c_try_compile LINENO
  1598. # --------------------------
  1599. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1600. ac_fn_c_try_compile ()
  1601. {
  1602. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1603. rm -f conftest.$ac_objext
  1604. if { { ac_try="$ac_compile"
  1605. case "(($ac_try" in
  1606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1607. *) ac_try_echo=$ac_try;;
  1608. esac
  1609. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1610. $as_echo "$ac_try_echo"; } >&5
  1611. (eval "$ac_compile") 2>conftest.err
  1612. ac_status=$?
  1613. if test -s conftest.err; then
  1614. grep -v '^ *+' conftest.err >conftest.er1
  1615. cat conftest.er1 >&5
  1616. mv -f conftest.er1 conftest.err
  1617. fi
  1618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1619. test $ac_status = 0; } && {
  1620. test -z "$ac_c_werror_flag" ||
  1621. test ! -s conftest.err
  1622. } && test -s conftest.$ac_objext; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=1
  1628. fi
  1629. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1630. as_fn_set_status $ac_retval
  1631. } # ac_fn_c_try_compile
  1632. # ac_fn_c_try_link LINENO
  1633. # -----------------------
  1634. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1635. ac_fn_c_try_link ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. rm -f conftest.$ac_objext conftest$ac_exeext
  1639. if { { ac_try="$ac_link"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_link") 2>conftest.err
  1647. ac_status=$?
  1648. if test -s conftest.err; then
  1649. grep -v '^ *+' conftest.err >conftest.er1
  1650. cat conftest.er1 >&5
  1651. mv -f conftest.er1 conftest.err
  1652. fi
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } && {
  1655. test -z "$ac_c_werror_flag" ||
  1656. test ! -s conftest.err
  1657. } && test -s conftest$ac_exeext && {
  1658. test "$cross_compiling" = yes ||
  1659. test -x conftest$ac_exeext
  1660. }; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=1
  1666. fi
  1667. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1668. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1669. # interfere with the next link command; also delete a directory that is
  1670. # left behind by Apple's compiler. We do this before executing the actions.
  1671. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. as_fn_set_status $ac_retval
  1674. } # ac_fn_c_try_link
  1675. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1676. # -------------------------------------------------------
  1677. # Tests whether HEADER exists and can be compiled using the include files in
  1678. # INCLUDES, setting the cache variable VAR accordingly.
  1679. ac_fn_c_check_header_compile ()
  1680. {
  1681. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1683. $as_echo_n "checking for $2... " >&6; }
  1684. if eval \${$3+:} false; then :
  1685. $as_echo_n "(cached) " >&6
  1686. else
  1687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1688. /* end confdefs.h. */
  1689. $4
  1690. #include <$2>
  1691. _ACEOF
  1692. if ac_fn_c_try_compile "$LINENO"; then :
  1693. eval "$3=yes"
  1694. else
  1695. eval "$3=no"
  1696. fi
  1697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1698. fi
  1699. eval ac_res=\$$3
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1701. $as_echo "$ac_res" >&6; }
  1702. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1703. } # ac_fn_c_check_header_compile
  1704. # ac_fn_c_try_cpp LINENO
  1705. # ----------------------
  1706. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1707. ac_fn_c_try_cpp ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1711. case "(($ac_try" in
  1712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1713. *) ac_try_echo=$ac_try;;
  1714. esac
  1715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1716. $as_echo "$ac_try_echo"; } >&5
  1717. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1718. ac_status=$?
  1719. if test -s conftest.err; then
  1720. grep -v '^ *+' conftest.err >conftest.er1
  1721. cat conftest.er1 >&5
  1722. mv -f conftest.er1 conftest.err
  1723. fi
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } > conftest.i && {
  1726. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1727. test ! -s conftest.err
  1728. }; then :
  1729. ac_retval=0
  1730. else
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=1
  1734. fi
  1735. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1736. as_fn_set_status $ac_retval
  1737. } # ac_fn_c_try_cpp
  1738. # ac_fn_c_try_run LINENO
  1739. # ----------------------
  1740. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1741. # that executables *can* be run.
  1742. ac_fn_c_try_run ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. if { { ac_try="$ac_link"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_link") 2>&5
  1753. ac_status=$?
  1754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1756. { { case "(($ac_try" in
  1757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1758. *) ac_try_echo=$ac_try;;
  1759. esac
  1760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1761. $as_echo "$ac_try_echo"; } >&5
  1762. (eval "$ac_try") 2>&5
  1763. ac_status=$?
  1764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1765. test $ac_status = 0; }; }; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: program exited with status $ac_status" >&5
  1769. $as_echo "$as_me: failed program was:" >&5
  1770. sed 's/^/| /' conftest.$ac_ext >&5
  1771. ac_retval=$ac_status
  1772. fi
  1773. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. as_fn_set_status $ac_retval
  1776. } # ac_fn_c_try_run
  1777. # ac_fn_c_check_func LINENO FUNC VAR
  1778. # ----------------------------------
  1779. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1780. ac_fn_c_check_func ()
  1781. {
  1782. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1784. $as_echo_n "checking for $2... " >&6; }
  1785. if eval \${$3+:} false; then :
  1786. $as_echo_n "(cached) " >&6
  1787. else
  1788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1789. /* end confdefs.h. */
  1790. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1791. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1792. #define $2 innocuous_$2
  1793. /* System header to define __stub macros and hopefully few prototypes,
  1794. which can conflict with char $2 (); below.
  1795. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1796. <limits.h> exists even on freestanding compilers. */
  1797. #ifdef __STDC__
  1798. # include <limits.h>
  1799. #else
  1800. # include <assert.h>
  1801. #endif
  1802. #undef $2
  1803. /* Override any GCC internal prototype to avoid an error.
  1804. Use char because int might match the return type of a GCC
  1805. builtin and then its argument prototype would still apply. */
  1806. #ifdef __cplusplus
  1807. extern "C"
  1808. #endif
  1809. char $2 ();
  1810. /* The GNU C library defines this for functions which it implements
  1811. to always fail with ENOSYS. Some functions are actually named
  1812. something starting with __ and the normal name is an alias. */
  1813. #if defined __stub_$2 || defined __stub___$2
  1814. choke me
  1815. #endif
  1816. int
  1817. main ()
  1818. {
  1819. return $2 ();
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_c_try_link "$LINENO"; then :
  1825. eval "$3=yes"
  1826. else
  1827. eval "$3=no"
  1828. fi
  1829. rm -f core conftest.err conftest.$ac_objext \
  1830. conftest$ac_exeext conftest.$ac_ext
  1831. fi
  1832. eval ac_res=\$$3
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1834. $as_echo "$ac_res" >&6; }
  1835. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1836. } # ac_fn_c_check_func
  1837. # ac_fn_cxx_try_compile LINENO
  1838. # ----------------------------
  1839. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1840. ac_fn_cxx_try_compile ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. rm -f conftest.$ac_objext
  1844. if { { ac_try="$ac_compile"
  1845. case "(($ac_try" in
  1846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1847. *) ac_try_echo=$ac_try;;
  1848. esac
  1849. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1850. $as_echo "$ac_try_echo"; } >&5
  1851. (eval "$ac_compile") 2>conftest.err
  1852. ac_status=$?
  1853. if test -s conftest.err; then
  1854. grep -v '^ *+' conftest.err >conftest.er1
  1855. cat conftest.er1 >&5
  1856. mv -f conftest.er1 conftest.err
  1857. fi
  1858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1859. test $ac_status = 0; } && {
  1860. test -z "$ac_cxx_werror_flag" ||
  1861. test ! -s conftest.err
  1862. } && test -s conftest.$ac_objext; then :
  1863. ac_retval=0
  1864. else
  1865. $as_echo "$as_me: failed program was:" >&5
  1866. sed 's/^/| /' conftest.$ac_ext >&5
  1867. ac_retval=1
  1868. fi
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. as_fn_set_status $ac_retval
  1871. } # ac_fn_cxx_try_compile
  1872. # ac_fn_cxx_try_cpp LINENO
  1873. # ------------------------
  1874. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1875. ac_fn_cxx_try_cpp ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1879. case "(($ac_try" in
  1880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1881. *) ac_try_echo=$ac_try;;
  1882. esac
  1883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1884. $as_echo "$ac_try_echo"; } >&5
  1885. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1886. ac_status=$?
  1887. if test -s conftest.err; then
  1888. grep -v '^ *+' conftest.err >conftest.er1
  1889. cat conftest.er1 >&5
  1890. mv -f conftest.er1 conftest.err
  1891. fi
  1892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1893. test $ac_status = 0; } > conftest.i && {
  1894. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1895. test ! -s conftest.err
  1896. }; then :
  1897. ac_retval=0
  1898. else
  1899. $as_echo "$as_me: failed program was:" >&5
  1900. sed 's/^/| /' conftest.$ac_ext >&5
  1901. ac_retval=1
  1902. fi
  1903. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1904. as_fn_set_status $ac_retval
  1905. } # ac_fn_cxx_try_cpp
  1906. # ac_fn_cxx_try_link LINENO
  1907. # -------------------------
  1908. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1909. ac_fn_cxx_try_link ()
  1910. {
  1911. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1912. rm -f conftest.$ac_objext conftest$ac_exeext
  1913. if { { ac_try="$ac_link"
  1914. case "(($ac_try" in
  1915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1916. *) ac_try_echo=$ac_try;;
  1917. esac
  1918. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1919. $as_echo "$ac_try_echo"; } >&5
  1920. (eval "$ac_link") 2>conftest.err
  1921. ac_status=$?
  1922. if test -s conftest.err; then
  1923. grep -v '^ *+' conftest.err >conftest.er1
  1924. cat conftest.er1 >&5
  1925. mv -f conftest.er1 conftest.err
  1926. fi
  1927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1928. test $ac_status = 0; } && {
  1929. test -z "$ac_cxx_werror_flag" ||
  1930. test ! -s conftest.err
  1931. } && test -s conftest$ac_exeext && {
  1932. test "$cross_compiling" = yes ||
  1933. test -x conftest$ac_exeext
  1934. }; then :
  1935. ac_retval=0
  1936. else
  1937. $as_echo "$as_me: failed program was:" >&5
  1938. sed 's/^/| /' conftest.$ac_ext >&5
  1939. ac_retval=1
  1940. fi
  1941. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1942. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1943. # interfere with the next link command; also delete a directory that is
  1944. # left behind by Apple's compiler. We do this before executing the actions.
  1945. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1946. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1947. as_fn_set_status $ac_retval
  1948. } # ac_fn_cxx_try_link
  1949. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1950. # -------------------------------------------------------
  1951. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1952. # the include files in INCLUDES and setting the cache variable VAR
  1953. # accordingly.
  1954. ac_fn_c_check_header_mongrel ()
  1955. {
  1956. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1957. if eval \${$3+:} false; then :
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1959. $as_echo_n "checking for $2... " >&6; }
  1960. if eval \${$3+:} false; then :
  1961. $as_echo_n "(cached) " >&6
  1962. fi
  1963. eval ac_res=\$$3
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1965. $as_echo "$ac_res" >&6; }
  1966. else
  1967. # Is the header compilable?
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1969. $as_echo_n "checking $2 usability... " >&6; }
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $4
  1973. #include <$2>
  1974. _ACEOF
  1975. if ac_fn_c_try_compile "$LINENO"; then :
  1976. ac_header_compiler=yes
  1977. else
  1978. ac_header_compiler=no
  1979. fi
  1980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1982. $as_echo "$ac_header_compiler" >&6; }
  1983. # Is the header present?
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1985. $as_echo_n "checking $2 presence... " >&6; }
  1986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1987. /* end confdefs.h. */
  1988. #include <$2>
  1989. _ACEOF
  1990. if ac_fn_c_try_cpp "$LINENO"; then :
  1991. ac_header_preproc=yes
  1992. else
  1993. ac_header_preproc=no
  1994. fi
  1995. rm -f conftest.err conftest.i conftest.$ac_ext
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1997. $as_echo "$ac_header_preproc" >&6; }
  1998. # So? What about this header?
  1999. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2000. yes:no: )
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2002. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2004. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2005. ;;
  2006. no:yes:* )
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2008. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2010. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2012. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2014. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2016. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2017. ;;
  2018. esac
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2020. $as_echo_n "checking for $2... " >&6; }
  2021. if eval \${$3+:} false; then :
  2022. $as_echo_n "(cached) " >&6
  2023. else
  2024. eval "$3=\$ac_header_compiler"
  2025. fi
  2026. eval ac_res=\$$3
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2028. $as_echo "$ac_res" >&6; }
  2029. fi
  2030. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2031. } # ac_fn_c_check_header_mongrel
  2032. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2033. # -------------------------------------------
  2034. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2035. # variable VAR accordingly.
  2036. ac_fn_c_check_type ()
  2037. {
  2038. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2040. $as_echo_n "checking for $2... " >&6; }
  2041. if eval \${$3+:} false; then :
  2042. $as_echo_n "(cached) " >&6
  2043. else
  2044. eval "$3=no"
  2045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2046. /* end confdefs.h. */
  2047. $4
  2048. int
  2049. main ()
  2050. {
  2051. if (sizeof ($2))
  2052. return 0;
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. if ac_fn_c_try_compile "$LINENO"; then :
  2058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2059. /* end confdefs.h. */
  2060. $4
  2061. int
  2062. main ()
  2063. {
  2064. if (sizeof (($2)))
  2065. return 0;
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. else
  2072. eval "$3=yes"
  2073. fi
  2074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2075. fi
  2076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2077. fi
  2078. eval ac_res=\$$3
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2080. $as_echo "$ac_res" >&6; }
  2081. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2082. } # ac_fn_c_check_type
  2083. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2084. # ----------------------------------------------------
  2085. # Tries to find if the field MEMBER exists in type AGGR, after including
  2086. # INCLUDES, setting cache variable VAR accordingly.
  2087. ac_fn_c_check_member ()
  2088. {
  2089. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2091. $as_echo_n "checking for $2.$3... " >&6; }
  2092. if eval \${$4+:} false; then :
  2093. $as_echo_n "(cached) " >&6
  2094. else
  2095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2096. /* end confdefs.h. */
  2097. $5
  2098. int
  2099. main ()
  2100. {
  2101. static $2 ac_aggr;
  2102. if (ac_aggr.$3)
  2103. return 0;
  2104. ;
  2105. return 0;
  2106. }
  2107. _ACEOF
  2108. if ac_fn_c_try_compile "$LINENO"; then :
  2109. eval "$4=yes"
  2110. else
  2111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2112. /* end confdefs.h. */
  2113. $5
  2114. int
  2115. main ()
  2116. {
  2117. static $2 ac_aggr;
  2118. if (sizeof ac_aggr.$3)
  2119. return 0;
  2120. ;
  2121. return 0;
  2122. }
  2123. _ACEOF
  2124. if ac_fn_c_try_compile "$LINENO"; then :
  2125. eval "$4=yes"
  2126. else
  2127. eval "$4=no"
  2128. fi
  2129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2132. fi
  2133. eval ac_res=\$$4
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2135. $as_echo "$ac_res" >&6; }
  2136. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2137. } # ac_fn_c_check_member
  2138. cat >config.log <<_ACEOF
  2139. This file contains any messages produced by compilers while
  2140. running configure, to aid debugging if configure makes a mistake.
  2141. It was created by $as_me, which was
  2142. generated by GNU Autoconf 2.69. Invocation command line was
  2143. $ $0 $@
  2144. _ACEOF
  2145. exec 5>>config.log
  2146. {
  2147. cat <<_ASUNAME
  2148. ## --------- ##
  2149. ## Platform. ##
  2150. ## --------- ##
  2151. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2152. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2153. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2154. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2155. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2156. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2157. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2158. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2159. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2160. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2161. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2162. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2163. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2164. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2165. _ASUNAME
  2166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2167. for as_dir in $PATH
  2168. do
  2169. IFS=$as_save_IFS
  2170. test -z "$as_dir" && as_dir=.
  2171. $as_echo "PATH: $as_dir"
  2172. done
  2173. IFS=$as_save_IFS
  2174. } >&5
  2175. cat >&5 <<_ACEOF
  2176. ## ----------- ##
  2177. ## Core tests. ##
  2178. ## ----------- ##
  2179. _ACEOF
  2180. # Keep a trace of the command line.
  2181. # Strip out --no-create and --no-recursion so they do not pile up.
  2182. # Strip out --silent because we don't want to record it for future runs.
  2183. # Also quote any args containing shell meta-characters.
  2184. # Make two passes to allow for proper duplicate-argument suppression.
  2185. ac_configure_args=
  2186. ac_configure_args0=
  2187. ac_configure_args1=
  2188. ac_must_keep_next=false
  2189. for ac_pass in 1 2
  2190. do
  2191. for ac_arg
  2192. do
  2193. case $ac_arg in
  2194. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2195. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2196. | -silent | --silent | --silen | --sile | --sil)
  2197. continue ;;
  2198. *\'*)
  2199. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2200. esac
  2201. case $ac_pass in
  2202. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2203. 2)
  2204. as_fn_append ac_configure_args1 " '$ac_arg'"
  2205. if test $ac_must_keep_next = true; then
  2206. ac_must_keep_next=false # Got value, back to normal.
  2207. else
  2208. case $ac_arg in
  2209. *=* | --config-cache | -C | -disable-* | --disable-* \
  2210. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2211. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2212. | -with-* | --with-* | -without-* | --without-* | --x)
  2213. case "$ac_configure_args0 " in
  2214. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2215. esac
  2216. ;;
  2217. -* ) ac_must_keep_next=true ;;
  2218. esac
  2219. fi
  2220. as_fn_append ac_configure_args " '$ac_arg'"
  2221. ;;
  2222. esac
  2223. done
  2224. done
  2225. { ac_configure_args0=; unset ac_configure_args0;}
  2226. { ac_configure_args1=; unset ac_configure_args1;}
  2227. # When interrupted or exit'd, cleanup temporary files, and complete
  2228. # config.log. We remove comments because anyway the quotes in there
  2229. # would cause problems or look ugly.
  2230. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2231. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2232. trap 'exit_status=$?
  2233. # Save into config.log some information that might help in debugging.
  2234. {
  2235. echo
  2236. $as_echo "## ---------------- ##
  2237. ## Cache variables. ##
  2238. ## ---------------- ##"
  2239. echo
  2240. # The following way of writing the cache mishandles newlines in values,
  2241. (
  2242. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2243. eval ac_val=\$$ac_var
  2244. case $ac_val in #(
  2245. *${as_nl}*)
  2246. case $ac_var in #(
  2247. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2248. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2249. esac
  2250. case $ac_var in #(
  2251. _ | IFS | as_nl) ;; #(
  2252. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2253. *) { eval $ac_var=; unset $ac_var;} ;;
  2254. esac ;;
  2255. esac
  2256. done
  2257. (set) 2>&1 |
  2258. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2259. *${as_nl}ac_space=\ *)
  2260. sed -n \
  2261. "s/'\''/'\''\\\\'\'''\''/g;
  2262. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2263. ;; #(
  2264. *)
  2265. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2266. ;;
  2267. esac |
  2268. sort
  2269. )
  2270. echo
  2271. $as_echo "## ----------------- ##
  2272. ## Output variables. ##
  2273. ## ----------------- ##"
  2274. echo
  2275. for ac_var in $ac_subst_vars
  2276. do
  2277. eval ac_val=\$$ac_var
  2278. case $ac_val in
  2279. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2280. esac
  2281. $as_echo "$ac_var='\''$ac_val'\''"
  2282. done | sort
  2283. echo
  2284. if test -n "$ac_subst_files"; then
  2285. $as_echo "## ------------------- ##
  2286. ## File substitutions. ##
  2287. ## ------------------- ##"
  2288. echo
  2289. for ac_var in $ac_subst_files
  2290. do
  2291. eval ac_val=\$$ac_var
  2292. case $ac_val in
  2293. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2294. esac
  2295. $as_echo "$ac_var='\''$ac_val'\''"
  2296. done | sort
  2297. echo
  2298. fi
  2299. if test -s confdefs.h; then
  2300. $as_echo "## ----------- ##
  2301. ## confdefs.h. ##
  2302. ## ----------- ##"
  2303. echo
  2304. cat confdefs.h
  2305. echo
  2306. fi
  2307. test "$ac_signal" != 0 &&
  2308. $as_echo "$as_me: caught signal $ac_signal"
  2309. $as_echo "$as_me: exit $exit_status"
  2310. } >&5
  2311. rm -f core *.core core.conftest.* &&
  2312. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2313. exit $exit_status
  2314. ' 0
  2315. for ac_signal in 1 2 13 15; do
  2316. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2317. done
  2318. ac_signal=0
  2319. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2320. rm -f -r conftest* confdefs.h
  2321. $as_echo "/* confdefs.h */" > confdefs.h
  2322. # Predefined preprocessor variables.
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_NAME "$PACKAGE_NAME"
  2325. _ACEOF
  2326. cat >>confdefs.h <<_ACEOF
  2327. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2328. _ACEOF
  2329. cat >>confdefs.h <<_ACEOF
  2330. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2331. _ACEOF
  2332. cat >>confdefs.h <<_ACEOF
  2333. #define PACKAGE_STRING "$PACKAGE_STRING"
  2334. _ACEOF
  2335. cat >>confdefs.h <<_ACEOF
  2336. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2337. _ACEOF
  2338. cat >>confdefs.h <<_ACEOF
  2339. #define PACKAGE_URL "$PACKAGE_URL"
  2340. _ACEOF
  2341. # Let the site file select an alternate cache file if it wants to.
  2342. # Prefer an explicitly selected file to automatically selected ones.
  2343. ac_site_file1=NONE
  2344. ac_site_file2=NONE
  2345. if test -n "$CONFIG_SITE"; then
  2346. # We do not want a PATH search for config.site.
  2347. case $CONFIG_SITE in #((
  2348. -*) ac_site_file1=./$CONFIG_SITE;;
  2349. */*) ac_site_file1=$CONFIG_SITE;;
  2350. *) ac_site_file1=./$CONFIG_SITE;;
  2351. esac
  2352. elif test "x$prefix" != xNONE; then
  2353. ac_site_file1=$prefix/share/config.site
  2354. ac_site_file2=$prefix/etc/config.site
  2355. else
  2356. ac_site_file1=$ac_default_prefix/share/config.site
  2357. ac_site_file2=$ac_default_prefix/etc/config.site
  2358. fi
  2359. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2360. do
  2361. test "x$ac_site_file" = xNONE && continue
  2362. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2364. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2365. sed 's/^/| /' "$ac_site_file" >&5
  2366. . "$ac_site_file" \
  2367. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2368. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2369. as_fn_error $? "failed to load site script $ac_site_file
  2370. See \`config.log' for more details" "$LINENO" 5; }
  2371. fi
  2372. done
  2373. if test -r "$cache_file"; then
  2374. # Some versions of bash will fail to source /dev/null (special files
  2375. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2376. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2378. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2379. case $cache_file in
  2380. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2381. *) . "./$cache_file";;
  2382. esac
  2383. fi
  2384. else
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2386. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2387. >$cache_file
  2388. fi
  2389. # Check that the precious variables saved in the cache have kept the same
  2390. # value.
  2391. ac_cache_corrupted=false
  2392. for ac_var in $ac_precious_vars; do
  2393. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2394. eval ac_new_set=\$ac_env_${ac_var}_set
  2395. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2396. eval ac_new_val=\$ac_env_${ac_var}_value
  2397. case $ac_old_set,$ac_new_set in
  2398. set,)
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2400. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2401. ac_cache_corrupted=: ;;
  2402. ,set)
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2404. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2405. ac_cache_corrupted=: ;;
  2406. ,);;
  2407. *)
  2408. if test "x$ac_old_val" != "x$ac_new_val"; then
  2409. # differences in whitespace do not lead to failure.
  2410. ac_old_val_w=`echo x $ac_old_val`
  2411. ac_new_val_w=`echo x $ac_new_val`
  2412. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2414. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2415. ac_cache_corrupted=:
  2416. else
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2418. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2419. eval $ac_var=\$ac_old_val
  2420. fi
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2422. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2424. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2425. fi;;
  2426. esac
  2427. # Pass precious variables to config.status.
  2428. if test "$ac_new_set" = set; then
  2429. case $ac_new_val in
  2430. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2431. *) ac_arg=$ac_var=$ac_new_val ;;
  2432. esac
  2433. case " $ac_configure_args " in
  2434. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2435. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2436. esac
  2437. fi
  2438. done
  2439. if $ac_cache_corrupted; then
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2443. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2444. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2445. fi
  2446. ## -------------------- ##
  2447. ## Main body of script. ##
  2448. ## -------------------- ##
  2449. ac_ext=c
  2450. ac_cpp='$CPP $CPPFLAGS'
  2451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2454. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2455. ac_aux_dir=
  2456. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2457. if test -f "$ac_dir/install-sh"; then
  2458. ac_aux_dir=$ac_dir
  2459. ac_install_sh="$ac_aux_dir/install-sh -c"
  2460. break
  2461. elif test -f "$ac_dir/install.sh"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/install.sh -c"
  2464. break
  2465. elif test -f "$ac_dir/shtool"; then
  2466. ac_aux_dir=$ac_dir
  2467. ac_install_sh="$ac_aux_dir/shtool install -c"
  2468. break
  2469. fi
  2470. done
  2471. if test -z "$ac_aux_dir"; then
  2472. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2473. fi
  2474. # These three variables are undocumented and unsupported,
  2475. # and are intended to be withdrawn in a future Autoconf release.
  2476. # They can cause serious problems if a builder's source tree is in a directory
  2477. # whose full name contains unusual characters.
  2478. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2479. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2480. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2481. orig_CFLAGS="$CFLAGS"
  2482. #
  2483. # Making releases:
  2484. # Edit include/SDL_version.h and change the version, then:
  2485. # SDL_MICRO_VERSION += 1;
  2486. # SDL_INTERFACE_AGE += 1;
  2487. # SDL_BINARY_AGE += 1;
  2488. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2489. # if backwards compatibility has been broken,
  2490. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2491. #
  2492. SDL_MAJOR_VERSION=2
  2493. SDL_MINOR_VERSION=0
  2494. SDL_MICRO_VERSION=9
  2495. SDL_INTERFACE_AGE=0
  2496. SDL_BINARY_AGE=9
  2497. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2498. # libtool versioning
  2499. case `pwd` in
  2500. *\ * | *\ *)
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2502. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2503. esac
  2504. macro_version='2.4.2'
  2505. macro_revision='1.3337'
  2506. ltmain="$ac_aux_dir/ltmain.sh"
  2507. # Make sure we can run config.sub.
  2508. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2509. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2511. $as_echo_n "checking build system type... " >&6; }
  2512. if ${ac_cv_build+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. ac_build_alias=$build_alias
  2516. test "x$ac_build_alias" = x &&
  2517. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2518. test "x$ac_build_alias" = x &&
  2519. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2520. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2521. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2522. fi
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2524. $as_echo "$ac_cv_build" >&6; }
  2525. case $ac_cv_build in
  2526. *-*-*) ;;
  2527. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2528. esac
  2529. build=$ac_cv_build
  2530. ac_save_IFS=$IFS; IFS='-'
  2531. set x $ac_cv_build
  2532. shift
  2533. build_cpu=$1
  2534. build_vendor=$2
  2535. shift; shift
  2536. # Remember, the first character of IFS is used to create $*,
  2537. # except with old shells:
  2538. build_os=$*
  2539. IFS=$ac_save_IFS
  2540. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2542. $as_echo_n "checking host system type... " >&6; }
  2543. if ${ac_cv_host+:} false; then :
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. if test "x$host_alias" = x; then
  2547. ac_cv_host=$ac_cv_build
  2548. else
  2549. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2550. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2551. fi
  2552. fi
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2554. $as_echo "$ac_cv_host" >&6; }
  2555. case $ac_cv_host in
  2556. *-*-*) ;;
  2557. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2558. esac
  2559. host=$ac_cv_host
  2560. ac_save_IFS=$IFS; IFS='-'
  2561. set x $ac_cv_host
  2562. shift
  2563. host_cpu=$1
  2564. host_vendor=$2
  2565. shift; shift
  2566. # Remember, the first character of IFS is used to create $*,
  2567. # except with old shells:
  2568. host_os=$*
  2569. IFS=$ac_save_IFS
  2570. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2571. # Backslashify metacharacters that are still active within
  2572. # double-quoted strings.
  2573. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2574. # Same as above, but do not quote variable references.
  2575. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2576. # Sed substitution to delay expansion of an escaped shell variable in a
  2577. # double_quote_subst'ed string.
  2578. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2579. # Sed substitution to delay expansion of an escaped single quote.
  2580. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2581. # Sed substitution to avoid accidental globbing in evaled expressions
  2582. no_glob_subst='s/\*/\\\*/g'
  2583. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2584. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2585. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2587. $as_echo_n "checking how to print strings... " >&6; }
  2588. # Test print first, because it will be a builtin if present.
  2589. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2590. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2591. ECHO='print -r --'
  2592. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2593. ECHO='printf %s\n'
  2594. else
  2595. # Use this function as a fallback that always works.
  2596. func_fallback_echo ()
  2597. {
  2598. eval 'cat <<_LTECHO_EOF
  2599. $1
  2600. _LTECHO_EOF'
  2601. }
  2602. ECHO='func_fallback_echo'
  2603. fi
  2604. # func_echo_all arg...
  2605. # Invoke $ECHO with all args, space-separated.
  2606. func_echo_all ()
  2607. {
  2608. $ECHO ""
  2609. }
  2610. case "$ECHO" in
  2611. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2612. $as_echo "printf" >&6; } ;;
  2613. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2614. $as_echo "print -r" >&6; } ;;
  2615. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2616. $as_echo "cat" >&6; } ;;
  2617. esac
  2618. ac_ext=c
  2619. ac_cpp='$CPP $CPPFLAGS'
  2620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2623. if test -n "$ac_tool_prefix"; then
  2624. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2625. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2627. $as_echo_n "checking for $ac_word... " >&6; }
  2628. if ${ac_cv_prog_CC+:} false; then :
  2629. $as_echo_n "(cached) " >&6
  2630. else
  2631. if test -n "$CC"; then
  2632. ac_cv_prog_CC="$CC" # Let the user override the test.
  2633. else
  2634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2635. for as_dir in $PATH
  2636. do
  2637. IFS=$as_save_IFS
  2638. test -z "$as_dir" && as_dir=.
  2639. for ac_exec_ext in '' $ac_executable_extensions; do
  2640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2641. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2643. break 2
  2644. fi
  2645. done
  2646. done
  2647. IFS=$as_save_IFS
  2648. fi
  2649. fi
  2650. CC=$ac_cv_prog_CC
  2651. if test -n "$CC"; then
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2653. $as_echo "$CC" >&6; }
  2654. else
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2656. $as_echo "no" >&6; }
  2657. fi
  2658. fi
  2659. if test -z "$ac_cv_prog_CC"; then
  2660. ac_ct_CC=$CC
  2661. # Extract the first word of "gcc", so it can be a program name with args.
  2662. set dummy gcc; ac_word=$2
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2664. $as_echo_n "checking for $ac_word... " >&6; }
  2665. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2666. $as_echo_n "(cached) " >&6
  2667. else
  2668. if test -n "$ac_ct_CC"; then
  2669. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. test -z "$as_dir" && as_dir=.
  2676. for ac_exec_ext in '' $ac_executable_extensions; do
  2677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2678. ac_cv_prog_ac_ct_CC="gcc"
  2679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. fi
  2686. fi
  2687. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2688. if test -n "$ac_ct_CC"; then
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2690. $as_echo "$ac_ct_CC" >&6; }
  2691. else
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2693. $as_echo "no" >&6; }
  2694. fi
  2695. if test "x$ac_ct_CC" = x; then
  2696. CC=""
  2697. else
  2698. case $cross_compiling:$ac_tool_warned in
  2699. yes:)
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2702. ac_tool_warned=yes ;;
  2703. esac
  2704. CC=$ac_ct_CC
  2705. fi
  2706. else
  2707. CC="$ac_cv_prog_CC"
  2708. fi
  2709. if test -z "$CC"; then
  2710. if test -n "$ac_tool_prefix"; then
  2711. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2712. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2714. $as_echo_n "checking for $ac_word... " >&6; }
  2715. if ${ac_cv_prog_CC+:} false; then :
  2716. $as_echo_n "(cached) " >&6
  2717. else
  2718. if test -n "$CC"; then
  2719. ac_cv_prog_CC="$CC" # Let the user override the test.
  2720. else
  2721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722. for as_dir in $PATH
  2723. do
  2724. IFS=$as_save_IFS
  2725. test -z "$as_dir" && as_dir=.
  2726. for ac_exec_ext in '' $ac_executable_extensions; do
  2727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2728. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2730. break 2
  2731. fi
  2732. done
  2733. done
  2734. IFS=$as_save_IFS
  2735. fi
  2736. fi
  2737. CC=$ac_cv_prog_CC
  2738. if test -n "$CC"; then
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2740. $as_echo "$CC" >&6; }
  2741. else
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2743. $as_echo "no" >&6; }
  2744. fi
  2745. fi
  2746. fi
  2747. if test -z "$CC"; then
  2748. # Extract the first word of "cc", so it can be a program name with args.
  2749. set dummy cc; ac_word=$2
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2751. $as_echo_n "checking for $ac_word... " >&6; }
  2752. if ${ac_cv_prog_CC+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. if test -n "$CC"; then
  2756. ac_cv_prog_CC="$CC" # Let the user override the test.
  2757. else
  2758. ac_prog_rejected=no
  2759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2760. for as_dir in $PATH
  2761. do
  2762. IFS=$as_save_IFS
  2763. test -z "$as_dir" && as_dir=.
  2764. for ac_exec_ext in '' $ac_executable_extensions; do
  2765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2766. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2767. ac_prog_rejected=yes
  2768. continue
  2769. fi
  2770. ac_cv_prog_CC="cc"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. if test $ac_prog_rejected = yes; then
  2778. # We found a bogon in the path, so make sure we never use it.
  2779. set dummy $ac_cv_prog_CC
  2780. shift
  2781. if test $# != 0; then
  2782. # We chose a different compiler from the bogus one.
  2783. # However, it has the same basename, so the bogon will be chosen
  2784. # first if we set CC to just the basename; use the full file name.
  2785. shift
  2786. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2787. fi
  2788. fi
  2789. fi
  2790. fi
  2791. CC=$ac_cv_prog_CC
  2792. if test -n "$CC"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2794. $as_echo "$CC" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. fi
  2800. if test -z "$CC"; then
  2801. if test -n "$ac_tool_prefix"; then
  2802. for ac_prog in cl.exe
  2803. do
  2804. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2805. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if ${ac_cv_prog_CC+:} false; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$CC"; then
  2812. ac_cv_prog_CC="$CC" # Let the user override the test.
  2813. else
  2814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2815. for as_dir in $PATH
  2816. do
  2817. IFS=$as_save_IFS
  2818. test -z "$as_dir" && as_dir=.
  2819. for ac_exec_ext in '' $ac_executable_extensions; do
  2820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2821. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2823. break 2
  2824. fi
  2825. done
  2826. done
  2827. IFS=$as_save_IFS
  2828. fi
  2829. fi
  2830. CC=$ac_cv_prog_CC
  2831. if test -n "$CC"; then
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2833. $as_echo "$CC" >&6; }
  2834. else
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2836. $as_echo "no" >&6; }
  2837. fi
  2838. test -n "$CC" && break
  2839. done
  2840. fi
  2841. if test -z "$CC"; then
  2842. ac_ct_CC=$CC
  2843. for ac_prog in cl.exe
  2844. do
  2845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2846. set dummy $ac_prog; ac_word=$2
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2848. $as_echo_n "checking for $ac_word... " >&6; }
  2849. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. if test -n "$ac_ct_CC"; then
  2853. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2854. else
  2855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2856. for as_dir in $PATH
  2857. do
  2858. IFS=$as_save_IFS
  2859. test -z "$as_dir" && as_dir=.
  2860. for ac_exec_ext in '' $ac_executable_extensions; do
  2861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2862. ac_cv_prog_ac_ct_CC="$ac_prog"
  2863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2864. break 2
  2865. fi
  2866. done
  2867. done
  2868. IFS=$as_save_IFS
  2869. fi
  2870. fi
  2871. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2872. if test -n "$ac_ct_CC"; then
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2874. $as_echo "$ac_ct_CC" >&6; }
  2875. else
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2877. $as_echo "no" >&6; }
  2878. fi
  2879. test -n "$ac_ct_CC" && break
  2880. done
  2881. if test "x$ac_ct_CC" = x; then
  2882. CC=""
  2883. else
  2884. case $cross_compiling:$ac_tool_warned in
  2885. yes:)
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2888. ac_tool_warned=yes ;;
  2889. esac
  2890. CC=$ac_ct_CC
  2891. fi
  2892. fi
  2893. fi
  2894. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2896. as_fn_error $? "no acceptable C compiler found in \$PATH
  2897. See \`config.log' for more details" "$LINENO" 5; }
  2898. # Provide some information about the compiler.
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2900. set X $ac_compile
  2901. ac_compiler=$2
  2902. for ac_option in --version -v -V -qversion; do
  2903. { { ac_try="$ac_compiler $ac_option >&5"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo"; } >&5
  2910. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2911. ac_status=$?
  2912. if test -s conftest.err; then
  2913. sed '10a\
  2914. ... rest of stderr output deleted ...
  2915. 10q' conftest.err >conftest.er1
  2916. cat conftest.er1 >&5
  2917. fi
  2918. rm -f conftest.er1 conftest.err
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2920. test $ac_status = 0; }
  2921. done
  2922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2923. /* end confdefs.h. */
  2924. int
  2925. main ()
  2926. {
  2927. ;
  2928. return 0;
  2929. }
  2930. _ACEOF
  2931. ac_clean_files_save=$ac_clean_files
  2932. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2933. # Try to create an executable without -o first, disregard a.out.
  2934. # It will help us diagnose broken compilers, and finding out an intuition
  2935. # of exeext.
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2937. $as_echo_n "checking whether the C compiler works... " >&6; }
  2938. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2939. # The possible output files:
  2940. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2941. ac_rmfiles=
  2942. for ac_file in $ac_files
  2943. do
  2944. case $ac_file in
  2945. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2946. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2947. esac
  2948. done
  2949. rm -f $ac_rmfiles
  2950. if { { ac_try="$ac_link_default"
  2951. case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2956. $as_echo "$ac_try_echo"; } >&5
  2957. (eval "$ac_link_default") 2>&5
  2958. ac_status=$?
  2959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2960. test $ac_status = 0; }; then :
  2961. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2962. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2963. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2964. # so that the user can short-circuit this test for compilers unknown to
  2965. # Autoconf.
  2966. for ac_file in $ac_files ''
  2967. do
  2968. test -f "$ac_file" || continue
  2969. case $ac_file in
  2970. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2971. ;;
  2972. [ab].out )
  2973. # We found the default executable, but exeext='' is most
  2974. # certainly right.
  2975. break;;
  2976. *.* )
  2977. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2978. then :; else
  2979. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2980. fi
  2981. # We set ac_cv_exeext here because the later test for it is not
  2982. # safe: cross compilers may not add the suffix if given an `-o'
  2983. # argument, so we may need to know it at that point already.
  2984. # Even if this section looks crufty: it has the advantage of
  2985. # actually working.
  2986. break;;
  2987. * )
  2988. break;;
  2989. esac
  2990. done
  2991. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2992. else
  2993. ac_file=''
  2994. fi
  2995. if test -z "$ac_file"; then :
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2997. $as_echo "no" >&6; }
  2998. $as_echo "$as_me: failed program was:" >&5
  2999. sed 's/^/| /' conftest.$ac_ext >&5
  3000. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3001. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3002. as_fn_error 77 "C compiler cannot create executables
  3003. See \`config.log' for more details" "$LINENO" 5; }
  3004. else
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3006. $as_echo "yes" >&6; }
  3007. fi
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3009. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3011. $as_echo "$ac_file" >&6; }
  3012. ac_exeext=$ac_cv_exeext
  3013. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3014. ac_clean_files=$ac_clean_files_save
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3016. $as_echo_n "checking for suffix of executables... " >&6; }
  3017. if { { ac_try="$ac_link"
  3018. case "(($ac_try" in
  3019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3020. *) ac_try_echo=$ac_try;;
  3021. esac
  3022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3023. $as_echo "$ac_try_echo"; } >&5
  3024. (eval "$ac_link") 2>&5
  3025. ac_status=$?
  3026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3027. test $ac_status = 0; }; then :
  3028. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3029. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3030. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3031. # `rm'.
  3032. for ac_file in conftest.exe conftest conftest.*; do
  3033. test -f "$ac_file" || continue
  3034. case $ac_file in
  3035. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3036. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3037. break;;
  3038. * ) break;;
  3039. esac
  3040. done
  3041. else
  3042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3044. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3045. See \`config.log' for more details" "$LINENO" 5; }
  3046. fi
  3047. rm -f conftest conftest$ac_cv_exeext
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3049. $as_echo "$ac_cv_exeext" >&6; }
  3050. rm -f conftest.$ac_ext
  3051. EXEEXT=$ac_cv_exeext
  3052. ac_exeext=$EXEEXT
  3053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3054. /* end confdefs.h. */
  3055. #include <stdio.h>
  3056. int
  3057. main ()
  3058. {
  3059. FILE *f = fopen ("conftest.out", "w");
  3060. return ferror (f) || fclose (f) != 0;
  3061. ;
  3062. return 0;
  3063. }
  3064. _ACEOF
  3065. ac_clean_files="$ac_clean_files conftest.out"
  3066. # Check that the compiler produces executables we can run. If not, either
  3067. # the compiler is broken, or we cross compile.
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3069. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3070. if test "$cross_compiling" != yes; then
  3071. { { ac_try="$ac_link"
  3072. case "(($ac_try" in
  3073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074. *) ac_try_echo=$ac_try;;
  3075. esac
  3076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3077. $as_echo "$ac_try_echo"; } >&5
  3078. (eval "$ac_link") 2>&5
  3079. ac_status=$?
  3080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3081. test $ac_status = 0; }
  3082. if { ac_try='./conftest$ac_cv_exeext'
  3083. { { case "(($ac_try" in
  3084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3085. *) ac_try_echo=$ac_try;;
  3086. esac
  3087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3088. $as_echo "$ac_try_echo"; } >&5
  3089. (eval "$ac_try") 2>&5
  3090. ac_status=$?
  3091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3092. test $ac_status = 0; }; }; then
  3093. cross_compiling=no
  3094. else
  3095. if test "$cross_compiling" = maybe; then
  3096. cross_compiling=yes
  3097. else
  3098. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3100. as_fn_error $? "cannot run C compiled programs.
  3101. If you meant to cross compile, use \`--host'.
  3102. See \`config.log' for more details" "$LINENO" 5; }
  3103. fi
  3104. fi
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3107. $as_echo "$cross_compiling" >&6; }
  3108. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3109. ac_clean_files=$ac_clean_files_save
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3111. $as_echo_n "checking for suffix of object files... " >&6; }
  3112. if ${ac_cv_objext+:} false; then :
  3113. $as_echo_n "(cached) " >&6
  3114. else
  3115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3116. /* end confdefs.h. */
  3117. int
  3118. main ()
  3119. {
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. rm -f conftest.o conftest.obj
  3125. if { { ac_try="$ac_compile"
  3126. case "(($ac_try" in
  3127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3128. *) ac_try_echo=$ac_try;;
  3129. esac
  3130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3131. $as_echo "$ac_try_echo"; } >&5
  3132. (eval "$ac_compile") 2>&5
  3133. ac_status=$?
  3134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3135. test $ac_status = 0; }; then :
  3136. for ac_file in conftest.o conftest.obj conftest.*; do
  3137. test -f "$ac_file" || continue;
  3138. case $ac_file in
  3139. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3140. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3141. break;;
  3142. esac
  3143. done
  3144. else
  3145. $as_echo "$as_me: failed program was:" >&5
  3146. sed 's/^/| /' conftest.$ac_ext >&5
  3147. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3149. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3150. See \`config.log' for more details" "$LINENO" 5; }
  3151. fi
  3152. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3153. fi
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3155. $as_echo "$ac_cv_objext" >&6; }
  3156. OBJEXT=$ac_cv_objext
  3157. ac_objext=$OBJEXT
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3159. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3160. if ${ac_cv_c_compiler_gnu+:} false; then :
  3161. $as_echo_n "(cached) " >&6
  3162. else
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. int
  3166. main ()
  3167. {
  3168. #ifndef __GNUC__
  3169. choke me
  3170. #endif
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. if ac_fn_c_try_compile "$LINENO"; then :
  3176. ac_compiler_gnu=yes
  3177. else
  3178. ac_compiler_gnu=no
  3179. fi
  3180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3181. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3182. fi
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3184. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3185. if test $ac_compiler_gnu = yes; then
  3186. GCC=yes
  3187. else
  3188. GCC=
  3189. fi
  3190. ac_test_CFLAGS=${CFLAGS+set}
  3191. ac_save_CFLAGS=$CFLAGS
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3193. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3194. if ${ac_cv_prog_cc_g+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. ac_save_c_werror_flag=$ac_c_werror_flag
  3198. ac_c_werror_flag=yes
  3199. ac_cv_prog_cc_g=no
  3200. CFLAGS="-g"
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. int
  3204. main ()
  3205. {
  3206. ;
  3207. return 0;
  3208. }
  3209. _ACEOF
  3210. if ac_fn_c_try_compile "$LINENO"; then :
  3211. ac_cv_prog_cc_g=yes
  3212. else
  3213. CFLAGS=""
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. if ac_fn_c_try_compile "$LINENO"; then :
  3224. else
  3225. ac_c_werror_flag=$ac_save_c_werror_flag
  3226. CFLAGS="-g"
  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. if ac_fn_c_try_compile "$LINENO"; then :
  3237. ac_cv_prog_cc_g=yes
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3240. fi
  3241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. ac_c_werror_flag=$ac_save_c_werror_flag
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3247. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3248. if test "$ac_test_CFLAGS" = set; then
  3249. CFLAGS=$ac_save_CFLAGS
  3250. elif test $ac_cv_prog_cc_g = yes; then
  3251. if test "$GCC" = yes; then
  3252. CFLAGS="-g -O2"
  3253. else
  3254. CFLAGS="-g"
  3255. fi
  3256. else
  3257. if test "$GCC" = yes; then
  3258. CFLAGS="-O2"
  3259. else
  3260. CFLAGS=
  3261. fi
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3264. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3265. if ${ac_cv_prog_cc_c89+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. ac_cv_prog_cc_c89=no
  3269. ac_save_CC=$CC
  3270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3271. /* end confdefs.h. */
  3272. #include <stdarg.h>
  3273. #include <stdio.h>
  3274. struct stat;
  3275. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3276. struct buf { int x; };
  3277. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3278. static char *e (p, i)
  3279. char **p;
  3280. int i;
  3281. {
  3282. return p[i];
  3283. }
  3284. static char *f (char * (*g) (char **, int), char **p, ...)
  3285. {
  3286. char *s;
  3287. va_list v;
  3288. va_start (v,p);
  3289. s = g (p, va_arg (v,int));
  3290. va_end (v);
  3291. return s;
  3292. }
  3293. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3294. function prototypes and stuff, but not '\xHH' hex character constants.
  3295. These don't provoke an error unfortunately, instead are silently treated
  3296. as 'x'. The following induces an error, until -std is added to get
  3297. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3298. array size at least. It's necessary to write '\x00'==0 to get something
  3299. that's true only with -std. */
  3300. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3301. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3302. inside strings and character constants. */
  3303. #define FOO(x) 'x'
  3304. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3305. int test (int i, double x);
  3306. struct s1 {int (*f) (int a);};
  3307. struct s2 {int (*f) (double a);};
  3308. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3309. int argc;
  3310. char **argv;
  3311. int
  3312. main ()
  3313. {
  3314. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3320. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3321. do
  3322. CC="$ac_save_CC $ac_arg"
  3323. if ac_fn_c_try_compile "$LINENO"; then :
  3324. ac_cv_prog_cc_c89=$ac_arg
  3325. fi
  3326. rm -f core conftest.err conftest.$ac_objext
  3327. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3328. done
  3329. rm -f conftest.$ac_ext
  3330. CC=$ac_save_CC
  3331. fi
  3332. # AC_CACHE_VAL
  3333. case "x$ac_cv_prog_cc_c89" in
  3334. x)
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3336. $as_echo "none needed" >&6; } ;;
  3337. xno)
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3339. $as_echo "unsupported" >&6; } ;;
  3340. *)
  3341. CC="$CC $ac_cv_prog_cc_c89"
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3343. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3344. esac
  3345. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3346. fi
  3347. ac_ext=c
  3348. ac_cpp='$CPP $CPPFLAGS'
  3349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3353. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3354. if ${ac_cv_path_SED+:} false; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3358. for ac_i in 1 2 3 4 5 6 7; do
  3359. ac_script="$ac_script$as_nl$ac_script"
  3360. done
  3361. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3362. { ac_script=; unset ac_script;}
  3363. if test -z "$SED"; then
  3364. ac_path_SED_found=false
  3365. # Loop through the user's path and test for each of PROGNAME-LIST
  3366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3367. for as_dir in $PATH
  3368. do
  3369. IFS=$as_save_IFS
  3370. test -z "$as_dir" && as_dir=.
  3371. for ac_prog in sed gsed; do
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3374. as_fn_executable_p "$ac_path_SED" || continue
  3375. # Check for GNU ac_path_SED and select it if it is found.
  3376. # Check for GNU $ac_path_SED
  3377. case `"$ac_path_SED" --version 2>&1` in
  3378. *GNU*)
  3379. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3380. *)
  3381. ac_count=0
  3382. $as_echo_n 0123456789 >"conftest.in"
  3383. while :
  3384. do
  3385. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3386. mv "conftest.tmp" "conftest.in"
  3387. cp "conftest.in" "conftest.nl"
  3388. $as_echo '' >> "conftest.nl"
  3389. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3390. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3391. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3392. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3393. # Best one so far, save it but keep looking for a better one
  3394. ac_cv_path_SED="$ac_path_SED"
  3395. ac_path_SED_max=$ac_count
  3396. fi
  3397. # 10*(2^10) chars as input seems more than enough
  3398. test $ac_count -gt 10 && break
  3399. done
  3400. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3401. esac
  3402. $ac_path_SED_found && break 3
  3403. done
  3404. done
  3405. done
  3406. IFS=$as_save_IFS
  3407. if test -z "$ac_cv_path_SED"; then
  3408. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3409. fi
  3410. else
  3411. ac_cv_path_SED=$SED
  3412. fi
  3413. fi
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3415. $as_echo "$ac_cv_path_SED" >&6; }
  3416. SED="$ac_cv_path_SED"
  3417. rm -f conftest.sed
  3418. test -z "$SED" && SED=sed
  3419. Xsed="$SED -e 1s/^X//"
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3421. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3422. if ${ac_cv_path_GREP+:} false; then :
  3423. $as_echo_n "(cached) " >&6
  3424. else
  3425. if test -z "$GREP"; then
  3426. ac_path_GREP_found=false
  3427. # Loop through the user's path and test for each of PROGNAME-LIST
  3428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3429. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3430. do
  3431. IFS=$as_save_IFS
  3432. test -z "$as_dir" && as_dir=.
  3433. for ac_prog in grep ggrep; do
  3434. for ac_exec_ext in '' $ac_executable_extensions; do
  3435. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3436. as_fn_executable_p "$ac_path_GREP" || continue
  3437. # Check for GNU ac_path_GREP and select it if it is found.
  3438. # Check for GNU $ac_path_GREP
  3439. case `"$ac_path_GREP" --version 2>&1` in
  3440. *GNU*)
  3441. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3442. *)
  3443. ac_count=0
  3444. $as_echo_n 0123456789 >"conftest.in"
  3445. while :
  3446. do
  3447. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3448. mv "conftest.tmp" "conftest.in"
  3449. cp "conftest.in" "conftest.nl"
  3450. $as_echo 'GREP' >> "conftest.nl"
  3451. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3452. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3453. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3454. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3455. # Best one so far, save it but keep looking for a better one
  3456. ac_cv_path_GREP="$ac_path_GREP"
  3457. ac_path_GREP_max=$ac_count
  3458. fi
  3459. # 10*(2^10) chars as input seems more than enough
  3460. test $ac_count -gt 10 && break
  3461. done
  3462. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3463. esac
  3464. $ac_path_GREP_found && break 3
  3465. done
  3466. done
  3467. done
  3468. IFS=$as_save_IFS
  3469. if test -z "$ac_cv_path_GREP"; then
  3470. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3471. fi
  3472. else
  3473. ac_cv_path_GREP=$GREP
  3474. fi
  3475. fi
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3477. $as_echo "$ac_cv_path_GREP" >&6; }
  3478. GREP="$ac_cv_path_GREP"
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3480. $as_echo_n "checking for egrep... " >&6; }
  3481. if ${ac_cv_path_EGREP+:} false; then :
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3485. then ac_cv_path_EGREP="$GREP -E"
  3486. else
  3487. if test -z "$EGREP"; then
  3488. ac_path_EGREP_found=false
  3489. # Loop through the user's path and test for each of PROGNAME-LIST
  3490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3491. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3492. do
  3493. IFS=$as_save_IFS
  3494. test -z "$as_dir" && as_dir=.
  3495. for ac_prog in egrep; do
  3496. for ac_exec_ext in '' $ac_executable_extensions; do
  3497. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3498. as_fn_executable_p "$ac_path_EGREP" || continue
  3499. # Check for GNU ac_path_EGREP and select it if it is found.
  3500. # Check for GNU $ac_path_EGREP
  3501. case `"$ac_path_EGREP" --version 2>&1` in
  3502. *GNU*)
  3503. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3504. *)
  3505. ac_count=0
  3506. $as_echo_n 0123456789 >"conftest.in"
  3507. while :
  3508. do
  3509. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3510. mv "conftest.tmp" "conftest.in"
  3511. cp "conftest.in" "conftest.nl"
  3512. $as_echo 'EGREP' >> "conftest.nl"
  3513. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3514. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3515. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3516. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3517. # Best one so far, save it but keep looking for a better one
  3518. ac_cv_path_EGREP="$ac_path_EGREP"
  3519. ac_path_EGREP_max=$ac_count
  3520. fi
  3521. # 10*(2^10) chars as input seems more than enough
  3522. test $ac_count -gt 10 && break
  3523. done
  3524. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3525. esac
  3526. $ac_path_EGREP_found && break 3
  3527. done
  3528. done
  3529. done
  3530. IFS=$as_save_IFS
  3531. if test -z "$ac_cv_path_EGREP"; then
  3532. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3533. fi
  3534. else
  3535. ac_cv_path_EGREP=$EGREP
  3536. fi
  3537. fi
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3540. $as_echo "$ac_cv_path_EGREP" >&6; }
  3541. EGREP="$ac_cv_path_EGREP"
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3543. $as_echo_n "checking for fgrep... " >&6; }
  3544. if ${ac_cv_path_FGREP+:} false; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3548. then ac_cv_path_FGREP="$GREP -F"
  3549. else
  3550. if test -z "$FGREP"; then
  3551. ac_path_FGREP_found=false
  3552. # Loop through the user's path and test for each of PROGNAME-LIST
  3553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3554. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3555. do
  3556. IFS=$as_save_IFS
  3557. test -z "$as_dir" && as_dir=.
  3558. for ac_prog in fgrep; do
  3559. for ac_exec_ext in '' $ac_executable_extensions; do
  3560. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3561. as_fn_executable_p "$ac_path_FGREP" || continue
  3562. # Check for GNU ac_path_FGREP and select it if it is found.
  3563. # Check for GNU $ac_path_FGREP
  3564. case `"$ac_path_FGREP" --version 2>&1` in
  3565. *GNU*)
  3566. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3567. *)
  3568. ac_count=0
  3569. $as_echo_n 0123456789 >"conftest.in"
  3570. while :
  3571. do
  3572. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3573. mv "conftest.tmp" "conftest.in"
  3574. cp "conftest.in" "conftest.nl"
  3575. $as_echo 'FGREP' >> "conftest.nl"
  3576. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3577. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3578. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3579. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3580. # Best one so far, save it but keep looking for a better one
  3581. ac_cv_path_FGREP="$ac_path_FGREP"
  3582. ac_path_FGREP_max=$ac_count
  3583. fi
  3584. # 10*(2^10) chars as input seems more than enough
  3585. test $ac_count -gt 10 && break
  3586. done
  3587. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3588. esac
  3589. $ac_path_FGREP_found && break 3
  3590. done
  3591. done
  3592. done
  3593. IFS=$as_save_IFS
  3594. if test -z "$ac_cv_path_FGREP"; then
  3595. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3596. fi
  3597. else
  3598. ac_cv_path_FGREP=$FGREP
  3599. fi
  3600. fi
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3603. $as_echo "$ac_cv_path_FGREP" >&6; }
  3604. FGREP="$ac_cv_path_FGREP"
  3605. test -z "$GREP" && GREP=grep
  3606. # Check whether --with-gnu-ld was given.
  3607. if test "${with_gnu_ld+set}" = set; then :
  3608. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3609. else
  3610. with_gnu_ld=no
  3611. fi
  3612. ac_prog=ld
  3613. if test "$GCC" = yes; then
  3614. # Check if gcc -print-prog-name=ld gives a path.
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3616. $as_echo_n "checking for ld used by $CC... " >&6; }
  3617. case $host in
  3618. *-*-mingw*)
  3619. # gcc leaves a trailing carriage return which upsets mingw
  3620. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3621. *)
  3622. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3623. esac
  3624. case $ac_prog in
  3625. # Accept absolute paths.
  3626. [\\/]* | ?:[\\/]*)
  3627. re_direlt='/[^/][^/]*/\.\./'
  3628. # Canonicalize the pathname of ld
  3629. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3630. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3631. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3632. done
  3633. test -z "$LD" && LD="$ac_prog"
  3634. ;;
  3635. "")
  3636. # If it fails, then pretend we aren't using GCC.
  3637. ac_prog=ld
  3638. ;;
  3639. *)
  3640. # If it is relative, then search for the first ld in PATH.
  3641. with_gnu_ld=unknown
  3642. ;;
  3643. esac
  3644. elif test "$with_gnu_ld" = yes; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3646. $as_echo_n "checking for GNU ld... " >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3649. $as_echo_n "checking for non-GNU ld... " >&6; }
  3650. fi
  3651. if ${lt_cv_path_LD+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. if test -z "$LD"; then
  3655. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3656. for ac_dir in $PATH; do
  3657. IFS="$lt_save_ifs"
  3658. test -z "$ac_dir" && ac_dir=.
  3659. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3660. lt_cv_path_LD="$ac_dir/$ac_prog"
  3661. # Check to see if the program is GNU ld. I'd rather use --version,
  3662. # but apparently some variants of GNU ld only accept -v.
  3663. # Break only if it was the GNU/non-GNU ld that we prefer.
  3664. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3665. *GNU* | *'with BFD'*)
  3666. test "$with_gnu_ld" != no && break
  3667. ;;
  3668. *)
  3669. test "$with_gnu_ld" != yes && break
  3670. ;;
  3671. esac
  3672. fi
  3673. done
  3674. IFS="$lt_save_ifs"
  3675. else
  3676. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3677. fi
  3678. fi
  3679. LD="$lt_cv_path_LD"
  3680. if test -n "$LD"; then
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3682. $as_echo "$LD" >&6; }
  3683. else
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3685. $as_echo "no" >&6; }
  3686. fi
  3687. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3689. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3690. if ${lt_cv_prog_gnu_ld+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3694. case `$LD -v 2>&1 </dev/null` in
  3695. *GNU* | *'with BFD'*)
  3696. lt_cv_prog_gnu_ld=yes
  3697. ;;
  3698. *)
  3699. lt_cv_prog_gnu_ld=no
  3700. ;;
  3701. esac
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3704. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3705. with_gnu_ld=$lt_cv_prog_gnu_ld
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3707. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3708. if ${lt_cv_path_NM+:} false; then :
  3709. $as_echo_n "(cached) " >&6
  3710. else
  3711. if test -n "$NM"; then
  3712. # Let the user override the test.
  3713. lt_cv_path_NM="$NM"
  3714. else
  3715. lt_nm_to_check="${ac_tool_prefix}nm"
  3716. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3717. lt_nm_to_check="$lt_nm_to_check nm"
  3718. fi
  3719. for lt_tmp_nm in $lt_nm_to_check; do
  3720. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3721. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3722. IFS="$lt_save_ifs"
  3723. test -z "$ac_dir" && ac_dir=.
  3724. tmp_nm="$ac_dir/$lt_tmp_nm"
  3725. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3726. # Check to see if the nm accepts a BSD-compat flag.
  3727. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3728. # nm: unknown option "B" ignored
  3729. # Tru64's nm complains that /dev/null is an invalid object file
  3730. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3731. */dev/null* | *'Invalid file or object type'*)
  3732. lt_cv_path_NM="$tmp_nm -B"
  3733. break
  3734. ;;
  3735. *)
  3736. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3737. */dev/null*)
  3738. lt_cv_path_NM="$tmp_nm -p"
  3739. break
  3740. ;;
  3741. *)
  3742. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3743. continue # so that we can try to find one that supports BSD flags
  3744. ;;
  3745. esac
  3746. ;;
  3747. esac
  3748. fi
  3749. done
  3750. IFS="$lt_save_ifs"
  3751. done
  3752. : ${lt_cv_path_NM=no}
  3753. fi
  3754. fi
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3756. $as_echo "$lt_cv_path_NM" >&6; }
  3757. if test "$lt_cv_path_NM" != "no"; then
  3758. NM="$lt_cv_path_NM"
  3759. else
  3760. # Didn't find any BSD compatible name lister, look for dumpbin.
  3761. if test -n "$DUMPBIN"; then :
  3762. # Let the user override the test.
  3763. else
  3764. if test -n "$ac_tool_prefix"; then
  3765. for ac_prog in dumpbin "link -dump"
  3766. do
  3767. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3768. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3770. $as_echo_n "checking for $ac_word... " >&6; }
  3771. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3772. $as_echo_n "(cached) " >&6
  3773. else
  3774. if test -n "$DUMPBIN"; then
  3775. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3776. else
  3777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3778. for as_dir in $PATH
  3779. do
  3780. IFS=$as_save_IFS
  3781. test -z "$as_dir" && as_dir=.
  3782. for ac_exec_ext in '' $ac_executable_extensions; do
  3783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3784. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3786. break 2
  3787. fi
  3788. done
  3789. done
  3790. IFS=$as_save_IFS
  3791. fi
  3792. fi
  3793. DUMPBIN=$ac_cv_prog_DUMPBIN
  3794. if test -n "$DUMPBIN"; then
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3796. $as_echo "$DUMPBIN" >&6; }
  3797. else
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3799. $as_echo "no" >&6; }
  3800. fi
  3801. test -n "$DUMPBIN" && break
  3802. done
  3803. fi
  3804. if test -z "$DUMPBIN"; then
  3805. ac_ct_DUMPBIN=$DUMPBIN
  3806. for ac_prog in dumpbin "link -dump"
  3807. do
  3808. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3809. set dummy $ac_prog; ac_word=$2
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3811. $as_echo_n "checking for $ac_word... " >&6; }
  3812. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3813. $as_echo_n "(cached) " >&6
  3814. else
  3815. if test -n "$ac_ct_DUMPBIN"; then
  3816. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3817. else
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH
  3820. do
  3821. IFS=$as_save_IFS
  3822. test -z "$as_dir" && as_dir=.
  3823. for ac_exec_ext in '' $ac_executable_extensions; do
  3824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3825. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3827. break 2
  3828. fi
  3829. done
  3830. done
  3831. IFS=$as_save_IFS
  3832. fi
  3833. fi
  3834. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3835. if test -n "$ac_ct_DUMPBIN"; then
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3837. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3838. else
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3840. $as_echo "no" >&6; }
  3841. fi
  3842. test -n "$ac_ct_DUMPBIN" && break
  3843. done
  3844. if test "x$ac_ct_DUMPBIN" = x; then
  3845. DUMPBIN=":"
  3846. else
  3847. case $cross_compiling:$ac_tool_warned in
  3848. yes:)
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3851. ac_tool_warned=yes ;;
  3852. esac
  3853. DUMPBIN=$ac_ct_DUMPBIN
  3854. fi
  3855. fi
  3856. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3857. *COFF*)
  3858. DUMPBIN="$DUMPBIN -symbols"
  3859. ;;
  3860. *)
  3861. DUMPBIN=:
  3862. ;;
  3863. esac
  3864. fi
  3865. if test "$DUMPBIN" != ":"; then
  3866. NM="$DUMPBIN"
  3867. fi
  3868. fi
  3869. test -z "$NM" && NM=nm
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3871. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3872. if ${lt_cv_nm_interface+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. lt_cv_nm_interface="BSD nm"
  3876. echo "int some_variable = 0;" > conftest.$ac_ext
  3877. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3878. (eval "$ac_compile" 2>conftest.err)
  3879. cat conftest.err >&5
  3880. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3881. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3882. cat conftest.err >&5
  3883. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3884. cat conftest.out >&5
  3885. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3886. lt_cv_nm_interface="MS dumpbin"
  3887. fi
  3888. rm -f conftest*
  3889. fi
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3891. $as_echo "$lt_cv_nm_interface" >&6; }
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3893. $as_echo_n "checking whether ln -s works... " >&6; }
  3894. LN_S=$as_ln_s
  3895. if test "$LN_S" = "ln -s"; then
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3897. $as_echo "yes" >&6; }
  3898. else
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3900. $as_echo "no, using $LN_S" >&6; }
  3901. fi
  3902. # find the maximum length of command line arguments
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3904. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3905. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3906. $as_echo_n "(cached) " >&6
  3907. else
  3908. i=0
  3909. teststring="ABCD"
  3910. case $build_os in
  3911. msdosdjgpp*)
  3912. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3913. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3914. # during glob expansion). Even if it were fixed, the result of this
  3915. # check would be larger than it should be.
  3916. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3917. ;;
  3918. gnu*)
  3919. # Under GNU Hurd, this test is not required because there is
  3920. # no limit to the length of command line arguments.
  3921. # Libtool will interpret -1 as no limit whatsoever
  3922. lt_cv_sys_max_cmd_len=-1;
  3923. ;;
  3924. cygwin* | mingw* | cegcc*)
  3925. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3926. # about 5 minutes as the teststring grows exponentially.
  3927. # Worse, since 9x/ME are not pre-emptively multitasking,
  3928. # you end up with a "frozen" computer, even though with patience
  3929. # the test eventually succeeds (with a max line length of 256k).
  3930. # Instead, let's just punt: use the minimum linelength reported by
  3931. # all of the supported platforms: 8192 (on NT/2K/XP).
  3932. lt_cv_sys_max_cmd_len=8192;
  3933. ;;
  3934. mint*)
  3935. # On MiNT this can take a long time and run out of memory.
  3936. lt_cv_sys_max_cmd_len=8192;
  3937. ;;
  3938. amigaos*)
  3939. # On AmigaOS with pdksh, this test takes hours, literally.
  3940. # So we just punt and use a minimum line length of 8192.
  3941. lt_cv_sys_max_cmd_len=8192;
  3942. ;;
  3943. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3944. # This has been around since 386BSD, at least. Likely further.
  3945. if test -x /sbin/sysctl; then
  3946. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3947. elif test -x /usr/sbin/sysctl; then
  3948. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3949. else
  3950. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3951. fi
  3952. # And add a safety zone
  3953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3955. ;;
  3956. interix*)
  3957. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3958. lt_cv_sys_max_cmd_len=196608
  3959. ;;
  3960. os2*)
  3961. # The test takes a long time on OS/2.
  3962. lt_cv_sys_max_cmd_len=8192
  3963. ;;
  3964. osf*)
  3965. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3966. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3967. # nice to cause kernel panics so lets avoid the loop below.
  3968. # First set a reasonable default.
  3969. lt_cv_sys_max_cmd_len=16384
  3970. #
  3971. if test -x /sbin/sysconfig; then
  3972. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3973. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3974. esac
  3975. fi
  3976. ;;
  3977. sco3.2v5*)
  3978. lt_cv_sys_max_cmd_len=102400
  3979. ;;
  3980. sysv5* | sco5v6* | sysv4.2uw2*)
  3981. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3982. if test -n "$kargmax"; then
  3983. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3984. else
  3985. lt_cv_sys_max_cmd_len=32768
  3986. fi
  3987. ;;
  3988. *)
  3989. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3990. if test -n "$lt_cv_sys_max_cmd_len"; then
  3991. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3992. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3993. else
  3994. # Make teststring a little bigger before we do anything with it.
  3995. # a 1K string should be a reasonable start.
  3996. for i in 1 2 3 4 5 6 7 8 ; do
  3997. teststring=$teststring$teststring
  3998. done
  3999. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4000. # If test is not a shell built-in, we'll probably end up computing a
  4001. # maximum length that is only half of the actual maximum length, but
  4002. # we can't tell.
  4003. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4004. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4005. test $i != 17 # 1/2 MB should be enough
  4006. do
  4007. i=`expr $i + 1`
  4008. teststring=$teststring$teststring
  4009. done
  4010. # Only check the string length outside the loop.
  4011. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4012. teststring=
  4013. # Add a significant safety factor because C++ compilers can tack on
  4014. # massive amounts of additional arguments before passing them to the
  4015. # linker. It appears as though 1/2 is a usable value.
  4016. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4017. fi
  4018. ;;
  4019. esac
  4020. fi
  4021. if test -n $lt_cv_sys_max_cmd_len ; then
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4023. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4024. else
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4026. $as_echo "none" >&6; }
  4027. fi
  4028. max_cmd_len=$lt_cv_sys_max_cmd_len
  4029. : ${CP="cp -f"}
  4030. : ${MV="mv -f"}
  4031. : ${RM="rm -f"}
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4033. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4034. # Try some XSI features
  4035. xsi_shell=no
  4036. ( _lt_dummy="a/b/c"
  4037. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4038. = c,a/b,b/c, \
  4039. && eval 'test $(( 1 + 1 )) -eq 2 \
  4040. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4041. && xsi_shell=yes
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4043. $as_echo "$xsi_shell" >&6; }
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4045. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4046. lt_shell_append=no
  4047. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4048. >/dev/null 2>&1 \
  4049. && lt_shell_append=yes
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4051. $as_echo "$lt_shell_append" >&6; }
  4052. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4053. lt_unset=unset
  4054. else
  4055. lt_unset=false
  4056. fi
  4057. # test EBCDIC or ASCII
  4058. case `echo X|tr X '\101'` in
  4059. A) # ASCII based system
  4060. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4061. lt_SP2NL='tr \040 \012'
  4062. lt_NL2SP='tr \015\012 \040\040'
  4063. ;;
  4064. *) # EBCDIC based system
  4065. lt_SP2NL='tr \100 \n'
  4066. lt_NL2SP='tr \r\n \100\100'
  4067. ;;
  4068. esac
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4070. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4071. if ${lt_cv_to_host_file_cmd+:} false; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. case $host in
  4075. *-*-mingw* )
  4076. case $build in
  4077. *-*-mingw* ) # actually msys
  4078. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4079. ;;
  4080. *-*-cygwin* )
  4081. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4082. ;;
  4083. * ) # otherwise, assume *nix
  4084. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4085. ;;
  4086. esac
  4087. ;;
  4088. *-*-cygwin* )
  4089. case $build in
  4090. *-*-mingw* ) # actually msys
  4091. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4092. ;;
  4093. *-*-cygwin* )
  4094. lt_cv_to_host_file_cmd=func_convert_file_noop
  4095. ;;
  4096. * ) # otherwise, assume *nix
  4097. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4098. ;;
  4099. esac
  4100. ;;
  4101. * ) # unhandled hosts (and "normal" native builds)
  4102. lt_cv_to_host_file_cmd=func_convert_file_noop
  4103. ;;
  4104. esac
  4105. fi
  4106. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4108. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4110. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4111. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. #assume ordinary cross tools, or native build.
  4115. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4116. case $host in
  4117. *-*-mingw* )
  4118. case $build in
  4119. *-*-mingw* ) # actually msys
  4120. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4121. ;;
  4122. esac
  4123. ;;
  4124. esac
  4125. fi
  4126. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4128. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4130. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4131. if ${lt_cv_ld_reload_flag+:} false; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. lt_cv_ld_reload_flag='-r'
  4135. fi
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4137. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4138. reload_flag=$lt_cv_ld_reload_flag
  4139. case $reload_flag in
  4140. "" | " "*) ;;
  4141. *) reload_flag=" $reload_flag" ;;
  4142. esac
  4143. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4144. case $host_os in
  4145. cygwin* | mingw* | pw32* | cegcc*)
  4146. if test "$GCC" != yes; then
  4147. reload_cmds=false
  4148. fi
  4149. ;;
  4150. darwin*)
  4151. if test "$GCC" = yes; then
  4152. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4153. else
  4154. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4155. fi
  4156. ;;
  4157. esac
  4158. if test -n "$ac_tool_prefix"; then
  4159. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4160. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4162. $as_echo_n "checking for $ac_word... " >&6; }
  4163. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. if test -n "$OBJDUMP"; then
  4167. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4168. else
  4169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4170. for as_dir in $PATH
  4171. do
  4172. IFS=$as_save_IFS
  4173. test -z "$as_dir" && as_dir=.
  4174. for ac_exec_ext in '' $ac_executable_extensions; do
  4175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4176. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4178. break 2
  4179. fi
  4180. done
  4181. done
  4182. IFS=$as_save_IFS
  4183. fi
  4184. fi
  4185. OBJDUMP=$ac_cv_prog_OBJDUMP
  4186. if test -n "$OBJDUMP"; then
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4188. $as_echo "$OBJDUMP" >&6; }
  4189. else
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4191. $as_echo "no" >&6; }
  4192. fi
  4193. fi
  4194. if test -z "$ac_cv_prog_OBJDUMP"; then
  4195. ac_ct_OBJDUMP=$OBJDUMP
  4196. # Extract the first word of "objdump", so it can be a program name with args.
  4197. set dummy objdump; ac_word=$2
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4199. $as_echo_n "checking for $ac_word... " >&6; }
  4200. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. if test -n "$ac_ct_OBJDUMP"; then
  4204. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4205. else
  4206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4207. for as_dir in $PATH
  4208. do
  4209. IFS=$as_save_IFS
  4210. test -z "$as_dir" && as_dir=.
  4211. for ac_exec_ext in '' $ac_executable_extensions; do
  4212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4213. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4215. break 2
  4216. fi
  4217. done
  4218. done
  4219. IFS=$as_save_IFS
  4220. fi
  4221. fi
  4222. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4223. if test -n "$ac_ct_OBJDUMP"; then
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4225. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4226. else
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4228. $as_echo "no" >&6; }
  4229. fi
  4230. if test "x$ac_ct_OBJDUMP" = x; then
  4231. OBJDUMP="false"
  4232. else
  4233. case $cross_compiling:$ac_tool_warned in
  4234. yes:)
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4237. ac_tool_warned=yes ;;
  4238. esac
  4239. OBJDUMP=$ac_ct_OBJDUMP
  4240. fi
  4241. else
  4242. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4243. fi
  4244. test -z "$OBJDUMP" && OBJDUMP=objdump
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4246. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4247. if ${lt_cv_deplibs_check_method+:} false; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4251. lt_cv_file_magic_test_file=
  4252. lt_cv_deplibs_check_method='unknown'
  4253. # Need to set the preceding variable on all platforms that support
  4254. # interlibrary dependencies.
  4255. # 'none' -- dependencies not supported.
  4256. # `unknown' -- same as none, but documents that we really don't know.
  4257. # 'pass_all' -- all dependencies passed with no checks.
  4258. # 'test_compile' -- check by making test program.
  4259. # 'file_magic [[regex]]' -- check by looking for files in library path
  4260. # which responds to the $file_magic_cmd with a given extended regex.
  4261. # If you have `file' or equivalent on your system and you're not sure
  4262. # whether `pass_all' will *always* work, you probably want this one.
  4263. case $host_os in
  4264. aix[4-9]*)
  4265. lt_cv_deplibs_check_method=pass_all
  4266. ;;
  4267. beos*)
  4268. lt_cv_deplibs_check_method=pass_all
  4269. ;;
  4270. bsdi[45]*)
  4271. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4272. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4273. lt_cv_file_magic_test_file=/shlib/libc.so
  4274. ;;
  4275. cygwin*)
  4276. # func_win32_libid is a shell function defined in ltmain.sh
  4277. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4278. lt_cv_file_magic_cmd='func_win32_libid'
  4279. lt_cv_deplibs_check_method=pass_all
  4280. ;;
  4281. mingw* | pw32*)
  4282. # Base MSYS/MinGW do not provide the 'file' command needed by
  4283. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4284. # unless we find 'file', for example because we are cross-compiling.
  4285. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4286. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4287. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4288. lt_cv_file_magic_cmd='func_win32_libid'
  4289. else
  4290. # Keep this pattern in sync with the one in func_win32_libid.
  4291. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4292. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4293. fi
  4294. lt_cv_deplibs_check_method=pass_all
  4295. ;;
  4296. cegcc*)
  4297. # use the weaker test based on 'objdump'. See mingw*.
  4298. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4299. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4300. ;;
  4301. darwin* | rhapsody*)
  4302. lt_cv_deplibs_check_method=pass_all
  4303. ;;
  4304. freebsd* | dragonfly*)
  4305. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4306. case $host_cpu in
  4307. i*86 )
  4308. # Not sure whether the presence of OpenBSD here was a mistake.
  4309. # Let's accept both of them until this is cleared up.
  4310. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4311. lt_cv_file_magic_cmd=/usr/bin/file
  4312. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4313. ;;
  4314. esac
  4315. else
  4316. lt_cv_deplibs_check_method=pass_all
  4317. fi
  4318. ;;
  4319. gnu*)
  4320. lt_cv_deplibs_check_method=pass_all
  4321. ;;
  4322. haiku*)
  4323. lt_cv_deplibs_check_method=pass_all
  4324. ;;
  4325. hpux10.20* | hpux11*)
  4326. lt_cv_file_magic_cmd=/usr/bin/file
  4327. case $host_cpu in
  4328. ia64*)
  4329. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4330. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4331. ;;
  4332. hppa*64*)
  4333. 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]'
  4334. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4335. ;;
  4336. *)
  4337. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4338. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4339. ;;
  4340. esac
  4341. ;;
  4342. interix[3-9]*)
  4343. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4344. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4345. ;;
  4346. irix5* | irix6* | nonstopux*)
  4347. case $LD in
  4348. *-32|*"-32 ") libmagic=32-bit;;
  4349. *-n32|*"-n32 ") libmagic=N32;;
  4350. *-64|*"-64 ") libmagic=64-bit;;
  4351. *) libmagic=never-match;;
  4352. esac
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. # This must be glibc/ELF.
  4356. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4357. lt_cv_deplibs_check_method=pass_all
  4358. ;;
  4359. netbsd*)
  4360. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4361. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4362. else
  4363. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4364. fi
  4365. ;;
  4366. newos6*)
  4367. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4368. lt_cv_file_magic_cmd=/usr/bin/file
  4369. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4370. ;;
  4371. *nto* | *qnx*)
  4372. lt_cv_deplibs_check_method=pass_all
  4373. ;;
  4374. openbsd*)
  4375. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4376. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4377. else
  4378. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4379. fi
  4380. ;;
  4381. osf3* | osf4* | osf5*)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. rdos*)
  4385. lt_cv_deplibs_check_method=pass_all
  4386. ;;
  4387. solaris*)
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. sysv4 | sysv4.3*)
  4394. case $host_vendor in
  4395. motorola)
  4396. 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]'
  4397. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4398. ;;
  4399. ncr)
  4400. lt_cv_deplibs_check_method=pass_all
  4401. ;;
  4402. sequent)
  4403. lt_cv_file_magic_cmd='/bin/file'
  4404. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4405. ;;
  4406. sni)
  4407. lt_cv_file_magic_cmd='/bin/file'
  4408. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4409. lt_cv_file_magic_test_file=/lib/libc.so
  4410. ;;
  4411. siemens)
  4412. lt_cv_deplibs_check_method=pass_all
  4413. ;;
  4414. pc)
  4415. lt_cv_deplibs_check_method=pass_all
  4416. ;;
  4417. esac
  4418. ;;
  4419. tpf*)
  4420. lt_cv_deplibs_check_method=pass_all
  4421. ;;
  4422. esac
  4423. fi
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4425. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4426. file_magic_glob=
  4427. want_nocaseglob=no
  4428. if test "$build" = "$host"; then
  4429. case $host_os in
  4430. mingw* | pw32*)
  4431. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4432. want_nocaseglob=yes
  4433. else
  4434. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4435. fi
  4436. ;;
  4437. esac
  4438. fi
  4439. file_magic_cmd=$lt_cv_file_magic_cmd
  4440. deplibs_check_method=$lt_cv_deplibs_check_method
  4441. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4442. if test -n "$ac_tool_prefix"; then
  4443. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4444. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4446. $as_echo_n "checking for $ac_word... " >&6; }
  4447. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4448. $as_echo_n "(cached) " >&6
  4449. else
  4450. if test -n "$DLLTOOL"; then
  4451. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4452. else
  4453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4454. for as_dir in $PATH
  4455. do
  4456. IFS=$as_save_IFS
  4457. test -z "$as_dir" && as_dir=.
  4458. for ac_exec_ext in '' $ac_executable_extensions; do
  4459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4460. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4462. break 2
  4463. fi
  4464. done
  4465. done
  4466. IFS=$as_save_IFS
  4467. fi
  4468. fi
  4469. DLLTOOL=$ac_cv_prog_DLLTOOL
  4470. if test -n "$DLLTOOL"; then
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4472. $as_echo "$DLLTOOL" >&6; }
  4473. else
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4475. $as_echo "no" >&6; }
  4476. fi
  4477. fi
  4478. if test -z "$ac_cv_prog_DLLTOOL"; then
  4479. ac_ct_DLLTOOL=$DLLTOOL
  4480. # Extract the first word of "dlltool", so it can be a program name with args.
  4481. set dummy dlltool; ac_word=$2
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4483. $as_echo_n "checking for $ac_word... " >&6; }
  4484. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4485. $as_echo_n "(cached) " >&6
  4486. else
  4487. if test -n "$ac_ct_DLLTOOL"; then
  4488. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4489. else
  4490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4491. for as_dir in $PATH
  4492. do
  4493. IFS=$as_save_IFS
  4494. test -z "$as_dir" && as_dir=.
  4495. for ac_exec_ext in '' $ac_executable_extensions; do
  4496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4497. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4499. break 2
  4500. fi
  4501. done
  4502. done
  4503. IFS=$as_save_IFS
  4504. fi
  4505. fi
  4506. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4507. if test -n "$ac_ct_DLLTOOL"; then
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4509. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4510. else
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4512. $as_echo "no" >&6; }
  4513. fi
  4514. if test "x$ac_ct_DLLTOOL" = x; then
  4515. DLLTOOL="false"
  4516. else
  4517. case $cross_compiling:$ac_tool_warned in
  4518. yes:)
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4520. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4521. ac_tool_warned=yes ;;
  4522. esac
  4523. DLLTOOL=$ac_ct_DLLTOOL
  4524. fi
  4525. else
  4526. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4527. fi
  4528. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4530. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4531. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4532. $as_echo_n "(cached) " >&6
  4533. else
  4534. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4535. case $host_os in
  4536. cygwin* | mingw* | pw32* | cegcc*)
  4537. # two different shell functions defined in ltmain.sh
  4538. # decide which to use based on capabilities of $DLLTOOL
  4539. case `$DLLTOOL --help 2>&1` in
  4540. *--identify-strict*)
  4541. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4542. ;;
  4543. *)
  4544. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4545. ;;
  4546. esac
  4547. ;;
  4548. *)
  4549. # fallback: assume linklib IS sharedlib
  4550. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4551. ;;
  4552. esac
  4553. fi
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4555. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4556. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4557. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4558. if test -n "$ac_tool_prefix"; then
  4559. for ac_prog in ar
  4560. do
  4561. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4562. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4564. $as_echo_n "checking for $ac_word... " >&6; }
  4565. if ${ac_cv_prog_AR+:} false; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if test -n "$AR"; then
  4569. ac_cv_prog_AR="$AR" # Let the user override the test.
  4570. else
  4571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4572. for as_dir in $PATH
  4573. do
  4574. IFS=$as_save_IFS
  4575. test -z "$as_dir" && as_dir=.
  4576. for ac_exec_ext in '' $ac_executable_extensions; do
  4577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4578. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4580. break 2
  4581. fi
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. fi
  4586. fi
  4587. AR=$ac_cv_prog_AR
  4588. if test -n "$AR"; then
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4590. $as_echo "$AR" >&6; }
  4591. else
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4593. $as_echo "no" >&6; }
  4594. fi
  4595. test -n "$AR" && break
  4596. done
  4597. fi
  4598. if test -z "$AR"; then
  4599. ac_ct_AR=$AR
  4600. for ac_prog in ar
  4601. do
  4602. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4603. set dummy $ac_prog; ac_word=$2
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4605. $as_echo_n "checking for $ac_word... " >&6; }
  4606. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. if test -n "$ac_ct_AR"; then
  4610. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4611. else
  4612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4613. for as_dir in $PATH
  4614. do
  4615. IFS=$as_save_IFS
  4616. test -z "$as_dir" && as_dir=.
  4617. for ac_exec_ext in '' $ac_executable_extensions; do
  4618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4619. ac_cv_prog_ac_ct_AR="$ac_prog"
  4620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4621. break 2
  4622. fi
  4623. done
  4624. done
  4625. IFS=$as_save_IFS
  4626. fi
  4627. fi
  4628. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4629. if test -n "$ac_ct_AR"; then
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4631. $as_echo "$ac_ct_AR" >&6; }
  4632. else
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4634. $as_echo "no" >&6; }
  4635. fi
  4636. test -n "$ac_ct_AR" && break
  4637. done
  4638. if test "x$ac_ct_AR" = x; then
  4639. AR="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. AR=$ac_ct_AR
  4648. fi
  4649. fi
  4650. : ${AR=ar}
  4651. : ${AR_FLAGS=cru}
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4653. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4654. if ${lt_cv_ar_at_file+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. lt_cv_ar_at_file=no
  4658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4659. /* end confdefs.h. */
  4660. int
  4661. main ()
  4662. {
  4663. ;
  4664. return 0;
  4665. }
  4666. _ACEOF
  4667. if ac_fn_c_try_compile "$LINENO"; then :
  4668. echo conftest.$ac_objext > conftest.lst
  4669. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4670. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4671. (eval $lt_ar_try) 2>&5
  4672. ac_status=$?
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4674. test $ac_status = 0; }
  4675. if test "$ac_status" -eq 0; then
  4676. # Ensure the archiver fails upon bogus file names.
  4677. rm -f conftest.$ac_objext libconftest.a
  4678. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4679. (eval $lt_ar_try) 2>&5
  4680. ac_status=$?
  4681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4682. test $ac_status = 0; }
  4683. if test "$ac_status" -ne 0; then
  4684. lt_cv_ar_at_file=@
  4685. fi
  4686. fi
  4687. rm -f conftest.* libconftest.a
  4688. fi
  4689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4690. fi
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4692. $as_echo "$lt_cv_ar_at_file" >&6; }
  4693. if test "x$lt_cv_ar_at_file" = xno; then
  4694. archiver_list_spec=
  4695. else
  4696. archiver_list_spec=$lt_cv_ar_at_file
  4697. fi
  4698. if test -n "$ac_tool_prefix"; then
  4699. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4700. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4702. $as_echo_n "checking for $ac_word... " >&6; }
  4703. if ${ac_cv_prog_STRIP+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. if test -n "$STRIP"; then
  4707. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4708. else
  4709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4710. for as_dir in $PATH
  4711. do
  4712. IFS=$as_save_IFS
  4713. test -z "$as_dir" && as_dir=.
  4714. for ac_exec_ext in '' $ac_executable_extensions; do
  4715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4716. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4718. break 2
  4719. fi
  4720. done
  4721. done
  4722. IFS=$as_save_IFS
  4723. fi
  4724. fi
  4725. STRIP=$ac_cv_prog_STRIP
  4726. if test -n "$STRIP"; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4728. $as_echo "$STRIP" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4731. $as_echo "no" >&6; }
  4732. fi
  4733. fi
  4734. if test -z "$ac_cv_prog_STRIP"; then
  4735. ac_ct_STRIP=$STRIP
  4736. # Extract the first word of "strip", so it can be a program name with args.
  4737. set dummy strip; ac_word=$2
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4739. $as_echo_n "checking for $ac_word... " >&6; }
  4740. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. if test -n "$ac_ct_STRIP"; then
  4744. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4745. else
  4746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4747. for as_dir in $PATH
  4748. do
  4749. IFS=$as_save_IFS
  4750. test -z "$as_dir" && as_dir=.
  4751. for ac_exec_ext in '' $ac_executable_extensions; do
  4752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4753. ac_cv_prog_ac_ct_STRIP="strip"
  4754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4755. break 2
  4756. fi
  4757. done
  4758. done
  4759. IFS=$as_save_IFS
  4760. fi
  4761. fi
  4762. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4763. if test -n "$ac_ct_STRIP"; then
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4765. $as_echo "$ac_ct_STRIP" >&6; }
  4766. else
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4768. $as_echo "no" >&6; }
  4769. fi
  4770. if test "x$ac_ct_STRIP" = x; then
  4771. STRIP=":"
  4772. else
  4773. case $cross_compiling:$ac_tool_warned in
  4774. yes:)
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4777. ac_tool_warned=yes ;;
  4778. esac
  4779. STRIP=$ac_ct_STRIP
  4780. fi
  4781. else
  4782. STRIP="$ac_cv_prog_STRIP"
  4783. fi
  4784. test -z "$STRIP" && STRIP=:
  4785. if test -n "$ac_tool_prefix"; then
  4786. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4787. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4789. $as_echo_n "checking for $ac_word... " >&6; }
  4790. if ${ac_cv_prog_RANLIB+:} false; then :
  4791. $as_echo_n "(cached) " >&6
  4792. else
  4793. if test -n "$RANLIB"; then
  4794. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4795. else
  4796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4797. for as_dir in $PATH
  4798. do
  4799. IFS=$as_save_IFS
  4800. test -z "$as_dir" && as_dir=.
  4801. for ac_exec_ext in '' $ac_executable_extensions; do
  4802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4803. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4805. break 2
  4806. fi
  4807. done
  4808. done
  4809. IFS=$as_save_IFS
  4810. fi
  4811. fi
  4812. RANLIB=$ac_cv_prog_RANLIB
  4813. if test -n "$RANLIB"; then
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4815. $as_echo "$RANLIB" >&6; }
  4816. else
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4818. $as_echo "no" >&6; }
  4819. fi
  4820. fi
  4821. if test -z "$ac_cv_prog_RANLIB"; then
  4822. ac_ct_RANLIB=$RANLIB
  4823. # Extract the first word of "ranlib", so it can be a program name with args.
  4824. set dummy ranlib; ac_word=$2
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4826. $as_echo_n "checking for $ac_word... " >&6; }
  4827. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. if test -n "$ac_ct_RANLIB"; then
  4831. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4832. else
  4833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4834. for as_dir in $PATH
  4835. do
  4836. IFS=$as_save_IFS
  4837. test -z "$as_dir" && as_dir=.
  4838. for ac_exec_ext in '' $ac_executable_extensions; do
  4839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4840. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4842. break 2
  4843. fi
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. fi
  4848. fi
  4849. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4850. if test -n "$ac_ct_RANLIB"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4852. $as_echo "$ac_ct_RANLIB" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. if test "x$ac_ct_RANLIB" = x; then
  4858. RANLIB=":"
  4859. else
  4860. case $cross_compiling:$ac_tool_warned in
  4861. yes:)
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4864. ac_tool_warned=yes ;;
  4865. esac
  4866. RANLIB=$ac_ct_RANLIB
  4867. fi
  4868. else
  4869. RANLIB="$ac_cv_prog_RANLIB"
  4870. fi
  4871. test -z "$RANLIB" && RANLIB=:
  4872. # Determine commands to create old-style static archives.
  4873. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4874. old_postinstall_cmds='chmod 644 $oldlib'
  4875. old_postuninstall_cmds=
  4876. if test -n "$RANLIB"; then
  4877. case $host_os in
  4878. openbsd*)
  4879. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4880. ;;
  4881. *)
  4882. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4883. ;;
  4884. esac
  4885. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4886. fi
  4887. case $host_os in
  4888. darwin*)
  4889. lock_old_archive_extraction=yes ;;
  4890. *)
  4891. lock_old_archive_extraction=no ;;
  4892. esac
  4893. for ac_prog in gawk mawk nawk awk
  4894. do
  4895. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4896. set dummy $ac_prog; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_AWK+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. if test -n "$AWK"; then
  4903. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4912. ac_cv_prog_AWK="$ac_prog"
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. fi
  4920. fi
  4921. AWK=$ac_cv_prog_AWK
  4922. if test -n "$AWK"; then
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4924. $as_echo "$AWK" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. test -n "$AWK" && break
  4930. done
  4931. # If no C compiler was specified, use CC.
  4932. LTCC=${LTCC-"$CC"}
  4933. # If no C compiler flags were specified, use CFLAGS.
  4934. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4935. # Allow CC to be a program name with arguments.
  4936. compiler=$CC
  4937. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4939. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4940. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. # These are sane defaults that work on at least a few old systems.
  4944. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4945. # Character class describing NM global symbol codes.
  4946. symcode='[BCDEGRST]'
  4947. # Regexp to match symbols that can be accessed directly from C.
  4948. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4949. # Define system-specific variables.
  4950. case $host_os in
  4951. aix*)
  4952. symcode='[BCDT]'
  4953. ;;
  4954. cygwin* | mingw* | pw32* | cegcc*)
  4955. symcode='[ABCDGISTW]'
  4956. ;;
  4957. hpux*)
  4958. if test "$host_cpu" = ia64; then
  4959. symcode='[ABCDEGRST]'
  4960. fi
  4961. ;;
  4962. irix* | nonstopux*)
  4963. symcode='[BCDEGRST]'
  4964. ;;
  4965. osf*)
  4966. symcode='[BCDEGQRST]'
  4967. ;;
  4968. solaris*)
  4969. symcode='[BDRT]'
  4970. ;;
  4971. sco3.2v5*)
  4972. symcode='[DT]'
  4973. ;;
  4974. sysv4.2uw2*)
  4975. symcode='[DT]'
  4976. ;;
  4977. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4978. symcode='[ABDT]'
  4979. ;;
  4980. sysv4)
  4981. symcode='[DFNSTU]'
  4982. ;;
  4983. esac
  4984. # If we're using GNU nm, then use its standard symbol codes.
  4985. case `$NM -V 2>&1` in
  4986. *GNU* | *'with BFD'*)
  4987. symcode='[ABCDGIRSTW]' ;;
  4988. esac
  4989. # Transform an extracted symbol line into a proper C declaration.
  4990. # Some systems (esp. on ia64) link data and code symbols differently,
  4991. # so use this general approach.
  4992. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4993. # Transform an extracted symbol line into symbol name and symbol address
  4994. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4995. 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'"
  4996. # Handle CRLF in mingw tool chain
  4997. opt_cr=
  4998. case $build_os in
  4999. mingw*)
  5000. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5001. ;;
  5002. esac
  5003. # Try without a prefix underscore, then with it.
  5004. for ac_symprfx in "" "_"; do
  5005. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5006. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5007. # Write the raw and C identifiers.
  5008. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5009. # Fake it for dumpbin and say T for any non-static function
  5010. # and D for any global variable.
  5011. # Also find C++ and __fastcall symbols from MSVC++,
  5012. # which start with @ or ?.
  5013. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5014. " {last_section=section; section=\$ 3};"\
  5015. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5016. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5017. " \$ 0!~/External *\|/{next};"\
  5018. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5019. " {if(hide[section]) next};"\
  5020. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5021. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5022. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5023. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5024. " ' prfx=^$ac_symprfx"
  5025. else
  5026. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5027. fi
  5028. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5029. # Check to see that the pipe works correctly.
  5030. pipe_works=no
  5031. rm -f conftest*
  5032. cat > conftest.$ac_ext <<_LT_EOF
  5033. #ifdef __cplusplus
  5034. extern "C" {
  5035. #endif
  5036. char nm_test_var;
  5037. void nm_test_func(void);
  5038. void nm_test_func(void){}
  5039. #ifdef __cplusplus
  5040. }
  5041. #endif
  5042. int main(){nm_test_var='a';nm_test_func();return(0);}
  5043. _LT_EOF
  5044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5045. (eval $ac_compile) 2>&5
  5046. ac_status=$?
  5047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5048. test $ac_status = 0; }; then
  5049. # Now try to grab the symbols.
  5050. nlist=conftest.nm
  5051. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5052. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5053. ac_status=$?
  5054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5055. test $ac_status = 0; } && test -s "$nlist"; then
  5056. # Try sorting and uniquifying the output.
  5057. if sort "$nlist" | uniq > "$nlist"T; then
  5058. mv -f "$nlist"T "$nlist"
  5059. else
  5060. rm -f "$nlist"T
  5061. fi
  5062. # Make sure that we snagged all the symbols we need.
  5063. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5064. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5065. cat <<_LT_EOF > conftest.$ac_ext
  5066. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5067. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5068. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5069. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5070. # define LT_DLSYM_CONST
  5071. #elif defined(__osf__)
  5072. /* This system does not cope well with relocations in const data. */
  5073. # define LT_DLSYM_CONST
  5074. #else
  5075. # define LT_DLSYM_CONST const
  5076. #endif
  5077. #ifdef __cplusplus
  5078. extern "C" {
  5079. #endif
  5080. _LT_EOF
  5081. # Now generate the symbol file.
  5082. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5083. cat <<_LT_EOF >> conftest.$ac_ext
  5084. /* The mapping between symbol names and symbols. */
  5085. LT_DLSYM_CONST struct {
  5086. const char *name;
  5087. void *address;
  5088. }
  5089. lt__PROGRAM__LTX_preloaded_symbols[] =
  5090. {
  5091. { "@PROGRAM@", (void *) 0 },
  5092. _LT_EOF
  5093. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5094. cat <<\_LT_EOF >> conftest.$ac_ext
  5095. {0, (void *) 0}
  5096. };
  5097. /* This works around a problem in FreeBSD linker */
  5098. #ifdef FREEBSD_WORKAROUND
  5099. static const void *lt_preloaded_setup() {
  5100. return lt__PROGRAM__LTX_preloaded_symbols;
  5101. }
  5102. #endif
  5103. #ifdef __cplusplus
  5104. }
  5105. #endif
  5106. _LT_EOF
  5107. # Now try linking the two files.
  5108. mv conftest.$ac_objext conftstm.$ac_objext
  5109. lt_globsym_save_LIBS=$LIBS
  5110. lt_globsym_save_CFLAGS=$CFLAGS
  5111. LIBS="conftstm.$ac_objext"
  5112. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5113. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5114. (eval $ac_link) 2>&5
  5115. ac_status=$?
  5116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5117. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5118. pipe_works=yes
  5119. fi
  5120. LIBS=$lt_globsym_save_LIBS
  5121. CFLAGS=$lt_globsym_save_CFLAGS
  5122. else
  5123. echo "cannot find nm_test_func in $nlist" >&5
  5124. fi
  5125. else
  5126. echo "cannot find nm_test_var in $nlist" >&5
  5127. fi
  5128. else
  5129. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5130. fi
  5131. else
  5132. echo "$progname: failed program was:" >&5
  5133. cat conftest.$ac_ext >&5
  5134. fi
  5135. rm -rf conftest* conftst*
  5136. # Do not use the global_symbol_pipe unless it works.
  5137. if test "$pipe_works" = yes; then
  5138. break
  5139. else
  5140. lt_cv_sys_global_symbol_pipe=
  5141. fi
  5142. done
  5143. fi
  5144. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5145. lt_cv_sys_global_symbol_to_cdecl=
  5146. fi
  5147. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5149. $as_echo "failed" >&6; }
  5150. else
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5152. $as_echo "ok" >&6; }
  5153. fi
  5154. # Response file support.
  5155. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5156. nm_file_list_spec='@'
  5157. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5158. nm_file_list_spec='@'
  5159. fi
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5161. $as_echo_n "checking for sysroot... " >&6; }
  5162. # Check whether --with-sysroot was given.
  5163. if test "${with_sysroot+set}" = set; then :
  5164. withval=$with_sysroot;
  5165. else
  5166. with_sysroot=no
  5167. fi
  5168. lt_sysroot=
  5169. case ${with_sysroot} in #(
  5170. yes)
  5171. if test "$GCC" = yes; then
  5172. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5173. fi
  5174. ;; #(
  5175. /*)
  5176. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5177. ;; #(
  5178. no|'')
  5179. ;; #(
  5180. *)
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5182. $as_echo "${with_sysroot}" >&6; }
  5183. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5184. ;;
  5185. esac
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5187. $as_echo "${lt_sysroot:-no}" >&6; }
  5188. # Check whether --enable-libtool-lock was given.
  5189. if test "${enable_libtool_lock+set}" = set; then :
  5190. enableval=$enable_libtool_lock;
  5191. fi
  5192. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5193. # Some flags need to be propagated to the compiler or linker for good
  5194. # libtool support.
  5195. case $host in
  5196. ia64-*-hpux*)
  5197. # Find out which ABI we are using.
  5198. echo 'int i;' > conftest.$ac_ext
  5199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5200. (eval $ac_compile) 2>&5
  5201. ac_status=$?
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5203. test $ac_status = 0; }; then
  5204. case `/usr/bin/file conftest.$ac_objext` in
  5205. *ELF-32*)
  5206. HPUX_IA64_MODE="32"
  5207. ;;
  5208. *ELF-64*)
  5209. HPUX_IA64_MODE="64"
  5210. ;;
  5211. esac
  5212. fi
  5213. rm -rf conftest*
  5214. ;;
  5215. *-*-irix6*)
  5216. # Find out which ABI we are using.
  5217. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5218. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5219. (eval $ac_compile) 2>&5
  5220. ac_status=$?
  5221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5222. test $ac_status = 0; }; then
  5223. if test "$lt_cv_prog_gnu_ld" = yes; then
  5224. case `/usr/bin/file conftest.$ac_objext` in
  5225. *32-bit*)
  5226. LD="${LD-ld} -melf32bsmip"
  5227. ;;
  5228. *N32*)
  5229. LD="${LD-ld} -melf32bmipn32"
  5230. ;;
  5231. *64-bit*)
  5232. LD="${LD-ld} -melf64bmip"
  5233. ;;
  5234. esac
  5235. else
  5236. case `/usr/bin/file conftest.$ac_objext` in
  5237. *32-bit*)
  5238. LD="${LD-ld} -32"
  5239. ;;
  5240. *N32*)
  5241. LD="${LD-ld} -n32"
  5242. ;;
  5243. *64-bit*)
  5244. LD="${LD-ld} -64"
  5245. ;;
  5246. esac
  5247. fi
  5248. fi
  5249. rm -rf conftest*
  5250. ;;
  5251. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5252. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5253. # Find out which ABI we are using.
  5254. echo 'int i;' > conftest.$ac_ext
  5255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5256. (eval $ac_compile) 2>&5
  5257. ac_status=$?
  5258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5259. test $ac_status = 0; }; then
  5260. case `/usr/bin/file conftest.o` in
  5261. *32-bit*)
  5262. case $host in
  5263. x86_64-*kfreebsd*-gnu)
  5264. LD="${LD-ld} -m elf_i386_fbsd"
  5265. ;;
  5266. x86_64-*linux*)
  5267. LD="${LD-ld} -m elf_i386"
  5268. ;;
  5269. ppc64-*linux*|powerpc64-*linux*)
  5270. LD="${LD-ld} -m elf32ppclinux"
  5271. ;;
  5272. s390x-*linux*)
  5273. LD="${LD-ld} -m elf_s390"
  5274. ;;
  5275. sparc64-*linux*)
  5276. LD="${LD-ld} -m elf32_sparc"
  5277. ;;
  5278. esac
  5279. ;;
  5280. *64-bit*)
  5281. case $host in
  5282. x86_64-*kfreebsd*-gnu)
  5283. LD="${LD-ld} -m elf_x86_64_fbsd"
  5284. ;;
  5285. x86_64-*linux*)
  5286. LD="${LD-ld} -m elf_x86_64"
  5287. ;;
  5288. powerpc64le-*linux*)
  5289. LD="${LD-ld} -m elf64lppc"
  5290. ;;
  5291. powerpc64-*linux*)
  5292. LD="${LD-ld} -m elf64ppc"
  5293. ;;
  5294. s390*-*linux*|s390*-*tpf*)
  5295. LD="${LD-ld} -m elf64_s390"
  5296. ;;
  5297. sparc*-*linux*)
  5298. LD="${LD-ld} -m elf64_sparc"
  5299. ;;
  5300. esac
  5301. ;;
  5302. esac
  5303. fi
  5304. rm -rf conftest*
  5305. ;;
  5306. *-*-sco3.2v5*)
  5307. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5308. SAVE_CFLAGS="$CFLAGS"
  5309. CFLAGS="$CFLAGS -belf"
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5311. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5312. if ${lt_cv_cc_needs_belf+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. ac_ext=c
  5316. ac_cpp='$CPP $CPPFLAGS'
  5317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end confdefs.h. */
  5322. int
  5323. main ()
  5324. {
  5325. ;
  5326. return 0;
  5327. }
  5328. _ACEOF
  5329. if ac_fn_c_try_link "$LINENO"; then :
  5330. lt_cv_cc_needs_belf=yes
  5331. else
  5332. lt_cv_cc_needs_belf=no
  5333. fi
  5334. rm -f core conftest.err conftest.$ac_objext \
  5335. conftest$ac_exeext conftest.$ac_ext
  5336. ac_ext=c
  5337. ac_cpp='$CPP $CPPFLAGS'
  5338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5341. fi
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5343. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5344. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5345. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5346. CFLAGS="$SAVE_CFLAGS"
  5347. fi
  5348. ;;
  5349. *-*solaris*)
  5350. # Find out which ABI we are using.
  5351. echo 'int i;' > conftest.$ac_ext
  5352. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5353. (eval $ac_compile) 2>&5
  5354. ac_status=$?
  5355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5356. test $ac_status = 0; }; then
  5357. case `/usr/bin/file conftest.o` in
  5358. *64-bit*)
  5359. case $lt_cv_prog_gnu_ld in
  5360. yes*)
  5361. case $host in
  5362. i?86-*-solaris*)
  5363. LD="${LD-ld} -m elf_x86_64"
  5364. ;;
  5365. sparc*-*-solaris*)
  5366. LD="${LD-ld} -m elf64_sparc"
  5367. ;;
  5368. esac
  5369. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5370. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5371. LD="${LD-ld}_sol2"
  5372. fi
  5373. ;;
  5374. *)
  5375. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5376. LD="${LD-ld} -64"
  5377. fi
  5378. ;;
  5379. esac
  5380. ;;
  5381. esac
  5382. fi
  5383. rm -rf conftest*
  5384. ;;
  5385. esac
  5386. need_locks="$enable_libtool_lock"
  5387. if test -n "$ac_tool_prefix"; then
  5388. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5389. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5391. $as_echo_n "checking for $ac_word... " >&6; }
  5392. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. if test -n "$MANIFEST_TOOL"; then
  5396. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5397. else
  5398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5399. for as_dir in $PATH
  5400. do
  5401. IFS=$as_save_IFS
  5402. test -z "$as_dir" && as_dir=.
  5403. for ac_exec_ext in '' $ac_executable_extensions; do
  5404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5405. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5407. break 2
  5408. fi
  5409. done
  5410. done
  5411. IFS=$as_save_IFS
  5412. fi
  5413. fi
  5414. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5415. if test -n "$MANIFEST_TOOL"; then
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5417. $as_echo "$MANIFEST_TOOL" >&6; }
  5418. else
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5420. $as_echo "no" >&6; }
  5421. fi
  5422. fi
  5423. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5424. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5425. # Extract the first word of "mt", so it can be a program name with args.
  5426. set dummy mt; ac_word=$2
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5428. $as_echo_n "checking for $ac_word... " >&6; }
  5429. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5433. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5434. else
  5435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5436. for as_dir in $PATH
  5437. do
  5438. IFS=$as_save_IFS
  5439. test -z "$as_dir" && as_dir=.
  5440. for ac_exec_ext in '' $ac_executable_extensions; do
  5441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5442. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5444. break 2
  5445. fi
  5446. done
  5447. done
  5448. IFS=$as_save_IFS
  5449. fi
  5450. fi
  5451. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5452. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5454. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5455. else
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5457. $as_echo "no" >&6; }
  5458. fi
  5459. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5460. MANIFEST_TOOL=":"
  5461. else
  5462. case $cross_compiling:$ac_tool_warned in
  5463. yes:)
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5465. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5466. ac_tool_warned=yes ;;
  5467. esac
  5468. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5469. fi
  5470. else
  5471. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5472. fi
  5473. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5475. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5476. if ${lt_cv_path_mainfest_tool+:} false; then :
  5477. $as_echo_n "(cached) " >&6
  5478. else
  5479. lt_cv_path_mainfest_tool=no
  5480. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5481. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5482. cat conftest.err >&5
  5483. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5484. lt_cv_path_mainfest_tool=yes
  5485. fi
  5486. rm -f conftest*
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5489. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5490. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5491. MANIFEST_TOOL=:
  5492. fi
  5493. case $host_os in
  5494. rhapsody* | darwin*)
  5495. if test -n "$ac_tool_prefix"; then
  5496. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5497. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5499. $as_echo_n "checking for $ac_word... " >&6; }
  5500. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5501. $as_echo_n "(cached) " >&6
  5502. else
  5503. if test -n "$DSYMUTIL"; then
  5504. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5505. else
  5506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5507. for as_dir in $PATH
  5508. do
  5509. IFS=$as_save_IFS
  5510. test -z "$as_dir" && as_dir=.
  5511. for ac_exec_ext in '' $ac_executable_extensions; do
  5512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5513. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5515. break 2
  5516. fi
  5517. done
  5518. done
  5519. IFS=$as_save_IFS
  5520. fi
  5521. fi
  5522. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5523. if test -n "$DSYMUTIL"; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5525. $as_echo "$DSYMUTIL" >&6; }
  5526. else
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5528. $as_echo "no" >&6; }
  5529. fi
  5530. fi
  5531. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5532. ac_ct_DSYMUTIL=$DSYMUTIL
  5533. # Extract the first word of "dsymutil", so it can be a program name with args.
  5534. set dummy dsymutil; ac_word=$2
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5536. $as_echo_n "checking for $ac_word... " >&6; }
  5537. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. if test -n "$ac_ct_DSYMUTIL"; then
  5541. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5542. else
  5543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5544. for as_dir in $PATH
  5545. do
  5546. IFS=$as_save_IFS
  5547. test -z "$as_dir" && as_dir=.
  5548. for ac_exec_ext in '' $ac_executable_extensions; do
  5549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5550. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5552. break 2
  5553. fi
  5554. done
  5555. done
  5556. IFS=$as_save_IFS
  5557. fi
  5558. fi
  5559. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5560. if test -n "$ac_ct_DSYMUTIL"; then
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5562. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5563. else
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5565. $as_echo "no" >&6; }
  5566. fi
  5567. if test "x$ac_ct_DSYMUTIL" = x; then
  5568. DSYMUTIL=":"
  5569. else
  5570. case $cross_compiling:$ac_tool_warned in
  5571. yes:)
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5573. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5574. ac_tool_warned=yes ;;
  5575. esac
  5576. DSYMUTIL=$ac_ct_DSYMUTIL
  5577. fi
  5578. else
  5579. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5580. fi
  5581. if test -n "$ac_tool_prefix"; then
  5582. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5583. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5585. $as_echo_n "checking for $ac_word... " >&6; }
  5586. if ${ac_cv_prog_NMEDIT+:} false; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. if test -n "$NMEDIT"; then
  5590. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5591. else
  5592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5593. for as_dir in $PATH
  5594. do
  5595. IFS=$as_save_IFS
  5596. test -z "$as_dir" && as_dir=.
  5597. for ac_exec_ext in '' $ac_executable_extensions; do
  5598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5599. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5601. break 2
  5602. fi
  5603. done
  5604. done
  5605. IFS=$as_save_IFS
  5606. fi
  5607. fi
  5608. NMEDIT=$ac_cv_prog_NMEDIT
  5609. if test -n "$NMEDIT"; then
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5611. $as_echo "$NMEDIT" >&6; }
  5612. else
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5614. $as_echo "no" >&6; }
  5615. fi
  5616. fi
  5617. if test -z "$ac_cv_prog_NMEDIT"; then
  5618. ac_ct_NMEDIT=$NMEDIT
  5619. # Extract the first word of "nmedit", so it can be a program name with args.
  5620. set dummy nmedit; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$ac_ct_NMEDIT"; then
  5627. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5646. if test -n "$ac_ct_NMEDIT"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5648. $as_echo "$ac_ct_NMEDIT" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. if test "x$ac_ct_NMEDIT" = x; then
  5654. NMEDIT=":"
  5655. else
  5656. case $cross_compiling:$ac_tool_warned in
  5657. yes:)
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5660. ac_tool_warned=yes ;;
  5661. esac
  5662. NMEDIT=$ac_ct_NMEDIT
  5663. fi
  5664. else
  5665. NMEDIT="$ac_cv_prog_NMEDIT"
  5666. fi
  5667. if test -n "$ac_tool_prefix"; then
  5668. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5669. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5671. $as_echo_n "checking for $ac_word... " >&6; }
  5672. if ${ac_cv_prog_LIPO+:} false; then :
  5673. $as_echo_n "(cached) " >&6
  5674. else
  5675. if test -n "$LIPO"; then
  5676. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5677. else
  5678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5679. for as_dir in $PATH
  5680. do
  5681. IFS=$as_save_IFS
  5682. test -z "$as_dir" && as_dir=.
  5683. for ac_exec_ext in '' $ac_executable_extensions; do
  5684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5685. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5687. break 2
  5688. fi
  5689. done
  5690. done
  5691. IFS=$as_save_IFS
  5692. fi
  5693. fi
  5694. LIPO=$ac_cv_prog_LIPO
  5695. if test -n "$LIPO"; then
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5697. $as_echo "$LIPO" >&6; }
  5698. else
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5700. $as_echo "no" >&6; }
  5701. fi
  5702. fi
  5703. if test -z "$ac_cv_prog_LIPO"; then
  5704. ac_ct_LIPO=$LIPO
  5705. # Extract the first word of "lipo", so it can be a program name with args.
  5706. set dummy lipo; ac_word=$2
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5708. $as_echo_n "checking for $ac_word... " >&6; }
  5709. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if test -n "$ac_ct_LIPO"; then
  5713. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5714. else
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5722. ac_cv_prog_ac_ct_LIPO="lipo"
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5732. if test -n "$ac_ct_LIPO"; then
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5734. $as_echo "$ac_ct_LIPO" >&6; }
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. fi
  5739. if test "x$ac_ct_LIPO" = x; then
  5740. LIPO=":"
  5741. else
  5742. case $cross_compiling:$ac_tool_warned in
  5743. yes:)
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5746. ac_tool_warned=yes ;;
  5747. esac
  5748. LIPO=$ac_ct_LIPO
  5749. fi
  5750. else
  5751. LIPO="$ac_cv_prog_LIPO"
  5752. fi
  5753. if test -n "$ac_tool_prefix"; then
  5754. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5755. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5757. $as_echo_n "checking for $ac_word... " >&6; }
  5758. if ${ac_cv_prog_OTOOL+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. if test -n "$OTOOL"; then
  5762. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5763. else
  5764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5765. for as_dir in $PATH
  5766. do
  5767. IFS=$as_save_IFS
  5768. test -z "$as_dir" && as_dir=.
  5769. for ac_exec_ext in '' $ac_executable_extensions; do
  5770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5771. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5773. break 2
  5774. fi
  5775. done
  5776. done
  5777. IFS=$as_save_IFS
  5778. fi
  5779. fi
  5780. OTOOL=$ac_cv_prog_OTOOL
  5781. if test -n "$OTOOL"; then
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5783. $as_echo "$OTOOL" >&6; }
  5784. else
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5786. $as_echo "no" >&6; }
  5787. fi
  5788. fi
  5789. if test -z "$ac_cv_prog_OTOOL"; then
  5790. ac_ct_OTOOL=$OTOOL
  5791. # Extract the first word of "otool", so it can be a program name with args.
  5792. set dummy otool; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$ac_ct_OTOOL"; then
  5799. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5808. ac_cv_prog_ac_ct_OTOOL="otool"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5818. if test -n "$ac_ct_OTOOL"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5820. $as_echo "$ac_ct_OTOOL" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. if test "x$ac_ct_OTOOL" = x; then
  5826. OTOOL=":"
  5827. else
  5828. case $cross_compiling:$ac_tool_warned in
  5829. yes:)
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5832. ac_tool_warned=yes ;;
  5833. esac
  5834. OTOOL=$ac_ct_OTOOL
  5835. fi
  5836. else
  5837. OTOOL="$ac_cv_prog_OTOOL"
  5838. fi
  5839. if test -n "$ac_tool_prefix"; then
  5840. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5841. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if ${ac_cv_prog_OTOOL64+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. if test -n "$OTOOL64"; then
  5848. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. OTOOL64=$ac_cv_prog_OTOOL64
  5867. if test -n "$OTOOL64"; then
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5869. $as_echo "$OTOOL64" >&6; }
  5870. else
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. $as_echo "no" >&6; }
  5873. fi
  5874. fi
  5875. if test -z "$ac_cv_prog_OTOOL64"; then
  5876. ac_ct_OTOOL64=$OTOOL64
  5877. # Extract the first word of "otool64", so it can be a program name with args.
  5878. set dummy otool64; ac_word=$2
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5880. $as_echo_n "checking for $ac_word... " >&6; }
  5881. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. if test -n "$ac_ct_OTOOL64"; then
  5885. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5886. else
  5887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5888. for as_dir in $PATH
  5889. do
  5890. IFS=$as_save_IFS
  5891. test -z "$as_dir" && as_dir=.
  5892. for ac_exec_ext in '' $ac_executable_extensions; do
  5893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5894. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5896. break 2
  5897. fi
  5898. done
  5899. done
  5900. IFS=$as_save_IFS
  5901. fi
  5902. fi
  5903. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5904. if test -n "$ac_ct_OTOOL64"; then
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5906. $as_echo "$ac_ct_OTOOL64" >&6; }
  5907. else
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5909. $as_echo "no" >&6; }
  5910. fi
  5911. if test "x$ac_ct_OTOOL64" = x; then
  5912. OTOOL64=":"
  5913. else
  5914. case $cross_compiling:$ac_tool_warned in
  5915. yes:)
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5918. ac_tool_warned=yes ;;
  5919. esac
  5920. OTOOL64=$ac_ct_OTOOL64
  5921. fi
  5922. else
  5923. OTOOL64="$ac_cv_prog_OTOOL64"
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5926. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5927. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. lt_cv_apple_cc_single_mod=no
  5931. if test -z "${LT_MULTI_MODULE}"; then
  5932. # By default we will add the -single_module flag. You can override
  5933. # by either setting the environment variable LT_MULTI_MODULE
  5934. # non-empty at configure time, or by adding -multi_module to the
  5935. # link flags.
  5936. rm -rf libconftest.dylib*
  5937. echo "int foo(void){return 1;}" > conftest.c
  5938. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5939. -dynamiclib -Wl,-single_module conftest.c" >&5
  5940. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5941. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5942. _lt_result=$?
  5943. # If there is a non-empty error log, and "single_module"
  5944. # appears in it, assume the flag caused a linker warning
  5945. if test -s conftest.err && $GREP single_module conftest.err; then
  5946. cat conftest.err >&5
  5947. # Otherwise, if the output was created with a 0 exit code from
  5948. # the compiler, it worked.
  5949. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5950. lt_cv_apple_cc_single_mod=yes
  5951. else
  5952. cat conftest.err >&5
  5953. fi
  5954. rm -rf libconftest.dylib*
  5955. rm -f conftest.*
  5956. fi
  5957. fi
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5959. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5961. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5962. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5963. $as_echo_n "(cached) " >&6
  5964. else
  5965. lt_cv_ld_exported_symbols_list=no
  5966. save_LDFLAGS=$LDFLAGS
  5967. echo "_main" > conftest.sym
  5968. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971. int
  5972. main ()
  5973. {
  5974. ;
  5975. return 0;
  5976. }
  5977. _ACEOF
  5978. if ac_fn_c_try_link "$LINENO"; then :
  5979. lt_cv_ld_exported_symbols_list=yes
  5980. else
  5981. lt_cv_ld_exported_symbols_list=no
  5982. fi
  5983. rm -f core conftest.err conftest.$ac_objext \
  5984. conftest$ac_exeext conftest.$ac_ext
  5985. LDFLAGS="$save_LDFLAGS"
  5986. fi
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5988. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5990. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5991. if ${lt_cv_ld_force_load+:} false; then :
  5992. $as_echo_n "(cached) " >&6
  5993. else
  5994. lt_cv_ld_force_load=no
  5995. cat > conftest.c << _LT_EOF
  5996. int forced_loaded() { return 2;}
  5997. _LT_EOF
  5998. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5999. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6000. echo "$AR cru libconftest.a conftest.o" >&5
  6001. $AR cru libconftest.a conftest.o 2>&5
  6002. echo "$RANLIB libconftest.a" >&5
  6003. $RANLIB libconftest.a 2>&5
  6004. cat > conftest.c << _LT_EOF
  6005. int main() { return 0;}
  6006. _LT_EOF
  6007. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6008. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6009. _lt_result=$?
  6010. if test -s conftest.err && $GREP force_load conftest.err; then
  6011. cat conftest.err >&5
  6012. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6013. lt_cv_ld_force_load=yes
  6014. else
  6015. cat conftest.err >&5
  6016. fi
  6017. rm -f conftest.err libconftest.a conftest conftest.c
  6018. rm -rf conftest.dSYM
  6019. fi
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6021. $as_echo "$lt_cv_ld_force_load" >&6; }
  6022. case $host_os in
  6023. rhapsody* | darwin1.[012])
  6024. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6025. darwin1.*)
  6026. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6027. darwin*) # darwin 5.x on
  6028. # if running on 10.5 or later, the deployment target defaults
  6029. # to the OS version, if on x86, and 10.4, the deployment
  6030. # target defaults to 10.4. Don't you love it?
  6031. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6032. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6033. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6034. 10.[012]*)
  6035. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6036. 10.*)
  6037. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6038. esac
  6039. ;;
  6040. esac
  6041. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6042. _lt_dar_single_mod='$single_module'
  6043. fi
  6044. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6045. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6046. else
  6047. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6048. fi
  6049. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6050. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6051. else
  6052. _lt_dsymutil=
  6053. fi
  6054. ;;
  6055. esac
  6056. ac_ext=c
  6057. ac_cpp='$CPP $CPPFLAGS'
  6058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6062. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6063. # On Suns, sometimes $CPP names a directory.
  6064. if test -n "$CPP" && test -d "$CPP"; then
  6065. CPP=
  6066. fi
  6067. if test -z "$CPP"; then
  6068. if ${ac_cv_prog_CPP+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. # Double quotes because CPP needs to be expanded
  6072. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6073. do
  6074. ac_preproc_ok=false
  6075. for ac_c_preproc_warn_flag in '' yes
  6076. do
  6077. # Use a header file that comes with gcc, so configuring glibc
  6078. # with a fresh cross-compiler works.
  6079. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6080. # <limits.h> exists even on freestanding compilers.
  6081. # On the NeXT, cc -E runs the code through the compiler's parser,
  6082. # not just through cpp. "Syntax error" is here to catch this case.
  6083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end confdefs.h. */
  6085. #ifdef __STDC__
  6086. # include <limits.h>
  6087. #else
  6088. # include <assert.h>
  6089. #endif
  6090. Syntax error
  6091. _ACEOF
  6092. if ac_fn_c_try_cpp "$LINENO"; then :
  6093. else
  6094. # Broken: fails on valid input.
  6095. continue
  6096. fi
  6097. rm -f conftest.err conftest.i conftest.$ac_ext
  6098. # OK, works on sane cases. Now check whether nonexistent headers
  6099. # can be detected and how.
  6100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6101. /* end confdefs.h. */
  6102. #include <ac_nonexistent.h>
  6103. _ACEOF
  6104. if ac_fn_c_try_cpp "$LINENO"; then :
  6105. # Broken: success on invalid input.
  6106. continue
  6107. else
  6108. # Passes both tests.
  6109. ac_preproc_ok=:
  6110. break
  6111. fi
  6112. rm -f conftest.err conftest.i conftest.$ac_ext
  6113. done
  6114. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6115. rm -f conftest.i conftest.err conftest.$ac_ext
  6116. if $ac_preproc_ok; then :
  6117. break
  6118. fi
  6119. done
  6120. ac_cv_prog_CPP=$CPP
  6121. fi
  6122. CPP=$ac_cv_prog_CPP
  6123. else
  6124. ac_cv_prog_CPP=$CPP
  6125. fi
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6127. $as_echo "$CPP" >&6; }
  6128. ac_preproc_ok=false
  6129. for ac_c_preproc_warn_flag in '' yes
  6130. do
  6131. # Use a header file that comes with gcc, so configuring glibc
  6132. # with a fresh cross-compiler works.
  6133. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6134. # <limits.h> exists even on freestanding compilers.
  6135. # On the NeXT, cc -E runs the code through the compiler's parser,
  6136. # not just through cpp. "Syntax error" is here to catch this case.
  6137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6138. /* end confdefs.h. */
  6139. #ifdef __STDC__
  6140. # include <limits.h>
  6141. #else
  6142. # include <assert.h>
  6143. #endif
  6144. Syntax error
  6145. _ACEOF
  6146. if ac_fn_c_try_cpp "$LINENO"; then :
  6147. else
  6148. # Broken: fails on valid input.
  6149. continue
  6150. fi
  6151. rm -f conftest.err conftest.i conftest.$ac_ext
  6152. # OK, works on sane cases. Now check whether nonexistent headers
  6153. # can be detected and how.
  6154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6155. /* end confdefs.h. */
  6156. #include <ac_nonexistent.h>
  6157. _ACEOF
  6158. if ac_fn_c_try_cpp "$LINENO"; then :
  6159. # Broken: success on invalid input.
  6160. continue
  6161. else
  6162. # Passes both tests.
  6163. ac_preproc_ok=:
  6164. break
  6165. fi
  6166. rm -f conftest.err conftest.i conftest.$ac_ext
  6167. done
  6168. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6169. rm -f conftest.i conftest.err conftest.$ac_ext
  6170. if $ac_preproc_ok; then :
  6171. else
  6172. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6173. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6174. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6175. See \`config.log' for more details" "$LINENO" 5; }
  6176. fi
  6177. ac_ext=c
  6178. ac_cpp='$CPP $CPPFLAGS'
  6179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6183. $as_echo_n "checking for ANSI C header files... " >&6; }
  6184. if ${ac_cv_header_stdc+:} false; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h. */
  6189. #include <stdlib.h>
  6190. #include <stdarg.h>
  6191. #include <string.h>
  6192. #include <float.h>
  6193. int
  6194. main ()
  6195. {
  6196. ;
  6197. return 0;
  6198. }
  6199. _ACEOF
  6200. if ac_fn_c_try_compile "$LINENO"; then :
  6201. ac_cv_header_stdc=yes
  6202. else
  6203. ac_cv_header_stdc=no
  6204. fi
  6205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6206. if test $ac_cv_header_stdc = yes; then
  6207. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6209. /* end confdefs.h. */
  6210. #include <string.h>
  6211. _ACEOF
  6212. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6213. $EGREP "memchr" >/dev/null 2>&1; then :
  6214. else
  6215. ac_cv_header_stdc=no
  6216. fi
  6217. rm -f conftest*
  6218. fi
  6219. if test $ac_cv_header_stdc = yes; then
  6220. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6222. /* end confdefs.h. */
  6223. #include <stdlib.h>
  6224. _ACEOF
  6225. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6226. $EGREP "free" >/dev/null 2>&1; then :
  6227. else
  6228. ac_cv_header_stdc=no
  6229. fi
  6230. rm -f conftest*
  6231. fi
  6232. if test $ac_cv_header_stdc = yes; then
  6233. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6234. if test "$cross_compiling" = yes; then :
  6235. :
  6236. else
  6237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6238. /* end confdefs.h. */
  6239. #include <ctype.h>
  6240. #include <stdlib.h>
  6241. #if ((' ' & 0x0FF) == 0x020)
  6242. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6243. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6244. #else
  6245. # define ISLOWER(c) \
  6246. (('a' <= (c) && (c) <= 'i') \
  6247. || ('j' <= (c) && (c) <= 'r') \
  6248. || ('s' <= (c) && (c) <= 'z'))
  6249. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6250. #endif
  6251. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6252. int
  6253. main ()
  6254. {
  6255. int i;
  6256. for (i = 0; i < 256; i++)
  6257. if (XOR (islower (i), ISLOWER (i))
  6258. || toupper (i) != TOUPPER (i))
  6259. return 2;
  6260. return 0;
  6261. }
  6262. _ACEOF
  6263. if ac_fn_c_try_run "$LINENO"; then :
  6264. else
  6265. ac_cv_header_stdc=no
  6266. fi
  6267. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6268. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6269. fi
  6270. fi
  6271. fi
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6273. $as_echo "$ac_cv_header_stdc" >&6; }
  6274. if test $ac_cv_header_stdc = yes; then
  6275. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6276. fi
  6277. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6278. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6279. inttypes.h stdint.h unistd.h
  6280. do :
  6281. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6282. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6283. "
  6284. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6285. cat >>confdefs.h <<_ACEOF
  6286. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6287. _ACEOF
  6288. fi
  6289. done
  6290. for ac_header in dlfcn.h
  6291. do :
  6292. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6293. "
  6294. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6295. cat >>confdefs.h <<_ACEOF
  6296. #define HAVE_DLFCN_H 1
  6297. _ACEOF
  6298. fi
  6299. done
  6300. # Set options
  6301. enable_win32_dll=yes
  6302. case $host in
  6303. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6304. if test -n "$ac_tool_prefix"; then
  6305. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6306. set dummy ${ac_tool_prefix}as; ac_word=$2
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6308. $as_echo_n "checking for $ac_word... " >&6; }
  6309. if ${ac_cv_prog_AS+:} false; then :
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. if test -n "$AS"; then
  6313. ac_cv_prog_AS="$AS" # Let the user override the test.
  6314. else
  6315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6316. for as_dir in $PATH
  6317. do
  6318. IFS=$as_save_IFS
  6319. test -z "$as_dir" && as_dir=.
  6320. for ac_exec_ext in '' $ac_executable_extensions; do
  6321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6322. ac_cv_prog_AS="${ac_tool_prefix}as"
  6323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6324. break 2
  6325. fi
  6326. done
  6327. done
  6328. IFS=$as_save_IFS
  6329. fi
  6330. fi
  6331. AS=$ac_cv_prog_AS
  6332. if test -n "$AS"; then
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6334. $as_echo "$AS" >&6; }
  6335. else
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6337. $as_echo "no" >&6; }
  6338. fi
  6339. fi
  6340. if test -z "$ac_cv_prog_AS"; then
  6341. ac_ct_AS=$AS
  6342. # Extract the first word of "as", so it can be a program name with args.
  6343. set dummy as; ac_word=$2
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6345. $as_echo_n "checking for $ac_word... " >&6; }
  6346. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6347. $as_echo_n "(cached) " >&6
  6348. else
  6349. if test -n "$ac_ct_AS"; then
  6350. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6351. else
  6352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6353. for as_dir in $PATH
  6354. do
  6355. IFS=$as_save_IFS
  6356. test -z "$as_dir" && as_dir=.
  6357. for ac_exec_ext in '' $ac_executable_extensions; do
  6358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6359. ac_cv_prog_ac_ct_AS="as"
  6360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6361. break 2
  6362. fi
  6363. done
  6364. done
  6365. IFS=$as_save_IFS
  6366. fi
  6367. fi
  6368. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6369. if test -n "$ac_ct_AS"; then
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6371. $as_echo "$ac_ct_AS" >&6; }
  6372. else
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6374. $as_echo "no" >&6; }
  6375. fi
  6376. if test "x$ac_ct_AS" = x; then
  6377. AS="false"
  6378. else
  6379. case $cross_compiling:$ac_tool_warned in
  6380. yes:)
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6382. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6383. ac_tool_warned=yes ;;
  6384. esac
  6385. AS=$ac_ct_AS
  6386. fi
  6387. else
  6388. AS="$ac_cv_prog_AS"
  6389. fi
  6390. if test -n "$ac_tool_prefix"; then
  6391. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6392. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6394. $as_echo_n "checking for $ac_word... " >&6; }
  6395. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6396. $as_echo_n "(cached) " >&6
  6397. else
  6398. if test -n "$DLLTOOL"; then
  6399. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6400. else
  6401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6402. for as_dir in $PATH
  6403. do
  6404. IFS=$as_save_IFS
  6405. test -z "$as_dir" && as_dir=.
  6406. for ac_exec_ext in '' $ac_executable_extensions; do
  6407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6408. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6410. break 2
  6411. fi
  6412. done
  6413. done
  6414. IFS=$as_save_IFS
  6415. fi
  6416. fi
  6417. DLLTOOL=$ac_cv_prog_DLLTOOL
  6418. if test -n "$DLLTOOL"; then
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6420. $as_echo "$DLLTOOL" >&6; }
  6421. else
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6423. $as_echo "no" >&6; }
  6424. fi
  6425. fi
  6426. if test -z "$ac_cv_prog_DLLTOOL"; then
  6427. ac_ct_DLLTOOL=$DLLTOOL
  6428. # Extract the first word of "dlltool", so it can be a program name with args.
  6429. set dummy dlltool; ac_word=$2
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6431. $as_echo_n "checking for $ac_word... " >&6; }
  6432. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6433. $as_echo_n "(cached) " >&6
  6434. else
  6435. if test -n "$ac_ct_DLLTOOL"; then
  6436. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6437. else
  6438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6439. for as_dir in $PATH
  6440. do
  6441. IFS=$as_save_IFS
  6442. test -z "$as_dir" && as_dir=.
  6443. for ac_exec_ext in '' $ac_executable_extensions; do
  6444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6445. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6447. break 2
  6448. fi
  6449. done
  6450. done
  6451. IFS=$as_save_IFS
  6452. fi
  6453. fi
  6454. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6455. if test -n "$ac_ct_DLLTOOL"; then
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6457. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6458. else
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6460. $as_echo "no" >&6; }
  6461. fi
  6462. if test "x$ac_ct_DLLTOOL" = x; then
  6463. DLLTOOL="false"
  6464. else
  6465. case $cross_compiling:$ac_tool_warned in
  6466. yes:)
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6469. ac_tool_warned=yes ;;
  6470. esac
  6471. DLLTOOL=$ac_ct_DLLTOOL
  6472. fi
  6473. else
  6474. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6475. fi
  6476. if test -n "$ac_tool_prefix"; then
  6477. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6478. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6480. $as_echo_n "checking for $ac_word... " >&6; }
  6481. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. if test -n "$OBJDUMP"; then
  6485. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6486. else
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. test -z "$as_dir" && as_dir=.
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6494. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. fi
  6502. fi
  6503. OBJDUMP=$ac_cv_prog_OBJDUMP
  6504. if test -n "$OBJDUMP"; then
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6506. $as_echo "$OBJDUMP" >&6; }
  6507. else
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. fi
  6511. fi
  6512. if test -z "$ac_cv_prog_OBJDUMP"; then
  6513. ac_ct_OBJDUMP=$OBJDUMP
  6514. # Extract the first word of "objdump", so it can be a program name with args.
  6515. set dummy objdump; ac_word=$2
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6517. $as_echo_n "checking for $ac_word... " >&6; }
  6518. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. if test -n "$ac_ct_OBJDUMP"; then
  6522. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6523. else
  6524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6525. for as_dir in $PATH
  6526. do
  6527. IFS=$as_save_IFS
  6528. test -z "$as_dir" && as_dir=.
  6529. for ac_exec_ext in '' $ac_executable_extensions; do
  6530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6531. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6533. break 2
  6534. fi
  6535. done
  6536. done
  6537. IFS=$as_save_IFS
  6538. fi
  6539. fi
  6540. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6541. if test -n "$ac_ct_OBJDUMP"; then
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6543. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6544. else
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547. fi
  6548. if test "x$ac_ct_OBJDUMP" = x; then
  6549. OBJDUMP="false"
  6550. else
  6551. case $cross_compiling:$ac_tool_warned in
  6552. yes:)
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6555. ac_tool_warned=yes ;;
  6556. esac
  6557. OBJDUMP=$ac_ct_OBJDUMP
  6558. fi
  6559. else
  6560. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6561. fi
  6562. ;;
  6563. esac
  6564. test -z "$AS" && AS=as
  6565. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6566. test -z "$OBJDUMP" && OBJDUMP=objdump
  6567. enable_dlopen=no
  6568. # Check whether --enable-shared was given.
  6569. if test "${enable_shared+set}" = set; then :
  6570. enableval=$enable_shared; p=${PACKAGE-default}
  6571. case $enableval in
  6572. yes) enable_shared=yes ;;
  6573. no) enable_shared=no ;;
  6574. *)
  6575. enable_shared=no
  6576. # Look at the argument we got. We use all the common list separators.
  6577. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6578. for pkg in $enableval; do
  6579. IFS="$lt_save_ifs"
  6580. if test "X$pkg" = "X$p"; then
  6581. enable_shared=yes
  6582. fi
  6583. done
  6584. IFS="$lt_save_ifs"
  6585. ;;
  6586. esac
  6587. else
  6588. enable_shared=yes
  6589. fi
  6590. # Check whether --enable-static was given.
  6591. if test "${enable_static+set}" = set; then :
  6592. enableval=$enable_static; p=${PACKAGE-default}
  6593. case $enableval in
  6594. yes) enable_static=yes ;;
  6595. no) enable_static=no ;;
  6596. *)
  6597. enable_static=no
  6598. # Look at the argument we got. We use all the common list separators.
  6599. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6600. for pkg in $enableval; do
  6601. IFS="$lt_save_ifs"
  6602. if test "X$pkg" = "X$p"; then
  6603. enable_static=yes
  6604. fi
  6605. done
  6606. IFS="$lt_save_ifs"
  6607. ;;
  6608. esac
  6609. else
  6610. enable_static=yes
  6611. fi
  6612. # Check whether --with-pic was given.
  6613. if test "${with_pic+set}" = set; then :
  6614. withval=$with_pic; lt_p=${PACKAGE-default}
  6615. case $withval in
  6616. yes|no) pic_mode=$withval ;;
  6617. *)
  6618. pic_mode=default
  6619. # Look at the argument we got. We use all the common list separators.
  6620. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6621. for lt_pkg in $withval; do
  6622. IFS="$lt_save_ifs"
  6623. if test "X$lt_pkg" = "X$lt_p"; then
  6624. pic_mode=yes
  6625. fi
  6626. done
  6627. IFS="$lt_save_ifs"
  6628. ;;
  6629. esac
  6630. else
  6631. pic_mode=default
  6632. fi
  6633. test -z "$pic_mode" && pic_mode=default
  6634. # Check whether --enable-fast-install was given.
  6635. if test "${enable_fast_install+set}" = set; then :
  6636. enableval=$enable_fast_install; p=${PACKAGE-default}
  6637. case $enableval in
  6638. yes) enable_fast_install=yes ;;
  6639. no) enable_fast_install=no ;;
  6640. *)
  6641. enable_fast_install=no
  6642. # Look at the argument we got. We use all the common list separators.
  6643. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6644. for pkg in $enableval; do
  6645. IFS="$lt_save_ifs"
  6646. if test "X$pkg" = "X$p"; then
  6647. enable_fast_install=yes
  6648. fi
  6649. done
  6650. IFS="$lt_save_ifs"
  6651. ;;
  6652. esac
  6653. else
  6654. enable_fast_install=yes
  6655. fi
  6656. # This can be used to rebuild libtool when needed
  6657. LIBTOOL_DEPS="$ltmain"
  6658. # Always use our own libtool.
  6659. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6660. test -z "$LN_S" && LN_S="ln -s"
  6661. if test -n "${ZSH_VERSION+set}" ; then
  6662. setopt NO_GLOB_SUBST
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6665. $as_echo_n "checking for objdir... " >&6; }
  6666. if ${lt_cv_objdir+:} false; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. rm -f .libs 2>/dev/null
  6670. mkdir .libs 2>/dev/null
  6671. if test -d .libs; then
  6672. lt_cv_objdir=.libs
  6673. else
  6674. # MS-DOS does not allow filenames that begin with a dot.
  6675. lt_cv_objdir=_libs
  6676. fi
  6677. rmdir .libs 2>/dev/null
  6678. fi
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6680. $as_echo "$lt_cv_objdir" >&6; }
  6681. objdir=$lt_cv_objdir
  6682. cat >>confdefs.h <<_ACEOF
  6683. #define LT_OBJDIR "$lt_cv_objdir/"
  6684. _ACEOF
  6685. case $host_os in
  6686. aix3*)
  6687. # AIX sometimes has problems with the GCC collect2 program. For some
  6688. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6689. # vanish in a puff of smoke.
  6690. if test "X${COLLECT_NAMES+set}" != Xset; then
  6691. COLLECT_NAMES=
  6692. export COLLECT_NAMES
  6693. fi
  6694. ;;
  6695. esac
  6696. # Global variables:
  6697. ofile=libtool
  6698. can_build_shared=yes
  6699. # All known linkers require a `.a' archive for static linking (except MSVC,
  6700. # which needs '.lib').
  6701. libext=a
  6702. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6703. old_CC="$CC"
  6704. old_CFLAGS="$CFLAGS"
  6705. # Set sane defaults for various variables
  6706. test -z "$CC" && CC=cc
  6707. test -z "$LTCC" && LTCC=$CC
  6708. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6709. test -z "$LD" && LD=ld
  6710. test -z "$ac_objext" && ac_objext=o
  6711. for cc_temp in $compiler""; do
  6712. case $cc_temp in
  6713. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6714. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6715. \-*) ;;
  6716. *) break;;
  6717. esac
  6718. done
  6719. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6720. # Only perform the check for file, if the check method requires it
  6721. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6722. case $deplibs_check_method in
  6723. file_magic*)
  6724. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6726. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6727. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. case $MAGIC_CMD in
  6731. [\\/*] | ?:[\\/]*)
  6732. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6733. ;;
  6734. *)
  6735. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6736. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6737. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6738. for ac_dir in $ac_dummy; do
  6739. IFS="$lt_save_ifs"
  6740. test -z "$ac_dir" && ac_dir=.
  6741. if test -f $ac_dir/${ac_tool_prefix}file; then
  6742. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6743. if test -n "$file_magic_test_file"; then
  6744. case $deplibs_check_method in
  6745. "file_magic "*)
  6746. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6747. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6748. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6749. $EGREP "$file_magic_regex" > /dev/null; then
  6750. :
  6751. else
  6752. cat <<_LT_EOF 1>&2
  6753. *** Warning: the command libtool uses to detect shared libraries,
  6754. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6755. *** The result is that libtool may fail to recognize shared libraries
  6756. *** as such. This will affect the creation of libtool libraries that
  6757. *** depend on shared libraries, but programs linked with such libtool
  6758. *** libraries will work regardless of this problem. Nevertheless, you
  6759. *** may want to report the problem to your system manager and/or to
  6760. *** bug-libtool@gnu.org
  6761. _LT_EOF
  6762. fi ;;
  6763. esac
  6764. fi
  6765. break
  6766. fi
  6767. done
  6768. IFS="$lt_save_ifs"
  6769. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6770. ;;
  6771. esac
  6772. fi
  6773. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6774. if test -n "$MAGIC_CMD"; then
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6776. $as_echo "$MAGIC_CMD" >&6; }
  6777. else
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6779. $as_echo "no" >&6; }
  6780. fi
  6781. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6782. if test -n "$ac_tool_prefix"; then
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6784. $as_echo_n "checking for file... " >&6; }
  6785. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. case $MAGIC_CMD in
  6789. [\\/*] | ?:[\\/]*)
  6790. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6791. ;;
  6792. *)
  6793. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6794. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6795. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6796. for ac_dir in $ac_dummy; do
  6797. IFS="$lt_save_ifs"
  6798. test -z "$ac_dir" && ac_dir=.
  6799. if test -f $ac_dir/file; then
  6800. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6801. if test -n "$file_magic_test_file"; then
  6802. case $deplibs_check_method in
  6803. "file_magic "*)
  6804. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6805. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6806. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6807. $EGREP "$file_magic_regex" > /dev/null; then
  6808. :
  6809. else
  6810. cat <<_LT_EOF 1>&2
  6811. *** Warning: the command libtool uses to detect shared libraries,
  6812. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6813. *** The result is that libtool may fail to recognize shared libraries
  6814. *** as such. This will affect the creation of libtool libraries that
  6815. *** depend on shared libraries, but programs linked with such libtool
  6816. *** libraries will work regardless of this problem. Nevertheless, you
  6817. *** may want to report the problem to your system manager and/or to
  6818. *** bug-libtool@gnu.org
  6819. _LT_EOF
  6820. fi ;;
  6821. esac
  6822. fi
  6823. break
  6824. fi
  6825. done
  6826. IFS="$lt_save_ifs"
  6827. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6828. ;;
  6829. esac
  6830. fi
  6831. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6832. if test -n "$MAGIC_CMD"; then
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6834. $as_echo "$MAGIC_CMD" >&6; }
  6835. else
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6837. $as_echo "no" >&6; }
  6838. fi
  6839. else
  6840. MAGIC_CMD=:
  6841. fi
  6842. fi
  6843. fi
  6844. ;;
  6845. esac
  6846. # Use C for the default configuration in the libtool script
  6847. lt_save_CC="$CC"
  6848. ac_ext=c
  6849. ac_cpp='$CPP $CPPFLAGS'
  6850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6853. # Source file extension for C test sources.
  6854. ac_ext=c
  6855. # Object file extension for compiled C test sources.
  6856. objext=o
  6857. objext=$objext
  6858. # Code to be used in simple compile tests
  6859. lt_simple_compile_test_code="int some_variable = 0;"
  6860. # Code to be used in simple link tests
  6861. lt_simple_link_test_code='int main(){return(0);}'
  6862. # If no C compiler was specified, use CC.
  6863. LTCC=${LTCC-"$CC"}
  6864. # If no C compiler flags were specified, use CFLAGS.
  6865. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6866. # Allow CC to be a program name with arguments.
  6867. compiler=$CC
  6868. # Save the default compiler, since it gets overwritten when the other
  6869. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6870. compiler_DEFAULT=$CC
  6871. # save warnings/boilerplate of simple test code
  6872. ac_outfile=conftest.$ac_objext
  6873. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6874. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6875. _lt_compiler_boilerplate=`cat conftest.err`
  6876. $RM conftest*
  6877. ac_outfile=conftest.$ac_objext
  6878. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6879. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6880. _lt_linker_boilerplate=`cat conftest.err`
  6881. $RM -r conftest*
  6882. ## CAVEAT EMPTOR:
  6883. ## There is no encapsulation within the following macros, do not change
  6884. ## the running order or otherwise move them around unless you know exactly
  6885. ## what you are doing...
  6886. if test -n "$compiler"; then
  6887. lt_prog_compiler_no_builtin_flag=
  6888. if test "$GCC" = yes; then
  6889. case $cc_basename in
  6890. nvcc*)
  6891. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6892. *)
  6893. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6894. esac
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6896. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6897. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6898. $as_echo_n "(cached) " >&6
  6899. else
  6900. lt_cv_prog_compiler_rtti_exceptions=no
  6901. ac_outfile=conftest.$ac_objext
  6902. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6903. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6904. # Insert the option either (1) after the last *FLAGS variable, or
  6905. # (2) before a word containing "conftest.", or (3) at the end.
  6906. # Note that $ac_compile itself does not contain backslashes and begins
  6907. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6908. # The option is referenced via a variable to avoid confusing sed.
  6909. lt_compile=`echo "$ac_compile" | $SED \
  6910. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6911. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6912. -e 's:$: $lt_compiler_flag:'`
  6913. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6914. (eval "$lt_compile" 2>conftest.err)
  6915. ac_status=$?
  6916. cat conftest.err >&5
  6917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6918. if (exit $ac_status) && test -s "$ac_outfile"; then
  6919. # The compiler can only warn and ignore the option if not recognized
  6920. # So say no if there are warnings other than the usual output.
  6921. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6922. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6923. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6924. lt_cv_prog_compiler_rtti_exceptions=yes
  6925. fi
  6926. fi
  6927. $RM conftest*
  6928. fi
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6930. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6931. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6932. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6933. else
  6934. :
  6935. fi
  6936. fi
  6937. lt_prog_compiler_wl=
  6938. lt_prog_compiler_pic=
  6939. lt_prog_compiler_static=
  6940. if test "$GCC" = yes; then
  6941. lt_prog_compiler_wl='-Wl,'
  6942. lt_prog_compiler_static='-static'
  6943. case $host_os in
  6944. aix*)
  6945. # All AIX code is PIC.
  6946. if test "$host_cpu" = ia64; then
  6947. # AIX 5 now supports IA64 processor
  6948. lt_prog_compiler_static='-Bstatic'
  6949. fi
  6950. ;;
  6951. amigaos*)
  6952. case $host_cpu in
  6953. powerpc)
  6954. # see comment about AmigaOS4 .so support
  6955. lt_prog_compiler_pic='-fPIC'
  6956. ;;
  6957. m68k)
  6958. # FIXME: we need at least 68020 code to build shared libraries, but
  6959. # adding the `-m68020' flag to GCC prevents building anything better,
  6960. # like `-m68040'.
  6961. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6962. ;;
  6963. esac
  6964. ;;
  6965. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6966. # PIC is the default for these OSes.
  6967. ;;
  6968. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6969. # This hack is so that the source file can tell whether it is being
  6970. # built for inclusion in a dll (and should export symbols for example).
  6971. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6972. # (--disable-auto-import) libraries
  6973. lt_prog_compiler_pic='-DDLL_EXPORT'
  6974. ;;
  6975. darwin* | rhapsody*)
  6976. # PIC is the default on this platform
  6977. # Common symbols not allowed in MH_DYLIB files
  6978. lt_prog_compiler_pic='-fno-common'
  6979. ;;
  6980. haiku*)
  6981. # PIC is the default for Haiku.
  6982. # The "-static" flag exists, but is broken.
  6983. lt_prog_compiler_static=
  6984. ;;
  6985. hpux*)
  6986. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6987. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6988. # sets the default TLS model and affects inlining.
  6989. case $host_cpu in
  6990. hppa*64*)
  6991. # +Z the default
  6992. ;;
  6993. *)
  6994. lt_prog_compiler_pic='-fPIC'
  6995. ;;
  6996. esac
  6997. ;;
  6998. interix[3-9]*)
  6999. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7000. # Instead, we relocate shared libraries at runtime.
  7001. ;;
  7002. msdosdjgpp*)
  7003. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7004. # on systems that don't support them.
  7005. lt_prog_compiler_can_build_shared=no
  7006. enable_shared=no
  7007. ;;
  7008. *nto* | *qnx*)
  7009. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7010. # it will coredump.
  7011. lt_prog_compiler_pic='-fPIC -shared'
  7012. ;;
  7013. sysv4*MP*)
  7014. if test -d /usr/nec; then
  7015. lt_prog_compiler_pic=-Kconform_pic
  7016. fi
  7017. ;;
  7018. *)
  7019. lt_prog_compiler_pic='-fPIC'
  7020. ;;
  7021. esac
  7022. case $cc_basename in
  7023. nvcc*) # Cuda Compiler Driver 2.2
  7024. lt_prog_compiler_wl='-Xlinker '
  7025. if test -n "$lt_prog_compiler_pic"; then
  7026. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7027. fi
  7028. ;;
  7029. esac
  7030. else
  7031. # PORTME Check for flag to pass linker flags through the system compiler.
  7032. case $host_os in
  7033. aix*)
  7034. lt_prog_compiler_wl='-Wl,'
  7035. if test "$host_cpu" = ia64; then
  7036. # AIX 5 now supports IA64 processor
  7037. lt_prog_compiler_static='-Bstatic'
  7038. else
  7039. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7040. fi
  7041. ;;
  7042. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7043. # This hack is so that the source file can tell whether it is being
  7044. # built for inclusion in a dll (and should export symbols for example).
  7045. lt_prog_compiler_pic='-DDLL_EXPORT'
  7046. ;;
  7047. hpux9* | hpux10* | hpux11*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7050. # not for PA HP-UX.
  7051. case $host_cpu in
  7052. hppa*64*|ia64*)
  7053. # +Z the default
  7054. ;;
  7055. *)
  7056. lt_prog_compiler_pic='+Z'
  7057. ;;
  7058. esac
  7059. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7060. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7061. ;;
  7062. irix5* | irix6* | nonstopux*)
  7063. lt_prog_compiler_wl='-Wl,'
  7064. # PIC (with -KPIC) is the default.
  7065. lt_prog_compiler_static='-non_shared'
  7066. ;;
  7067. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7068. case $cc_basename in
  7069. # old Intel for x86_64 which still supported -KPIC.
  7070. ecc*)
  7071. lt_prog_compiler_wl='-Wl,'
  7072. lt_prog_compiler_pic='-KPIC'
  7073. lt_prog_compiler_static='-static'
  7074. ;;
  7075. # icc used to be incompatible with GCC.
  7076. # ICC 10 doesn't accept -KPIC any more.
  7077. icc* | ifort*)
  7078. lt_prog_compiler_wl='-Wl,'
  7079. lt_prog_compiler_pic='-fPIC'
  7080. lt_prog_compiler_static='-static'
  7081. ;;
  7082. # Lahey Fortran 8.1.
  7083. lf95*)
  7084. lt_prog_compiler_wl='-Wl,'
  7085. lt_prog_compiler_pic='--shared'
  7086. lt_prog_compiler_static='--static'
  7087. ;;
  7088. nagfor*)
  7089. # NAG Fortran compiler
  7090. lt_prog_compiler_wl='-Wl,-Wl,,'
  7091. lt_prog_compiler_pic='-PIC'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. ;;
  7094. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7095. # Portland Group compilers (*not* the Pentium gcc compiler,
  7096. # which looks to be a dead project)
  7097. lt_prog_compiler_wl='-Wl,'
  7098. lt_prog_compiler_pic='-fpic'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. ;;
  7101. ccc*)
  7102. lt_prog_compiler_wl='-Wl,'
  7103. # All Alpha code is PIC.
  7104. lt_prog_compiler_static='-non_shared'
  7105. ;;
  7106. xl* | bgxl* | bgf* | mpixl*)
  7107. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7108. lt_prog_compiler_wl='-Wl,'
  7109. lt_prog_compiler_pic='-qpic'
  7110. lt_prog_compiler_static='-qstaticlink'
  7111. ;;
  7112. *)
  7113. case `$CC -V 2>&1 | sed 5q` in
  7114. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7115. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7116. lt_prog_compiler_pic='-KPIC'
  7117. lt_prog_compiler_static='-Bstatic'
  7118. lt_prog_compiler_wl=''
  7119. ;;
  7120. *Sun\ F* | *Sun*Fortran*)
  7121. lt_prog_compiler_pic='-KPIC'
  7122. lt_prog_compiler_static='-Bstatic'
  7123. lt_prog_compiler_wl='-Qoption ld '
  7124. ;;
  7125. *Sun\ C*)
  7126. # Sun C 5.9
  7127. lt_prog_compiler_pic='-KPIC'
  7128. lt_prog_compiler_static='-Bstatic'
  7129. lt_prog_compiler_wl='-Wl,'
  7130. ;;
  7131. *Intel*\ [CF]*Compiler*)
  7132. lt_prog_compiler_wl='-Wl,'
  7133. lt_prog_compiler_pic='-fPIC'
  7134. lt_prog_compiler_static='-static'
  7135. ;;
  7136. *Portland\ Group*)
  7137. lt_prog_compiler_wl='-Wl,'
  7138. lt_prog_compiler_pic='-fpic'
  7139. lt_prog_compiler_static='-Bstatic'
  7140. ;;
  7141. esac
  7142. ;;
  7143. esac
  7144. ;;
  7145. newsos6)
  7146. lt_prog_compiler_pic='-KPIC'
  7147. lt_prog_compiler_static='-Bstatic'
  7148. ;;
  7149. *nto* | *qnx*)
  7150. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7151. # it will coredump.
  7152. lt_prog_compiler_pic='-fPIC -shared'
  7153. ;;
  7154. osf3* | osf4* | osf5*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. # All OSF/1 code is PIC.
  7157. lt_prog_compiler_static='-non_shared'
  7158. ;;
  7159. rdos*)
  7160. lt_prog_compiler_static='-non_shared'
  7161. ;;
  7162. solaris*)
  7163. lt_prog_compiler_pic='-KPIC'
  7164. lt_prog_compiler_static='-Bstatic'
  7165. case $cc_basename in
  7166. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7167. lt_prog_compiler_wl='-Qoption ld ';;
  7168. *)
  7169. lt_prog_compiler_wl='-Wl,';;
  7170. esac
  7171. ;;
  7172. sunos4*)
  7173. lt_prog_compiler_wl='-Qoption ld '
  7174. lt_prog_compiler_pic='-PIC'
  7175. lt_prog_compiler_static='-Bstatic'
  7176. ;;
  7177. sysv4 | sysv4.2uw2* | sysv4.3*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. lt_prog_compiler_pic='-KPIC'
  7180. lt_prog_compiler_static='-Bstatic'
  7181. ;;
  7182. sysv4*MP*)
  7183. if test -d /usr/nec ;then
  7184. lt_prog_compiler_pic='-Kconform_pic'
  7185. lt_prog_compiler_static='-Bstatic'
  7186. fi
  7187. ;;
  7188. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7189. lt_prog_compiler_wl='-Wl,'
  7190. lt_prog_compiler_pic='-KPIC'
  7191. lt_prog_compiler_static='-Bstatic'
  7192. ;;
  7193. unicos*)
  7194. lt_prog_compiler_wl='-Wl,'
  7195. lt_prog_compiler_can_build_shared=no
  7196. ;;
  7197. uts4*)
  7198. lt_prog_compiler_pic='-pic'
  7199. lt_prog_compiler_static='-Bstatic'
  7200. ;;
  7201. *)
  7202. lt_prog_compiler_can_build_shared=no
  7203. ;;
  7204. esac
  7205. fi
  7206. case $host_os in
  7207. # For platforms which do not support PIC, -DPIC is meaningless:
  7208. *djgpp*)
  7209. lt_prog_compiler_pic=
  7210. ;;
  7211. *)
  7212. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7213. ;;
  7214. esac
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7216. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7217. if ${lt_cv_prog_compiler_pic+:} false; then :
  7218. $as_echo_n "(cached) " >&6
  7219. else
  7220. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7223. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7224. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7225. #
  7226. # Check to make sure the PIC flag actually works.
  7227. #
  7228. if test -n "$lt_prog_compiler_pic"; then
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7230. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7231. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. lt_cv_prog_compiler_pic_works=no
  7235. ac_outfile=conftest.$ac_objext
  7236. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7237. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7238. # Insert the option either (1) after the last *FLAGS variable, or
  7239. # (2) before a word containing "conftest.", or (3) at the end.
  7240. # Note that $ac_compile itself does not contain backslashes and begins
  7241. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7242. # The option is referenced via a variable to avoid confusing sed.
  7243. lt_compile=`echo "$ac_compile" | $SED \
  7244. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7245. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7246. -e 's:$: $lt_compiler_flag:'`
  7247. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7248. (eval "$lt_compile" 2>conftest.err)
  7249. ac_status=$?
  7250. cat conftest.err >&5
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. if (exit $ac_status) && test -s "$ac_outfile"; then
  7253. # The compiler can only warn and ignore the option if not recognized
  7254. # So say no if there are warnings other than the usual output.
  7255. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7256. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7257. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7258. lt_cv_prog_compiler_pic_works=yes
  7259. fi
  7260. fi
  7261. $RM conftest*
  7262. fi
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7264. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7265. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7266. case $lt_prog_compiler_pic in
  7267. "" | " "*) ;;
  7268. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7269. esac
  7270. else
  7271. lt_prog_compiler_pic=
  7272. lt_prog_compiler_can_build_shared=no
  7273. fi
  7274. fi
  7275. #
  7276. # Check to make sure the static flag actually works.
  7277. #
  7278. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7280. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7281. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7282. $as_echo_n "(cached) " >&6
  7283. else
  7284. lt_cv_prog_compiler_static_works=no
  7285. save_LDFLAGS="$LDFLAGS"
  7286. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7287. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7288. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7289. # The linker can only warn and ignore the option if not recognized
  7290. # So say no if there are warnings
  7291. if test -s conftest.err; then
  7292. # Append any errors to the config.log.
  7293. cat conftest.err 1>&5
  7294. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7295. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7296. if diff conftest.exp conftest.er2 >/dev/null; then
  7297. lt_cv_prog_compiler_static_works=yes
  7298. fi
  7299. else
  7300. lt_cv_prog_compiler_static_works=yes
  7301. fi
  7302. fi
  7303. $RM -r conftest*
  7304. LDFLAGS="$save_LDFLAGS"
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7307. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7308. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7309. :
  7310. else
  7311. lt_prog_compiler_static=
  7312. fi
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7314. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7315. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. lt_cv_prog_compiler_c_o=no
  7319. $RM -r conftest 2>/dev/null
  7320. mkdir conftest
  7321. cd conftest
  7322. mkdir out
  7323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7324. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7325. # Insert the option either (1) after the last *FLAGS variable, or
  7326. # (2) before a word containing "conftest.", or (3) at the end.
  7327. # Note that $ac_compile itself does not contain backslashes and begins
  7328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7329. lt_compile=`echo "$ac_compile" | $SED \
  7330. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7331. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7332. -e 's:$: $lt_compiler_flag:'`
  7333. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7334. (eval "$lt_compile" 2>out/conftest.err)
  7335. ac_status=$?
  7336. cat out/conftest.err >&5
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7339. then
  7340. # The compiler can only warn and ignore the option if not recognized
  7341. # So say no if there are warnings
  7342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7343. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7344. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7345. lt_cv_prog_compiler_c_o=yes
  7346. fi
  7347. fi
  7348. chmod u+w . 2>&5
  7349. $RM conftest*
  7350. # SGI C++ compiler will create directory out/ii_files/ for
  7351. # template instantiation
  7352. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7353. $RM out/* && rmdir out
  7354. cd ..
  7355. $RM -r conftest
  7356. $RM conftest*
  7357. fi
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7359. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7361. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7362. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7363. $as_echo_n "(cached) " >&6
  7364. else
  7365. lt_cv_prog_compiler_c_o=no
  7366. $RM -r conftest 2>/dev/null
  7367. mkdir conftest
  7368. cd conftest
  7369. mkdir out
  7370. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7371. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7372. # Insert the option either (1) after the last *FLAGS variable, or
  7373. # (2) before a word containing "conftest.", or (3) at the end.
  7374. # Note that $ac_compile itself does not contain backslashes and begins
  7375. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7376. lt_compile=`echo "$ac_compile" | $SED \
  7377. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7378. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7379. -e 's:$: $lt_compiler_flag:'`
  7380. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7381. (eval "$lt_compile" 2>out/conftest.err)
  7382. ac_status=$?
  7383. cat out/conftest.err >&5
  7384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7385. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7386. then
  7387. # The compiler can only warn and ignore the option if not recognized
  7388. # So say no if there are warnings
  7389. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7390. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7391. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7392. lt_cv_prog_compiler_c_o=yes
  7393. fi
  7394. fi
  7395. chmod u+w . 2>&5
  7396. $RM conftest*
  7397. # SGI C++ compiler will create directory out/ii_files/ for
  7398. # template instantiation
  7399. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7400. $RM out/* && rmdir out
  7401. cd ..
  7402. $RM -r conftest
  7403. $RM conftest*
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7406. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7407. hard_links="nottested"
  7408. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7409. # do not overwrite the value of need_locks provided by the user
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7411. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7412. hard_links=yes
  7413. $RM conftest*
  7414. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7415. touch conftest.a
  7416. ln conftest.a conftest.b 2>&5 || hard_links=no
  7417. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7419. $as_echo "$hard_links" >&6; }
  7420. if test "$hard_links" = no; then
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7422. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7423. need_locks=warn
  7424. fi
  7425. else
  7426. need_locks=no
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7429. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7430. runpath_var=
  7431. allow_undefined_flag=
  7432. always_export_symbols=no
  7433. archive_cmds=
  7434. archive_expsym_cmds=
  7435. compiler_needs_object=no
  7436. enable_shared_with_static_runtimes=no
  7437. export_dynamic_flag_spec=
  7438. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7439. hardcode_automatic=no
  7440. hardcode_direct=no
  7441. hardcode_direct_absolute=no
  7442. hardcode_libdir_flag_spec=
  7443. hardcode_libdir_separator=
  7444. hardcode_minus_L=no
  7445. hardcode_shlibpath_var=unsupported
  7446. inherit_rpath=no
  7447. link_all_deplibs=unknown
  7448. module_cmds=
  7449. module_expsym_cmds=
  7450. old_archive_from_new_cmds=
  7451. old_archive_from_expsyms_cmds=
  7452. thread_safe_flag_spec=
  7453. whole_archive_flag_spec=
  7454. # include_expsyms should be a list of space-separated symbols to be *always*
  7455. # included in the symbol list
  7456. include_expsyms=
  7457. # exclude_expsyms can be an extended regexp of symbols to exclude
  7458. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7459. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7460. # as well as any symbol that contains `d'.
  7461. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7462. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7463. # platforms (ab)use it in PIC code, but their linkers get confused if
  7464. # the symbol is explicitly referenced. Since portable code cannot
  7465. # rely on this symbol name, it's probably fine to never include it in
  7466. # preloaded symbol tables.
  7467. # Exclude shared library initialization/finalization symbols.
  7468. extract_expsyms_cmds=
  7469. case $host_os in
  7470. cygwin* | mingw* | pw32* | cegcc*)
  7471. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7472. # When not using gcc, we currently assume that we are using
  7473. # Microsoft Visual C++.
  7474. if test "$GCC" != yes; then
  7475. with_gnu_ld=no
  7476. fi
  7477. ;;
  7478. interix*)
  7479. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7480. with_gnu_ld=yes
  7481. ;;
  7482. openbsd*)
  7483. with_gnu_ld=no
  7484. ;;
  7485. esac
  7486. ld_shlibs=yes
  7487. # On some targets, GNU ld is compatible enough with the native linker
  7488. # that we're better off using the native interface for both.
  7489. lt_use_gnu_ld_interface=no
  7490. if test "$with_gnu_ld" = yes; then
  7491. case $host_os in
  7492. aix*)
  7493. # The AIX port of GNU ld has always aspired to compatibility
  7494. # with the native linker. However, as the warning in the GNU ld
  7495. # block says, versions before 2.19.5* couldn't really create working
  7496. # shared libraries, regardless of the interface used.
  7497. case `$LD -v 2>&1` in
  7498. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7499. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7500. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7501. *)
  7502. lt_use_gnu_ld_interface=yes
  7503. ;;
  7504. esac
  7505. ;;
  7506. *)
  7507. lt_use_gnu_ld_interface=yes
  7508. ;;
  7509. esac
  7510. fi
  7511. if test "$lt_use_gnu_ld_interface" = yes; then
  7512. # If archive_cmds runs LD, not CC, wlarc should be empty
  7513. wlarc='${wl}'
  7514. # Set some defaults for GNU ld with shared library support. These
  7515. # are reset later if shared libraries are not supported. Putting them
  7516. # here allows them to be overridden if necessary.
  7517. runpath_var=LD_RUN_PATH
  7518. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7519. export_dynamic_flag_spec='${wl}--export-dynamic'
  7520. # ancient GNU ld didn't support --whole-archive et. al.
  7521. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7522. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7523. else
  7524. whole_archive_flag_spec=
  7525. fi
  7526. supports_anon_versioning=no
  7527. case `$LD -v 2>&1` in
  7528. *GNU\ gold*) supports_anon_versioning=yes ;;
  7529. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7530. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7531. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7532. *\ 2.11.*) ;; # other 2.11 versions
  7533. *) supports_anon_versioning=yes ;;
  7534. esac
  7535. # See if GNU ld supports shared libraries.
  7536. case $host_os in
  7537. aix[3-9]*)
  7538. # On AIX/PPC, the GNU linker is very broken
  7539. if test "$host_cpu" != ia64; then
  7540. ld_shlibs=no
  7541. cat <<_LT_EOF 1>&2
  7542. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7543. *** to be unable to reliably create shared libraries on AIX.
  7544. *** Therefore, libtool is disabling shared libraries support. If you
  7545. *** really care for shared libraries, you may want to install binutils
  7546. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7547. *** You will then need to restart the configuration process.
  7548. _LT_EOF
  7549. fi
  7550. ;;
  7551. amigaos*)
  7552. case $host_cpu in
  7553. powerpc)
  7554. # see comment about AmigaOS4 .so support
  7555. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7556. archive_expsym_cmds=''
  7557. ;;
  7558. m68k)
  7559. 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)'
  7560. hardcode_libdir_flag_spec='-L$libdir'
  7561. hardcode_minus_L=yes
  7562. ;;
  7563. esac
  7564. ;;
  7565. beos*)
  7566. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7567. allow_undefined_flag=unsupported
  7568. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7569. # support --undefined. This deserves some investigation. FIXME
  7570. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7571. else
  7572. ld_shlibs=no
  7573. fi
  7574. ;;
  7575. cygwin* | mingw* | pw32* | cegcc*)
  7576. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7577. # as there is no search path for DLLs.
  7578. hardcode_libdir_flag_spec='-L$libdir'
  7579. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7580. allow_undefined_flag=unsupported
  7581. always_export_symbols=no
  7582. enable_shared_with_static_runtimes=yes
  7583. 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'
  7584. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7585. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7586. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7587. # If the export-symbols file already is a .def file (1st line
  7588. # is EXPORTS), use it as is; otherwise, prepend...
  7589. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7590. cp $export_symbols $output_objdir/$soname.def;
  7591. else
  7592. echo EXPORTS > $output_objdir/$soname.def;
  7593. cat $export_symbols >> $output_objdir/$soname.def;
  7594. fi~
  7595. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7596. else
  7597. ld_shlibs=no
  7598. fi
  7599. ;;
  7600. haiku*)
  7601. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7602. link_all_deplibs=yes
  7603. ;;
  7604. interix[3-9]*)
  7605. hardcode_direct=no
  7606. hardcode_shlibpath_var=no
  7607. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7608. export_dynamic_flag_spec='${wl}-E'
  7609. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7610. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7611. # default) and relocated if they conflict, which is a slow very memory
  7612. # consuming and fragmenting process. To avoid this, we pick a random,
  7613. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7614. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7615. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7616. 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'
  7617. ;;
  7618. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7619. tmp_diet=no
  7620. if test "$host_os" = linux-dietlibc; then
  7621. case $cc_basename in
  7622. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7623. esac
  7624. fi
  7625. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7626. && test "$tmp_diet" = no
  7627. then
  7628. tmp_addflag=' $pic_flag'
  7629. tmp_sharedflag='-shared'
  7630. case $cc_basename,$host_cpu in
  7631. pgcc*) # Portland Group C compiler
  7632. 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'
  7633. tmp_addflag=' $pic_flag'
  7634. ;;
  7635. pgf77* | pgf90* | pgf95* | pgfortran*)
  7636. # Portland Group f77 and f90 compilers
  7637. 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'
  7638. tmp_addflag=' $pic_flag -Mnomain' ;;
  7639. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7640. tmp_addflag=' -i_dynamic' ;;
  7641. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7642. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7643. ifc* | ifort*) # Intel Fortran compiler
  7644. tmp_addflag=' -nofor_main' ;;
  7645. lf95*) # Lahey Fortran 8.1
  7646. whole_archive_flag_spec=
  7647. tmp_sharedflag='--shared' ;;
  7648. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7649. tmp_sharedflag='-qmkshrobj'
  7650. tmp_addflag= ;;
  7651. nvcc*) # Cuda Compiler Driver 2.2
  7652. 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'
  7653. compiler_needs_object=yes
  7654. ;;
  7655. esac
  7656. case `$CC -V 2>&1 | sed 5q` in
  7657. *Sun\ C*) # Sun C 5.9
  7658. 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'
  7659. compiler_needs_object=yes
  7660. tmp_sharedflag='-G' ;;
  7661. *Sun\ F*) # Sun Fortran 8.3
  7662. tmp_sharedflag='-G' ;;
  7663. esac
  7664. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7665. if test "x$supports_anon_versioning" = xyes; then
  7666. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7667. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7668. echo "local: *; };" >> $output_objdir/$libname.ver~
  7669. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7670. fi
  7671. case $cc_basename in
  7672. xlf* | bgf* | bgxlf* | mpixlf*)
  7673. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7674. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7675. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7676. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7677. if test "x$supports_anon_versioning" = xyes; then
  7678. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7679. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7680. echo "local: *; };" >> $output_objdir/$libname.ver~
  7681. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7682. fi
  7683. ;;
  7684. esac
  7685. else
  7686. ld_shlibs=no
  7687. fi
  7688. ;;
  7689. netbsd*)
  7690. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7691. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7692. wlarc=
  7693. else
  7694. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7695. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7696. fi
  7697. ;;
  7698. solaris*)
  7699. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7700. ld_shlibs=no
  7701. cat <<_LT_EOF 1>&2
  7702. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7703. *** create shared libraries on Solaris systems. Therefore, libtool
  7704. *** is disabling shared libraries support. We urge you to upgrade GNU
  7705. *** binutils to release 2.9.1 or newer. Another option is to modify
  7706. *** your PATH or compiler configuration so that the native linker is
  7707. *** used, and then restart.
  7708. _LT_EOF
  7709. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7710. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7711. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7712. else
  7713. ld_shlibs=no
  7714. fi
  7715. ;;
  7716. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7717. case `$LD -v 2>&1` in
  7718. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7719. ld_shlibs=no
  7720. cat <<_LT_EOF 1>&2
  7721. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7722. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7723. *** is disabling shared libraries support. We urge you to upgrade GNU
  7724. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7725. *** your PATH or compiler configuration so that the native linker is
  7726. *** used, and then restart.
  7727. _LT_EOF
  7728. ;;
  7729. *)
  7730. # For security reasons, it is highly recommended that you always
  7731. # use absolute paths for naming shared libraries, and exclude the
  7732. # DT_RUNPATH tag from executables and libraries. But doing so
  7733. # requires that you compile everything twice, which is a pain.
  7734. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7735. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7736. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7737. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7738. else
  7739. ld_shlibs=no
  7740. fi
  7741. ;;
  7742. esac
  7743. ;;
  7744. sunos4*)
  7745. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7746. wlarc=
  7747. hardcode_direct=yes
  7748. hardcode_shlibpath_var=no
  7749. ;;
  7750. *)
  7751. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7752. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7753. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7754. else
  7755. ld_shlibs=no
  7756. fi
  7757. ;;
  7758. esac
  7759. if test "$ld_shlibs" = no; then
  7760. runpath_var=
  7761. hardcode_libdir_flag_spec=
  7762. export_dynamic_flag_spec=
  7763. whole_archive_flag_spec=
  7764. fi
  7765. else
  7766. # PORTME fill in a description of your system's linker (not GNU ld)
  7767. case $host_os in
  7768. aix3*)
  7769. allow_undefined_flag=unsupported
  7770. always_export_symbols=yes
  7771. 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'
  7772. # Note: this linker hardcodes the directories in LIBPATH if there
  7773. # are no directories specified by -L.
  7774. hardcode_minus_L=yes
  7775. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7776. # Neither direct hardcoding nor static linking is supported with a
  7777. # broken collect2.
  7778. hardcode_direct=unsupported
  7779. fi
  7780. ;;
  7781. aix[4-9]*)
  7782. if test "$host_cpu" = ia64; then
  7783. # On IA64, the linker does run time linking by default, so we don't
  7784. # have to do anything special.
  7785. aix_use_runtimelinking=no
  7786. exp_sym_flag='-Bexport'
  7787. no_entry_flag=""
  7788. else
  7789. # If we're using GNU nm, then we don't want the "-C" option.
  7790. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7791. # Also, AIX nm treats weak defined symbols like other global
  7792. # defined symbols, whereas GNU nm marks them as "W".
  7793. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7794. 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'
  7795. else
  7796. 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'
  7797. fi
  7798. aix_use_runtimelinking=no
  7799. # Test if we are trying to use run time linking or normal
  7800. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7801. # need to do runtime linking.
  7802. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7803. for ld_flag in $LDFLAGS; do
  7804. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7805. aix_use_runtimelinking=yes
  7806. break
  7807. fi
  7808. done
  7809. ;;
  7810. esac
  7811. exp_sym_flag='-bexport'
  7812. no_entry_flag='-bnoentry'
  7813. fi
  7814. # When large executables or shared objects are built, AIX ld can
  7815. # have problems creating the table of contents. If linking a library
  7816. # or program results in "error TOC overflow" add -mminimal-toc to
  7817. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7818. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7819. archive_cmds=''
  7820. hardcode_direct=yes
  7821. hardcode_direct_absolute=yes
  7822. hardcode_libdir_separator=':'
  7823. link_all_deplibs=yes
  7824. file_list_spec='${wl}-f,'
  7825. if test "$GCC" = yes; then
  7826. case $host_os in aix4.[012]|aix4.[012].*)
  7827. # We only want to do this on AIX 4.2 and lower, the check
  7828. # below for broken collect2 doesn't work under 4.3+
  7829. collect2name=`${CC} -print-prog-name=collect2`
  7830. if test -f "$collect2name" &&
  7831. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7832. then
  7833. # We have reworked collect2
  7834. :
  7835. else
  7836. # We have old collect2
  7837. hardcode_direct=unsupported
  7838. # It fails to find uninstalled libraries when the uninstalled
  7839. # path is not listed in the libpath. Setting hardcode_minus_L
  7840. # to unsupported forces relinking
  7841. hardcode_minus_L=yes
  7842. hardcode_libdir_flag_spec='-L$libdir'
  7843. hardcode_libdir_separator=
  7844. fi
  7845. ;;
  7846. esac
  7847. shared_flag='-shared'
  7848. if test "$aix_use_runtimelinking" = yes; then
  7849. shared_flag="$shared_flag "'${wl}-G'
  7850. fi
  7851. else
  7852. # not using gcc
  7853. if test "$host_cpu" = ia64; then
  7854. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7855. # chokes on -Wl,-G. The following line is correct:
  7856. shared_flag='-G'
  7857. else
  7858. if test "$aix_use_runtimelinking" = yes; then
  7859. shared_flag='${wl}-G'
  7860. else
  7861. shared_flag='${wl}-bM:SRE'
  7862. fi
  7863. fi
  7864. fi
  7865. export_dynamic_flag_spec='${wl}-bexpall'
  7866. # It seems that -bexpall does not export symbols beginning with
  7867. # underscore (_), so it is better to generate a list of symbols to export.
  7868. always_export_symbols=yes
  7869. if test "$aix_use_runtimelinking" = yes; then
  7870. # Warning - without using the other runtime loading flags (-brtl),
  7871. # -berok will link without error, but may produce a broken library.
  7872. allow_undefined_flag='-berok'
  7873. # Determine the default libpath from the value encoded in an
  7874. # empty executable.
  7875. if test "${lt_cv_aix_libpath+set}" = set; then
  7876. aix_libpath=$lt_cv_aix_libpath
  7877. else
  7878. if ${lt_cv_aix_libpath_+:} false; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7882. /* end confdefs.h. */
  7883. int
  7884. main ()
  7885. {
  7886. ;
  7887. return 0;
  7888. }
  7889. _ACEOF
  7890. if ac_fn_c_try_link "$LINENO"; then :
  7891. lt_aix_libpath_sed='
  7892. /Import File Strings/,/^$/ {
  7893. /^0/ {
  7894. s/^0 *\([^ ]*\) *$/\1/
  7895. p
  7896. }
  7897. }'
  7898. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7899. # Check for a 64-bit object if we didn't find anything.
  7900. if test -z "$lt_cv_aix_libpath_"; then
  7901. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7902. fi
  7903. fi
  7904. rm -f core conftest.err conftest.$ac_objext \
  7905. conftest$ac_exeext conftest.$ac_ext
  7906. if test -z "$lt_cv_aix_libpath_"; then
  7907. lt_cv_aix_libpath_="/usr/lib:/lib"
  7908. fi
  7909. fi
  7910. aix_libpath=$lt_cv_aix_libpath_
  7911. fi
  7912. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7913. 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"
  7914. else
  7915. if test "$host_cpu" = ia64; then
  7916. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7917. allow_undefined_flag="-z nodefs"
  7918. 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"
  7919. else
  7920. # Determine the default libpath from the value encoded in an
  7921. # empty executable.
  7922. if test "${lt_cv_aix_libpath+set}" = set; then
  7923. aix_libpath=$lt_cv_aix_libpath
  7924. else
  7925. if ${lt_cv_aix_libpath_+:} false; then :
  7926. $as_echo_n "(cached) " >&6
  7927. else
  7928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7929. /* end confdefs.h. */
  7930. int
  7931. main ()
  7932. {
  7933. ;
  7934. return 0;
  7935. }
  7936. _ACEOF
  7937. if ac_fn_c_try_link "$LINENO"; then :
  7938. lt_aix_libpath_sed='
  7939. /Import File Strings/,/^$/ {
  7940. /^0/ {
  7941. s/^0 *\([^ ]*\) *$/\1/
  7942. p
  7943. }
  7944. }'
  7945. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7946. # Check for a 64-bit object if we didn't find anything.
  7947. if test -z "$lt_cv_aix_libpath_"; then
  7948. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7949. fi
  7950. fi
  7951. rm -f core conftest.err conftest.$ac_objext \
  7952. conftest$ac_exeext conftest.$ac_ext
  7953. if test -z "$lt_cv_aix_libpath_"; then
  7954. lt_cv_aix_libpath_="/usr/lib:/lib"
  7955. fi
  7956. fi
  7957. aix_libpath=$lt_cv_aix_libpath_
  7958. fi
  7959. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7960. # Warning - without using the other run time loading flags,
  7961. # -berok will link without error, but may produce a broken library.
  7962. no_undefined_flag=' ${wl}-bernotok'
  7963. allow_undefined_flag=' ${wl}-berok'
  7964. if test "$with_gnu_ld" = yes; then
  7965. # We only use this code for GNU lds that support --whole-archive.
  7966. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7967. else
  7968. # Exported symbols can be pulled into shared objects from archives
  7969. whole_archive_flag_spec='$convenience'
  7970. fi
  7971. archive_cmds_need_lc=yes
  7972. # This is similar to how AIX traditionally builds its shared libraries.
  7973. 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'
  7974. fi
  7975. fi
  7976. ;;
  7977. amigaos*)
  7978. case $host_cpu in
  7979. powerpc)
  7980. # see comment about AmigaOS4 .so support
  7981. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7982. archive_expsym_cmds=''
  7983. ;;
  7984. m68k)
  7985. 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)'
  7986. hardcode_libdir_flag_spec='-L$libdir'
  7987. hardcode_minus_L=yes
  7988. ;;
  7989. esac
  7990. ;;
  7991. bsdi[45]*)
  7992. export_dynamic_flag_spec=-rdynamic
  7993. ;;
  7994. cygwin* | mingw* | pw32* | cegcc*)
  7995. # When not using gcc, we currently assume that we are using
  7996. # Microsoft Visual C++.
  7997. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7998. # no search path for DLLs.
  7999. case $cc_basename in
  8000. cl*)
  8001. # Native MSVC
  8002. hardcode_libdir_flag_spec=' '
  8003. allow_undefined_flag=unsupported
  8004. always_export_symbols=yes
  8005. file_list_spec='@'
  8006. # Tell ltmain to make .lib files, not .a files.
  8007. libext=lib
  8008. # Tell ltmain to make .dll files, not .so files.
  8009. shrext_cmds=".dll"
  8010. # FIXME: Setting linknames here is a bad hack.
  8011. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8012. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8013. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8014. else
  8015. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8016. fi~
  8017. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8018. linknames='
  8019. # The linker will not automatically build a static lib if we build a DLL.
  8020. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8021. enable_shared_with_static_runtimes=yes
  8022. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8023. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8024. # Don't use ranlib
  8025. old_postinstall_cmds='chmod 644 $oldlib'
  8026. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8027. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8028. case $lt_outputfile in
  8029. *.exe|*.EXE) ;;
  8030. *)
  8031. lt_outputfile="$lt_outputfile.exe"
  8032. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8033. ;;
  8034. esac~
  8035. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8036. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8037. $RM "$lt_outputfile.manifest";
  8038. fi'
  8039. ;;
  8040. *)
  8041. # Assume MSVC wrapper
  8042. hardcode_libdir_flag_spec=' '
  8043. allow_undefined_flag=unsupported
  8044. # Tell ltmain to make .lib files, not .a files.
  8045. libext=lib
  8046. # Tell ltmain to make .dll files, not .so files.
  8047. shrext_cmds=".dll"
  8048. # FIXME: Setting linknames here is a bad hack.
  8049. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8050. # The linker will automatically build a .lib file if we build a DLL.
  8051. old_archive_from_new_cmds='true'
  8052. # FIXME: Should let the user specify the lib program.
  8053. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8054. enable_shared_with_static_runtimes=yes
  8055. ;;
  8056. esac
  8057. ;;
  8058. darwin* | rhapsody*)
  8059. archive_cmds_need_lc=no
  8060. hardcode_direct=no
  8061. hardcode_automatic=yes
  8062. hardcode_shlibpath_var=unsupported
  8063. if test "$lt_cv_ld_force_load" = "yes"; then
  8064. 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\"`'
  8065. else
  8066. whole_archive_flag_spec=''
  8067. fi
  8068. link_all_deplibs=yes
  8069. allow_undefined_flag="$_lt_dar_allow_undefined"
  8070. case $cc_basename in
  8071. ifort*) _lt_dar_can_shared=yes ;;
  8072. *) _lt_dar_can_shared=$GCC ;;
  8073. esac
  8074. if test "$_lt_dar_can_shared" = "yes"; then
  8075. output_verbose_link_cmd=func_echo_all
  8076. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8077. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8078. 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}"
  8079. 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}"
  8080. else
  8081. ld_shlibs=no
  8082. fi
  8083. ;;
  8084. dgux*)
  8085. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8086. hardcode_libdir_flag_spec='-L$libdir'
  8087. hardcode_shlibpath_var=no
  8088. ;;
  8089. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8090. # support. Future versions do this automatically, but an explicit c++rt0.o
  8091. # does not break anything, and helps significantly (at the cost of a little
  8092. # extra space).
  8093. freebsd2.2*)
  8094. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8095. hardcode_libdir_flag_spec='-R$libdir'
  8096. hardcode_direct=yes
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8100. freebsd2.*)
  8101. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8102. hardcode_direct=yes
  8103. hardcode_minus_L=yes
  8104. hardcode_shlibpath_var=no
  8105. ;;
  8106. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8107. freebsd* | dragonfly*)
  8108. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8109. hardcode_libdir_flag_spec='-R$libdir'
  8110. hardcode_direct=yes
  8111. hardcode_shlibpath_var=no
  8112. ;;
  8113. hpux9*)
  8114. if test "$GCC" = yes; then
  8115. 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'
  8116. else
  8117. 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'
  8118. fi
  8119. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8120. hardcode_libdir_separator=:
  8121. hardcode_direct=yes
  8122. # hardcode_minus_L: Not really in the search PATH,
  8123. # but as the default location of the library.
  8124. hardcode_minus_L=yes
  8125. export_dynamic_flag_spec='${wl}-E'
  8126. ;;
  8127. hpux10*)
  8128. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8129. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8130. else
  8131. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8132. fi
  8133. if test "$with_gnu_ld" = no; then
  8134. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8135. hardcode_libdir_separator=:
  8136. hardcode_direct=yes
  8137. hardcode_direct_absolute=yes
  8138. export_dynamic_flag_spec='${wl}-E'
  8139. # hardcode_minus_L: Not really in the search PATH,
  8140. # but as the default location of the library.
  8141. hardcode_minus_L=yes
  8142. fi
  8143. ;;
  8144. hpux11*)
  8145. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8146. case $host_cpu in
  8147. hppa*64*)
  8148. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8149. ;;
  8150. ia64*)
  8151. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8152. ;;
  8153. *)
  8154. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8155. ;;
  8156. esac
  8157. else
  8158. case $host_cpu in
  8159. hppa*64*)
  8160. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8161. ;;
  8162. ia64*)
  8163. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8164. ;;
  8165. *)
  8166. # Older versions of the 11.00 compiler do not understand -b yet
  8167. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8169. $as_echo_n "checking if $CC understands -b... " >&6; }
  8170. if ${lt_cv_prog_compiler__b+:} false; then :
  8171. $as_echo_n "(cached) " >&6
  8172. else
  8173. lt_cv_prog_compiler__b=no
  8174. save_LDFLAGS="$LDFLAGS"
  8175. LDFLAGS="$LDFLAGS -b"
  8176. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8177. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8178. # The linker can only warn and ignore the option if not recognized
  8179. # So say no if there are warnings
  8180. if test -s conftest.err; then
  8181. # Append any errors to the config.log.
  8182. cat conftest.err 1>&5
  8183. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8184. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8185. if diff conftest.exp conftest.er2 >/dev/null; then
  8186. lt_cv_prog_compiler__b=yes
  8187. fi
  8188. else
  8189. lt_cv_prog_compiler__b=yes
  8190. fi
  8191. fi
  8192. $RM -r conftest*
  8193. LDFLAGS="$save_LDFLAGS"
  8194. fi
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8196. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8197. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8198. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8199. else
  8200. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8201. fi
  8202. ;;
  8203. esac
  8204. fi
  8205. if test "$with_gnu_ld" = no; then
  8206. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8207. hardcode_libdir_separator=:
  8208. case $host_cpu in
  8209. hppa*64*|ia64*)
  8210. hardcode_direct=no
  8211. hardcode_shlibpath_var=no
  8212. ;;
  8213. *)
  8214. hardcode_direct=yes
  8215. hardcode_direct_absolute=yes
  8216. export_dynamic_flag_spec='${wl}-E'
  8217. # hardcode_minus_L: Not really in the search PATH,
  8218. # but as the default location of the library.
  8219. hardcode_minus_L=yes
  8220. ;;
  8221. esac
  8222. fi
  8223. ;;
  8224. irix5* | irix6* | nonstopux*)
  8225. if test "$GCC" = yes; then
  8226. 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'
  8227. # Try to use the -exported_symbol ld option, if it does not
  8228. # work, assume that -exports_file does not work either and
  8229. # implicitly export all symbols.
  8230. # This should be the same for all languages, so no per-tag cache variable.
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8232. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8233. if ${lt_cv_irix_exported_symbol+:} false; then :
  8234. $as_echo_n "(cached) " >&6
  8235. else
  8236. save_LDFLAGS="$LDFLAGS"
  8237. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8239. /* end confdefs.h. */
  8240. int foo (void) { return 0; }
  8241. _ACEOF
  8242. if ac_fn_c_try_link "$LINENO"; then :
  8243. lt_cv_irix_exported_symbol=yes
  8244. else
  8245. lt_cv_irix_exported_symbol=no
  8246. fi
  8247. rm -f core conftest.err conftest.$ac_objext \
  8248. conftest$ac_exeext conftest.$ac_ext
  8249. LDFLAGS="$save_LDFLAGS"
  8250. fi
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8252. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8253. if test "$lt_cv_irix_exported_symbol" = yes; then
  8254. 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'
  8255. fi
  8256. else
  8257. 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'
  8258. 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'
  8259. fi
  8260. archive_cmds_need_lc='no'
  8261. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8262. hardcode_libdir_separator=:
  8263. inherit_rpath=yes
  8264. link_all_deplibs=yes
  8265. ;;
  8266. netbsd*)
  8267. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8268. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8269. else
  8270. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8271. fi
  8272. hardcode_libdir_flag_spec='-R$libdir'
  8273. hardcode_direct=yes
  8274. hardcode_shlibpath_var=no
  8275. ;;
  8276. newsos6)
  8277. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8278. hardcode_direct=yes
  8279. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8280. hardcode_libdir_separator=:
  8281. hardcode_shlibpath_var=no
  8282. ;;
  8283. *nto* | *qnx*)
  8284. ;;
  8285. openbsd*)
  8286. if test -f /usr/libexec/ld.so; then
  8287. hardcode_direct=yes
  8288. hardcode_shlibpath_var=no
  8289. hardcode_direct_absolute=yes
  8290. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8291. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8292. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8293. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8294. export_dynamic_flag_spec='${wl}-E'
  8295. else
  8296. case $host_os in
  8297. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8298. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8299. hardcode_libdir_flag_spec='-R$libdir'
  8300. ;;
  8301. *)
  8302. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8303. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8304. ;;
  8305. esac
  8306. fi
  8307. else
  8308. ld_shlibs=no
  8309. fi
  8310. ;;
  8311. os2*)
  8312. hardcode_libdir_flag_spec='-L$libdir'
  8313. hardcode_minus_L=yes
  8314. allow_undefined_flag=unsupported
  8315. 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'
  8316. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8317. ;;
  8318. osf3*)
  8319. if test "$GCC" = yes; then
  8320. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8321. 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'
  8322. else
  8323. allow_undefined_flag=' -expect_unresolved \*'
  8324. 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'
  8325. fi
  8326. archive_cmds_need_lc='no'
  8327. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8328. hardcode_libdir_separator=:
  8329. ;;
  8330. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8331. if test "$GCC" = yes; then
  8332. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8333. 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'
  8334. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8335. else
  8336. allow_undefined_flag=' -expect_unresolved \*'
  8337. 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'
  8338. 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~
  8339. $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'
  8340. # Both c and cxx compiler support -rpath directly
  8341. hardcode_libdir_flag_spec='-rpath $libdir'
  8342. fi
  8343. archive_cmds_need_lc='no'
  8344. hardcode_libdir_separator=:
  8345. ;;
  8346. solaris*)
  8347. no_undefined_flag=' -z defs'
  8348. if test "$GCC" = yes; then
  8349. wlarc='${wl}'
  8350. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8352. $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'
  8353. else
  8354. case `$CC -V 2>&1` in
  8355. *"Compilers 5.0"*)
  8356. wlarc=''
  8357. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8358. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8359. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8360. ;;
  8361. *)
  8362. wlarc='${wl}'
  8363. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8364. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8365. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8366. ;;
  8367. esac
  8368. fi
  8369. hardcode_libdir_flag_spec='-R$libdir'
  8370. hardcode_shlibpath_var=no
  8371. case $host_os in
  8372. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8373. *)
  8374. # The compiler driver will combine and reorder linker options,
  8375. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8376. # but is careful enough not to reorder.
  8377. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8378. if test "$GCC" = yes; then
  8379. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8380. else
  8381. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8382. fi
  8383. ;;
  8384. esac
  8385. link_all_deplibs=yes
  8386. ;;
  8387. sunos4*)
  8388. if test "x$host_vendor" = xsequent; then
  8389. # Use $CC to link under sequent, because it throws in some extra .o
  8390. # files that make .init and .fini sections work.
  8391. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8392. else
  8393. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8394. fi
  8395. hardcode_libdir_flag_spec='-L$libdir'
  8396. hardcode_direct=yes
  8397. hardcode_minus_L=yes
  8398. hardcode_shlibpath_var=no
  8399. ;;
  8400. sysv4)
  8401. case $host_vendor in
  8402. sni)
  8403. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8404. hardcode_direct=yes # is this really true???
  8405. ;;
  8406. siemens)
  8407. ## LD is ld it makes a PLAMLIB
  8408. ## CC just makes a GrossModule.
  8409. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8410. reload_cmds='$CC -r -o $output$reload_objs'
  8411. hardcode_direct=no
  8412. ;;
  8413. motorola)
  8414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8415. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8416. ;;
  8417. esac
  8418. runpath_var='LD_RUN_PATH'
  8419. hardcode_shlibpath_var=no
  8420. ;;
  8421. sysv4.3*)
  8422. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8423. hardcode_shlibpath_var=no
  8424. export_dynamic_flag_spec='-Bexport'
  8425. ;;
  8426. sysv4*MP*)
  8427. if test -d /usr/nec; then
  8428. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8429. hardcode_shlibpath_var=no
  8430. runpath_var=LD_RUN_PATH
  8431. hardcode_runpath_var=yes
  8432. ld_shlibs=yes
  8433. fi
  8434. ;;
  8435. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8436. no_undefined_flag='${wl}-z,text'
  8437. archive_cmds_need_lc=no
  8438. hardcode_shlibpath_var=no
  8439. runpath_var='LD_RUN_PATH'
  8440. if test "$GCC" = yes; then
  8441. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. else
  8444. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. fi
  8447. ;;
  8448. sysv5* | sco3.2v5* | sco5v6*)
  8449. # Note: We can NOT use -z defs as we might desire, because we do not
  8450. # link with -lc, and that would cause any symbols used from libc to
  8451. # always be unresolved, which means just about no library would
  8452. # ever link correctly. If we're not using GNU ld we use -z text
  8453. # though, which does catch some bad symbols but isn't as heavy-handed
  8454. # as -z defs.
  8455. no_undefined_flag='${wl}-z,text'
  8456. allow_undefined_flag='${wl}-z,nodefs'
  8457. archive_cmds_need_lc=no
  8458. hardcode_shlibpath_var=no
  8459. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8460. hardcode_libdir_separator=':'
  8461. link_all_deplibs=yes
  8462. export_dynamic_flag_spec='${wl}-Bexport'
  8463. runpath_var='LD_RUN_PATH'
  8464. if test "$GCC" = yes; then
  8465. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. else
  8468. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. fi
  8471. ;;
  8472. uts4*)
  8473. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8474. hardcode_libdir_flag_spec='-L$libdir'
  8475. hardcode_shlibpath_var=no
  8476. ;;
  8477. *)
  8478. ld_shlibs=no
  8479. ;;
  8480. esac
  8481. if test x$host_vendor = xsni; then
  8482. case $host in
  8483. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8484. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8485. ;;
  8486. esac
  8487. fi
  8488. fi
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8490. $as_echo "$ld_shlibs" >&6; }
  8491. test "$ld_shlibs" = no && can_build_shared=no
  8492. with_gnu_ld=$with_gnu_ld
  8493. #
  8494. # Do we need to explicitly link libc?
  8495. #
  8496. case "x$archive_cmds_need_lc" in
  8497. x|xyes)
  8498. # Assume -lc should be added
  8499. archive_cmds_need_lc=yes
  8500. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8501. case $archive_cmds in
  8502. *'~'*)
  8503. # FIXME: we may have to deal with multi-command sequences.
  8504. ;;
  8505. '$CC '*)
  8506. # Test whether the compiler implicitly links with -lc since on some
  8507. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8508. # to ld, don't add -lc before -lgcc.
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8510. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8511. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8512. $as_echo_n "(cached) " >&6
  8513. else
  8514. $RM conftest*
  8515. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8517. (eval $ac_compile) 2>&5
  8518. ac_status=$?
  8519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8520. test $ac_status = 0; } 2>conftest.err; then
  8521. soname=conftest
  8522. lib=conftest
  8523. libobjs=conftest.$ac_objext
  8524. deplibs=
  8525. wl=$lt_prog_compiler_wl
  8526. pic_flag=$lt_prog_compiler_pic
  8527. compiler_flags=-v
  8528. linker_flags=-v
  8529. verstring=
  8530. output_objdir=.
  8531. libname=conftest
  8532. lt_save_allow_undefined_flag=$allow_undefined_flag
  8533. allow_undefined_flag=
  8534. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8535. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8536. ac_status=$?
  8537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8538. test $ac_status = 0; }
  8539. then
  8540. lt_cv_archive_cmds_need_lc=no
  8541. else
  8542. lt_cv_archive_cmds_need_lc=yes
  8543. fi
  8544. allow_undefined_flag=$lt_save_allow_undefined_flag
  8545. else
  8546. cat conftest.err 1>&5
  8547. fi
  8548. $RM conftest*
  8549. fi
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8551. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8552. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8553. ;;
  8554. esac
  8555. fi
  8556. ;;
  8557. esac
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8559. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8560. if test "$GCC" = yes; then
  8561. case $host_os in
  8562. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8563. *) lt_awk_arg="/^libraries:/" ;;
  8564. esac
  8565. case $host_os in
  8566. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8567. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8568. esac
  8569. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8570. case $lt_search_path_spec in
  8571. *\;*)
  8572. # if the path contains ";" then we assume it to be the separator
  8573. # otherwise default to the standard path separator (i.e. ":") - it is
  8574. # assumed that no part of a normal pathname contains ";" but that should
  8575. # okay in the real world where ";" in dirpaths is itself problematic.
  8576. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8577. ;;
  8578. *)
  8579. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8580. ;;
  8581. esac
  8582. # Ok, now we have the path, separated by spaces, we can step through it
  8583. # and add multilib dir if necessary...
  8584. lt_tmp_lt_search_path_spec=
  8585. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8586. # ...but if some path already ends with the multilib dir we assume
  8587. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8588. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8589. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8590. lt_multi_os_dir=
  8591. ;;
  8592. esac
  8593. for lt_sys_path in $lt_search_path_spec; do
  8594. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8595. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8596. elif test -n "$lt_multi_os_dir"; then
  8597. test -d "$lt_sys_path" && \
  8598. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8599. fi
  8600. done
  8601. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8602. BEGIN {RS=" "; FS="/|\n";} {
  8603. lt_foo="";
  8604. lt_count=0;
  8605. for (lt_i = NF; lt_i > 0; lt_i--) {
  8606. if ($lt_i != "" && $lt_i != ".") {
  8607. if ($lt_i == "..") {
  8608. lt_count++;
  8609. } else {
  8610. if (lt_count == 0) {
  8611. lt_foo="/" $lt_i lt_foo;
  8612. } else {
  8613. lt_count--;
  8614. }
  8615. }
  8616. }
  8617. }
  8618. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8619. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8620. }'`
  8621. # AWK program above erroneously prepends '/' to C:/dos/paths
  8622. # for these hosts.
  8623. case $host_os in
  8624. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8625. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8626. esac
  8627. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8628. else
  8629. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8630. fi
  8631. library_names_spec=
  8632. libname_spec='lib$name'
  8633. soname_spec=
  8634. shrext_cmds=".so"
  8635. postinstall_cmds=
  8636. postuninstall_cmds=
  8637. finish_cmds=
  8638. finish_eval=
  8639. shlibpath_var=
  8640. shlibpath_overrides_runpath=unknown
  8641. version_type=none
  8642. dynamic_linker="$host_os ld.so"
  8643. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8644. need_lib_prefix=unknown
  8645. hardcode_into_libs=no
  8646. # when you set need_version to no, make sure it does not cause -set_version
  8647. # flags to be left without arguments
  8648. need_version=unknown
  8649. case $host_os in
  8650. aix3*)
  8651. version_type=linux # correct to gnu/linux during the next big refactor
  8652. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8653. shlibpath_var=LIBPATH
  8654. # AIX 3 has no versioning support, so we append a major version to the name.
  8655. soname_spec='${libname}${release}${shared_ext}$major'
  8656. ;;
  8657. aix[4-9]*)
  8658. version_type=linux # correct to gnu/linux during the next big refactor
  8659. need_lib_prefix=no
  8660. need_version=no
  8661. hardcode_into_libs=yes
  8662. if test "$host_cpu" = ia64; then
  8663. # AIX 5 supports IA64
  8664. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8665. shlibpath_var=LD_LIBRARY_PATH
  8666. else
  8667. # With GCC up to 2.95.x, collect2 would create an import file
  8668. # for dependence libraries. The import file would start with
  8669. # the line `#! .'. This would cause the generated library to
  8670. # depend on `.', always an invalid library. This was fixed in
  8671. # development snapshots of GCC prior to 3.0.
  8672. case $host_os in
  8673. aix4 | aix4.[01] | aix4.[01].*)
  8674. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8675. echo ' yes '
  8676. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8677. :
  8678. else
  8679. can_build_shared=no
  8680. fi
  8681. ;;
  8682. esac
  8683. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8684. # soname into executable. Probably we can add versioning support to
  8685. # collect2, so additional links can be useful in future.
  8686. if test "$aix_use_runtimelinking" = yes; then
  8687. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8688. # instead of lib<name>.a to let people know that these are not
  8689. # typical AIX shared libraries.
  8690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8691. else
  8692. # We preserve .a as extension for shared libraries through AIX4.2
  8693. # and later when we are not doing run time linking.
  8694. library_names_spec='${libname}${release}.a $libname.a'
  8695. soname_spec='${libname}${release}${shared_ext}$major'
  8696. fi
  8697. shlibpath_var=LIBPATH
  8698. fi
  8699. ;;
  8700. amigaos*)
  8701. case $host_cpu in
  8702. powerpc)
  8703. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8704. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8706. ;;
  8707. m68k)
  8708. library_names_spec='$libname.ixlibrary $libname.a'
  8709. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8710. 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'
  8711. ;;
  8712. esac
  8713. ;;
  8714. beos*)
  8715. library_names_spec='${libname}${shared_ext}'
  8716. dynamic_linker="$host_os ld.so"
  8717. shlibpath_var=LIBRARY_PATH
  8718. ;;
  8719. bsdi[45]*)
  8720. version_type=linux # correct to gnu/linux during the next big refactor
  8721. need_version=no
  8722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8723. soname_spec='${libname}${release}${shared_ext}$major'
  8724. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8725. shlibpath_var=LD_LIBRARY_PATH
  8726. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8727. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8728. # the default ld.so.conf also contains /usr/contrib/lib and
  8729. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8730. # libtool to hard-code these into programs
  8731. ;;
  8732. cygwin* | mingw* | pw32* | cegcc*)
  8733. version_type=windows
  8734. shrext_cmds=".dll"
  8735. need_version=no
  8736. need_lib_prefix=no
  8737. case $GCC,$cc_basename in
  8738. yes,*)
  8739. # gcc
  8740. library_names_spec='$libname.dll.a'
  8741. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8742. postinstall_cmds='base_file=`basename \${file}`~
  8743. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8744. dldir=$destdir/`dirname \$dlpath`~
  8745. test -d \$dldir || mkdir -p \$dldir~
  8746. $install_prog $dir/$dlname \$dldir/$dlname~
  8747. chmod a+x \$dldir/$dlname~
  8748. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8749. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8750. fi'
  8751. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8752. dlpath=$dir/\$dldll~
  8753. $RM \$dlpath'
  8754. shlibpath_overrides_runpath=yes
  8755. case $host_os in
  8756. cygwin*)
  8757. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8758. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8759. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8760. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8761. ;;
  8762. mingw* | cegcc*)
  8763. # MinGW DLLs use traditional 'lib' prefix
  8764. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8765. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8766. ;;
  8767. pw32*)
  8768. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8769. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8770. ;;
  8771. esac
  8772. dynamic_linker='Win32 ld.exe'
  8773. ;;
  8774. *,cl*)
  8775. # Native MSVC
  8776. libname_spec='$name'
  8777. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8778. library_names_spec='${libname}.dll.lib'
  8779. case $build_os in
  8780. mingw*)
  8781. sys_lib_search_path_spec=
  8782. lt_save_ifs=$IFS
  8783. IFS=';'
  8784. for lt_path in $LIB
  8785. do
  8786. IFS=$lt_save_ifs
  8787. # Let DOS variable expansion print the short 8.3 style file name.
  8788. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8789. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8790. done
  8791. IFS=$lt_save_ifs
  8792. # Convert to MSYS style.
  8793. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8794. ;;
  8795. cygwin*)
  8796. # Convert to unix form, then to dos form, then back to unix form
  8797. # but this time dos style (no spaces!) so that the unix form looks
  8798. # like /cygdrive/c/PROGRA~1:/cygdr...
  8799. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8800. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8801. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8802. ;;
  8803. *)
  8804. sys_lib_search_path_spec="$LIB"
  8805. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8806. # It is most probably a Windows format PATH.
  8807. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8808. else
  8809. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8810. fi
  8811. # FIXME: find the short name or the path components, as spaces are
  8812. # common. (e.g. "Program Files" -> "PROGRA~1")
  8813. ;;
  8814. esac
  8815. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8816. postinstall_cmds='base_file=`basename \${file}`~
  8817. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8818. dldir=$destdir/`dirname \$dlpath`~
  8819. test -d \$dldir || mkdir -p \$dldir~
  8820. $install_prog $dir/$dlname \$dldir/$dlname'
  8821. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8822. dlpath=$dir/\$dldll~
  8823. $RM \$dlpath'
  8824. shlibpath_overrides_runpath=yes
  8825. dynamic_linker='Win32 link.exe'
  8826. ;;
  8827. *)
  8828. # Assume MSVC wrapper
  8829. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8830. dynamic_linker='Win32 ld.exe'
  8831. ;;
  8832. esac
  8833. # FIXME: first we should search . and the directory the executable is in
  8834. shlibpath_var=PATH
  8835. ;;
  8836. darwin* | rhapsody*)
  8837. dynamic_linker="$host_os dyld"
  8838. version_type=darwin
  8839. need_lib_prefix=no
  8840. need_version=no
  8841. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8842. soname_spec='${libname}${release}${major}$shared_ext'
  8843. shlibpath_overrides_runpath=yes
  8844. shlibpath_var=DYLD_LIBRARY_PATH
  8845. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8846. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8847. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8848. ;;
  8849. dgux*)
  8850. version_type=linux # correct to gnu/linux during the next big refactor
  8851. need_lib_prefix=no
  8852. need_version=no
  8853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8854. soname_spec='${libname}${release}${shared_ext}$major'
  8855. shlibpath_var=LD_LIBRARY_PATH
  8856. ;;
  8857. freebsd* | dragonfly*)
  8858. # DragonFly does not have aout. When/if they implement a new
  8859. # versioning mechanism, adjust this.
  8860. if test -x /usr/bin/objformat; then
  8861. objformat=`/usr/bin/objformat`
  8862. else
  8863. case $host_os in
  8864. freebsd[23].*) objformat=aout ;;
  8865. *) objformat=elf ;;
  8866. esac
  8867. fi
  8868. version_type=freebsd-$objformat
  8869. case $version_type in
  8870. freebsd-elf*)
  8871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8872. need_version=no
  8873. need_lib_prefix=no
  8874. ;;
  8875. freebsd-*)
  8876. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8877. need_version=yes
  8878. ;;
  8879. esac
  8880. shlibpath_var=LD_LIBRARY_PATH
  8881. case $host_os in
  8882. freebsd2.*)
  8883. shlibpath_overrides_runpath=yes
  8884. ;;
  8885. freebsd3.[01]* | freebsdelf3.[01]*)
  8886. shlibpath_overrides_runpath=yes
  8887. hardcode_into_libs=yes
  8888. ;;
  8889. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8890. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8891. shlibpath_overrides_runpath=no
  8892. hardcode_into_libs=yes
  8893. ;;
  8894. *) # from 4.6 on, and DragonFly
  8895. shlibpath_overrides_runpath=yes
  8896. hardcode_into_libs=yes
  8897. ;;
  8898. esac
  8899. ;;
  8900. gnu*)
  8901. version_type=linux # correct to gnu/linux during the next big refactor
  8902. need_lib_prefix=no
  8903. need_version=no
  8904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8905. soname_spec='${libname}${release}${shared_ext}$major'
  8906. shlibpath_var=LD_LIBRARY_PATH
  8907. shlibpath_overrides_runpath=no
  8908. hardcode_into_libs=yes
  8909. ;;
  8910. haiku*)
  8911. version_type=linux # correct to gnu/linux during the next big refactor
  8912. need_lib_prefix=no
  8913. need_version=no
  8914. dynamic_linker="$host_os runtime_loader"
  8915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8916. soname_spec='${libname}${release}${shared_ext}$major'
  8917. shlibpath_var=LIBRARY_PATH
  8918. shlibpath_overrides_runpath=yes
  8919. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8920. hardcode_into_libs=yes
  8921. ;;
  8922. hpux9* | hpux10* | hpux11*)
  8923. # Give a soname corresponding to the major version so that dld.sl refuses to
  8924. # link against other versions.
  8925. version_type=sunos
  8926. need_lib_prefix=no
  8927. need_version=no
  8928. case $host_cpu in
  8929. ia64*)
  8930. shrext_cmds='.so'
  8931. hardcode_into_libs=yes
  8932. dynamic_linker="$host_os dld.so"
  8933. shlibpath_var=LD_LIBRARY_PATH
  8934. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8936. soname_spec='${libname}${release}${shared_ext}$major'
  8937. if test "X$HPUX_IA64_MODE" = X32; then
  8938. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8939. else
  8940. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8941. fi
  8942. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8943. ;;
  8944. hppa*64*)
  8945. shrext_cmds='.sl'
  8946. hardcode_into_libs=yes
  8947. dynamic_linker="$host_os dld.sl"
  8948. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8949. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8953. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8954. ;;
  8955. *)
  8956. shrext_cmds='.sl'
  8957. dynamic_linker="$host_os dld.sl"
  8958. shlibpath_var=SHLIB_PATH
  8959. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  8963. esac
  8964. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8965. postinstall_cmds='chmod 555 $lib'
  8966. # or fails outright, so override atomically:
  8967. install_override_mode=555
  8968. ;;
  8969. interix[3-9]*)
  8970. version_type=linux # correct to gnu/linux during the next big refactor
  8971. need_lib_prefix=no
  8972. need_version=no
  8973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8974. soname_spec='${libname}${release}${shared_ext}$major'
  8975. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8976. shlibpath_var=LD_LIBRARY_PATH
  8977. shlibpath_overrides_runpath=no
  8978. hardcode_into_libs=yes
  8979. ;;
  8980. irix5* | irix6* | nonstopux*)
  8981. case $host_os in
  8982. nonstopux*) version_type=nonstopux ;;
  8983. *)
  8984. if test "$lt_cv_prog_gnu_ld" = yes; then
  8985. version_type=linux # correct to gnu/linux during the next big refactor
  8986. else
  8987. version_type=irix
  8988. fi ;;
  8989. esac
  8990. need_lib_prefix=no
  8991. need_version=no
  8992. soname_spec='${libname}${release}${shared_ext}$major'
  8993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8994. case $host_os in
  8995. irix5* | nonstopux*)
  8996. libsuff= shlibsuff=
  8997. ;;
  8998. *)
  8999. case $LD in # libtool.m4 will add one of these switches to LD
  9000. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9001. libsuff= shlibsuff= libmagic=32-bit;;
  9002. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9003. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9004. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9005. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9006. *) libsuff= shlibsuff= libmagic=never-match;;
  9007. esac
  9008. ;;
  9009. esac
  9010. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9011. shlibpath_overrides_runpath=no
  9012. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9013. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9014. hardcode_into_libs=yes
  9015. ;;
  9016. # No shared lib support for Linux oldld, aout, or coff.
  9017. linux*oldld* | linux*aout* | linux*coff*)
  9018. dynamic_linker=no
  9019. ;;
  9020. # This must be glibc/ELF.
  9021. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9022. version_type=linux # correct to gnu/linux during the next big refactor
  9023. need_lib_prefix=no
  9024. need_version=no
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9026. soname_spec='${libname}${release}${shared_ext}$major'
  9027. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9028. shlibpath_var=LD_LIBRARY_PATH
  9029. shlibpath_overrides_runpath=no
  9030. # Some binutils ld are patched to set DT_RUNPATH
  9031. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9032. $as_echo_n "(cached) " >&6
  9033. else
  9034. lt_cv_shlibpath_overrides_runpath=no
  9035. save_LDFLAGS=$LDFLAGS
  9036. save_libdir=$libdir
  9037. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9038. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9040. /* end confdefs.h. */
  9041. int
  9042. main ()
  9043. {
  9044. ;
  9045. return 0;
  9046. }
  9047. _ACEOF
  9048. if ac_fn_c_try_link "$LINENO"; then :
  9049. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9050. lt_cv_shlibpath_overrides_runpath=yes
  9051. fi
  9052. fi
  9053. rm -f core conftest.err conftest.$ac_objext \
  9054. conftest$ac_exeext conftest.$ac_ext
  9055. LDFLAGS=$save_LDFLAGS
  9056. libdir=$save_libdir
  9057. fi
  9058. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9059. # This implies no fast_install, which is unacceptable.
  9060. # Some rework will be needed to allow for fast_install
  9061. # before this can be enabled.
  9062. hardcode_into_libs=yes
  9063. # Append ld.so.conf contents to the search path
  9064. if test -f /etc/ld.so.conf; then
  9065. 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' ' '`
  9066. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9067. fi
  9068. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9069. # powerpc, because MkLinux only supported shared libraries with the
  9070. # GNU dynamic linker. Since this was broken with cross compilers,
  9071. # most powerpc-linux boxes support dynamic linking these days and
  9072. # people can always --disable-shared, the test was removed, and we
  9073. # assume the GNU/Linux dynamic linker is in use.
  9074. dynamic_linker='GNU/Linux ld.so'
  9075. ;;
  9076. netbsd*)
  9077. version_type=sunos
  9078. need_lib_prefix=no
  9079. need_version=no
  9080. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9082. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9083. dynamic_linker='NetBSD (a.out) ld.so'
  9084. else
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9086. soname_spec='${libname}${release}${shared_ext}$major'
  9087. dynamic_linker='NetBSD ld.elf_so'
  9088. fi
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. shlibpath_overrides_runpath=yes
  9091. hardcode_into_libs=yes
  9092. ;;
  9093. newsos6)
  9094. version_type=linux # correct to gnu/linux during the next big refactor
  9095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9096. shlibpath_var=LD_LIBRARY_PATH
  9097. shlibpath_overrides_runpath=yes
  9098. ;;
  9099. *nto* | *qnx*)
  9100. version_type=qnx
  9101. need_lib_prefix=no
  9102. need_version=no
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9104. soname_spec='${libname}${release}${shared_ext}$major'
  9105. shlibpath_var=LD_LIBRARY_PATH
  9106. shlibpath_overrides_runpath=no
  9107. hardcode_into_libs=yes
  9108. dynamic_linker='ldqnx.so'
  9109. ;;
  9110. openbsd*)
  9111. version_type=sunos
  9112. sys_lib_dlsearch_path_spec="/usr/lib"
  9113. need_lib_prefix=no
  9114. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9115. case $host_os in
  9116. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9117. *) need_version=no ;;
  9118. esac
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9120. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9123. case $host_os in
  9124. openbsd2.[89] | openbsd2.[89].*)
  9125. shlibpath_overrides_runpath=no
  9126. ;;
  9127. *)
  9128. shlibpath_overrides_runpath=yes
  9129. ;;
  9130. esac
  9131. else
  9132. shlibpath_overrides_runpath=yes
  9133. fi
  9134. ;;
  9135. os2*)
  9136. libname_spec='$name'
  9137. shrext_cmds=".dll"
  9138. need_lib_prefix=no
  9139. library_names_spec='$libname${shared_ext} $libname.a'
  9140. dynamic_linker='OS/2 ld.exe'
  9141. shlibpath_var=LIBPATH
  9142. ;;
  9143. osf3* | osf4* | osf5*)
  9144. version_type=osf
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. soname_spec='${libname}${release}${shared_ext}$major'
  9148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9151. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9152. ;;
  9153. rdos*)
  9154. dynamic_linker=no
  9155. ;;
  9156. solaris*)
  9157. version_type=linux # correct to gnu/linux during the next big refactor
  9158. need_lib_prefix=no
  9159. need_version=no
  9160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9161. soname_spec='${libname}${release}${shared_ext}$major'
  9162. shlibpath_var=LD_LIBRARY_PATH
  9163. shlibpath_overrides_runpath=yes
  9164. hardcode_into_libs=yes
  9165. # ldd complains unless libraries are executable
  9166. postinstall_cmds='chmod +x $lib'
  9167. ;;
  9168. sunos4*)
  9169. version_type=sunos
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9171. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9172. shlibpath_var=LD_LIBRARY_PATH
  9173. shlibpath_overrides_runpath=yes
  9174. if test "$with_gnu_ld" = yes; then
  9175. need_lib_prefix=no
  9176. fi
  9177. need_version=yes
  9178. ;;
  9179. sysv4 | sysv4.3*)
  9180. version_type=linux # correct to gnu/linux during the next big refactor
  9181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9182. soname_spec='${libname}${release}${shared_ext}$major'
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. case $host_vendor in
  9185. sni)
  9186. shlibpath_overrides_runpath=no
  9187. need_lib_prefix=no
  9188. runpath_var=LD_RUN_PATH
  9189. ;;
  9190. siemens)
  9191. need_lib_prefix=no
  9192. ;;
  9193. motorola)
  9194. need_lib_prefix=no
  9195. need_version=no
  9196. shlibpath_overrides_runpath=no
  9197. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9198. ;;
  9199. esac
  9200. ;;
  9201. sysv4*MP*)
  9202. if test -d /usr/nec ;then
  9203. version_type=linux # correct to gnu/linux during the next big refactor
  9204. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9205. soname_spec='$libname${shared_ext}.$major'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. fi
  9208. ;;
  9209. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9210. version_type=freebsd-elf
  9211. need_lib_prefix=no
  9212. need_version=no
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9214. soname_spec='${libname}${release}${shared_ext}$major'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. shlibpath_overrides_runpath=yes
  9217. hardcode_into_libs=yes
  9218. if test "$with_gnu_ld" = yes; then
  9219. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9220. else
  9221. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9222. case $host_os in
  9223. sco3.2v5*)
  9224. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9225. ;;
  9226. esac
  9227. fi
  9228. sys_lib_dlsearch_path_spec='/usr/lib'
  9229. ;;
  9230. tpf*)
  9231. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9232. version_type=linux # correct to gnu/linux during the next big refactor
  9233. need_lib_prefix=no
  9234. need_version=no
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9236. shlibpath_var=LD_LIBRARY_PATH
  9237. shlibpath_overrides_runpath=no
  9238. hardcode_into_libs=yes
  9239. ;;
  9240. uts4*)
  9241. version_type=linux # correct to gnu/linux during the next big refactor
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9243. soname_spec='${libname}${release}${shared_ext}$major'
  9244. shlibpath_var=LD_LIBRARY_PATH
  9245. ;;
  9246. *)
  9247. dynamic_linker=no
  9248. ;;
  9249. esac
  9250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9251. $as_echo "$dynamic_linker" >&6; }
  9252. test "$dynamic_linker" = no && can_build_shared=no
  9253. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9254. if test "$GCC" = yes; then
  9255. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9256. fi
  9257. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9258. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9259. fi
  9260. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9261. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9262. fi
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9264. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9265. hardcode_action=
  9266. if test -n "$hardcode_libdir_flag_spec" ||
  9267. test -n "$runpath_var" ||
  9268. test "X$hardcode_automatic" = "Xyes" ; then
  9269. # We can hardcode non-existent directories.
  9270. if test "$hardcode_direct" != no &&
  9271. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9272. # have to relink, otherwise we might link with an installed library
  9273. # when we should be linking with a yet-to-be-installed one
  9274. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9275. test "$hardcode_minus_L" != no; then
  9276. # Linking always hardcodes the temporary library directory.
  9277. hardcode_action=relink
  9278. else
  9279. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9280. hardcode_action=immediate
  9281. fi
  9282. else
  9283. # We cannot hardcode anything, or else we can only hardcode existing
  9284. # directories.
  9285. hardcode_action=unsupported
  9286. fi
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9288. $as_echo "$hardcode_action" >&6; }
  9289. if test "$hardcode_action" = relink ||
  9290. test "$inherit_rpath" = yes; then
  9291. # Fast installation is not supported
  9292. enable_fast_install=no
  9293. elif test "$shlibpath_overrides_runpath" = yes ||
  9294. test "$enable_shared" = no; then
  9295. # Fast installation is not necessary
  9296. enable_fast_install=needless
  9297. fi
  9298. if test "x$enable_dlopen" != xyes; then
  9299. enable_dlopen=unknown
  9300. enable_dlopen_self=unknown
  9301. enable_dlopen_self_static=unknown
  9302. else
  9303. lt_cv_dlopen=no
  9304. lt_cv_dlopen_libs=
  9305. case $host_os in
  9306. beos*)
  9307. lt_cv_dlopen="load_add_on"
  9308. lt_cv_dlopen_libs=
  9309. lt_cv_dlopen_self=yes
  9310. ;;
  9311. mingw* | pw32* | cegcc*)
  9312. lt_cv_dlopen="LoadLibrary"
  9313. lt_cv_dlopen_libs=
  9314. ;;
  9315. cygwin*)
  9316. lt_cv_dlopen="dlopen"
  9317. lt_cv_dlopen_libs=
  9318. ;;
  9319. darwin*)
  9320. # if libdl is installed we need to link against it
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9322. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9323. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9324. $as_echo_n "(cached) " >&6
  9325. else
  9326. ac_check_lib_save_LIBS=$LIBS
  9327. LIBS="-ldl $LIBS"
  9328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9329. /* end confdefs.h. */
  9330. /* Override any GCC internal prototype to avoid an error.
  9331. Use char because int might match the return type of a GCC
  9332. builtin and then its argument prototype would still apply. */
  9333. #ifdef __cplusplus
  9334. extern "C"
  9335. #endif
  9336. char dlopen ();
  9337. int
  9338. main ()
  9339. {
  9340. return dlopen ();
  9341. ;
  9342. return 0;
  9343. }
  9344. _ACEOF
  9345. if ac_fn_c_try_link "$LINENO"; then :
  9346. ac_cv_lib_dl_dlopen=yes
  9347. else
  9348. ac_cv_lib_dl_dlopen=no
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext \
  9351. conftest$ac_exeext conftest.$ac_ext
  9352. LIBS=$ac_check_lib_save_LIBS
  9353. fi
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9355. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9356. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9357. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9358. else
  9359. lt_cv_dlopen="dyld"
  9360. lt_cv_dlopen_libs=
  9361. lt_cv_dlopen_self=yes
  9362. fi
  9363. ;;
  9364. *)
  9365. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9366. if test "x$ac_cv_func_shl_load" = xyes; then :
  9367. lt_cv_dlopen="shl_load"
  9368. else
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9370. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9371. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9372. $as_echo_n "(cached) " >&6
  9373. else
  9374. ac_check_lib_save_LIBS=$LIBS
  9375. LIBS="-ldld $LIBS"
  9376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9377. /* end confdefs.h. */
  9378. /* Override any GCC internal prototype to avoid an error.
  9379. Use char because int might match the return type of a GCC
  9380. builtin and then its argument prototype would still apply. */
  9381. #ifdef __cplusplus
  9382. extern "C"
  9383. #endif
  9384. char shl_load ();
  9385. int
  9386. main ()
  9387. {
  9388. return shl_load ();
  9389. ;
  9390. return 0;
  9391. }
  9392. _ACEOF
  9393. if ac_fn_c_try_link "$LINENO"; then :
  9394. ac_cv_lib_dld_shl_load=yes
  9395. else
  9396. ac_cv_lib_dld_shl_load=no
  9397. fi
  9398. rm -f core conftest.err conftest.$ac_objext \
  9399. conftest$ac_exeext conftest.$ac_ext
  9400. LIBS=$ac_check_lib_save_LIBS
  9401. fi
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9403. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9404. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9405. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9406. else
  9407. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9408. if test "x$ac_cv_func_dlopen" = xyes; then :
  9409. lt_cv_dlopen="dlopen"
  9410. else
  9411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9412. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9413. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9414. $as_echo_n "(cached) " >&6
  9415. else
  9416. ac_check_lib_save_LIBS=$LIBS
  9417. LIBS="-ldl $LIBS"
  9418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9419. /* end confdefs.h. */
  9420. /* Override any GCC internal prototype to avoid an error.
  9421. Use char because int might match the return type of a GCC
  9422. builtin and then its argument prototype would still apply. */
  9423. #ifdef __cplusplus
  9424. extern "C"
  9425. #endif
  9426. char dlopen ();
  9427. int
  9428. main ()
  9429. {
  9430. return dlopen ();
  9431. ;
  9432. return 0;
  9433. }
  9434. _ACEOF
  9435. if ac_fn_c_try_link "$LINENO"; then :
  9436. ac_cv_lib_dl_dlopen=yes
  9437. else
  9438. ac_cv_lib_dl_dlopen=no
  9439. fi
  9440. rm -f core conftest.err conftest.$ac_objext \
  9441. conftest$ac_exeext conftest.$ac_ext
  9442. LIBS=$ac_check_lib_save_LIBS
  9443. fi
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9445. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9446. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9447. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9448. else
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9450. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9451. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9452. $as_echo_n "(cached) " >&6
  9453. else
  9454. ac_check_lib_save_LIBS=$LIBS
  9455. LIBS="-lsvld $LIBS"
  9456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9457. /* end confdefs.h. */
  9458. /* Override any GCC internal prototype to avoid an error.
  9459. Use char because int might match the return type of a GCC
  9460. builtin and then its argument prototype would still apply. */
  9461. #ifdef __cplusplus
  9462. extern "C"
  9463. #endif
  9464. char dlopen ();
  9465. int
  9466. main ()
  9467. {
  9468. return dlopen ();
  9469. ;
  9470. return 0;
  9471. }
  9472. _ACEOF
  9473. if ac_fn_c_try_link "$LINENO"; then :
  9474. ac_cv_lib_svld_dlopen=yes
  9475. else
  9476. ac_cv_lib_svld_dlopen=no
  9477. fi
  9478. rm -f core conftest.err conftest.$ac_objext \
  9479. conftest$ac_exeext conftest.$ac_ext
  9480. LIBS=$ac_check_lib_save_LIBS
  9481. fi
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9483. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9484. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9485. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9486. else
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9488. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9489. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. ac_check_lib_save_LIBS=$LIBS
  9493. LIBS="-ldld $LIBS"
  9494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9495. /* end confdefs.h. */
  9496. /* Override any GCC internal prototype to avoid an error.
  9497. Use char because int might match the return type of a GCC
  9498. builtin and then its argument prototype would still apply. */
  9499. #ifdef __cplusplus
  9500. extern "C"
  9501. #endif
  9502. char dld_link ();
  9503. int
  9504. main ()
  9505. {
  9506. return dld_link ();
  9507. ;
  9508. return 0;
  9509. }
  9510. _ACEOF
  9511. if ac_fn_c_try_link "$LINENO"; then :
  9512. ac_cv_lib_dld_dld_link=yes
  9513. else
  9514. ac_cv_lib_dld_dld_link=no
  9515. fi
  9516. rm -f core conftest.err conftest.$ac_objext \
  9517. conftest$ac_exeext conftest.$ac_ext
  9518. LIBS=$ac_check_lib_save_LIBS
  9519. fi
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9521. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9522. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9523. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9524. fi
  9525. fi
  9526. fi
  9527. fi
  9528. fi
  9529. fi
  9530. ;;
  9531. esac
  9532. if test "x$lt_cv_dlopen" != xno; then
  9533. enable_dlopen=yes
  9534. else
  9535. enable_dlopen=no
  9536. fi
  9537. case $lt_cv_dlopen in
  9538. dlopen)
  9539. save_CPPFLAGS="$CPPFLAGS"
  9540. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9541. save_LDFLAGS="$LDFLAGS"
  9542. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9543. save_LIBS="$LIBS"
  9544. LIBS="$lt_cv_dlopen_libs $LIBS"
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9546. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9547. if ${lt_cv_dlopen_self+:} false; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. if test "$cross_compiling" = yes; then :
  9551. lt_cv_dlopen_self=cross
  9552. else
  9553. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9554. lt_status=$lt_dlunknown
  9555. cat > conftest.$ac_ext <<_LT_EOF
  9556. #line $LINENO "configure"
  9557. #include "confdefs.h"
  9558. #if HAVE_DLFCN_H
  9559. #include <dlfcn.h>
  9560. #endif
  9561. #include <stdio.h>
  9562. #ifdef RTLD_GLOBAL
  9563. # define LT_DLGLOBAL RTLD_GLOBAL
  9564. #else
  9565. # ifdef DL_GLOBAL
  9566. # define LT_DLGLOBAL DL_GLOBAL
  9567. # else
  9568. # define LT_DLGLOBAL 0
  9569. # endif
  9570. #endif
  9571. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9572. find out it does not work in some platform. */
  9573. #ifndef LT_DLLAZY_OR_NOW
  9574. # ifdef RTLD_LAZY
  9575. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9576. # else
  9577. # ifdef DL_LAZY
  9578. # define LT_DLLAZY_OR_NOW DL_LAZY
  9579. # else
  9580. # ifdef RTLD_NOW
  9581. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9582. # else
  9583. # ifdef DL_NOW
  9584. # define LT_DLLAZY_OR_NOW DL_NOW
  9585. # else
  9586. # define LT_DLLAZY_OR_NOW 0
  9587. # endif
  9588. # endif
  9589. # endif
  9590. # endif
  9591. #endif
  9592. /* When -fvisbility=hidden is used, assume the code has been annotated
  9593. correspondingly for the symbols needed. */
  9594. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9595. int fnord () __attribute__((visibility("default")));
  9596. #endif
  9597. int fnord () { return 42; }
  9598. int main ()
  9599. {
  9600. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9601. int status = $lt_dlunknown;
  9602. if (self)
  9603. {
  9604. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9605. else
  9606. {
  9607. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9608. else puts (dlerror ());
  9609. }
  9610. /* dlclose (self); */
  9611. }
  9612. else
  9613. puts (dlerror ());
  9614. return status;
  9615. }
  9616. _LT_EOF
  9617. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9618. (eval $ac_link) 2>&5
  9619. ac_status=$?
  9620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9621. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9622. (./conftest; exit; ) >&5 2>/dev/null
  9623. lt_status=$?
  9624. case x$lt_status in
  9625. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9626. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9627. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9628. esac
  9629. else :
  9630. # compilation failed
  9631. lt_cv_dlopen_self=no
  9632. fi
  9633. fi
  9634. rm -fr conftest*
  9635. fi
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9637. $as_echo "$lt_cv_dlopen_self" >&6; }
  9638. if test "x$lt_cv_dlopen_self" = xyes; then
  9639. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9641. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9642. if ${lt_cv_dlopen_self_static+:} false; then :
  9643. $as_echo_n "(cached) " >&6
  9644. else
  9645. if test "$cross_compiling" = yes; then :
  9646. lt_cv_dlopen_self_static=cross
  9647. else
  9648. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9649. lt_status=$lt_dlunknown
  9650. cat > conftest.$ac_ext <<_LT_EOF
  9651. #line $LINENO "configure"
  9652. #include "confdefs.h"
  9653. #if HAVE_DLFCN_H
  9654. #include <dlfcn.h>
  9655. #endif
  9656. #include <stdio.h>
  9657. #ifdef RTLD_GLOBAL
  9658. # define LT_DLGLOBAL RTLD_GLOBAL
  9659. #else
  9660. # ifdef DL_GLOBAL
  9661. # define LT_DLGLOBAL DL_GLOBAL
  9662. # else
  9663. # define LT_DLGLOBAL 0
  9664. # endif
  9665. #endif
  9666. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9667. find out it does not work in some platform. */
  9668. #ifndef LT_DLLAZY_OR_NOW
  9669. # ifdef RTLD_LAZY
  9670. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9671. # else
  9672. # ifdef DL_LAZY
  9673. # define LT_DLLAZY_OR_NOW DL_LAZY
  9674. # else
  9675. # ifdef RTLD_NOW
  9676. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9677. # else
  9678. # ifdef DL_NOW
  9679. # define LT_DLLAZY_OR_NOW DL_NOW
  9680. # else
  9681. # define LT_DLLAZY_OR_NOW 0
  9682. # endif
  9683. # endif
  9684. # endif
  9685. # endif
  9686. #endif
  9687. /* When -fvisbility=hidden is used, assume the code has been annotated
  9688. correspondingly for the symbols needed. */
  9689. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9690. int fnord () __attribute__((visibility("default")));
  9691. #endif
  9692. int fnord () { return 42; }
  9693. int main ()
  9694. {
  9695. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9696. int status = $lt_dlunknown;
  9697. if (self)
  9698. {
  9699. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9700. else
  9701. {
  9702. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9703. else puts (dlerror ());
  9704. }
  9705. /* dlclose (self); */
  9706. }
  9707. else
  9708. puts (dlerror ());
  9709. return status;
  9710. }
  9711. _LT_EOF
  9712. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9713. (eval $ac_link) 2>&5
  9714. ac_status=$?
  9715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9716. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9717. (./conftest; exit; ) >&5 2>/dev/null
  9718. lt_status=$?
  9719. case x$lt_status in
  9720. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9721. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9722. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9723. esac
  9724. else :
  9725. # compilation failed
  9726. lt_cv_dlopen_self_static=no
  9727. fi
  9728. fi
  9729. rm -fr conftest*
  9730. fi
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9732. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9733. fi
  9734. CPPFLAGS="$save_CPPFLAGS"
  9735. LDFLAGS="$save_LDFLAGS"
  9736. LIBS="$save_LIBS"
  9737. ;;
  9738. esac
  9739. case $lt_cv_dlopen_self in
  9740. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9741. *) enable_dlopen_self=unknown ;;
  9742. esac
  9743. case $lt_cv_dlopen_self_static in
  9744. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9745. *) enable_dlopen_self_static=unknown ;;
  9746. esac
  9747. fi
  9748. striplib=
  9749. old_striplib=
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9751. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9752. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9753. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9754. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9756. $as_echo "yes" >&6; }
  9757. else
  9758. # FIXME - insert some real tests, host_os isn't really good enough
  9759. case $host_os in
  9760. darwin*)
  9761. if test -n "$STRIP" ; then
  9762. striplib="$STRIP -x"
  9763. old_striplib="$STRIP -S"
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9765. $as_echo "yes" >&6; }
  9766. else
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9768. $as_echo "no" >&6; }
  9769. fi
  9770. ;;
  9771. *)
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9773. $as_echo "no" >&6; }
  9774. ;;
  9775. esac
  9776. fi
  9777. # Report which library types will actually be built
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9779. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9781. $as_echo "$can_build_shared" >&6; }
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9783. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9784. test "$can_build_shared" = "no" && enable_shared=no
  9785. # On AIX, shared libraries and static libraries use the same namespace, and
  9786. # are all built from PIC.
  9787. case $host_os in
  9788. aix3*)
  9789. test "$enable_shared" = yes && enable_static=no
  9790. if test -n "$RANLIB"; then
  9791. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9792. postinstall_cmds='$RANLIB $lib'
  9793. fi
  9794. ;;
  9795. aix[4-9]*)
  9796. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9797. test "$enable_shared" = yes && enable_static=no
  9798. fi
  9799. ;;
  9800. esac
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9802. $as_echo "$enable_shared" >&6; }
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9804. $as_echo_n "checking whether to build static libraries... " >&6; }
  9805. # Make sure either enable_shared or enable_static is yes.
  9806. test "$enable_shared" = yes || enable_static=yes
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9808. $as_echo "$enable_static" >&6; }
  9809. fi
  9810. ac_ext=c
  9811. ac_cpp='$CPP $CPPFLAGS'
  9812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9815. CC="$lt_save_CC"
  9816. ac_config_commands="$ac_config_commands libtool"
  9817. # Only expand once:
  9818. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9819. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9820. LT_REVISION=$SDL_INTERFACE_AGE
  9821. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9822. ac_ext=c
  9823. ac_cpp='$CPP $CPPFLAGS'
  9824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9827. if test -n "$ac_tool_prefix"; then
  9828. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9829. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9831. $as_echo_n "checking for $ac_word... " >&6; }
  9832. if ${ac_cv_prog_CC+:} false; then :
  9833. $as_echo_n "(cached) " >&6
  9834. else
  9835. if test -n "$CC"; then
  9836. ac_cv_prog_CC="$CC" # Let the user override the test.
  9837. else
  9838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9839. for as_dir in $PATH
  9840. do
  9841. IFS=$as_save_IFS
  9842. test -z "$as_dir" && as_dir=.
  9843. for ac_exec_ext in '' $ac_executable_extensions; do
  9844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9845. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9847. break 2
  9848. fi
  9849. done
  9850. done
  9851. IFS=$as_save_IFS
  9852. fi
  9853. fi
  9854. CC=$ac_cv_prog_CC
  9855. if test -n "$CC"; then
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9857. $as_echo "$CC" >&6; }
  9858. else
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9860. $as_echo "no" >&6; }
  9861. fi
  9862. fi
  9863. if test -z "$ac_cv_prog_CC"; then
  9864. ac_ct_CC=$CC
  9865. # Extract the first word of "gcc", so it can be a program name with args.
  9866. set dummy gcc; ac_word=$2
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9868. $as_echo_n "checking for $ac_word... " >&6; }
  9869. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9870. $as_echo_n "(cached) " >&6
  9871. else
  9872. if test -n "$ac_ct_CC"; then
  9873. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9874. else
  9875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9876. for as_dir in $PATH
  9877. do
  9878. IFS=$as_save_IFS
  9879. test -z "$as_dir" && as_dir=.
  9880. for ac_exec_ext in '' $ac_executable_extensions; do
  9881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9882. ac_cv_prog_ac_ct_CC="gcc"
  9883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9884. break 2
  9885. fi
  9886. done
  9887. done
  9888. IFS=$as_save_IFS
  9889. fi
  9890. fi
  9891. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9892. if test -n "$ac_ct_CC"; then
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9894. $as_echo "$ac_ct_CC" >&6; }
  9895. else
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9897. $as_echo "no" >&6; }
  9898. fi
  9899. if test "x$ac_ct_CC" = x; then
  9900. CC=""
  9901. else
  9902. case $cross_compiling:$ac_tool_warned in
  9903. yes:)
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9905. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9906. ac_tool_warned=yes ;;
  9907. esac
  9908. CC=$ac_ct_CC
  9909. fi
  9910. else
  9911. CC="$ac_cv_prog_CC"
  9912. fi
  9913. if test -z "$CC"; then
  9914. if test -n "$ac_tool_prefix"; then
  9915. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9916. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9918. $as_echo_n "checking for $ac_word... " >&6; }
  9919. if ${ac_cv_prog_CC+:} false; then :
  9920. $as_echo_n "(cached) " >&6
  9921. else
  9922. if test -n "$CC"; then
  9923. ac_cv_prog_CC="$CC" # Let the user override the test.
  9924. else
  9925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9926. for as_dir in $PATH
  9927. do
  9928. IFS=$as_save_IFS
  9929. test -z "$as_dir" && as_dir=.
  9930. for ac_exec_ext in '' $ac_executable_extensions; do
  9931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9932. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9934. break 2
  9935. fi
  9936. done
  9937. done
  9938. IFS=$as_save_IFS
  9939. fi
  9940. fi
  9941. CC=$ac_cv_prog_CC
  9942. if test -n "$CC"; then
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9944. $as_echo "$CC" >&6; }
  9945. else
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9947. $as_echo "no" >&6; }
  9948. fi
  9949. fi
  9950. fi
  9951. if test -z "$CC"; then
  9952. # Extract the first word of "cc", so it can be a program name with args.
  9953. set dummy cc; ac_word=$2
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9955. $as_echo_n "checking for $ac_word... " >&6; }
  9956. if ${ac_cv_prog_CC+:} false; then :
  9957. $as_echo_n "(cached) " >&6
  9958. else
  9959. if test -n "$CC"; then
  9960. ac_cv_prog_CC="$CC" # Let the user override the test.
  9961. else
  9962. ac_prog_rejected=no
  9963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9964. for as_dir in $PATH
  9965. do
  9966. IFS=$as_save_IFS
  9967. test -z "$as_dir" && as_dir=.
  9968. for ac_exec_ext in '' $ac_executable_extensions; do
  9969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9970. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9971. ac_prog_rejected=yes
  9972. continue
  9973. fi
  9974. ac_cv_prog_CC="cc"
  9975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9976. break 2
  9977. fi
  9978. done
  9979. done
  9980. IFS=$as_save_IFS
  9981. if test $ac_prog_rejected = yes; then
  9982. # We found a bogon in the path, so make sure we never use it.
  9983. set dummy $ac_cv_prog_CC
  9984. shift
  9985. if test $# != 0; then
  9986. # We chose a different compiler from the bogus one.
  9987. # However, it has the same basename, so the bogon will be chosen
  9988. # first if we set CC to just the basename; use the full file name.
  9989. shift
  9990. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9991. fi
  9992. fi
  9993. fi
  9994. fi
  9995. CC=$ac_cv_prog_CC
  9996. if test -n "$CC"; then
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9998. $as_echo "$CC" >&6; }
  9999. else
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10001. $as_echo "no" >&6; }
  10002. fi
  10003. fi
  10004. if test -z "$CC"; then
  10005. if test -n "$ac_tool_prefix"; then
  10006. for ac_prog in cl.exe
  10007. do
  10008. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10009. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10011. $as_echo_n "checking for $ac_word... " >&6; }
  10012. if ${ac_cv_prog_CC+:} false; then :
  10013. $as_echo_n "(cached) " >&6
  10014. else
  10015. if test -n "$CC"; then
  10016. ac_cv_prog_CC="$CC" # Let the user override the test.
  10017. else
  10018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10019. for as_dir in $PATH
  10020. do
  10021. IFS=$as_save_IFS
  10022. test -z "$as_dir" && as_dir=.
  10023. for ac_exec_ext in '' $ac_executable_extensions; do
  10024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10025. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10027. break 2
  10028. fi
  10029. done
  10030. done
  10031. IFS=$as_save_IFS
  10032. fi
  10033. fi
  10034. CC=$ac_cv_prog_CC
  10035. if test -n "$CC"; then
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10037. $as_echo "$CC" >&6; }
  10038. else
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10040. $as_echo "no" >&6; }
  10041. fi
  10042. test -n "$CC" && break
  10043. done
  10044. fi
  10045. if test -z "$CC"; then
  10046. ac_ct_CC=$CC
  10047. for ac_prog in cl.exe
  10048. do
  10049. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10050. set dummy $ac_prog; ac_word=$2
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10052. $as_echo_n "checking for $ac_word... " >&6; }
  10053. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10054. $as_echo_n "(cached) " >&6
  10055. else
  10056. if test -n "$ac_ct_CC"; then
  10057. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10058. else
  10059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10060. for as_dir in $PATH
  10061. do
  10062. IFS=$as_save_IFS
  10063. test -z "$as_dir" && as_dir=.
  10064. for ac_exec_ext in '' $ac_executable_extensions; do
  10065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10066. ac_cv_prog_ac_ct_CC="$ac_prog"
  10067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10068. break 2
  10069. fi
  10070. done
  10071. done
  10072. IFS=$as_save_IFS
  10073. fi
  10074. fi
  10075. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10076. if test -n "$ac_ct_CC"; then
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10078. $as_echo "$ac_ct_CC" >&6; }
  10079. else
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10081. $as_echo "no" >&6; }
  10082. fi
  10083. test -n "$ac_ct_CC" && break
  10084. done
  10085. if test "x$ac_ct_CC" = x; then
  10086. CC=""
  10087. else
  10088. case $cross_compiling:$ac_tool_warned in
  10089. yes:)
  10090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10091. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10092. ac_tool_warned=yes ;;
  10093. esac
  10094. CC=$ac_ct_CC
  10095. fi
  10096. fi
  10097. fi
  10098. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10100. as_fn_error $? "no acceptable C compiler found in \$PATH
  10101. See \`config.log' for more details" "$LINENO" 5; }
  10102. # Provide some information about the compiler.
  10103. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10104. set X $ac_compile
  10105. ac_compiler=$2
  10106. for ac_option in --version -v -V -qversion; do
  10107. { { ac_try="$ac_compiler $ac_option >&5"
  10108. case "(($ac_try" in
  10109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10110. *) ac_try_echo=$ac_try;;
  10111. esac
  10112. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10113. $as_echo "$ac_try_echo"; } >&5
  10114. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10115. ac_status=$?
  10116. if test -s conftest.err; then
  10117. sed '10a\
  10118. ... rest of stderr output deleted ...
  10119. 10q' conftest.err >conftest.er1
  10120. cat conftest.er1 >&5
  10121. fi
  10122. rm -f conftest.er1 conftest.err
  10123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10124. test $ac_status = 0; }
  10125. done
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10127. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10128. if ${ac_cv_c_compiler_gnu+:} false; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10132. /* end confdefs.h. */
  10133. int
  10134. main ()
  10135. {
  10136. #ifndef __GNUC__
  10137. choke me
  10138. #endif
  10139. ;
  10140. return 0;
  10141. }
  10142. _ACEOF
  10143. if ac_fn_c_try_compile "$LINENO"; then :
  10144. ac_compiler_gnu=yes
  10145. else
  10146. ac_compiler_gnu=no
  10147. fi
  10148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10149. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10150. fi
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10152. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10153. if test $ac_compiler_gnu = yes; then
  10154. GCC=yes
  10155. else
  10156. GCC=
  10157. fi
  10158. ac_test_CFLAGS=${CFLAGS+set}
  10159. ac_save_CFLAGS=$CFLAGS
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10161. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10162. if ${ac_cv_prog_cc_g+:} false; then :
  10163. $as_echo_n "(cached) " >&6
  10164. else
  10165. ac_save_c_werror_flag=$ac_c_werror_flag
  10166. ac_c_werror_flag=yes
  10167. ac_cv_prog_cc_g=no
  10168. CFLAGS="-g"
  10169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10170. /* end confdefs.h. */
  10171. int
  10172. main ()
  10173. {
  10174. ;
  10175. return 0;
  10176. }
  10177. _ACEOF
  10178. if ac_fn_c_try_compile "$LINENO"; then :
  10179. ac_cv_prog_cc_g=yes
  10180. else
  10181. CFLAGS=""
  10182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10183. /* end confdefs.h. */
  10184. int
  10185. main ()
  10186. {
  10187. ;
  10188. return 0;
  10189. }
  10190. _ACEOF
  10191. if ac_fn_c_try_compile "$LINENO"; then :
  10192. else
  10193. ac_c_werror_flag=$ac_save_c_werror_flag
  10194. CFLAGS="-g"
  10195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10196. /* end confdefs.h. */
  10197. int
  10198. main ()
  10199. {
  10200. ;
  10201. return 0;
  10202. }
  10203. _ACEOF
  10204. if ac_fn_c_try_compile "$LINENO"; then :
  10205. ac_cv_prog_cc_g=yes
  10206. fi
  10207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10208. fi
  10209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10210. fi
  10211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10212. ac_c_werror_flag=$ac_save_c_werror_flag
  10213. fi
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10215. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10216. if test "$ac_test_CFLAGS" = set; then
  10217. CFLAGS=$ac_save_CFLAGS
  10218. elif test $ac_cv_prog_cc_g = yes; then
  10219. if test "$GCC" = yes; then
  10220. CFLAGS="-g -O2"
  10221. else
  10222. CFLAGS="-g"
  10223. fi
  10224. else
  10225. if test "$GCC" = yes; then
  10226. CFLAGS="-O2"
  10227. else
  10228. CFLAGS=
  10229. fi
  10230. fi
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10232. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10233. if ${ac_cv_prog_cc_c89+:} false; then :
  10234. $as_echo_n "(cached) " >&6
  10235. else
  10236. ac_cv_prog_cc_c89=no
  10237. ac_save_CC=$CC
  10238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10239. /* end confdefs.h. */
  10240. #include <stdarg.h>
  10241. #include <stdio.h>
  10242. struct stat;
  10243. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10244. struct buf { int x; };
  10245. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10246. static char *e (p, i)
  10247. char **p;
  10248. int i;
  10249. {
  10250. return p[i];
  10251. }
  10252. static char *f (char * (*g) (char **, int), char **p, ...)
  10253. {
  10254. char *s;
  10255. va_list v;
  10256. va_start (v,p);
  10257. s = g (p, va_arg (v,int));
  10258. va_end (v);
  10259. return s;
  10260. }
  10261. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10262. function prototypes and stuff, but not '\xHH' hex character constants.
  10263. These don't provoke an error unfortunately, instead are silently treated
  10264. as 'x'. The following induces an error, until -std is added to get
  10265. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10266. array size at least. It's necessary to write '\x00'==0 to get something
  10267. that's true only with -std. */
  10268. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10269. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10270. inside strings and character constants. */
  10271. #define FOO(x) 'x'
  10272. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10273. int test (int i, double x);
  10274. struct s1 {int (*f) (int a);};
  10275. struct s2 {int (*f) (double a);};
  10276. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10277. int argc;
  10278. char **argv;
  10279. int
  10280. main ()
  10281. {
  10282. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10283. ;
  10284. return 0;
  10285. }
  10286. _ACEOF
  10287. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10288. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10289. do
  10290. CC="$ac_save_CC $ac_arg"
  10291. if ac_fn_c_try_compile "$LINENO"; then :
  10292. ac_cv_prog_cc_c89=$ac_arg
  10293. fi
  10294. rm -f core conftest.err conftest.$ac_objext
  10295. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10296. done
  10297. rm -f conftest.$ac_ext
  10298. CC=$ac_save_CC
  10299. fi
  10300. # AC_CACHE_VAL
  10301. case "x$ac_cv_prog_cc_c89" in
  10302. x)
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10304. $as_echo "none needed" >&6; } ;;
  10305. xno)
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10307. $as_echo "unsupported" >&6; } ;;
  10308. *)
  10309. CC="$CC $ac_cv_prog_cc_c89"
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10311. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10312. esac
  10313. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10314. fi
  10315. ac_ext=c
  10316. ac_cpp='$CPP $CPPFLAGS'
  10317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10320. ac_ext=cpp
  10321. ac_cpp='$CXXCPP $CPPFLAGS'
  10322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10325. if test -z "$CXX"; then
  10326. if test -n "$CCC"; then
  10327. CXX=$CCC
  10328. else
  10329. if test -n "$ac_tool_prefix"; then
  10330. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10331. do
  10332. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10333. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10335. $as_echo_n "checking for $ac_word... " >&6; }
  10336. if ${ac_cv_prog_CXX+:} false; then :
  10337. $as_echo_n "(cached) " >&6
  10338. else
  10339. if test -n "$CXX"; then
  10340. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10341. else
  10342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10343. for as_dir in $PATH
  10344. do
  10345. IFS=$as_save_IFS
  10346. test -z "$as_dir" && as_dir=.
  10347. for ac_exec_ext in '' $ac_executable_extensions; do
  10348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10349. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10351. break 2
  10352. fi
  10353. done
  10354. done
  10355. IFS=$as_save_IFS
  10356. fi
  10357. fi
  10358. CXX=$ac_cv_prog_CXX
  10359. if test -n "$CXX"; then
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10361. $as_echo "$CXX" >&6; }
  10362. else
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10364. $as_echo "no" >&6; }
  10365. fi
  10366. test -n "$CXX" && break
  10367. done
  10368. fi
  10369. if test -z "$CXX"; then
  10370. ac_ct_CXX=$CXX
  10371. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10372. do
  10373. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10374. set dummy $ac_prog; ac_word=$2
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10376. $as_echo_n "checking for $ac_word... " >&6; }
  10377. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10378. $as_echo_n "(cached) " >&6
  10379. else
  10380. if test -n "$ac_ct_CXX"; then
  10381. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10382. else
  10383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10384. for as_dir in $PATH
  10385. do
  10386. IFS=$as_save_IFS
  10387. test -z "$as_dir" && as_dir=.
  10388. for ac_exec_ext in '' $ac_executable_extensions; do
  10389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10390. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10392. break 2
  10393. fi
  10394. done
  10395. done
  10396. IFS=$as_save_IFS
  10397. fi
  10398. fi
  10399. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10400. if test -n "$ac_ct_CXX"; then
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10402. $as_echo "$ac_ct_CXX" >&6; }
  10403. else
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10405. $as_echo "no" >&6; }
  10406. fi
  10407. test -n "$ac_ct_CXX" && break
  10408. done
  10409. if test "x$ac_ct_CXX" = x; then
  10410. CXX="g++"
  10411. else
  10412. case $cross_compiling:$ac_tool_warned in
  10413. yes:)
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10416. ac_tool_warned=yes ;;
  10417. esac
  10418. CXX=$ac_ct_CXX
  10419. fi
  10420. fi
  10421. fi
  10422. fi
  10423. # Provide some information about the compiler.
  10424. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10425. set X $ac_compile
  10426. ac_compiler=$2
  10427. for ac_option in --version -v -V -qversion; do
  10428. { { ac_try="$ac_compiler $ac_option >&5"
  10429. case "(($ac_try" in
  10430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10431. *) ac_try_echo=$ac_try;;
  10432. esac
  10433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10434. $as_echo "$ac_try_echo"; } >&5
  10435. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10436. ac_status=$?
  10437. if test -s conftest.err; then
  10438. sed '10a\
  10439. ... rest of stderr output deleted ...
  10440. 10q' conftest.err >conftest.er1
  10441. cat conftest.er1 >&5
  10442. fi
  10443. rm -f conftest.er1 conftest.err
  10444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10445. test $ac_status = 0; }
  10446. done
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10448. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10449. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10453. /* end confdefs.h. */
  10454. int
  10455. main ()
  10456. {
  10457. #ifndef __GNUC__
  10458. choke me
  10459. #endif
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_cxx_try_compile "$LINENO"; then :
  10465. ac_compiler_gnu=yes
  10466. else
  10467. ac_compiler_gnu=no
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10473. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10474. if test $ac_compiler_gnu = yes; then
  10475. GXX=yes
  10476. else
  10477. GXX=
  10478. fi
  10479. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10480. ac_save_CXXFLAGS=$CXXFLAGS
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10482. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10483. if ${ac_cv_prog_cxx_g+:} false; then :
  10484. $as_echo_n "(cached) " >&6
  10485. else
  10486. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10487. ac_cxx_werror_flag=yes
  10488. ac_cv_prog_cxx_g=no
  10489. CXXFLAGS="-g"
  10490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. /* end confdefs.h. */
  10492. int
  10493. main ()
  10494. {
  10495. ;
  10496. return 0;
  10497. }
  10498. _ACEOF
  10499. if ac_fn_cxx_try_compile "$LINENO"; then :
  10500. ac_cv_prog_cxx_g=yes
  10501. else
  10502. CXXFLAGS=""
  10503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10504. /* end confdefs.h. */
  10505. int
  10506. main ()
  10507. {
  10508. ;
  10509. return 0;
  10510. }
  10511. _ACEOF
  10512. if ac_fn_cxx_try_compile "$LINENO"; then :
  10513. else
  10514. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10515. CXXFLAGS="-g"
  10516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10517. /* end confdefs.h. */
  10518. int
  10519. main ()
  10520. {
  10521. ;
  10522. return 0;
  10523. }
  10524. _ACEOF
  10525. if ac_fn_cxx_try_compile "$LINENO"; then :
  10526. ac_cv_prog_cxx_g=yes
  10527. fi
  10528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10529. fi
  10530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10533. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10534. fi
  10535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10536. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10537. if test "$ac_test_CXXFLAGS" = set; then
  10538. CXXFLAGS=$ac_save_CXXFLAGS
  10539. elif test $ac_cv_prog_cxx_g = yes; then
  10540. if test "$GXX" = yes; then
  10541. CXXFLAGS="-g -O2"
  10542. else
  10543. CXXFLAGS="-g"
  10544. fi
  10545. else
  10546. if test "$GXX" = yes; then
  10547. CXXFLAGS="-O2"
  10548. else
  10549. CXXFLAGS=
  10550. fi
  10551. fi
  10552. ac_ext=c
  10553. ac_cpp='$CPP $CPPFLAGS'
  10554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10557. func_stripname_cnf ()
  10558. {
  10559. case ${2} in
  10560. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10561. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10562. esac
  10563. } # func_stripname_cnf
  10564. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10565. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10566. (test "X$CXX" != "Xg++"))) ; then
  10567. ac_ext=cpp
  10568. ac_cpp='$CXXCPP $CPPFLAGS'
  10569. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10570. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10571. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10573. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10574. if test -z "$CXXCPP"; then
  10575. if ${ac_cv_prog_CXXCPP+:} false; then :
  10576. $as_echo_n "(cached) " >&6
  10577. else
  10578. # Double quotes because CXXCPP needs to be expanded
  10579. for CXXCPP in "$CXX -E" "/lib/cpp"
  10580. do
  10581. ac_preproc_ok=false
  10582. for ac_cxx_preproc_warn_flag in '' yes
  10583. do
  10584. # Use a header file that comes with gcc, so configuring glibc
  10585. # with a fresh cross-compiler works.
  10586. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10587. # <limits.h> exists even on freestanding compilers.
  10588. # On the NeXT, cc -E runs the code through the compiler's parser,
  10589. # not just through cpp. "Syntax error" is here to catch this case.
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. #ifdef __STDC__
  10593. # include <limits.h>
  10594. #else
  10595. # include <assert.h>
  10596. #endif
  10597. Syntax error
  10598. _ACEOF
  10599. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10600. else
  10601. # Broken: fails on valid input.
  10602. continue
  10603. fi
  10604. rm -f conftest.err conftest.i conftest.$ac_ext
  10605. # OK, works on sane cases. Now check whether nonexistent headers
  10606. # can be detected and how.
  10607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10608. /* end confdefs.h. */
  10609. #include <ac_nonexistent.h>
  10610. _ACEOF
  10611. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10612. # Broken: success on invalid input.
  10613. continue
  10614. else
  10615. # Passes both tests.
  10616. ac_preproc_ok=:
  10617. break
  10618. fi
  10619. rm -f conftest.err conftest.i conftest.$ac_ext
  10620. done
  10621. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10622. rm -f conftest.i conftest.err conftest.$ac_ext
  10623. if $ac_preproc_ok; then :
  10624. break
  10625. fi
  10626. done
  10627. ac_cv_prog_CXXCPP=$CXXCPP
  10628. fi
  10629. CXXCPP=$ac_cv_prog_CXXCPP
  10630. else
  10631. ac_cv_prog_CXXCPP=$CXXCPP
  10632. fi
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10634. $as_echo "$CXXCPP" >&6; }
  10635. ac_preproc_ok=false
  10636. for ac_cxx_preproc_warn_flag in '' yes
  10637. do
  10638. # Use a header file that comes with gcc, so configuring glibc
  10639. # with a fresh cross-compiler works.
  10640. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10641. # <limits.h> exists even on freestanding compilers.
  10642. # On the NeXT, cc -E runs the code through the compiler's parser,
  10643. # not just through cpp. "Syntax error" is here to catch this case.
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. #ifdef __STDC__
  10647. # include <limits.h>
  10648. #else
  10649. # include <assert.h>
  10650. #endif
  10651. Syntax error
  10652. _ACEOF
  10653. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10654. else
  10655. # Broken: fails on valid input.
  10656. continue
  10657. fi
  10658. rm -f conftest.err conftest.i conftest.$ac_ext
  10659. # OK, works on sane cases. Now check whether nonexistent headers
  10660. # can be detected and how.
  10661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10662. /* end confdefs.h. */
  10663. #include <ac_nonexistent.h>
  10664. _ACEOF
  10665. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10666. # Broken: success on invalid input.
  10667. continue
  10668. else
  10669. # Passes both tests.
  10670. ac_preproc_ok=:
  10671. break
  10672. fi
  10673. rm -f conftest.err conftest.i conftest.$ac_ext
  10674. done
  10675. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10676. rm -f conftest.i conftest.err conftest.$ac_ext
  10677. if $ac_preproc_ok; then :
  10678. else
  10679. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10680. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10681. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10682. See \`config.log' for more details" "$LINENO" 5; }
  10683. fi
  10684. ac_ext=c
  10685. ac_cpp='$CPP $CPPFLAGS'
  10686. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10687. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10688. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10689. else
  10690. _lt_caught_CXX_error=yes
  10691. fi
  10692. ac_ext=cpp
  10693. ac_cpp='$CXXCPP $CPPFLAGS'
  10694. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10695. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10696. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10697. archive_cmds_need_lc_CXX=no
  10698. allow_undefined_flag_CXX=
  10699. always_export_symbols_CXX=no
  10700. archive_expsym_cmds_CXX=
  10701. compiler_needs_object_CXX=no
  10702. export_dynamic_flag_spec_CXX=
  10703. hardcode_direct_CXX=no
  10704. hardcode_direct_absolute_CXX=no
  10705. hardcode_libdir_flag_spec_CXX=
  10706. hardcode_libdir_separator_CXX=
  10707. hardcode_minus_L_CXX=no
  10708. hardcode_shlibpath_var_CXX=unsupported
  10709. hardcode_automatic_CXX=no
  10710. inherit_rpath_CXX=no
  10711. module_cmds_CXX=
  10712. module_expsym_cmds_CXX=
  10713. link_all_deplibs_CXX=unknown
  10714. old_archive_cmds_CXX=$old_archive_cmds
  10715. reload_flag_CXX=$reload_flag
  10716. reload_cmds_CXX=$reload_cmds
  10717. no_undefined_flag_CXX=
  10718. whole_archive_flag_spec_CXX=
  10719. enable_shared_with_static_runtimes_CXX=no
  10720. # Source file extension for C++ test sources.
  10721. ac_ext=cpp
  10722. # Object file extension for compiled C++ test sources.
  10723. objext=o
  10724. objext_CXX=$objext
  10725. # No sense in running all these tests if we already determined that
  10726. # the CXX compiler isn't working. Some variables (like enable_shared)
  10727. # are currently assumed to apply to all compilers on this platform,
  10728. # and will be corrupted by setting them based on a non-working compiler.
  10729. if test "$_lt_caught_CXX_error" != yes; then
  10730. # Code to be used in simple compile tests
  10731. lt_simple_compile_test_code="int some_variable = 0;"
  10732. # Code to be used in simple link tests
  10733. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10734. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10735. # If no C compiler was specified, use CC.
  10736. LTCC=${LTCC-"$CC"}
  10737. # If no C compiler flags were specified, use CFLAGS.
  10738. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10739. # Allow CC to be a program name with arguments.
  10740. compiler=$CC
  10741. # save warnings/boilerplate of simple test code
  10742. ac_outfile=conftest.$ac_objext
  10743. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10744. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10745. _lt_compiler_boilerplate=`cat conftest.err`
  10746. $RM conftest*
  10747. ac_outfile=conftest.$ac_objext
  10748. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10749. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10750. _lt_linker_boilerplate=`cat conftest.err`
  10751. $RM -r conftest*
  10752. # Allow CC to be a program name with arguments.
  10753. lt_save_CC=$CC
  10754. lt_save_CFLAGS=$CFLAGS
  10755. lt_save_LD=$LD
  10756. lt_save_GCC=$GCC
  10757. GCC=$GXX
  10758. lt_save_with_gnu_ld=$with_gnu_ld
  10759. lt_save_path_LD=$lt_cv_path_LD
  10760. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10761. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10762. else
  10763. $as_unset lt_cv_prog_gnu_ld
  10764. fi
  10765. if test -n "${lt_cv_path_LDCXX+set}"; then
  10766. lt_cv_path_LD=$lt_cv_path_LDCXX
  10767. else
  10768. $as_unset lt_cv_path_LD
  10769. fi
  10770. test -z "${LDCXX+set}" || LD=$LDCXX
  10771. CC=${CXX-"c++"}
  10772. CFLAGS=$CXXFLAGS
  10773. compiler=$CC
  10774. compiler_CXX=$CC
  10775. for cc_temp in $compiler""; do
  10776. case $cc_temp in
  10777. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10778. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10779. \-*) ;;
  10780. *) break;;
  10781. esac
  10782. done
  10783. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10784. if test -n "$compiler"; then
  10785. # We don't want -fno-exception when compiling C++ code, so set the
  10786. # no_builtin_flag separately
  10787. if test "$GXX" = yes; then
  10788. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10789. else
  10790. lt_prog_compiler_no_builtin_flag_CXX=
  10791. fi
  10792. if test "$GXX" = yes; then
  10793. # Set up default GNU C++ configuration
  10794. # Check whether --with-gnu-ld was given.
  10795. if test "${with_gnu_ld+set}" = set; then :
  10796. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10797. else
  10798. with_gnu_ld=no
  10799. fi
  10800. ac_prog=ld
  10801. if test "$GCC" = yes; then
  10802. # Check if gcc -print-prog-name=ld gives a path.
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10804. $as_echo_n "checking for ld used by $CC... " >&6; }
  10805. case $host in
  10806. *-*-mingw*)
  10807. # gcc leaves a trailing carriage return which upsets mingw
  10808. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10809. *)
  10810. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10811. esac
  10812. case $ac_prog in
  10813. # Accept absolute paths.
  10814. [\\/]* | ?:[\\/]*)
  10815. re_direlt='/[^/][^/]*/\.\./'
  10816. # Canonicalize the pathname of ld
  10817. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10818. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10819. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10820. done
  10821. test -z "$LD" && LD="$ac_prog"
  10822. ;;
  10823. "")
  10824. # If it fails, then pretend we aren't using GCC.
  10825. ac_prog=ld
  10826. ;;
  10827. *)
  10828. # If it is relative, then search for the first ld in PATH.
  10829. with_gnu_ld=unknown
  10830. ;;
  10831. esac
  10832. elif test "$with_gnu_ld" = yes; then
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10834. $as_echo_n "checking for GNU ld... " >&6; }
  10835. else
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10837. $as_echo_n "checking for non-GNU ld... " >&6; }
  10838. fi
  10839. if ${lt_cv_path_LD+:} false; then :
  10840. $as_echo_n "(cached) " >&6
  10841. else
  10842. if test -z "$LD"; then
  10843. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10844. for ac_dir in $PATH; do
  10845. IFS="$lt_save_ifs"
  10846. test -z "$ac_dir" && ac_dir=.
  10847. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10848. lt_cv_path_LD="$ac_dir/$ac_prog"
  10849. # Check to see if the program is GNU ld. I'd rather use --version,
  10850. # but apparently some variants of GNU ld only accept -v.
  10851. # Break only if it was the GNU/non-GNU ld that we prefer.
  10852. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10853. *GNU* | *'with BFD'*)
  10854. test "$with_gnu_ld" != no && break
  10855. ;;
  10856. *)
  10857. test "$with_gnu_ld" != yes && break
  10858. ;;
  10859. esac
  10860. fi
  10861. done
  10862. IFS="$lt_save_ifs"
  10863. else
  10864. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10865. fi
  10866. fi
  10867. LD="$lt_cv_path_LD"
  10868. if test -n "$LD"; then
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10870. $as_echo "$LD" >&6; }
  10871. else
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10873. $as_echo "no" >&6; }
  10874. fi
  10875. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10877. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10878. if ${lt_cv_prog_gnu_ld+:} false; then :
  10879. $as_echo_n "(cached) " >&6
  10880. else
  10881. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10882. case `$LD -v 2>&1 </dev/null` in
  10883. *GNU* | *'with BFD'*)
  10884. lt_cv_prog_gnu_ld=yes
  10885. ;;
  10886. *)
  10887. lt_cv_prog_gnu_ld=no
  10888. ;;
  10889. esac
  10890. fi
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10892. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10893. with_gnu_ld=$lt_cv_prog_gnu_ld
  10894. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10895. # archiving commands below assume that GNU ld is being used.
  10896. if test "$with_gnu_ld" = yes; then
  10897. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10898. 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'
  10899. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10900. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10901. # If archive_cmds runs LD, not CC, wlarc should be empty
  10902. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10903. # investigate it a little bit more. (MM)
  10904. wlarc='${wl}'
  10905. # ancient GNU ld didn't support --whole-archive et. al.
  10906. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10907. $GREP 'no-whole-archive' > /dev/null; then
  10908. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10909. else
  10910. whole_archive_flag_spec_CXX=
  10911. fi
  10912. else
  10913. with_gnu_ld=no
  10914. wlarc=
  10915. # A generic and very simple default shared library creation
  10916. # command for GNU C++ for the case where it uses the native
  10917. # linker, instead of GNU ld. If possible, this setting should
  10918. # overridden to take advantage of the native linker features on
  10919. # the platform it is being used on.
  10920. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10921. fi
  10922. # Commands to make compiler produce verbose output that lists
  10923. # what "hidden" libraries, object files and flags are used when
  10924. # linking a shared library.
  10925. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10926. else
  10927. GXX=no
  10928. with_gnu_ld=no
  10929. wlarc=
  10930. fi
  10931. # PORTME: fill in a description of your system's C++ link characteristics
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10933. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10934. ld_shlibs_CXX=yes
  10935. case $host_os in
  10936. aix3*)
  10937. # FIXME: insert proper C++ library support
  10938. ld_shlibs_CXX=no
  10939. ;;
  10940. aix[4-9]*)
  10941. if test "$host_cpu" = ia64; then
  10942. # On IA64, the linker does run time linking by default, so we don't
  10943. # have to do anything special.
  10944. aix_use_runtimelinking=no
  10945. exp_sym_flag='-Bexport'
  10946. no_entry_flag=""
  10947. else
  10948. aix_use_runtimelinking=no
  10949. # Test if we are trying to use run time linking or normal
  10950. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10951. # need to do runtime linking.
  10952. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10953. for ld_flag in $LDFLAGS; do
  10954. case $ld_flag in
  10955. *-brtl*)
  10956. aix_use_runtimelinking=yes
  10957. break
  10958. ;;
  10959. esac
  10960. done
  10961. ;;
  10962. esac
  10963. exp_sym_flag='-bexport'
  10964. no_entry_flag='-bnoentry'
  10965. fi
  10966. # When large executables or shared objects are built, AIX ld can
  10967. # have problems creating the table of contents. If linking a library
  10968. # or program results in "error TOC overflow" add -mminimal-toc to
  10969. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10970. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10971. archive_cmds_CXX=''
  10972. hardcode_direct_CXX=yes
  10973. hardcode_direct_absolute_CXX=yes
  10974. hardcode_libdir_separator_CXX=':'
  10975. link_all_deplibs_CXX=yes
  10976. file_list_spec_CXX='${wl}-f,'
  10977. if test "$GXX" = yes; then
  10978. case $host_os in aix4.[012]|aix4.[012].*)
  10979. # We only want to do this on AIX 4.2 and lower, the check
  10980. # below for broken collect2 doesn't work under 4.3+
  10981. collect2name=`${CC} -print-prog-name=collect2`
  10982. if test -f "$collect2name" &&
  10983. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10984. then
  10985. # We have reworked collect2
  10986. :
  10987. else
  10988. # We have old collect2
  10989. hardcode_direct_CXX=unsupported
  10990. # It fails to find uninstalled libraries when the uninstalled
  10991. # path is not listed in the libpath. Setting hardcode_minus_L
  10992. # to unsupported forces relinking
  10993. hardcode_minus_L_CXX=yes
  10994. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10995. hardcode_libdir_separator_CXX=
  10996. fi
  10997. esac
  10998. shared_flag='-shared'
  10999. if test "$aix_use_runtimelinking" = yes; then
  11000. shared_flag="$shared_flag "'${wl}-G'
  11001. fi
  11002. else
  11003. # not using gcc
  11004. if test "$host_cpu" = ia64; then
  11005. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11006. # chokes on -Wl,-G. The following line is correct:
  11007. shared_flag='-G'
  11008. else
  11009. if test "$aix_use_runtimelinking" = yes; then
  11010. shared_flag='${wl}-G'
  11011. else
  11012. shared_flag='${wl}-bM:SRE'
  11013. fi
  11014. fi
  11015. fi
  11016. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11017. # It seems that -bexpall does not export symbols beginning with
  11018. # underscore (_), so it is better to generate a list of symbols to
  11019. # export.
  11020. always_export_symbols_CXX=yes
  11021. if test "$aix_use_runtimelinking" = yes; then
  11022. # Warning - without using the other runtime loading flags (-brtl),
  11023. # -berok will link without error, but may produce a broken library.
  11024. allow_undefined_flag_CXX='-berok'
  11025. # Determine the default libpath from the value encoded in an empty
  11026. # executable.
  11027. if test "${lt_cv_aix_libpath+set}" = set; then
  11028. aix_libpath=$lt_cv_aix_libpath
  11029. else
  11030. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11031. $as_echo_n "(cached) " >&6
  11032. else
  11033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11034. /* end confdefs.h. */
  11035. int
  11036. main ()
  11037. {
  11038. ;
  11039. return 0;
  11040. }
  11041. _ACEOF
  11042. if ac_fn_cxx_try_link "$LINENO"; then :
  11043. lt_aix_libpath_sed='
  11044. /Import File Strings/,/^$/ {
  11045. /^0/ {
  11046. s/^0 *\([^ ]*\) *$/\1/
  11047. p
  11048. }
  11049. }'
  11050. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11051. # Check for a 64-bit object if we didn't find anything.
  11052. if test -z "$lt_cv_aix_libpath__CXX"; then
  11053. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11054. fi
  11055. fi
  11056. rm -f core conftest.err conftest.$ac_objext \
  11057. conftest$ac_exeext conftest.$ac_ext
  11058. if test -z "$lt_cv_aix_libpath__CXX"; then
  11059. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11060. fi
  11061. fi
  11062. aix_libpath=$lt_cv_aix_libpath__CXX
  11063. fi
  11064. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11065. 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"
  11066. else
  11067. if test "$host_cpu" = ia64; then
  11068. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11069. allow_undefined_flag_CXX="-z nodefs"
  11070. 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"
  11071. else
  11072. # Determine the default libpath from the value encoded in an
  11073. # empty executable.
  11074. if test "${lt_cv_aix_libpath+set}" = set; then
  11075. aix_libpath=$lt_cv_aix_libpath
  11076. else
  11077. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11078. $as_echo_n "(cached) " >&6
  11079. else
  11080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11081. /* end confdefs.h. */
  11082. int
  11083. main ()
  11084. {
  11085. ;
  11086. return 0;
  11087. }
  11088. _ACEOF
  11089. if ac_fn_cxx_try_link "$LINENO"; then :
  11090. lt_aix_libpath_sed='
  11091. /Import File Strings/,/^$/ {
  11092. /^0/ {
  11093. s/^0 *\([^ ]*\) *$/\1/
  11094. p
  11095. }
  11096. }'
  11097. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11098. # Check for a 64-bit object if we didn't find anything.
  11099. if test -z "$lt_cv_aix_libpath__CXX"; then
  11100. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11101. fi
  11102. fi
  11103. rm -f core conftest.err conftest.$ac_objext \
  11104. conftest$ac_exeext conftest.$ac_ext
  11105. if test -z "$lt_cv_aix_libpath__CXX"; then
  11106. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11107. fi
  11108. fi
  11109. aix_libpath=$lt_cv_aix_libpath__CXX
  11110. fi
  11111. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11112. # Warning - without using the other run time loading flags,
  11113. # -berok will link without error, but may produce a broken library.
  11114. no_undefined_flag_CXX=' ${wl}-bernotok'
  11115. allow_undefined_flag_CXX=' ${wl}-berok'
  11116. if test "$with_gnu_ld" = yes; then
  11117. # We only use this code for GNU lds that support --whole-archive.
  11118. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11119. else
  11120. # Exported symbols can be pulled into shared objects from archives
  11121. whole_archive_flag_spec_CXX='$convenience'
  11122. fi
  11123. archive_cmds_need_lc_CXX=yes
  11124. # This is similar to how AIX traditionally builds its shared
  11125. # libraries.
  11126. 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'
  11127. fi
  11128. fi
  11129. ;;
  11130. beos*)
  11131. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11132. allow_undefined_flag_CXX=unsupported
  11133. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11134. # support --undefined. This deserves some investigation. FIXME
  11135. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11136. else
  11137. ld_shlibs_CXX=no
  11138. fi
  11139. ;;
  11140. chorus*)
  11141. case $cc_basename in
  11142. *)
  11143. # FIXME: insert proper C++ library support
  11144. ld_shlibs_CXX=no
  11145. ;;
  11146. esac
  11147. ;;
  11148. cygwin* | mingw* | pw32* | cegcc*)
  11149. case $GXX,$cc_basename in
  11150. ,cl* | no,cl*)
  11151. # Native MSVC
  11152. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11153. # no search path for DLLs.
  11154. hardcode_libdir_flag_spec_CXX=' '
  11155. allow_undefined_flag_CXX=unsupported
  11156. always_export_symbols_CXX=yes
  11157. file_list_spec_CXX='@'
  11158. # Tell ltmain to make .lib files, not .a files.
  11159. libext=lib
  11160. # Tell ltmain to make .dll files, not .so files.
  11161. shrext_cmds=".dll"
  11162. # FIXME: Setting linknames here is a bad hack.
  11163. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11164. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11165. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11166. else
  11167. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11168. fi~
  11169. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11170. linknames='
  11171. # The linker will not automatically build a static lib if we build a DLL.
  11172. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11173. enable_shared_with_static_runtimes_CXX=yes
  11174. # Don't use ranlib
  11175. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11176. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11177. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11178. case $lt_outputfile in
  11179. *.exe|*.EXE) ;;
  11180. *)
  11181. lt_outputfile="$lt_outputfile.exe"
  11182. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11183. ;;
  11184. esac~
  11185. func_to_tool_file "$lt_outputfile"~
  11186. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11187. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11188. $RM "$lt_outputfile.manifest";
  11189. fi'
  11190. ;;
  11191. *)
  11192. # g++
  11193. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11194. # as there is no search path for DLLs.
  11195. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11196. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11197. allow_undefined_flag_CXX=unsupported
  11198. always_export_symbols_CXX=no
  11199. enable_shared_with_static_runtimes_CXX=yes
  11200. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11201. 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'
  11202. # If the export-symbols file already is a .def file (1st line
  11203. # is EXPORTS), use it as is; otherwise, prepend...
  11204. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11205. cp $export_symbols $output_objdir/$soname.def;
  11206. else
  11207. echo EXPORTS > $output_objdir/$soname.def;
  11208. cat $export_symbols >> $output_objdir/$soname.def;
  11209. fi~
  11210. $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'
  11211. else
  11212. ld_shlibs_CXX=no
  11213. fi
  11214. ;;
  11215. esac
  11216. ;;
  11217. darwin* | rhapsody*)
  11218. archive_cmds_need_lc_CXX=no
  11219. hardcode_direct_CXX=no
  11220. hardcode_automatic_CXX=yes
  11221. hardcode_shlibpath_var_CXX=unsupported
  11222. if test "$lt_cv_ld_force_load" = "yes"; then
  11223. 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\"`'
  11224. else
  11225. whole_archive_flag_spec_CXX=''
  11226. fi
  11227. link_all_deplibs_CXX=yes
  11228. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11229. case $cc_basename in
  11230. ifort*) _lt_dar_can_shared=yes ;;
  11231. *) _lt_dar_can_shared=$GCC ;;
  11232. esac
  11233. if test "$_lt_dar_can_shared" = "yes"; then
  11234. output_verbose_link_cmd=func_echo_all
  11235. 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}"
  11236. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11237. 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}"
  11238. 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}"
  11239. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11240. 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}"
  11241. 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}"
  11242. fi
  11243. else
  11244. ld_shlibs_CXX=no
  11245. fi
  11246. ;;
  11247. dgux*)
  11248. case $cc_basename in
  11249. ec++*)
  11250. # FIXME: insert proper C++ library support
  11251. ld_shlibs_CXX=no
  11252. ;;
  11253. ghcx*)
  11254. # Green Hills C++ Compiler
  11255. # FIXME: insert proper C++ library support
  11256. ld_shlibs_CXX=no
  11257. ;;
  11258. *)
  11259. # FIXME: insert proper C++ library support
  11260. ld_shlibs_CXX=no
  11261. ;;
  11262. esac
  11263. ;;
  11264. freebsd2.*)
  11265. # C++ shared libraries reported to be fairly broken before
  11266. # switch to ELF
  11267. ld_shlibs_CXX=no
  11268. ;;
  11269. freebsd-elf*)
  11270. archive_cmds_need_lc_CXX=no
  11271. ;;
  11272. freebsd* | dragonfly*)
  11273. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11274. # conventions
  11275. ld_shlibs_CXX=yes
  11276. ;;
  11277. gnu*)
  11278. ;;
  11279. haiku*)
  11280. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11281. link_all_deplibs_CXX=yes
  11282. ;;
  11283. hpux9*)
  11284. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11285. hardcode_libdir_separator_CXX=:
  11286. export_dynamic_flag_spec_CXX='${wl}-E'
  11287. hardcode_direct_CXX=yes
  11288. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11289. # but as the default
  11290. # location of the library.
  11291. case $cc_basename in
  11292. CC*)
  11293. # FIXME: insert proper C++ library support
  11294. ld_shlibs_CXX=no
  11295. ;;
  11296. aCC*)
  11297. 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'
  11298. # Commands to make compiler produce verbose output that lists
  11299. # what "hidden" libraries, object files and flags are used when
  11300. # linking a shared library.
  11301. #
  11302. # There doesn't appear to be a way to prevent this compiler from
  11303. # explicitly linking system object files so we need to strip them
  11304. # from the output so that they don't get included in the library
  11305. # dependencies.
  11306. 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"'
  11307. ;;
  11308. *)
  11309. if test "$GXX" = yes; then
  11310. 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'
  11311. else
  11312. # FIXME: insert proper C++ library support
  11313. ld_shlibs_CXX=no
  11314. fi
  11315. ;;
  11316. esac
  11317. ;;
  11318. hpux10*|hpux11*)
  11319. if test $with_gnu_ld = no; then
  11320. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11321. hardcode_libdir_separator_CXX=:
  11322. case $host_cpu in
  11323. hppa*64*|ia64*)
  11324. ;;
  11325. *)
  11326. export_dynamic_flag_spec_CXX='${wl}-E'
  11327. ;;
  11328. esac
  11329. fi
  11330. case $host_cpu in
  11331. hppa*64*|ia64*)
  11332. hardcode_direct_CXX=no
  11333. hardcode_shlibpath_var_CXX=no
  11334. ;;
  11335. *)
  11336. hardcode_direct_CXX=yes
  11337. hardcode_direct_absolute_CXX=yes
  11338. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11339. # but as the default
  11340. # location of the library.
  11341. ;;
  11342. esac
  11343. case $cc_basename in
  11344. CC*)
  11345. # FIXME: insert proper C++ library support
  11346. ld_shlibs_CXX=no
  11347. ;;
  11348. aCC*)
  11349. case $host_cpu in
  11350. hppa*64*)
  11351. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11352. ;;
  11353. ia64*)
  11354. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11355. ;;
  11356. *)
  11357. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11358. ;;
  11359. esac
  11360. # Commands to make compiler produce verbose output that lists
  11361. # what "hidden" libraries, object files and flags are used when
  11362. # linking a shared library.
  11363. #
  11364. # There doesn't appear to be a way to prevent this compiler from
  11365. # explicitly linking system object files so we need to strip them
  11366. # from the output so that they don't get included in the library
  11367. # dependencies.
  11368. 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"'
  11369. ;;
  11370. *)
  11371. if test "$GXX" = yes; then
  11372. if test $with_gnu_ld = no; then
  11373. case $host_cpu in
  11374. hppa*64*)
  11375. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11376. ;;
  11377. ia64*)
  11378. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11379. ;;
  11380. *)
  11381. 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'
  11382. ;;
  11383. esac
  11384. fi
  11385. else
  11386. # FIXME: insert proper C++ library support
  11387. ld_shlibs_CXX=no
  11388. fi
  11389. ;;
  11390. esac
  11391. ;;
  11392. interix[3-9]*)
  11393. hardcode_direct_CXX=no
  11394. hardcode_shlibpath_var_CXX=no
  11395. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11396. export_dynamic_flag_spec_CXX='${wl}-E'
  11397. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11398. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11399. # default) and relocated if they conflict, which is a slow very memory
  11400. # consuming and fragmenting process. To avoid this, we pick a random,
  11401. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11402. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11403. 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'
  11404. 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'
  11405. ;;
  11406. irix5* | irix6*)
  11407. case $cc_basename in
  11408. CC*)
  11409. # SGI C++
  11410. 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'
  11411. # Archives containing C++ object files must be created using
  11412. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11413. # necessary to make sure instantiated templates are included
  11414. # in the archive.
  11415. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11416. ;;
  11417. *)
  11418. if test "$GXX" = yes; then
  11419. if test "$with_gnu_ld" = no; then
  11420. 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'
  11421. else
  11422. 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'
  11423. fi
  11424. fi
  11425. link_all_deplibs_CXX=yes
  11426. ;;
  11427. esac
  11428. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11429. hardcode_libdir_separator_CXX=:
  11430. inherit_rpath_CXX=yes
  11431. ;;
  11432. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11433. case $cc_basename in
  11434. KCC*)
  11435. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11436. # KCC will only create a shared library if the output file
  11437. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11438. # to its proper name (with version) after linking.
  11439. 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'
  11440. 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'
  11441. # Commands to make compiler produce verbose output that lists
  11442. # what "hidden" libraries, object files and flags are used when
  11443. # linking a shared library.
  11444. #
  11445. # There doesn't appear to be a way to prevent this compiler from
  11446. # explicitly linking system object files so we need to strip them
  11447. # from the output so that they don't get included in the library
  11448. # dependencies.
  11449. 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"'
  11450. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11451. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11452. # Archives containing C++ object files must be created using
  11453. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11454. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11455. ;;
  11456. icpc* | ecpc* )
  11457. # Intel C++
  11458. with_gnu_ld=yes
  11459. # version 8.0 and above of icpc choke on multiply defined symbols
  11460. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11461. # earlier do not add the objects themselves.
  11462. case `$CC -V 2>&1` in
  11463. *"Version 7."*)
  11464. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11465. 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'
  11466. ;;
  11467. *) # Version 8.0 or newer
  11468. tmp_idyn=
  11469. case $host_cpu in
  11470. ia64*) tmp_idyn=' -i_dynamic';;
  11471. esac
  11472. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11473. 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'
  11474. ;;
  11475. esac
  11476. archive_cmds_need_lc_CXX=no
  11477. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11478. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11479. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11480. ;;
  11481. pgCC* | pgcpp*)
  11482. # Portland Group C++ compiler
  11483. case `$CC -V` in
  11484. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11485. prelink_cmds_CXX='tpldir=Template.dir~
  11486. rm -rf $tpldir~
  11487. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11488. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11489. old_archive_cmds_CXX='tpldir=Template.dir~
  11490. rm -rf $tpldir~
  11491. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11492. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11493. $RANLIB $oldlib'
  11494. archive_cmds_CXX='tpldir=Template.dir~
  11495. rm -rf $tpldir~
  11496. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11497. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11498. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11499. rm -rf $tpldir~
  11500. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11501. $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'
  11502. ;;
  11503. *) # Version 6 and above use weak symbols
  11504. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11505. 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'
  11506. ;;
  11507. esac
  11508. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11509. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11510. 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'
  11511. ;;
  11512. cxx*)
  11513. # Compaq C++
  11514. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11515. 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'
  11516. runpath_var=LD_RUN_PATH
  11517. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11518. hardcode_libdir_separator_CXX=:
  11519. # Commands to make compiler produce verbose output that lists
  11520. # what "hidden" libraries, object files and flags are used when
  11521. # linking a shared library.
  11522. #
  11523. # There doesn't appear to be a way to prevent this compiler from
  11524. # explicitly linking system object files so we need to strip them
  11525. # from the output so that they don't get included in the library
  11526. # dependencies.
  11527. 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'
  11528. ;;
  11529. xl* | mpixl* | bgxl*)
  11530. # IBM XL 8.0 on PPC, with GNU ld
  11531. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11532. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11533. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11534. if test "x$supports_anon_versioning" = xyes; then
  11535. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11536. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11537. echo "local: *; };" >> $output_objdir/$libname.ver~
  11538. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11539. fi
  11540. ;;
  11541. *)
  11542. case `$CC -V 2>&1 | sed 5q` in
  11543. *Sun\ C*)
  11544. # Sun C++ 5.9
  11545. no_undefined_flag_CXX=' -zdefs'
  11546. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11547. 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'
  11548. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11549. 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'
  11550. compiler_needs_object_CXX=yes
  11551. # Not sure whether something based on
  11552. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11553. # would be better.
  11554. output_verbose_link_cmd='func_echo_all'
  11555. # Archives containing C++ object files must be created using
  11556. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11557. # necessary to make sure instantiated templates are included
  11558. # in the archive.
  11559. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11560. ;;
  11561. esac
  11562. ;;
  11563. esac
  11564. ;;
  11565. lynxos*)
  11566. # FIXME: insert proper C++ library support
  11567. ld_shlibs_CXX=no
  11568. ;;
  11569. m88k*)
  11570. # FIXME: insert proper C++ library support
  11571. ld_shlibs_CXX=no
  11572. ;;
  11573. mvs*)
  11574. case $cc_basename in
  11575. cxx*)
  11576. # FIXME: insert proper C++ library support
  11577. ld_shlibs_CXX=no
  11578. ;;
  11579. *)
  11580. # FIXME: insert proper C++ library support
  11581. ld_shlibs_CXX=no
  11582. ;;
  11583. esac
  11584. ;;
  11585. netbsd*)
  11586. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11587. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11588. wlarc=
  11589. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11590. hardcode_direct_CXX=yes
  11591. hardcode_shlibpath_var_CXX=no
  11592. fi
  11593. # Workaround some broken pre-1.5 toolchains
  11594. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11595. ;;
  11596. *nto* | *qnx*)
  11597. ld_shlibs_CXX=yes
  11598. ;;
  11599. openbsd2*)
  11600. # C++ shared libraries are fairly broken
  11601. ld_shlibs_CXX=no
  11602. ;;
  11603. openbsd*)
  11604. if test -f /usr/libexec/ld.so; then
  11605. hardcode_direct_CXX=yes
  11606. hardcode_shlibpath_var_CXX=no
  11607. hardcode_direct_absolute_CXX=yes
  11608. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11609. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11610. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11611. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11612. export_dynamic_flag_spec_CXX='${wl}-E'
  11613. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11614. fi
  11615. output_verbose_link_cmd=func_echo_all
  11616. else
  11617. ld_shlibs_CXX=no
  11618. fi
  11619. ;;
  11620. osf3* | osf4* | osf5*)
  11621. case $cc_basename in
  11622. KCC*)
  11623. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11624. # KCC will only create a shared library if the output file
  11625. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11626. # to its proper name (with version) after linking.
  11627. 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'
  11628. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11629. hardcode_libdir_separator_CXX=:
  11630. # Archives containing C++ object files must be created using
  11631. # the KAI C++ compiler.
  11632. case $host in
  11633. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11634. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11635. esac
  11636. ;;
  11637. RCC*)
  11638. # Rational C++ 2.4.1
  11639. # FIXME: insert proper C++ library support
  11640. ld_shlibs_CXX=no
  11641. ;;
  11642. cxx*)
  11643. case $host in
  11644. osf3*)
  11645. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11646. 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'
  11647. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11648. ;;
  11649. *)
  11650. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11651. 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'
  11652. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11653. echo "-hidden">> $lib.exp~
  11654. $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~
  11655. $RM $lib.exp'
  11656. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11657. ;;
  11658. esac
  11659. hardcode_libdir_separator_CXX=:
  11660. # Commands to make compiler produce verbose output that lists
  11661. # what "hidden" libraries, object files and flags are used when
  11662. # linking a shared library.
  11663. #
  11664. # There doesn't appear to be a way to prevent this compiler from
  11665. # explicitly linking system object files so we need to strip them
  11666. # from the output so that they don't get included in the library
  11667. # dependencies.
  11668. 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"'
  11669. ;;
  11670. *)
  11671. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11672. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11673. case $host in
  11674. osf3*)
  11675. 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'
  11676. ;;
  11677. *)
  11678. 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'
  11679. ;;
  11680. esac
  11681. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11682. hardcode_libdir_separator_CXX=:
  11683. # Commands to make compiler produce verbose output that lists
  11684. # what "hidden" libraries, object files and flags are used when
  11685. # linking a shared library.
  11686. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11687. else
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. fi
  11691. ;;
  11692. esac
  11693. ;;
  11694. psos*)
  11695. # FIXME: insert proper C++ library support
  11696. ld_shlibs_CXX=no
  11697. ;;
  11698. sunos4*)
  11699. case $cc_basename in
  11700. CC*)
  11701. # Sun C++ 4.x
  11702. # FIXME: insert proper C++ library support
  11703. ld_shlibs_CXX=no
  11704. ;;
  11705. lcc*)
  11706. # Lucid
  11707. # FIXME: insert proper C++ library support
  11708. ld_shlibs_CXX=no
  11709. ;;
  11710. *)
  11711. # FIXME: insert proper C++ library support
  11712. ld_shlibs_CXX=no
  11713. ;;
  11714. esac
  11715. ;;
  11716. solaris*)
  11717. case $cc_basename in
  11718. CC* | sunCC*)
  11719. # Sun C++ 4.2, 5.x and Centerline C++
  11720. archive_cmds_need_lc_CXX=yes
  11721. no_undefined_flag_CXX=' -zdefs'
  11722. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11723. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11724. $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'
  11725. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11726. hardcode_shlibpath_var_CXX=no
  11727. case $host_os in
  11728. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11729. *)
  11730. # The compiler driver will combine and reorder linker options,
  11731. # but understands `-z linker_flag'.
  11732. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11733. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11734. ;;
  11735. esac
  11736. link_all_deplibs_CXX=yes
  11737. output_verbose_link_cmd='func_echo_all'
  11738. # Archives containing C++ object files must be created using
  11739. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11740. # necessary to make sure instantiated templates are included
  11741. # in the archive.
  11742. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11743. ;;
  11744. gcx*)
  11745. # Green Hills C++ Compiler
  11746. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11747. # The C++ compiler must be used to create the archive.
  11748. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11749. ;;
  11750. *)
  11751. # GNU C++ compiler with Solaris linker
  11752. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11753. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11754. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11755. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11756. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11757. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11758. # Commands to make compiler produce verbose output that lists
  11759. # what "hidden" libraries, object files and flags are used when
  11760. # linking a shared library.
  11761. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11762. else
  11763. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11764. # platform.
  11765. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11766. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11767. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11768. # Commands to make compiler produce verbose output that lists
  11769. # what "hidden" libraries, object files and flags are used when
  11770. # linking a shared library.
  11771. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11772. fi
  11773. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11774. case $host_os in
  11775. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11776. *)
  11777. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11778. ;;
  11779. esac
  11780. fi
  11781. ;;
  11782. esac
  11783. ;;
  11784. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11785. no_undefined_flag_CXX='${wl}-z,text'
  11786. archive_cmds_need_lc_CXX=no
  11787. hardcode_shlibpath_var_CXX=no
  11788. runpath_var='LD_RUN_PATH'
  11789. case $cc_basename in
  11790. CC*)
  11791. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11792. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11793. ;;
  11794. *)
  11795. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11797. ;;
  11798. esac
  11799. ;;
  11800. sysv5* | sco3.2v5* | sco5v6*)
  11801. # Note: We can NOT use -z defs as we might desire, because we do not
  11802. # link with -lc, and that would cause any symbols used from libc to
  11803. # always be unresolved, which means just about no library would
  11804. # ever link correctly. If we're not using GNU ld we use -z text
  11805. # though, which does catch some bad symbols but isn't as heavy-handed
  11806. # as -z defs.
  11807. no_undefined_flag_CXX='${wl}-z,text'
  11808. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11809. archive_cmds_need_lc_CXX=no
  11810. hardcode_shlibpath_var_CXX=no
  11811. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11812. hardcode_libdir_separator_CXX=':'
  11813. link_all_deplibs_CXX=yes
  11814. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11815. runpath_var='LD_RUN_PATH'
  11816. case $cc_basename in
  11817. CC*)
  11818. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11819. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11820. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11821. '"$old_archive_cmds_CXX"
  11822. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11823. '"$reload_cmds_CXX"
  11824. ;;
  11825. *)
  11826. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11827. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11828. ;;
  11829. esac
  11830. ;;
  11831. tandem*)
  11832. case $cc_basename in
  11833. NCC*)
  11834. # NonStop-UX NCC 3.20
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. *)
  11839. # FIXME: insert proper C++ library support
  11840. ld_shlibs_CXX=no
  11841. ;;
  11842. esac
  11843. ;;
  11844. vxworks*)
  11845. # FIXME: insert proper C++ library support
  11846. ld_shlibs_CXX=no
  11847. ;;
  11848. *)
  11849. # FIXME: insert proper C++ library support
  11850. ld_shlibs_CXX=no
  11851. ;;
  11852. esac
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11854. $as_echo "$ld_shlibs_CXX" >&6; }
  11855. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11856. GCC_CXX="$GXX"
  11857. LD_CXX="$LD"
  11858. ## CAVEAT EMPTOR:
  11859. ## There is no encapsulation within the following macros, do not change
  11860. ## the running order or otherwise move them around unless you know exactly
  11861. ## what you are doing...
  11862. # Dependencies to place before and after the object being linked:
  11863. predep_objects_CXX=
  11864. postdep_objects_CXX=
  11865. predeps_CXX=
  11866. postdeps_CXX=
  11867. compiler_lib_search_path_CXX=
  11868. cat > conftest.$ac_ext <<_LT_EOF
  11869. class Foo
  11870. {
  11871. public:
  11872. Foo (void) { a = 0; }
  11873. private:
  11874. int a;
  11875. };
  11876. _LT_EOF
  11877. _lt_libdeps_save_CFLAGS=$CFLAGS
  11878. case "$CC $CFLAGS " in #(
  11879. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11880. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11881. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11882. esac
  11883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11884. (eval $ac_compile) 2>&5
  11885. ac_status=$?
  11886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11887. test $ac_status = 0; }; then
  11888. # Parse the compiler output and extract the necessary
  11889. # objects, libraries and library flags.
  11890. # Sentinel used to keep track of whether or not we are before
  11891. # the conftest object file.
  11892. pre_test_object_deps_done=no
  11893. for p in `eval "$output_verbose_link_cmd"`; do
  11894. case ${prev}${p} in
  11895. -L* | -R* | -l*)
  11896. # Some compilers place space between "-{L,R}" and the path.
  11897. # Remove the space.
  11898. if test $p = "-L" ||
  11899. test $p = "-R"; then
  11900. prev=$p
  11901. continue
  11902. fi
  11903. # Expand the sysroot to ease extracting the directories later.
  11904. if test -z "$prev"; then
  11905. case $p in
  11906. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11907. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11908. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11909. esac
  11910. fi
  11911. case $p in
  11912. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11913. esac
  11914. if test "$pre_test_object_deps_done" = no; then
  11915. case ${prev} in
  11916. -L | -R)
  11917. # Internal compiler library paths should come after those
  11918. # provided the user. The postdeps already come after the
  11919. # user supplied libs so there is no need to process them.
  11920. if test -z "$compiler_lib_search_path_CXX"; then
  11921. compiler_lib_search_path_CXX="${prev}${p}"
  11922. else
  11923. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11924. fi
  11925. ;;
  11926. # The "-l" case would never come before the object being
  11927. # linked, so don't bother handling this case.
  11928. esac
  11929. else
  11930. if test -z "$postdeps_CXX"; then
  11931. postdeps_CXX="${prev}${p}"
  11932. else
  11933. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11934. fi
  11935. fi
  11936. prev=
  11937. ;;
  11938. *.lto.$objext) ;; # Ignore GCC LTO objects
  11939. *.$objext)
  11940. # This assumes that the test object file only shows up
  11941. # once in the compiler output.
  11942. if test "$p" = "conftest.$objext"; then
  11943. pre_test_object_deps_done=yes
  11944. continue
  11945. fi
  11946. if test "$pre_test_object_deps_done" = no; then
  11947. if test -z "$predep_objects_CXX"; then
  11948. predep_objects_CXX="$p"
  11949. else
  11950. predep_objects_CXX="$predep_objects_CXX $p"
  11951. fi
  11952. else
  11953. if test -z "$postdep_objects_CXX"; then
  11954. postdep_objects_CXX="$p"
  11955. else
  11956. postdep_objects_CXX="$postdep_objects_CXX $p"
  11957. fi
  11958. fi
  11959. ;;
  11960. *) ;; # Ignore the rest.
  11961. esac
  11962. done
  11963. # Clean up.
  11964. rm -f a.out a.exe
  11965. else
  11966. echo "libtool.m4: error: problem compiling CXX test program"
  11967. fi
  11968. $RM -f confest.$objext
  11969. CFLAGS=$_lt_libdeps_save_CFLAGS
  11970. # PORTME: override above test on systems where it is broken
  11971. case $host_os in
  11972. interix[3-9]*)
  11973. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11974. # hack all around it, let's just trust "g++" to DTRT.
  11975. predep_objects_CXX=
  11976. postdep_objects_CXX=
  11977. postdeps_CXX=
  11978. ;;
  11979. linux*)
  11980. case `$CC -V 2>&1 | sed 5q` in
  11981. *Sun\ C*)
  11982. # Sun C++ 5.9
  11983. # The more standards-conforming stlport4 library is
  11984. # incompatible with the Cstd library. Avoid specifying
  11985. # it if it's in CXXFLAGS. Ignore libCrun as
  11986. # -library=stlport4 depends on it.
  11987. case " $CXX $CXXFLAGS " in
  11988. *" -library=stlport4 "*)
  11989. solaris_use_stlport4=yes
  11990. ;;
  11991. esac
  11992. if test "$solaris_use_stlport4" != yes; then
  11993. postdeps_CXX='-library=Cstd -library=Crun'
  11994. fi
  11995. ;;
  11996. esac
  11997. ;;
  11998. solaris*)
  11999. case $cc_basename in
  12000. CC* | sunCC*)
  12001. # The more standards-conforming stlport4 library is
  12002. # incompatible with the Cstd library. Avoid specifying
  12003. # it if it's in CXXFLAGS. Ignore libCrun as
  12004. # -library=stlport4 depends on it.
  12005. case " $CXX $CXXFLAGS " in
  12006. *" -library=stlport4 "*)
  12007. solaris_use_stlport4=yes
  12008. ;;
  12009. esac
  12010. # Adding this requires a known-good setup of shared libraries for
  12011. # Sun compiler versions before 5.6, else PIC objects from an old
  12012. # archive will be linked into the output, leading to subtle bugs.
  12013. if test "$solaris_use_stlport4" != yes; then
  12014. postdeps_CXX='-library=Cstd -library=Crun'
  12015. fi
  12016. ;;
  12017. esac
  12018. ;;
  12019. esac
  12020. case " $postdeps_CXX " in
  12021. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12022. esac
  12023. compiler_lib_search_dirs_CXX=
  12024. if test -n "${compiler_lib_search_path_CXX}"; then
  12025. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12026. fi
  12027. lt_prog_compiler_wl_CXX=
  12028. lt_prog_compiler_pic_CXX=
  12029. lt_prog_compiler_static_CXX=
  12030. # C++ specific cases for pic, static, wl, etc.
  12031. if test "$GXX" = yes; then
  12032. lt_prog_compiler_wl_CXX='-Wl,'
  12033. lt_prog_compiler_static_CXX='-static'
  12034. case $host_os in
  12035. aix*)
  12036. # All AIX code is PIC.
  12037. if test "$host_cpu" = ia64; then
  12038. # AIX 5 now supports IA64 processor
  12039. lt_prog_compiler_static_CXX='-Bstatic'
  12040. fi
  12041. ;;
  12042. amigaos*)
  12043. case $host_cpu in
  12044. powerpc)
  12045. # see comment about AmigaOS4 .so support
  12046. lt_prog_compiler_pic_CXX='-fPIC'
  12047. ;;
  12048. m68k)
  12049. # FIXME: we need at least 68020 code to build shared libraries, but
  12050. # adding the `-m68020' flag to GCC prevents building anything better,
  12051. # like `-m68040'.
  12052. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12053. ;;
  12054. esac
  12055. ;;
  12056. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12057. # PIC is the default for these OSes.
  12058. ;;
  12059. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12060. # This hack is so that the source file can tell whether it is being
  12061. # built for inclusion in a dll (and should export symbols for example).
  12062. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12063. # (--disable-auto-import) libraries
  12064. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12065. ;;
  12066. darwin* | rhapsody*)
  12067. # PIC is the default on this platform
  12068. # Common symbols not allowed in MH_DYLIB files
  12069. lt_prog_compiler_pic_CXX='-fno-common'
  12070. ;;
  12071. *djgpp*)
  12072. # DJGPP does not support shared libraries at all
  12073. lt_prog_compiler_pic_CXX=
  12074. ;;
  12075. haiku*)
  12076. # PIC is the default for Haiku.
  12077. # The "-static" flag exists, but is broken.
  12078. lt_prog_compiler_static_CXX=
  12079. ;;
  12080. interix[3-9]*)
  12081. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12082. # Instead, we relocate shared libraries at runtime.
  12083. ;;
  12084. sysv4*MP*)
  12085. if test -d /usr/nec; then
  12086. lt_prog_compiler_pic_CXX=-Kconform_pic
  12087. fi
  12088. ;;
  12089. hpux*)
  12090. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12091. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12092. # sets the default TLS model and affects inlining.
  12093. case $host_cpu in
  12094. hppa*64*)
  12095. ;;
  12096. *)
  12097. lt_prog_compiler_pic_CXX='-fPIC'
  12098. ;;
  12099. esac
  12100. ;;
  12101. *qnx* | *nto*)
  12102. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12103. # it will coredump.
  12104. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12105. ;;
  12106. *)
  12107. lt_prog_compiler_pic_CXX='-fPIC'
  12108. ;;
  12109. esac
  12110. else
  12111. case $host_os in
  12112. aix[4-9]*)
  12113. # All AIX code is PIC.
  12114. if test "$host_cpu" = ia64; then
  12115. # AIX 5 now supports IA64 processor
  12116. lt_prog_compiler_static_CXX='-Bstatic'
  12117. else
  12118. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12119. fi
  12120. ;;
  12121. chorus*)
  12122. case $cc_basename in
  12123. cxch68*)
  12124. # Green Hills C++ Compiler
  12125. # _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"
  12126. ;;
  12127. esac
  12128. ;;
  12129. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12130. # This hack is so that the source file can tell whether it is being
  12131. # built for inclusion in a dll (and should export symbols for example).
  12132. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12133. ;;
  12134. dgux*)
  12135. case $cc_basename in
  12136. ec++*)
  12137. lt_prog_compiler_pic_CXX='-KPIC'
  12138. ;;
  12139. ghcx*)
  12140. # Green Hills C++ Compiler
  12141. lt_prog_compiler_pic_CXX='-pic'
  12142. ;;
  12143. *)
  12144. ;;
  12145. esac
  12146. ;;
  12147. freebsd* | dragonfly*)
  12148. # FreeBSD uses GNU C++
  12149. ;;
  12150. hpux9* | hpux10* | hpux11*)
  12151. case $cc_basename in
  12152. CC*)
  12153. lt_prog_compiler_wl_CXX='-Wl,'
  12154. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12155. if test "$host_cpu" != ia64; then
  12156. lt_prog_compiler_pic_CXX='+Z'
  12157. fi
  12158. ;;
  12159. aCC*)
  12160. lt_prog_compiler_wl_CXX='-Wl,'
  12161. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12162. case $host_cpu in
  12163. hppa*64*|ia64*)
  12164. # +Z the default
  12165. ;;
  12166. *)
  12167. lt_prog_compiler_pic_CXX='+Z'
  12168. ;;
  12169. esac
  12170. ;;
  12171. *)
  12172. ;;
  12173. esac
  12174. ;;
  12175. interix*)
  12176. # This is c89, which is MS Visual C++ (no shared libs)
  12177. # Anyone wants to do a port?
  12178. ;;
  12179. irix5* | irix6* | nonstopux*)
  12180. case $cc_basename in
  12181. CC*)
  12182. lt_prog_compiler_wl_CXX='-Wl,'
  12183. lt_prog_compiler_static_CXX='-non_shared'
  12184. # CC pic flag -KPIC is the default.
  12185. ;;
  12186. *)
  12187. ;;
  12188. esac
  12189. ;;
  12190. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12191. case $cc_basename in
  12192. KCC*)
  12193. # KAI C++ Compiler
  12194. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12195. lt_prog_compiler_pic_CXX='-fPIC'
  12196. ;;
  12197. ecpc* )
  12198. # old Intel C++ for x86_64 which still supported -KPIC.
  12199. lt_prog_compiler_wl_CXX='-Wl,'
  12200. lt_prog_compiler_pic_CXX='-KPIC'
  12201. lt_prog_compiler_static_CXX='-static'
  12202. ;;
  12203. icpc* )
  12204. # Intel C++, used to be incompatible with GCC.
  12205. # ICC 10 doesn't accept -KPIC any more.
  12206. lt_prog_compiler_wl_CXX='-Wl,'
  12207. lt_prog_compiler_pic_CXX='-fPIC'
  12208. lt_prog_compiler_static_CXX='-static'
  12209. ;;
  12210. pgCC* | pgcpp*)
  12211. # Portland Group C++ compiler
  12212. lt_prog_compiler_wl_CXX='-Wl,'
  12213. lt_prog_compiler_pic_CXX='-fpic'
  12214. lt_prog_compiler_static_CXX='-Bstatic'
  12215. ;;
  12216. cxx*)
  12217. # Compaq C++
  12218. # Make sure the PIC flag is empty. It appears that all Alpha
  12219. # Linux and Compaq Tru64 Unix objects are PIC.
  12220. lt_prog_compiler_pic_CXX=
  12221. lt_prog_compiler_static_CXX='-non_shared'
  12222. ;;
  12223. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12224. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12225. lt_prog_compiler_wl_CXX='-Wl,'
  12226. lt_prog_compiler_pic_CXX='-qpic'
  12227. lt_prog_compiler_static_CXX='-qstaticlink'
  12228. ;;
  12229. *)
  12230. case `$CC -V 2>&1 | sed 5q` in
  12231. *Sun\ C*)
  12232. # Sun C++ 5.9
  12233. lt_prog_compiler_pic_CXX='-KPIC'
  12234. lt_prog_compiler_static_CXX='-Bstatic'
  12235. lt_prog_compiler_wl_CXX='-Qoption ld '
  12236. ;;
  12237. esac
  12238. ;;
  12239. esac
  12240. ;;
  12241. lynxos*)
  12242. ;;
  12243. m88k*)
  12244. ;;
  12245. mvs*)
  12246. case $cc_basename in
  12247. cxx*)
  12248. lt_prog_compiler_pic_CXX='-W c,exportall'
  12249. ;;
  12250. *)
  12251. ;;
  12252. esac
  12253. ;;
  12254. netbsd*)
  12255. ;;
  12256. *qnx* | *nto*)
  12257. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12258. # it will coredump.
  12259. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12260. ;;
  12261. osf3* | osf4* | osf5*)
  12262. case $cc_basename in
  12263. KCC*)
  12264. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12265. ;;
  12266. RCC*)
  12267. # Rational C++ 2.4.1
  12268. lt_prog_compiler_pic_CXX='-pic'
  12269. ;;
  12270. cxx*)
  12271. # Digital/Compaq C++
  12272. lt_prog_compiler_wl_CXX='-Wl,'
  12273. # Make sure the PIC flag is empty. It appears that all Alpha
  12274. # Linux and Compaq Tru64 Unix objects are PIC.
  12275. lt_prog_compiler_pic_CXX=
  12276. lt_prog_compiler_static_CXX='-non_shared'
  12277. ;;
  12278. *)
  12279. ;;
  12280. esac
  12281. ;;
  12282. psos*)
  12283. ;;
  12284. solaris*)
  12285. case $cc_basename in
  12286. CC* | sunCC*)
  12287. # Sun C++ 4.2, 5.x and Centerline C++
  12288. lt_prog_compiler_pic_CXX='-KPIC'
  12289. lt_prog_compiler_static_CXX='-Bstatic'
  12290. lt_prog_compiler_wl_CXX='-Qoption ld '
  12291. ;;
  12292. gcx*)
  12293. # Green Hills C++ Compiler
  12294. lt_prog_compiler_pic_CXX='-PIC'
  12295. ;;
  12296. *)
  12297. ;;
  12298. esac
  12299. ;;
  12300. sunos4*)
  12301. case $cc_basename in
  12302. CC*)
  12303. # Sun C++ 4.x
  12304. lt_prog_compiler_pic_CXX='-pic'
  12305. lt_prog_compiler_static_CXX='-Bstatic'
  12306. ;;
  12307. lcc*)
  12308. # Lucid
  12309. lt_prog_compiler_pic_CXX='-pic'
  12310. ;;
  12311. *)
  12312. ;;
  12313. esac
  12314. ;;
  12315. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12316. case $cc_basename in
  12317. CC*)
  12318. lt_prog_compiler_wl_CXX='-Wl,'
  12319. lt_prog_compiler_pic_CXX='-KPIC'
  12320. lt_prog_compiler_static_CXX='-Bstatic'
  12321. ;;
  12322. esac
  12323. ;;
  12324. tandem*)
  12325. case $cc_basename in
  12326. NCC*)
  12327. # NonStop-UX NCC 3.20
  12328. lt_prog_compiler_pic_CXX='-KPIC'
  12329. ;;
  12330. *)
  12331. ;;
  12332. esac
  12333. ;;
  12334. vxworks*)
  12335. ;;
  12336. *)
  12337. lt_prog_compiler_can_build_shared_CXX=no
  12338. ;;
  12339. esac
  12340. fi
  12341. case $host_os in
  12342. # For platforms which do not support PIC, -DPIC is meaningless:
  12343. *djgpp*)
  12344. lt_prog_compiler_pic_CXX=
  12345. ;;
  12346. *)
  12347. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12348. ;;
  12349. esac
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12351. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12352. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12353. $as_echo_n "(cached) " >&6
  12354. else
  12355. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12356. fi
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12358. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12359. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12360. #
  12361. # Check to make sure the PIC flag actually works.
  12362. #
  12363. if test -n "$lt_prog_compiler_pic_CXX"; then
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12365. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12366. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12367. $as_echo_n "(cached) " >&6
  12368. else
  12369. lt_cv_prog_compiler_pic_works_CXX=no
  12370. ac_outfile=conftest.$ac_objext
  12371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12372. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12373. # Insert the option either (1) after the last *FLAGS variable, or
  12374. # (2) before a word containing "conftest.", or (3) at the end.
  12375. # Note that $ac_compile itself does not contain backslashes and begins
  12376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12377. # The option is referenced via a variable to avoid confusing sed.
  12378. lt_compile=`echo "$ac_compile" | $SED \
  12379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12381. -e 's:$: $lt_compiler_flag:'`
  12382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12383. (eval "$lt_compile" 2>conftest.err)
  12384. ac_status=$?
  12385. cat conftest.err >&5
  12386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12387. if (exit $ac_status) && test -s "$ac_outfile"; then
  12388. # The compiler can only warn and ignore the option if not recognized
  12389. # So say no if there are warnings other than the usual output.
  12390. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12392. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12393. lt_cv_prog_compiler_pic_works_CXX=yes
  12394. fi
  12395. fi
  12396. $RM conftest*
  12397. fi
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12399. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12400. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12401. case $lt_prog_compiler_pic_CXX in
  12402. "" | " "*) ;;
  12403. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12404. esac
  12405. else
  12406. lt_prog_compiler_pic_CXX=
  12407. lt_prog_compiler_can_build_shared_CXX=no
  12408. fi
  12409. fi
  12410. #
  12411. # Check to make sure the static flag actually works.
  12412. #
  12413. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12415. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12416. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12417. $as_echo_n "(cached) " >&6
  12418. else
  12419. lt_cv_prog_compiler_static_works_CXX=no
  12420. save_LDFLAGS="$LDFLAGS"
  12421. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12422. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12423. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12424. # The linker can only warn and ignore the option if not recognized
  12425. # So say no if there are warnings
  12426. if test -s conftest.err; then
  12427. # Append any errors to the config.log.
  12428. cat conftest.err 1>&5
  12429. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12430. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12431. if diff conftest.exp conftest.er2 >/dev/null; then
  12432. lt_cv_prog_compiler_static_works_CXX=yes
  12433. fi
  12434. else
  12435. lt_cv_prog_compiler_static_works_CXX=yes
  12436. fi
  12437. fi
  12438. $RM -r conftest*
  12439. LDFLAGS="$save_LDFLAGS"
  12440. fi
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12442. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12443. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12444. :
  12445. else
  12446. lt_prog_compiler_static_CXX=
  12447. fi
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12449. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12450. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12451. $as_echo_n "(cached) " >&6
  12452. else
  12453. lt_cv_prog_compiler_c_o_CXX=no
  12454. $RM -r conftest 2>/dev/null
  12455. mkdir conftest
  12456. cd conftest
  12457. mkdir out
  12458. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12459. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12460. # Insert the option either (1) after the last *FLAGS variable, or
  12461. # (2) before a word containing "conftest.", or (3) at the end.
  12462. # Note that $ac_compile itself does not contain backslashes and begins
  12463. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12464. lt_compile=`echo "$ac_compile" | $SED \
  12465. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12466. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12467. -e 's:$: $lt_compiler_flag:'`
  12468. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12469. (eval "$lt_compile" 2>out/conftest.err)
  12470. ac_status=$?
  12471. cat out/conftest.err >&5
  12472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12473. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12474. then
  12475. # The compiler can only warn and ignore the option if not recognized
  12476. # So say no if there are warnings
  12477. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12478. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12479. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12480. lt_cv_prog_compiler_c_o_CXX=yes
  12481. fi
  12482. fi
  12483. chmod u+w . 2>&5
  12484. $RM conftest*
  12485. # SGI C++ compiler will create directory out/ii_files/ for
  12486. # template instantiation
  12487. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12488. $RM out/* && rmdir out
  12489. cd ..
  12490. $RM -r conftest
  12491. $RM conftest*
  12492. fi
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12494. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12496. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12497. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12498. $as_echo_n "(cached) " >&6
  12499. else
  12500. lt_cv_prog_compiler_c_o_CXX=no
  12501. $RM -r conftest 2>/dev/null
  12502. mkdir conftest
  12503. cd conftest
  12504. mkdir out
  12505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12506. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12507. # Insert the option either (1) after the last *FLAGS variable, or
  12508. # (2) before a word containing "conftest.", or (3) at the end.
  12509. # Note that $ac_compile itself does not contain backslashes and begins
  12510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12511. lt_compile=`echo "$ac_compile" | $SED \
  12512. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12514. -e 's:$: $lt_compiler_flag:'`
  12515. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12516. (eval "$lt_compile" 2>out/conftest.err)
  12517. ac_status=$?
  12518. cat out/conftest.err >&5
  12519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12520. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12521. then
  12522. # The compiler can only warn and ignore the option if not recognized
  12523. # So say no if there are warnings
  12524. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12525. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12526. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12527. lt_cv_prog_compiler_c_o_CXX=yes
  12528. fi
  12529. fi
  12530. chmod u+w . 2>&5
  12531. $RM conftest*
  12532. # SGI C++ compiler will create directory out/ii_files/ for
  12533. # template instantiation
  12534. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12535. $RM out/* && rmdir out
  12536. cd ..
  12537. $RM -r conftest
  12538. $RM conftest*
  12539. fi
  12540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12541. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12542. hard_links="nottested"
  12543. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12544. # do not overwrite the value of need_locks provided by the user
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12546. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12547. hard_links=yes
  12548. $RM conftest*
  12549. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12550. touch conftest.a
  12551. ln conftest.a conftest.b 2>&5 || hard_links=no
  12552. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12554. $as_echo "$hard_links" >&6; }
  12555. if test "$hard_links" = no; then
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12557. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12558. need_locks=warn
  12559. fi
  12560. else
  12561. need_locks=no
  12562. fi
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12564. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12565. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12566. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12567. case $host_os in
  12568. aix[4-9]*)
  12569. # If we're using GNU nm, then we don't want the "-C" option.
  12570. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12571. # Also, AIX nm treats weak defined symbols like other global defined
  12572. # symbols, whereas GNU nm marks them as "W".
  12573. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12574. 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'
  12575. else
  12576. 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'
  12577. fi
  12578. ;;
  12579. pw32*)
  12580. export_symbols_cmds_CXX="$ltdll_cmds"
  12581. ;;
  12582. cygwin* | mingw* | cegcc*)
  12583. case $cc_basename in
  12584. cl*)
  12585. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12586. ;;
  12587. *)
  12588. 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'
  12589. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12590. ;;
  12591. esac
  12592. ;;
  12593. *)
  12594. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12595. ;;
  12596. esac
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12598. $as_echo "$ld_shlibs_CXX" >&6; }
  12599. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12600. with_gnu_ld_CXX=$with_gnu_ld
  12601. #
  12602. # Do we need to explicitly link libc?
  12603. #
  12604. case "x$archive_cmds_need_lc_CXX" in
  12605. x|xyes)
  12606. # Assume -lc should be added
  12607. archive_cmds_need_lc_CXX=yes
  12608. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12609. case $archive_cmds_CXX in
  12610. *'~'*)
  12611. # FIXME: we may have to deal with multi-command sequences.
  12612. ;;
  12613. '$CC '*)
  12614. # Test whether the compiler implicitly links with -lc since on some
  12615. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12616. # to ld, don't add -lc before -lgcc.
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12618. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12619. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12620. $as_echo_n "(cached) " >&6
  12621. else
  12622. $RM conftest*
  12623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12624. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12625. (eval $ac_compile) 2>&5
  12626. ac_status=$?
  12627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12628. test $ac_status = 0; } 2>conftest.err; then
  12629. soname=conftest
  12630. lib=conftest
  12631. libobjs=conftest.$ac_objext
  12632. deplibs=
  12633. wl=$lt_prog_compiler_wl_CXX
  12634. pic_flag=$lt_prog_compiler_pic_CXX
  12635. compiler_flags=-v
  12636. linker_flags=-v
  12637. verstring=
  12638. output_objdir=.
  12639. libname=conftest
  12640. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12641. allow_undefined_flag_CXX=
  12642. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12643. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12644. ac_status=$?
  12645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12646. test $ac_status = 0; }
  12647. then
  12648. lt_cv_archive_cmds_need_lc_CXX=no
  12649. else
  12650. lt_cv_archive_cmds_need_lc_CXX=yes
  12651. fi
  12652. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12653. else
  12654. cat conftest.err 1>&5
  12655. fi
  12656. $RM conftest*
  12657. fi
  12658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12659. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12660. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12661. ;;
  12662. esac
  12663. fi
  12664. ;;
  12665. esac
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12667. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12668. library_names_spec=
  12669. libname_spec='lib$name'
  12670. soname_spec=
  12671. shrext_cmds=".so"
  12672. postinstall_cmds=
  12673. postuninstall_cmds=
  12674. finish_cmds=
  12675. finish_eval=
  12676. shlibpath_var=
  12677. shlibpath_overrides_runpath=unknown
  12678. version_type=none
  12679. dynamic_linker="$host_os ld.so"
  12680. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12681. need_lib_prefix=unknown
  12682. hardcode_into_libs=no
  12683. # when you set need_version to no, make sure it does not cause -set_version
  12684. # flags to be left without arguments
  12685. need_version=unknown
  12686. case $host_os in
  12687. aix3*)
  12688. version_type=linux # correct to gnu/linux during the next big refactor
  12689. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12690. shlibpath_var=LIBPATH
  12691. # AIX 3 has no versioning support, so we append a major version to the name.
  12692. soname_spec='${libname}${release}${shared_ext}$major'
  12693. ;;
  12694. aix[4-9]*)
  12695. version_type=linux # correct to gnu/linux during the next big refactor
  12696. need_lib_prefix=no
  12697. need_version=no
  12698. hardcode_into_libs=yes
  12699. if test "$host_cpu" = ia64; then
  12700. # AIX 5 supports IA64
  12701. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12702. shlibpath_var=LD_LIBRARY_PATH
  12703. else
  12704. # With GCC up to 2.95.x, collect2 would create an import file
  12705. # for dependence libraries. The import file would start with
  12706. # the line `#! .'. This would cause the generated library to
  12707. # depend on `.', always an invalid library. This was fixed in
  12708. # development snapshots of GCC prior to 3.0.
  12709. case $host_os in
  12710. aix4 | aix4.[01] | aix4.[01].*)
  12711. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12712. echo ' yes '
  12713. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12714. :
  12715. else
  12716. can_build_shared=no
  12717. fi
  12718. ;;
  12719. esac
  12720. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12721. # soname into executable. Probably we can add versioning support to
  12722. # collect2, so additional links can be useful in future.
  12723. if test "$aix_use_runtimelinking" = yes; then
  12724. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12725. # instead of lib<name>.a to let people know that these are not
  12726. # typical AIX shared libraries.
  12727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12728. else
  12729. # We preserve .a as extension for shared libraries through AIX4.2
  12730. # and later when we are not doing run time linking.
  12731. library_names_spec='${libname}${release}.a $libname.a'
  12732. soname_spec='${libname}${release}${shared_ext}$major'
  12733. fi
  12734. shlibpath_var=LIBPATH
  12735. fi
  12736. ;;
  12737. amigaos*)
  12738. case $host_cpu in
  12739. powerpc)
  12740. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12741. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12743. ;;
  12744. m68k)
  12745. library_names_spec='$libname.ixlibrary $libname.a'
  12746. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12747. 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'
  12748. ;;
  12749. esac
  12750. ;;
  12751. beos*)
  12752. library_names_spec='${libname}${shared_ext}'
  12753. dynamic_linker="$host_os ld.so"
  12754. shlibpath_var=LIBRARY_PATH
  12755. ;;
  12756. bsdi[45]*)
  12757. version_type=linux # correct to gnu/linux during the next big refactor
  12758. need_version=no
  12759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12760. soname_spec='${libname}${release}${shared_ext}$major'
  12761. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12762. shlibpath_var=LD_LIBRARY_PATH
  12763. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12764. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12765. # the default ld.so.conf also contains /usr/contrib/lib and
  12766. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12767. # libtool to hard-code these into programs
  12768. ;;
  12769. cygwin* | mingw* | pw32* | cegcc*)
  12770. version_type=windows
  12771. shrext_cmds=".dll"
  12772. need_version=no
  12773. need_lib_prefix=no
  12774. case $GCC,$cc_basename in
  12775. yes,*)
  12776. # gcc
  12777. library_names_spec='$libname.dll.a'
  12778. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12779. postinstall_cmds='base_file=`basename \${file}`~
  12780. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12781. dldir=$destdir/`dirname \$dlpath`~
  12782. test -d \$dldir || mkdir -p \$dldir~
  12783. $install_prog $dir/$dlname \$dldir/$dlname~
  12784. chmod a+x \$dldir/$dlname~
  12785. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12786. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12787. fi'
  12788. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12789. dlpath=$dir/\$dldll~
  12790. $RM \$dlpath'
  12791. shlibpath_overrides_runpath=yes
  12792. case $host_os in
  12793. cygwin*)
  12794. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12795. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12796. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12797. ;;
  12798. mingw* | cegcc*)
  12799. # MinGW DLLs use traditional 'lib' prefix
  12800. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12801. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12802. ;;
  12803. pw32*)
  12804. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12805. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12806. ;;
  12807. esac
  12808. dynamic_linker='Win32 ld.exe'
  12809. ;;
  12810. *,cl*)
  12811. # Native MSVC
  12812. libname_spec='$name'
  12813. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12814. library_names_spec='${libname}.dll.lib'
  12815. case $build_os in
  12816. mingw*)
  12817. sys_lib_search_path_spec=
  12818. lt_save_ifs=$IFS
  12819. IFS=';'
  12820. for lt_path in $LIB
  12821. do
  12822. IFS=$lt_save_ifs
  12823. # Let DOS variable expansion print the short 8.3 style file name.
  12824. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12825. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12826. done
  12827. IFS=$lt_save_ifs
  12828. # Convert to MSYS style.
  12829. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12830. ;;
  12831. cygwin*)
  12832. # Convert to unix form, then to dos form, then back to unix form
  12833. # but this time dos style (no spaces!) so that the unix form looks
  12834. # like /cygdrive/c/PROGRA~1:/cygdr...
  12835. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12836. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12837. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12838. ;;
  12839. *)
  12840. sys_lib_search_path_spec="$LIB"
  12841. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12842. # It is most probably a Windows format PATH.
  12843. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12844. else
  12845. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12846. fi
  12847. # FIXME: find the short name or the path components, as spaces are
  12848. # common. (e.g. "Program Files" -> "PROGRA~1")
  12849. ;;
  12850. esac
  12851. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12852. postinstall_cmds='base_file=`basename \${file}`~
  12853. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12854. dldir=$destdir/`dirname \$dlpath`~
  12855. test -d \$dldir || mkdir -p \$dldir~
  12856. $install_prog $dir/$dlname \$dldir/$dlname'
  12857. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12858. dlpath=$dir/\$dldll~
  12859. $RM \$dlpath'
  12860. shlibpath_overrides_runpath=yes
  12861. dynamic_linker='Win32 link.exe'
  12862. ;;
  12863. *)
  12864. # Assume MSVC wrapper
  12865. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12866. dynamic_linker='Win32 ld.exe'
  12867. ;;
  12868. esac
  12869. # FIXME: first we should search . and the directory the executable is in
  12870. shlibpath_var=PATH
  12871. ;;
  12872. darwin* | rhapsody*)
  12873. dynamic_linker="$host_os dyld"
  12874. version_type=darwin
  12875. need_lib_prefix=no
  12876. need_version=no
  12877. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12878. soname_spec='${libname}${release}${major}$shared_ext'
  12879. shlibpath_overrides_runpath=yes
  12880. shlibpath_var=DYLD_LIBRARY_PATH
  12881. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12882. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12883. ;;
  12884. dgux*)
  12885. version_type=linux # correct to gnu/linux during the next big refactor
  12886. need_lib_prefix=no
  12887. need_version=no
  12888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12889. soname_spec='${libname}${release}${shared_ext}$major'
  12890. shlibpath_var=LD_LIBRARY_PATH
  12891. ;;
  12892. freebsd* | dragonfly*)
  12893. # DragonFly does not have aout. When/if they implement a new
  12894. # versioning mechanism, adjust this.
  12895. if test -x /usr/bin/objformat; then
  12896. objformat=`/usr/bin/objformat`
  12897. else
  12898. case $host_os in
  12899. freebsd[23].*) objformat=aout ;;
  12900. *) objformat=elf ;;
  12901. esac
  12902. fi
  12903. version_type=freebsd-$objformat
  12904. case $version_type in
  12905. freebsd-elf*)
  12906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12907. need_version=no
  12908. need_lib_prefix=no
  12909. ;;
  12910. freebsd-*)
  12911. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12912. need_version=yes
  12913. ;;
  12914. esac
  12915. shlibpath_var=LD_LIBRARY_PATH
  12916. case $host_os in
  12917. freebsd2.*)
  12918. shlibpath_overrides_runpath=yes
  12919. ;;
  12920. freebsd3.[01]* | freebsdelf3.[01]*)
  12921. shlibpath_overrides_runpath=yes
  12922. hardcode_into_libs=yes
  12923. ;;
  12924. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12925. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12926. shlibpath_overrides_runpath=no
  12927. hardcode_into_libs=yes
  12928. ;;
  12929. *) # from 4.6 on, and DragonFly
  12930. shlibpath_overrides_runpath=yes
  12931. hardcode_into_libs=yes
  12932. ;;
  12933. esac
  12934. ;;
  12935. gnu*)
  12936. version_type=linux # correct to gnu/linux during the next big refactor
  12937. need_lib_prefix=no
  12938. need_version=no
  12939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12940. soname_spec='${libname}${release}${shared_ext}$major'
  12941. shlibpath_var=LD_LIBRARY_PATH
  12942. shlibpath_overrides_runpath=no
  12943. hardcode_into_libs=yes
  12944. ;;
  12945. haiku*)
  12946. version_type=linux # correct to gnu/linux during the next big refactor
  12947. need_lib_prefix=no
  12948. need_version=no
  12949. dynamic_linker="$host_os runtime_loader"
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12951. soname_spec='${libname}${release}${shared_ext}$major'
  12952. shlibpath_var=LIBRARY_PATH
  12953. shlibpath_overrides_runpath=yes
  12954. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12955. hardcode_into_libs=yes
  12956. ;;
  12957. hpux9* | hpux10* | hpux11*)
  12958. # Give a soname corresponding to the major version so that dld.sl refuses to
  12959. # link against other versions.
  12960. version_type=sunos
  12961. need_lib_prefix=no
  12962. need_version=no
  12963. case $host_cpu in
  12964. ia64*)
  12965. shrext_cmds='.so'
  12966. hardcode_into_libs=yes
  12967. dynamic_linker="$host_os dld.so"
  12968. shlibpath_var=LD_LIBRARY_PATH
  12969. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12971. soname_spec='${libname}${release}${shared_ext}$major'
  12972. if test "X$HPUX_IA64_MODE" = X32; then
  12973. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12974. else
  12975. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12976. fi
  12977. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12978. ;;
  12979. hppa*64*)
  12980. shrext_cmds='.sl'
  12981. hardcode_into_libs=yes
  12982. dynamic_linker="$host_os dld.sl"
  12983. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12984. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12988. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12989. ;;
  12990. *)
  12991. shrext_cmds='.sl'
  12992. dynamic_linker="$host_os dld.sl"
  12993. shlibpath_var=SHLIB_PATH
  12994. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12996. soname_spec='${libname}${release}${shared_ext}$major'
  12997. ;;
  12998. esac
  12999. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13000. postinstall_cmds='chmod 555 $lib'
  13001. # or fails outright, so override atomically:
  13002. install_override_mode=555
  13003. ;;
  13004. interix[3-9]*)
  13005. version_type=linux # correct to gnu/linux during the next big refactor
  13006. need_lib_prefix=no
  13007. need_version=no
  13008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13009. soname_spec='${libname}${release}${shared_ext}$major'
  13010. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13011. shlibpath_var=LD_LIBRARY_PATH
  13012. shlibpath_overrides_runpath=no
  13013. hardcode_into_libs=yes
  13014. ;;
  13015. irix5* | irix6* | nonstopux*)
  13016. case $host_os in
  13017. nonstopux*) version_type=nonstopux ;;
  13018. *)
  13019. if test "$lt_cv_prog_gnu_ld" = yes; then
  13020. version_type=linux # correct to gnu/linux during the next big refactor
  13021. else
  13022. version_type=irix
  13023. fi ;;
  13024. esac
  13025. need_lib_prefix=no
  13026. need_version=no
  13027. soname_spec='${libname}${release}${shared_ext}$major'
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13029. case $host_os in
  13030. irix5* | nonstopux*)
  13031. libsuff= shlibsuff=
  13032. ;;
  13033. *)
  13034. case $LD in # libtool.m4 will add one of these switches to LD
  13035. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13036. libsuff= shlibsuff= libmagic=32-bit;;
  13037. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13038. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13039. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13040. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13041. *) libsuff= shlibsuff= libmagic=never-match;;
  13042. esac
  13043. ;;
  13044. esac
  13045. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13046. shlibpath_overrides_runpath=no
  13047. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13048. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13049. hardcode_into_libs=yes
  13050. ;;
  13051. # No shared lib support for Linux oldld, aout, or coff.
  13052. linux*oldld* | linux*aout* | linux*coff*)
  13053. dynamic_linker=no
  13054. ;;
  13055. # This must be glibc/ELF.
  13056. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13057. version_type=linux # correct to gnu/linux during the next big refactor
  13058. need_lib_prefix=no
  13059. need_version=no
  13060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13061. soname_spec='${libname}${release}${shared_ext}$major'
  13062. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13063. shlibpath_var=LD_LIBRARY_PATH
  13064. shlibpath_overrides_runpath=no
  13065. # Some binutils ld are patched to set DT_RUNPATH
  13066. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13067. $as_echo_n "(cached) " >&6
  13068. else
  13069. lt_cv_shlibpath_overrides_runpath=no
  13070. save_LDFLAGS=$LDFLAGS
  13071. save_libdir=$libdir
  13072. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13073. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13075. /* end confdefs.h. */
  13076. int
  13077. main ()
  13078. {
  13079. ;
  13080. return 0;
  13081. }
  13082. _ACEOF
  13083. if ac_fn_cxx_try_link "$LINENO"; then :
  13084. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13085. lt_cv_shlibpath_overrides_runpath=yes
  13086. fi
  13087. fi
  13088. rm -f core conftest.err conftest.$ac_objext \
  13089. conftest$ac_exeext conftest.$ac_ext
  13090. LDFLAGS=$save_LDFLAGS
  13091. libdir=$save_libdir
  13092. fi
  13093. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13094. # This implies no fast_install, which is unacceptable.
  13095. # Some rework will be needed to allow for fast_install
  13096. # before this can be enabled.
  13097. hardcode_into_libs=yes
  13098. # Append ld.so.conf contents to the search path
  13099. if test -f /etc/ld.so.conf; then
  13100. 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' ' '`
  13101. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13102. fi
  13103. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13104. # powerpc, because MkLinux only supported shared libraries with the
  13105. # GNU dynamic linker. Since this was broken with cross compilers,
  13106. # most powerpc-linux boxes support dynamic linking these days and
  13107. # people can always --disable-shared, the test was removed, and we
  13108. # assume the GNU/Linux dynamic linker is in use.
  13109. dynamic_linker='GNU/Linux ld.so'
  13110. ;;
  13111. netbsd*)
  13112. version_type=sunos
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13117. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13118. dynamic_linker='NetBSD (a.out) ld.so'
  13119. else
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13121. soname_spec='${libname}${release}${shared_ext}$major'
  13122. dynamic_linker='NetBSD ld.elf_so'
  13123. fi
  13124. shlibpath_var=LD_LIBRARY_PATH
  13125. shlibpath_overrides_runpath=yes
  13126. hardcode_into_libs=yes
  13127. ;;
  13128. newsos6)
  13129. version_type=linux # correct to gnu/linux during the next big refactor
  13130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13131. shlibpath_var=LD_LIBRARY_PATH
  13132. shlibpath_overrides_runpath=yes
  13133. ;;
  13134. *nto* | *qnx*)
  13135. version_type=qnx
  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. shlibpath_overrides_runpath=no
  13142. hardcode_into_libs=yes
  13143. dynamic_linker='ldqnx.so'
  13144. ;;
  13145. openbsd*)
  13146. version_type=sunos
  13147. sys_lib_dlsearch_path_spec="/usr/lib"
  13148. need_lib_prefix=no
  13149. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13150. case $host_os in
  13151. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13152. *) need_version=no ;;
  13153. esac
  13154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13155. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13156. shlibpath_var=LD_LIBRARY_PATH
  13157. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13158. case $host_os in
  13159. openbsd2.[89] | openbsd2.[89].*)
  13160. shlibpath_overrides_runpath=no
  13161. ;;
  13162. *)
  13163. shlibpath_overrides_runpath=yes
  13164. ;;
  13165. esac
  13166. else
  13167. shlibpath_overrides_runpath=yes
  13168. fi
  13169. ;;
  13170. os2*)
  13171. libname_spec='$name'
  13172. shrext_cmds=".dll"
  13173. need_lib_prefix=no
  13174. library_names_spec='$libname${shared_ext} $libname.a'
  13175. dynamic_linker='OS/2 ld.exe'
  13176. shlibpath_var=LIBPATH
  13177. ;;
  13178. osf3* | osf4* | osf5*)
  13179. version_type=osf
  13180. need_lib_prefix=no
  13181. need_version=no
  13182. soname_spec='${libname}${release}${shared_ext}$major'
  13183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13184. shlibpath_var=LD_LIBRARY_PATH
  13185. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13186. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13187. ;;
  13188. rdos*)
  13189. dynamic_linker=no
  13190. ;;
  13191. solaris*)
  13192. version_type=linux # correct to gnu/linux during the next big refactor
  13193. need_lib_prefix=no
  13194. need_version=no
  13195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13196. soname_spec='${libname}${release}${shared_ext}$major'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. shlibpath_overrides_runpath=yes
  13199. hardcode_into_libs=yes
  13200. # ldd complains unless libraries are executable
  13201. postinstall_cmds='chmod +x $lib'
  13202. ;;
  13203. sunos4*)
  13204. version_type=sunos
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13206. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13207. shlibpath_var=LD_LIBRARY_PATH
  13208. shlibpath_overrides_runpath=yes
  13209. if test "$with_gnu_ld" = yes; then
  13210. need_lib_prefix=no
  13211. fi
  13212. need_version=yes
  13213. ;;
  13214. sysv4 | sysv4.3*)
  13215. version_type=linux # correct to gnu/linux during the next big refactor
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13217. soname_spec='${libname}${release}${shared_ext}$major'
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. case $host_vendor in
  13220. sni)
  13221. shlibpath_overrides_runpath=no
  13222. need_lib_prefix=no
  13223. runpath_var=LD_RUN_PATH
  13224. ;;
  13225. siemens)
  13226. need_lib_prefix=no
  13227. ;;
  13228. motorola)
  13229. need_lib_prefix=no
  13230. need_version=no
  13231. shlibpath_overrides_runpath=no
  13232. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13233. ;;
  13234. esac
  13235. ;;
  13236. sysv4*MP*)
  13237. if test -d /usr/nec ;then
  13238. version_type=linux # correct to gnu/linux during the next big refactor
  13239. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13240. soname_spec='$libname${shared_ext}.$major'
  13241. shlibpath_var=LD_LIBRARY_PATH
  13242. fi
  13243. ;;
  13244. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13245. version_type=freebsd-elf
  13246. need_lib_prefix=no
  13247. need_version=no
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13249. soname_spec='${libname}${release}${shared_ext}$major'
  13250. shlibpath_var=LD_LIBRARY_PATH
  13251. shlibpath_overrides_runpath=yes
  13252. hardcode_into_libs=yes
  13253. if test "$with_gnu_ld" = yes; then
  13254. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13255. else
  13256. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13257. case $host_os in
  13258. sco3.2v5*)
  13259. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13260. ;;
  13261. esac
  13262. fi
  13263. sys_lib_dlsearch_path_spec='/usr/lib'
  13264. ;;
  13265. tpf*)
  13266. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13267. version_type=linux # correct to gnu/linux during the next big refactor
  13268. need_lib_prefix=no
  13269. need_version=no
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13271. shlibpath_var=LD_LIBRARY_PATH
  13272. shlibpath_overrides_runpath=no
  13273. hardcode_into_libs=yes
  13274. ;;
  13275. uts4*)
  13276. version_type=linux # correct to gnu/linux during the next big refactor
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13278. soname_spec='${libname}${release}${shared_ext}$major'
  13279. shlibpath_var=LD_LIBRARY_PATH
  13280. ;;
  13281. *)
  13282. dynamic_linker=no
  13283. ;;
  13284. esac
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13286. $as_echo "$dynamic_linker" >&6; }
  13287. test "$dynamic_linker" = no && can_build_shared=no
  13288. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13289. if test "$GCC" = yes; then
  13290. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13291. fi
  13292. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13293. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13294. fi
  13295. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13296. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13297. fi
  13298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13299. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13300. hardcode_action_CXX=
  13301. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13302. test -n "$runpath_var_CXX" ||
  13303. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13304. # We can hardcode non-existent directories.
  13305. if test "$hardcode_direct_CXX" != no &&
  13306. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13307. # have to relink, otherwise we might link with an installed library
  13308. # when we should be linking with a yet-to-be-installed one
  13309. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13310. test "$hardcode_minus_L_CXX" != no; then
  13311. # Linking always hardcodes the temporary library directory.
  13312. hardcode_action_CXX=relink
  13313. else
  13314. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13315. hardcode_action_CXX=immediate
  13316. fi
  13317. else
  13318. # We cannot hardcode anything, or else we can only hardcode existing
  13319. # directories.
  13320. hardcode_action_CXX=unsupported
  13321. fi
  13322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13323. $as_echo "$hardcode_action_CXX" >&6; }
  13324. if test "$hardcode_action_CXX" = relink ||
  13325. test "$inherit_rpath_CXX" = yes; then
  13326. # Fast installation is not supported
  13327. enable_fast_install=no
  13328. elif test "$shlibpath_overrides_runpath" = yes ||
  13329. test "$enable_shared" = no; then
  13330. # Fast installation is not necessary
  13331. enable_fast_install=needless
  13332. fi
  13333. fi # test -n "$compiler"
  13334. CC=$lt_save_CC
  13335. CFLAGS=$lt_save_CFLAGS
  13336. LDCXX=$LD
  13337. LD=$lt_save_LD
  13338. GCC=$lt_save_GCC
  13339. with_gnu_ld=$lt_save_with_gnu_ld
  13340. lt_cv_path_LDCXX=$lt_cv_path_LD
  13341. lt_cv_path_LD=$lt_save_path_LD
  13342. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13343. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13344. fi # test "$_lt_caught_CXX_error" != yes
  13345. ac_ext=c
  13346. ac_cpp='$CPP $CPPFLAGS'
  13347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13350. # Find a good install program. We prefer a C program (faster),
  13351. # so one script is as good as another. But avoid the broken or
  13352. # incompatible versions:
  13353. # SysV /etc/install, /usr/sbin/install
  13354. # SunOS /usr/etc/install
  13355. # IRIX /sbin/install
  13356. # AIX /bin/install
  13357. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13358. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13359. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13360. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13361. # OS/2's system install, which has a completely different semantic
  13362. # ./install, which can be erroneously created by make from ./install.sh.
  13363. # Reject install programs that cannot install multiple files.
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13365. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13366. if test -z "$INSTALL"; then
  13367. if ${ac_cv_path_install+:} false; then :
  13368. $as_echo_n "(cached) " >&6
  13369. else
  13370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13371. for as_dir in $PATH
  13372. do
  13373. IFS=$as_save_IFS
  13374. test -z "$as_dir" && as_dir=.
  13375. # Account for people who put trailing slashes in PATH elements.
  13376. case $as_dir/ in #((
  13377. ./ | .// | /[cC]/* | \
  13378. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13379. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13380. /usr/ucb/* ) ;;
  13381. *)
  13382. # OSF1 and SCO ODT 3.0 have their own names for install.
  13383. # Don't use installbsd from OSF since it installs stuff as root
  13384. # by default.
  13385. for ac_prog in ginstall scoinst install; do
  13386. for ac_exec_ext in '' $ac_executable_extensions; do
  13387. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13388. if test $ac_prog = install &&
  13389. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13390. # AIX install. It has an incompatible calling convention.
  13391. :
  13392. elif test $ac_prog = install &&
  13393. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13394. # program-specific install script used by HP pwplus--don't use.
  13395. :
  13396. else
  13397. rm -rf conftest.one conftest.two conftest.dir
  13398. echo one > conftest.one
  13399. echo two > conftest.two
  13400. mkdir conftest.dir
  13401. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13402. test -s conftest.one && test -s conftest.two &&
  13403. test -s conftest.dir/conftest.one &&
  13404. test -s conftest.dir/conftest.two
  13405. then
  13406. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13407. break 3
  13408. fi
  13409. fi
  13410. fi
  13411. done
  13412. done
  13413. ;;
  13414. esac
  13415. done
  13416. IFS=$as_save_IFS
  13417. rm -rf conftest.one conftest.two conftest.dir
  13418. fi
  13419. if test "${ac_cv_path_install+set}" = set; then
  13420. INSTALL=$ac_cv_path_install
  13421. else
  13422. # As a last resort, use the slow shell script. Don't cache a
  13423. # value for INSTALL within a source directory, because that will
  13424. # break other packages using the cache if that directory is
  13425. # removed, or if the value is a relative name.
  13426. INSTALL=$ac_install_sh
  13427. fi
  13428. fi
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13430. $as_echo "$INSTALL" >&6; }
  13431. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13432. # It thinks the first close brace ends the variable substitution.
  13433. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13434. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13435. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13437. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13438. set x ${MAKE-make}
  13439. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13440. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13441. $as_echo_n "(cached) " >&6
  13442. else
  13443. cat >conftest.make <<\_ACEOF
  13444. SHELL = /bin/sh
  13445. all:
  13446. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13447. _ACEOF
  13448. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13449. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13450. *@@@%%%=?*=@@@%%%*)
  13451. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13452. *)
  13453. eval ac_cv_prog_make_${ac_make}_set=no;;
  13454. esac
  13455. rm -f conftest.make
  13456. fi
  13457. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13459. $as_echo "yes" >&6; }
  13460. SET_MAKE=
  13461. else
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13463. $as_echo "no" >&6; }
  13464. SET_MAKE="MAKE=${MAKE-make}"
  13465. fi
  13466. if test -n "$ac_tool_prefix"; then
  13467. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13468. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13470. $as_echo_n "checking for $ac_word... " >&6; }
  13471. if ${ac_cv_prog_WINDRES+:} false; then :
  13472. $as_echo_n "(cached) " >&6
  13473. else
  13474. if test -n "$WINDRES"; then
  13475. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13476. else
  13477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13478. for as_dir in $PATH
  13479. do
  13480. IFS=$as_save_IFS
  13481. test -z "$as_dir" && as_dir=.
  13482. for ac_exec_ext in '' $ac_executable_extensions; do
  13483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13484. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13486. break 2
  13487. fi
  13488. done
  13489. done
  13490. IFS=$as_save_IFS
  13491. fi
  13492. fi
  13493. WINDRES=$ac_cv_prog_WINDRES
  13494. if test -n "$WINDRES"; then
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13496. $as_echo "$WINDRES" >&6; }
  13497. else
  13498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13499. $as_echo "no" >&6; }
  13500. fi
  13501. fi
  13502. if test -z "$ac_cv_prog_WINDRES"; then
  13503. ac_ct_WINDRES=$WINDRES
  13504. # Extract the first word of "windres", so it can be a program name with args.
  13505. set dummy windres; ac_word=$2
  13506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13507. $as_echo_n "checking for $ac_word... " >&6; }
  13508. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13509. $as_echo_n "(cached) " >&6
  13510. else
  13511. if test -n "$ac_ct_WINDRES"; then
  13512. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13513. else
  13514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13515. for as_dir in $PATH
  13516. do
  13517. IFS=$as_save_IFS
  13518. test -z "$as_dir" && as_dir=.
  13519. for ac_exec_ext in '' $ac_executable_extensions; do
  13520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13521. ac_cv_prog_ac_ct_WINDRES="windres"
  13522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13523. break 2
  13524. fi
  13525. done
  13526. done
  13527. IFS=$as_save_IFS
  13528. fi
  13529. fi
  13530. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13531. if test -n "$ac_ct_WINDRES"; then
  13532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13533. $as_echo "$ac_ct_WINDRES" >&6; }
  13534. else
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13536. $as_echo "no" >&6; }
  13537. fi
  13538. if test "x$ac_ct_WINDRES" = x; then
  13539. WINDRES=":"
  13540. else
  13541. case $cross_compiling:$ac_tool_warned in
  13542. yes:)
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13545. ac_tool_warned=yes ;;
  13546. esac
  13547. WINDRES=$ac_ct_WINDRES
  13548. fi
  13549. else
  13550. WINDRES="$ac_cv_prog_WINDRES"
  13551. fi
  13552. case "$host" in
  13553. *-*-mingw32*)
  13554. # Except on msys, where make can't handle full pathnames (bug 1972)
  13555. ;;
  13556. *)
  13557. srcdir=`cd $srcdir && pwd`
  13558. ;;
  13559. esac
  13560. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13561. if test x$srcdir != x.; then
  13562. INCLUDE="-Iinclude $INCLUDE"
  13563. elif test -d .hg; then
  13564. as_fn_error $? "
  13565. *** When building from Mercurial you should configure and build in a
  13566. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13567. " "$LINENO" 5
  13568. fi
  13569. BASE_CFLAGS=""
  13570. BASE_LDFLAGS=""
  13571. case "$host" in
  13572. *-*-cygwin*)
  13573. # We build SDL on cygwin without the UNIX emulation layer
  13574. save_CFLAGS="$CFLAGS"
  13575. have_no_cygwin=no
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13577. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13578. CFLAGS="$save_CFLAGS -mno-cygwin"
  13579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13580. /* end confdefs.h. */
  13581. int
  13582. main ()
  13583. {
  13584. ;
  13585. return 0;
  13586. }
  13587. _ACEOF
  13588. if ac_fn_c_try_compile "$LINENO"; then :
  13589. have_no_cygwin=yes
  13590. fi
  13591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13593. $as_echo "$have_no_cygwin" >&6; }
  13594. CFLAGS="$save_CFLAGS"
  13595. if test x$have_no_cygwin = xyes; then
  13596. BASE_CFLAGS="-mno-cygwin"
  13597. BASE_LDFLAGS="-mno-cygwin"
  13598. fi
  13599. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13600. ;;
  13601. esac
  13602. # Uncomment the following line if you want to force SDL and applications
  13603. # built with it to be compiled for a particular architecture.
  13604. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13605. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13606. # The default optimization for SDL is -O3 (Bug #31)
  13607. if test "x$orig_CFLAGS" = x; then
  13608. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13609. fi
  13610. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13611. BUILD_LDFLAGS="$LDFLAGS"
  13612. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13613. ## These are common directories to find software packages
  13614. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13615. # if test -d $path/include; then
  13616. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13617. # fi
  13618. # if test -d $path/lib; then
  13619. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13620. # fi
  13621. #done
  13622. SDL_CFLAGS="$BASE_CFLAGS"
  13623. SDL_LIBS="-lSDL2"
  13624. if test "x$BASE_LDFLAGS" != x; then
  13625. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13626. fi
  13627. if test "x$EXTRA_CFLAGS" != x; then
  13628. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13629. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13630. fi
  13631. if test "x$EXTRA_LDFLAGS" != x; then
  13632. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13633. fi
  13634. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13635. find_lib()
  13636. {
  13637. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13638. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13639. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13640. if test "$cross_compiling" = yes; then
  13641. host_lib_path=""
  13642. else
  13643. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13644. fi
  13645. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13646. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13647. if test x$lib != x; then
  13648. echo $lib
  13649. return
  13650. fi
  13651. done
  13652. }
  13653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13654. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13655. if ${ac_cv_c_const+:} false; then :
  13656. $as_echo_n "(cached) " >&6
  13657. else
  13658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13659. /* end confdefs.h. */
  13660. int
  13661. main ()
  13662. {
  13663. #ifndef __cplusplus
  13664. /* Ultrix mips cc rejects this sort of thing. */
  13665. typedef int charset[2];
  13666. const charset cs = { 0, 0 };
  13667. /* SunOS 4.1.1 cc rejects this. */
  13668. char const *const *pcpcc;
  13669. char **ppc;
  13670. /* NEC SVR4.0.2 mips cc rejects this. */
  13671. struct point {int x, y;};
  13672. static struct point const zero = {0,0};
  13673. /* AIX XL C 1.02.0.0 rejects this.
  13674. It does not let you subtract one const X* pointer from another in
  13675. an arm of an if-expression whose if-part is not a constant
  13676. expression */
  13677. const char *g = "string";
  13678. pcpcc = &g + (g ? g-g : 0);
  13679. /* HPUX 7.0 cc rejects these. */
  13680. ++pcpcc;
  13681. ppc = (char**) pcpcc;
  13682. pcpcc = (char const *const *) ppc;
  13683. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13684. char tx;
  13685. char *t = &tx;
  13686. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13687. *t++ = 0;
  13688. if (s) return 0;
  13689. }
  13690. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13691. int x[] = {25, 17};
  13692. const int *foo = &x[0];
  13693. ++foo;
  13694. }
  13695. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13696. typedef const int *iptr;
  13697. iptr p = 0;
  13698. ++p;
  13699. }
  13700. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13701. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13702. struct s { int j; const int *ap[3]; } bx;
  13703. struct s *b = &bx; b->j = 5;
  13704. }
  13705. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13706. const int foo = 10;
  13707. if (!foo) return 0;
  13708. }
  13709. return !cs[0] && !zero.x;
  13710. #endif
  13711. ;
  13712. return 0;
  13713. }
  13714. _ACEOF
  13715. if ac_fn_c_try_compile "$LINENO"; then :
  13716. ac_cv_c_const=yes
  13717. else
  13718. ac_cv_c_const=no
  13719. fi
  13720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13721. fi
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13723. $as_echo "$ac_cv_c_const" >&6; }
  13724. if test $ac_cv_c_const = no; then
  13725. $as_echo "#define const /**/" >>confdefs.h
  13726. fi
  13727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13728. $as_echo_n "checking for inline... " >&6; }
  13729. if ${ac_cv_c_inline+:} false; then :
  13730. $as_echo_n "(cached) " >&6
  13731. else
  13732. ac_cv_c_inline=no
  13733. for ac_kw in inline __inline__ __inline; do
  13734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13735. /* end confdefs.h. */
  13736. #ifndef __cplusplus
  13737. typedef int foo_t;
  13738. static $ac_kw foo_t static_foo () {return 0; }
  13739. $ac_kw foo_t foo () {return 0; }
  13740. #endif
  13741. _ACEOF
  13742. if ac_fn_c_try_compile "$LINENO"; then :
  13743. ac_cv_c_inline=$ac_kw
  13744. fi
  13745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13746. test "$ac_cv_c_inline" != no && break
  13747. done
  13748. fi
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13750. $as_echo "$ac_cv_c_inline" >&6; }
  13751. case $ac_cv_c_inline in
  13752. inline | yes) ;;
  13753. *)
  13754. case $ac_cv_c_inline in
  13755. no) ac_val=;;
  13756. *) ac_val=$ac_cv_c_inline;;
  13757. esac
  13758. cat >>confdefs.h <<_ACEOF
  13759. #ifndef __cplusplus
  13760. #define inline $ac_val
  13761. #endif
  13762. _ACEOF
  13763. ;;
  13764. esac
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13766. $as_echo_n "checking for working volatile... " >&6; }
  13767. if ${ac_cv_c_volatile+:} false; then :
  13768. $as_echo_n "(cached) " >&6
  13769. else
  13770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13771. /* end confdefs.h. */
  13772. int
  13773. main ()
  13774. {
  13775. volatile int x;
  13776. int * volatile y = (int *) 0;
  13777. return !x && !y;
  13778. ;
  13779. return 0;
  13780. }
  13781. _ACEOF
  13782. if ac_fn_c_try_compile "$LINENO"; then :
  13783. ac_cv_c_volatile=yes
  13784. else
  13785. ac_cv_c_volatile=no
  13786. fi
  13787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13788. fi
  13789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13790. $as_echo "$ac_cv_c_volatile" >&6; }
  13791. if test $ac_cv_c_volatile = no; then
  13792. $as_echo "#define volatile /**/" >>confdefs.h
  13793. fi
  13794. # Check whether --enable-assertions was given.
  13795. if test "${enable_assertions+set}" = set; then :
  13796. enableval=$enable_assertions;
  13797. else
  13798. enable_assertions=auto
  13799. fi
  13800. case "$enable_assertions" in
  13801. auto) # Use optimization settings to determine assertion level
  13802. ;;
  13803. disabled)
  13804. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13805. ;;
  13806. release)
  13807. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13808. ;;
  13809. enabled)
  13810. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13811. ;;
  13812. paranoid)
  13813. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13814. ;;
  13815. *)
  13816. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13817. ;;
  13818. esac
  13819. # Check whether --enable-dependency-tracking was given.
  13820. if test "${enable_dependency_tracking+set}" = set; then :
  13821. enableval=$enable_dependency_tracking;
  13822. else
  13823. enable_dependency_tracking=yes
  13824. fi
  13825. if test x$enable_dependency_tracking = xyes; then
  13826. have_gcc_mmd_mt=no
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13828. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13830. /* end confdefs.h. */
  13831. #if !defined(__GNUC__) || __GNUC__ < 3
  13832. #error Dependency tracking requires GCC 3.0 or newer
  13833. #endif
  13834. int
  13835. main ()
  13836. {
  13837. ;
  13838. return 0;
  13839. }
  13840. _ACEOF
  13841. if ac_fn_c_try_compile "$LINENO"; then :
  13842. have_gcc_mmd_mt=yes
  13843. fi
  13844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13846. $as_echo "$have_gcc_mmd_mt" >&6; }
  13847. if test x$have_gcc_mmd_mt = xyes; then
  13848. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13849. fi
  13850. fi
  13851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13852. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13853. have_no_undefined=no
  13854. case "$host" in
  13855. *-*-openbsd*)
  13856. ;;
  13857. *)
  13858. save_LDFLAGS="$LDFLAGS"
  13859. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13861. /* end confdefs.h. */
  13862. int
  13863. main ()
  13864. {
  13865. ;
  13866. return 0;
  13867. }
  13868. _ACEOF
  13869. if ac_fn_c_try_link "$LINENO"; then :
  13870. have_no_undefined=yes
  13871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13872. fi
  13873. rm -f core conftest.err conftest.$ac_objext \
  13874. conftest$ac_exeext conftest.$ac_ext
  13875. LDFLAGS="$save_LDFLAGS"
  13876. ;;
  13877. esac
  13878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13879. $as_echo "$have_no_undefined" >&6; }
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  13881. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  13882. have_dynamicbase=no
  13883. case "$host" in
  13884. *)
  13885. save_LDFLAGS="$LDFLAGS"
  13886. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  13887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13888. /* end confdefs.h. */
  13889. int
  13890. main ()
  13891. {
  13892. ;
  13893. return 0;
  13894. }
  13895. _ACEOF
  13896. if ac_fn_c_try_link "$LINENO"; then :
  13897. have_dynamicbase=yes
  13898. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  13899. fi
  13900. rm -f core conftest.err conftest.$ac_objext \
  13901. conftest$ac_exeext conftest.$ac_ext
  13902. LDFLAGS="$save_LDFLAGS"
  13903. ;;
  13904. esac
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  13906. $as_echo "$have_dynamicbase" >&6; }
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  13908. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  13909. have_nxcompat=no
  13910. case "$host" in
  13911. *)
  13912. save_LDFLAGS="$LDFLAGS"
  13913. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  13914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13915. /* end confdefs.h. */
  13916. int
  13917. main ()
  13918. {
  13919. ;
  13920. return 0;
  13921. }
  13922. _ACEOF
  13923. if ac_fn_c_try_link "$LINENO"; then :
  13924. have_nxcompat=yes
  13925. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  13926. fi
  13927. rm -f core conftest.err conftest.$ac_objext \
  13928. conftest$ac_exeext conftest.$ac_ext
  13929. LDFLAGS="$save_LDFLAGS"
  13930. ;;
  13931. esac
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  13933. $as_echo "$have_nxcompat" >&6; }
  13934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  13935. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  13936. have_high_entropy_va=no
  13937. case "$host" in
  13938. *)
  13939. save_LDFLAGS="$LDFLAGS"
  13940. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  13941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13942. /* end confdefs.h. */
  13943. int
  13944. main ()
  13945. {
  13946. ;
  13947. return 0;
  13948. }
  13949. _ACEOF
  13950. if ac_fn_c_try_link "$LINENO"; then :
  13951. have_high_entropy_va=yes
  13952. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  13953. fi
  13954. rm -f core conftest.err conftest.$ac_objext \
  13955. conftest$ac_exeext conftest.$ac_ext
  13956. LDFLAGS="$save_LDFLAGS"
  13957. ;;
  13958. esac
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  13960. $as_echo "$have_high_entropy_va" >&6; }
  13961. # Check whether --enable-libc was given.
  13962. if test "${enable_libc+set}" = set; then :
  13963. enableval=$enable_libc;
  13964. else
  13965. enable_libc=yes
  13966. fi
  13967. if test x$enable_libc = xyes; then
  13968. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13970. $as_echo_n "checking for ANSI C header files... " >&6; }
  13971. if ${ac_cv_header_stdc+:} false; then :
  13972. $as_echo_n "(cached) " >&6
  13973. else
  13974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13975. /* end confdefs.h. */
  13976. #include <stdlib.h>
  13977. #include <stdarg.h>
  13978. #include <string.h>
  13979. #include <float.h>
  13980. int
  13981. main ()
  13982. {
  13983. ;
  13984. return 0;
  13985. }
  13986. _ACEOF
  13987. if ac_fn_c_try_compile "$LINENO"; then :
  13988. ac_cv_header_stdc=yes
  13989. else
  13990. ac_cv_header_stdc=no
  13991. fi
  13992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13993. if test $ac_cv_header_stdc = yes; then
  13994. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13996. /* end confdefs.h. */
  13997. #include <string.h>
  13998. _ACEOF
  13999. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14000. $EGREP "memchr" >/dev/null 2>&1; then :
  14001. else
  14002. ac_cv_header_stdc=no
  14003. fi
  14004. rm -f conftest*
  14005. fi
  14006. if test $ac_cv_header_stdc = yes; then
  14007. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. /* end confdefs.h. */
  14010. #include <stdlib.h>
  14011. _ACEOF
  14012. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14013. $EGREP "free" >/dev/null 2>&1; then :
  14014. else
  14015. ac_cv_header_stdc=no
  14016. fi
  14017. rm -f conftest*
  14018. fi
  14019. if test $ac_cv_header_stdc = yes; then
  14020. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14021. if test "$cross_compiling" = yes; then :
  14022. :
  14023. else
  14024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14025. /* end confdefs.h. */
  14026. #include <ctype.h>
  14027. #include <stdlib.h>
  14028. #if ((' ' & 0x0FF) == 0x020)
  14029. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14030. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14031. #else
  14032. # define ISLOWER(c) \
  14033. (('a' <= (c) && (c) <= 'i') \
  14034. || ('j' <= (c) && (c) <= 'r') \
  14035. || ('s' <= (c) && (c) <= 'z'))
  14036. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14037. #endif
  14038. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14039. int
  14040. main ()
  14041. {
  14042. int i;
  14043. for (i = 0; i < 256; i++)
  14044. if (XOR (islower (i), ISLOWER (i))
  14045. || toupper (i) != TOUPPER (i))
  14046. return 2;
  14047. return 0;
  14048. }
  14049. _ACEOF
  14050. if ac_fn_c_try_run "$LINENO"; then :
  14051. else
  14052. ac_cv_header_stdc=no
  14053. fi
  14054. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14055. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14056. fi
  14057. fi
  14058. fi
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14060. $as_echo "$ac_cv_header_stdc" >&6; }
  14061. if test $ac_cv_header_stdc = yes; then
  14062. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14063. fi
  14064. 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
  14065. do :
  14066. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14067. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14068. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14069. cat >>confdefs.h <<_ACEOF
  14070. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14071. _ACEOF
  14072. fi
  14073. done
  14074. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14075. if test "x$ac_cv_type_size_t" = xyes; then :
  14076. else
  14077. cat >>confdefs.h <<_ACEOF
  14078. #define size_t unsigned int
  14079. _ACEOF
  14080. fi
  14081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14082. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14083. if ${ac_cv_define_M_PI+:} false; then :
  14084. $as_echo_n "(cached) " >&6
  14085. else
  14086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14087. /* end confdefs.h. */
  14088. #include <math.h>
  14089. #ifdef M_PI
  14090. YES_IS_DEFINED
  14091. #endif
  14092. _ACEOF
  14093. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14094. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14095. ac_cv_define_M_PI=yes
  14096. else
  14097. ac_cv_define_M_PI=no
  14098. fi
  14099. rm -f conftest*
  14100. fi
  14101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14102. $as_echo "$ac_cv_define_M_PI" >&6; }
  14103. if test "$ac_cv_define_M_PI" = "yes" ; then
  14104. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14105. fi
  14106. case "$host" in
  14107. *-*-cygwin* | *-*-mingw32*)
  14108. ;;
  14109. *)
  14110. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14111. # for constant arguments. Useless!
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14113. $as_echo_n "checking for working alloca.h... " >&6; }
  14114. if ${ac_cv_working_alloca_h+:} false; then :
  14115. $as_echo_n "(cached) " >&6
  14116. else
  14117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14118. /* end confdefs.h. */
  14119. #include <alloca.h>
  14120. int
  14121. main ()
  14122. {
  14123. char *p = (char *) alloca (2 * sizeof (int));
  14124. if (p) return 0;
  14125. ;
  14126. return 0;
  14127. }
  14128. _ACEOF
  14129. if ac_fn_c_try_link "$LINENO"; then :
  14130. ac_cv_working_alloca_h=yes
  14131. else
  14132. ac_cv_working_alloca_h=no
  14133. fi
  14134. rm -f core conftest.err conftest.$ac_objext \
  14135. conftest$ac_exeext conftest.$ac_ext
  14136. fi
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14138. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14139. if test $ac_cv_working_alloca_h = yes; then
  14140. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14141. fi
  14142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14143. $as_echo_n "checking for alloca... " >&6; }
  14144. if ${ac_cv_func_alloca_works+:} false; then :
  14145. $as_echo_n "(cached) " >&6
  14146. else
  14147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14148. /* end confdefs.h. */
  14149. #ifdef __GNUC__
  14150. # define alloca __builtin_alloca
  14151. #else
  14152. # ifdef _MSC_VER
  14153. # include <malloc.h>
  14154. # define alloca _alloca
  14155. # else
  14156. # ifdef HAVE_ALLOCA_H
  14157. # include <alloca.h>
  14158. # else
  14159. # ifdef _AIX
  14160. #pragma alloca
  14161. # else
  14162. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14163. void *alloca (size_t);
  14164. # endif
  14165. # endif
  14166. # endif
  14167. # endif
  14168. #endif
  14169. int
  14170. main ()
  14171. {
  14172. char *p = (char *) alloca (1);
  14173. if (p) return 0;
  14174. ;
  14175. return 0;
  14176. }
  14177. _ACEOF
  14178. if ac_fn_c_try_link "$LINENO"; then :
  14179. ac_cv_func_alloca_works=yes
  14180. else
  14181. ac_cv_func_alloca_works=no
  14182. fi
  14183. rm -f core conftest.err conftest.$ac_objext \
  14184. conftest$ac_exeext conftest.$ac_ext
  14185. fi
  14186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14187. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14188. if test $ac_cv_func_alloca_works = yes; then
  14189. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14190. else
  14191. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14192. # that cause trouble. Some versions do not even contain alloca or
  14193. # contain a buggy version. If you still want to use their alloca,
  14194. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14195. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14196. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14198. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14199. if ${ac_cv_os_cray+:} false; then :
  14200. $as_echo_n "(cached) " >&6
  14201. else
  14202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14203. /* end confdefs.h. */
  14204. #if defined CRAY && ! defined CRAY2
  14205. webecray
  14206. #else
  14207. wenotbecray
  14208. #endif
  14209. _ACEOF
  14210. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14211. $EGREP "webecray" >/dev/null 2>&1; then :
  14212. ac_cv_os_cray=yes
  14213. else
  14214. ac_cv_os_cray=no
  14215. fi
  14216. rm -f conftest*
  14217. fi
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14219. $as_echo "$ac_cv_os_cray" >&6; }
  14220. if test $ac_cv_os_cray = yes; then
  14221. for ac_func in _getb67 GETB67 getb67; do
  14222. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14223. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14224. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14225. cat >>confdefs.h <<_ACEOF
  14226. #define CRAY_STACKSEG_END $ac_func
  14227. _ACEOF
  14228. break
  14229. fi
  14230. done
  14231. fi
  14232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14233. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14234. if ${ac_cv_c_stack_direction+:} false; then :
  14235. $as_echo_n "(cached) " >&6
  14236. else
  14237. if test "$cross_compiling" = yes; then :
  14238. ac_cv_c_stack_direction=0
  14239. else
  14240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14241. /* end confdefs.h. */
  14242. $ac_includes_default
  14243. int
  14244. find_stack_direction (int *addr, int depth)
  14245. {
  14246. int dir, dummy = 0;
  14247. if (! addr)
  14248. addr = &dummy;
  14249. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14250. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14251. return dir + dummy;
  14252. }
  14253. int
  14254. main (int argc, char **argv)
  14255. {
  14256. return find_stack_direction (0, argc + !argv + 20) < 0;
  14257. }
  14258. _ACEOF
  14259. if ac_fn_c_try_run "$LINENO"; then :
  14260. ac_cv_c_stack_direction=1
  14261. else
  14262. ac_cv_c_stack_direction=-1
  14263. fi
  14264. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14265. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14266. fi
  14267. fi
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14269. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14270. cat >>confdefs.h <<_ACEOF
  14271. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14272. _ACEOF
  14273. fi
  14274. ;;
  14275. esac
  14276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14277. $as_echo_n "checking for working memcmp... " >&6; }
  14278. if ${ac_cv_func_memcmp_working+:} false; then :
  14279. $as_echo_n "(cached) " >&6
  14280. else
  14281. if test "$cross_compiling" = yes; then :
  14282. ac_cv_func_memcmp_working=no
  14283. else
  14284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14285. /* end confdefs.h. */
  14286. $ac_includes_default
  14287. int
  14288. main ()
  14289. {
  14290. /* Some versions of memcmp are not 8-bit clean. */
  14291. char c0 = '\100', c1 = '\200', c2 = '\201';
  14292. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14293. return 1;
  14294. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14295. or more and with at least one buffer not starting on a 4-byte boundary.
  14296. William Lewis provided this test program. */
  14297. {
  14298. char foo[21];
  14299. char bar[21];
  14300. int i;
  14301. for (i = 0; i < 4; i++)
  14302. {
  14303. char *a = foo + i;
  14304. char *b = bar + i;
  14305. strcpy (a, "--------01111111");
  14306. strcpy (b, "--------10000000");
  14307. if (memcmp (a, b, 16) >= 0)
  14308. return 1;
  14309. }
  14310. return 0;
  14311. }
  14312. ;
  14313. return 0;
  14314. }
  14315. _ACEOF
  14316. if ac_fn_c_try_run "$LINENO"; then :
  14317. ac_cv_func_memcmp_working=yes
  14318. else
  14319. ac_cv_func_memcmp_working=no
  14320. fi
  14321. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14322. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14323. fi
  14324. fi
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14326. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14327. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14328. *" memcmp.$ac_objext "* ) ;;
  14329. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14330. ;;
  14331. esac
  14332. if test x$ac_cv_func_memcmp_working = xyes; then
  14333. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14334. fi
  14335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14336. $as_echo_n "checking for working strtod... " >&6; }
  14337. if ${ac_cv_func_strtod+:} false; then :
  14338. $as_echo_n "(cached) " >&6
  14339. else
  14340. if test "$cross_compiling" = yes; then :
  14341. ac_cv_func_strtod=no
  14342. else
  14343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14344. /* end confdefs.h. */
  14345. $ac_includes_default
  14346. #ifndef strtod
  14347. double strtod ();
  14348. #endif
  14349. int
  14350. main()
  14351. {
  14352. {
  14353. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14354. char *string = " +69";
  14355. char *term;
  14356. double value;
  14357. value = strtod (string, &term);
  14358. if (value != 69 || term != (string + 4))
  14359. return 1;
  14360. }
  14361. {
  14362. /* Under Solaris 2.4, strtod returns the wrong value for the
  14363. terminating character under some conditions. */
  14364. char *string = "NaN";
  14365. char *term;
  14366. strtod (string, &term);
  14367. if (term != string && *(term - 1) == 0)
  14368. return 1;
  14369. }
  14370. return 0;
  14371. }
  14372. _ACEOF
  14373. if ac_fn_c_try_run "$LINENO"; then :
  14374. ac_cv_func_strtod=yes
  14375. else
  14376. ac_cv_func_strtod=no
  14377. fi
  14378. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14379. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14380. fi
  14381. fi
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14383. $as_echo "$ac_cv_func_strtod" >&6; }
  14384. if test $ac_cv_func_strtod = no; then
  14385. case " $LIBOBJS " in
  14386. *" strtod.$ac_objext "* ) ;;
  14387. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14388. ;;
  14389. esac
  14390. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14391. if test "x$ac_cv_func_pow" = xyes; then :
  14392. fi
  14393. if test $ac_cv_func_pow = no; then
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14395. $as_echo_n "checking for pow in -lm... " >&6; }
  14396. if ${ac_cv_lib_m_pow+:} false; then :
  14397. $as_echo_n "(cached) " >&6
  14398. else
  14399. ac_check_lib_save_LIBS=$LIBS
  14400. LIBS="-lm $LIBS"
  14401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14402. /* end confdefs.h. */
  14403. /* Override any GCC internal prototype to avoid an error.
  14404. Use char because int might match the return type of a GCC
  14405. builtin and then its argument prototype would still apply. */
  14406. #ifdef __cplusplus
  14407. extern "C"
  14408. #endif
  14409. char pow ();
  14410. int
  14411. main ()
  14412. {
  14413. return pow ();
  14414. ;
  14415. return 0;
  14416. }
  14417. _ACEOF
  14418. if ac_fn_c_try_link "$LINENO"; then :
  14419. ac_cv_lib_m_pow=yes
  14420. else
  14421. ac_cv_lib_m_pow=no
  14422. fi
  14423. rm -f core conftest.err conftest.$ac_objext \
  14424. conftest$ac_exeext conftest.$ac_ext
  14425. LIBS=$ac_check_lib_save_LIBS
  14426. fi
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14428. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14429. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14430. POW_LIB=-lm
  14431. else
  14432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14433. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14434. fi
  14435. fi
  14436. fi
  14437. if test x$ac_cv_func_strtod = xyes; then
  14438. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14439. fi
  14440. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14441. if test "x$ac_cv_func_mprotect" = xyes; then :
  14442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14443. /* end confdefs.h. */
  14444. #include <sys/types.h>
  14445. #include <sys/mman.h>
  14446. int
  14447. main ()
  14448. {
  14449. ;
  14450. return 0;
  14451. }
  14452. _ACEOF
  14453. if ac_fn_c_try_compile "$LINENO"; then :
  14454. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14455. fi
  14456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14457. fi
  14458. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr 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 poll
  14459. do :
  14460. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14461. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14462. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14463. cat >>confdefs.h <<_ACEOF
  14464. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14465. _ACEOF
  14466. fi
  14467. done
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14469. $as_echo_n "checking for pow in -lm... " >&6; }
  14470. if ${ac_cv_lib_m_pow+:} false; then :
  14471. $as_echo_n "(cached) " >&6
  14472. else
  14473. ac_check_lib_save_LIBS=$LIBS
  14474. LIBS="-lm $LIBS"
  14475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14476. /* end confdefs.h. */
  14477. /* Override any GCC internal prototype to avoid an error.
  14478. Use char because int might match the return type of a GCC
  14479. builtin and then its argument prototype would still apply. */
  14480. #ifdef __cplusplus
  14481. extern "C"
  14482. #endif
  14483. char pow ();
  14484. int
  14485. main ()
  14486. {
  14487. return pow ();
  14488. ;
  14489. return 0;
  14490. }
  14491. _ACEOF
  14492. if ac_fn_c_try_link "$LINENO"; then :
  14493. ac_cv_lib_m_pow=yes
  14494. else
  14495. ac_cv_lib_m_pow=no
  14496. fi
  14497. rm -f core conftest.err conftest.$ac_objext \
  14498. conftest$ac_exeext conftest.$ac_ext
  14499. LIBS=$ac_check_lib_save_LIBS
  14500. fi
  14501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14502. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14503. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14504. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14505. fi
  14506. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14507. 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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14513. _ACEOF
  14514. fi
  14515. done
  14516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14517. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14518. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14519. $as_echo_n "(cached) " >&6
  14520. else
  14521. ac_check_lib_save_LIBS=$LIBS
  14522. LIBS="-liconv $LIBS"
  14523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14524. /* end confdefs.h. */
  14525. /* Override any GCC internal prototype to avoid an error.
  14526. Use char because int might match the return type of a GCC
  14527. builtin and then its argument prototype would still apply. */
  14528. #ifdef __cplusplus
  14529. extern "C"
  14530. #endif
  14531. char iconv_open ();
  14532. int
  14533. main ()
  14534. {
  14535. return iconv_open ();
  14536. ;
  14537. return 0;
  14538. }
  14539. _ACEOF
  14540. if ac_fn_c_try_link "$LINENO"; then :
  14541. ac_cv_lib_iconv_iconv_open=yes
  14542. else
  14543. ac_cv_lib_iconv_iconv_open=no
  14544. fi
  14545. rm -f core conftest.err conftest.$ac_objext \
  14546. conftest$ac_exeext conftest.$ac_ext
  14547. LIBS=$ac_check_lib_save_LIBS
  14548. fi
  14549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14550. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14551. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14552. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14553. fi
  14554. for ac_func in iconv
  14555. do :
  14556. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14557. if test "x$ac_cv_func_iconv" = xyes; then :
  14558. cat >>confdefs.h <<_ACEOF
  14559. #define HAVE_ICONV 1
  14560. _ACEOF
  14561. fi
  14562. done
  14563. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14564. "
  14565. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14566. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14567. fi
  14568. for ac_header in libunwind.h
  14569. do :
  14570. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14571. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14572. cat >>confdefs.h <<_ACEOF
  14573. #define HAVE_LIBUNWIND_H 1
  14574. _ACEOF
  14575. fi
  14576. done
  14577. fi
  14578. # Check whether --enable-gcc-atomics was given.
  14579. if test "${enable_gcc_atomics+set}" = set; then :
  14580. enableval=$enable_gcc_atomics;
  14581. else
  14582. enable_gcc_atomics=yes
  14583. fi
  14584. if test x$enable_gcc_atomics = xyes; then
  14585. have_gcc_atomics=no
  14586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14587. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14589. /* end confdefs.h. */
  14590. int
  14591. main ()
  14592. {
  14593. int a;
  14594. void *x, *y, *z;
  14595. __sync_lock_test_and_set(&a, 4);
  14596. __sync_lock_test_and_set(&x, y);
  14597. __sync_fetch_and_add(&a, 1);
  14598. __sync_bool_compare_and_swap(&a, 5, 10);
  14599. __sync_bool_compare_and_swap(&x, y, z);
  14600. ;
  14601. return 0;
  14602. }
  14603. _ACEOF
  14604. if ac_fn_c_try_link "$LINENO"; then :
  14605. have_gcc_atomics=yes
  14606. fi
  14607. rm -f core conftest.err conftest.$ac_objext \
  14608. conftest$ac_exeext conftest.$ac_ext
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14610. $as_echo "$have_gcc_atomics" >&6; }
  14611. if test x$have_gcc_atomics = xyes; then
  14612. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14613. else
  14614. # See if we have the minimum operation needed for GCC atomics
  14615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14616. /* end confdefs.h. */
  14617. int
  14618. main ()
  14619. {
  14620. int a;
  14621. __sync_lock_test_and_set(&a, 1);
  14622. __sync_lock_release(&a);
  14623. ;
  14624. return 0;
  14625. }
  14626. _ACEOF
  14627. if ac_fn_c_try_link "$LINENO"; then :
  14628. have_gcc_sync_lock_test_and_set=yes
  14629. fi
  14630. rm -f core conftest.err conftest.$ac_objext \
  14631. conftest$ac_exeext conftest.$ac_ext
  14632. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14633. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14634. fi
  14635. fi
  14636. fi
  14637. # Standard C sources
  14638. SOURCES="$SOURCES $srcdir/src/*.c"
  14639. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14640. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14641. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14642. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14643. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14644. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14645. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14646. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14647. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14648. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14649. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14650. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14651. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14652. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14653. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14654. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14655. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14656. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14657. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14658. # Check whether --enable-atomic was given.
  14659. if test "${enable_atomic+set}" = set; then :
  14660. enableval=$enable_atomic;
  14661. else
  14662. enable_atomic=yes
  14663. fi
  14664. if test x$enable_atomic != xyes; then
  14665. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14666. else
  14667. SUMMARY_modules="${SUMMARY_modules} atomic"
  14668. fi
  14669. # Check whether --enable-audio was given.
  14670. if test "${enable_audio+set}" = set; then :
  14671. enableval=$enable_audio;
  14672. else
  14673. enable_audio=yes
  14674. fi
  14675. if test x$enable_audio != xyes; then
  14676. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14677. else
  14678. SUMMARY_modules="${SUMMARY_modules} audio"
  14679. fi
  14680. # Check whether --enable-video was given.
  14681. if test "${enable_video+set}" = set; then :
  14682. enableval=$enable_video;
  14683. else
  14684. enable_video=yes
  14685. fi
  14686. if test x$enable_video != xyes; then
  14687. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14688. else
  14689. SUMMARY_modules="${SUMMARY_modules} video"
  14690. fi
  14691. # Check whether --enable-render was given.
  14692. if test "${enable_render+set}" = set; then :
  14693. enableval=$enable_render;
  14694. else
  14695. enable_render=yes
  14696. fi
  14697. if test x$enable_render != xyes; then
  14698. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14699. else
  14700. SUMMARY_modules="${SUMMARY_modules} render"
  14701. fi
  14702. # Check whether --enable-events was given.
  14703. if test "${enable_events+set}" = set; then :
  14704. enableval=$enable_events;
  14705. else
  14706. enable_events=yes
  14707. fi
  14708. if test x$enable_events != xyes; then
  14709. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14710. else
  14711. SUMMARY_modules="${SUMMARY_modules} events"
  14712. fi
  14713. # Check whether --enable-joystick was given.
  14714. if test "${enable_joystick+set}" = set; then :
  14715. enableval=$enable_joystick;
  14716. else
  14717. enable_joystick=yes
  14718. fi
  14719. if test x$enable_joystick != xyes; then
  14720. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14721. else
  14722. SUMMARY_modules="${SUMMARY_modules} joystick"
  14723. fi
  14724. # Check whether --enable-haptic was given.
  14725. if test "${enable_haptic+set}" = set; then :
  14726. enableval=$enable_haptic;
  14727. else
  14728. enable_haptic=yes
  14729. fi
  14730. if test x$enable_haptic != xyes; then
  14731. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14732. else
  14733. SUMMARY_modules="${SUMMARY_modules} haptic"
  14734. fi
  14735. # Check whether --enable-sensor was given.
  14736. if test "${enable_sensor+set}" = set; then :
  14737. enableval=$enable_sensor;
  14738. else
  14739. enable_sensor=yes
  14740. fi
  14741. if test x$enable_sensor != xyes; then
  14742. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14743. else
  14744. SUMMARY_modules="${SUMMARY_modules} sensor"
  14745. fi
  14746. # Check whether --enable-power was given.
  14747. if test "${enable_power+set}" = set; then :
  14748. enableval=$enable_power;
  14749. else
  14750. enable_power=yes
  14751. fi
  14752. if test x$enable_power != xyes; then
  14753. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14754. else
  14755. SUMMARY_modules="${SUMMARY_modules} power"
  14756. fi
  14757. # Check whether --enable-filesystem was given.
  14758. if test "${enable_filesystem+set}" = set; then :
  14759. enableval=$enable_filesystem;
  14760. else
  14761. enable_filesystem=yes
  14762. fi
  14763. if test x$enable_filesystem != xyes; then
  14764. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14765. else
  14766. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14767. fi
  14768. # Check whether --enable-threads was given.
  14769. if test "${enable_threads+set}" = set; then :
  14770. enableval=$enable_threads;
  14771. else
  14772. enable_threads=yes
  14773. fi
  14774. if test x$enable_threads != xyes; then
  14775. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14776. else
  14777. SUMMARY_modules="${SUMMARY_modules} threads"
  14778. fi
  14779. # Check whether --enable-timers was given.
  14780. if test "${enable_timers+set}" = set; then :
  14781. enableval=$enable_timers;
  14782. else
  14783. enable_timers=yes
  14784. fi
  14785. if test x$enable_timers != xyes; then
  14786. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14787. else
  14788. SUMMARY_modules="${SUMMARY_modules} timers"
  14789. fi
  14790. # Check whether --enable-file was given.
  14791. if test "${enable_file+set}" = set; then :
  14792. enableval=$enable_file;
  14793. else
  14794. enable_file=yes
  14795. fi
  14796. if test x$enable_file != xyes; then
  14797. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14798. else
  14799. SUMMARY_modules="${SUMMARY_modules} file"
  14800. fi
  14801. # Check whether --enable-loadso was given.
  14802. if test "${enable_loadso+set}" = set; then :
  14803. enableval=$enable_loadso;
  14804. else
  14805. enable_loadso=yes
  14806. fi
  14807. if test x$enable_loadso != xyes; then
  14808. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14809. else
  14810. SUMMARY_modules="${SUMMARY_modules} loadso"
  14811. fi
  14812. # Check whether --enable-cpuinfo was given.
  14813. if test "${enable_cpuinfo+set}" = set; then :
  14814. enableval=$enable_cpuinfo;
  14815. else
  14816. enable_cpuinfo=yes
  14817. fi
  14818. if test x$enable_cpuinfo != xyes; then
  14819. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14820. else
  14821. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14822. fi
  14823. # Check whether --enable-assembly was given.
  14824. if test "${enable_assembly+set}" = set; then :
  14825. enableval=$enable_assembly;
  14826. else
  14827. enable_assembly=yes
  14828. fi
  14829. if test x$enable_assembly = xyes; then
  14830. SUMMARY_modules="${SUMMARY_modules} assembly"
  14831. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14832. # Make sure that we don't generate floating point code that would
  14833. # cause illegal instruction exceptions on older processors
  14834. case "$host" in
  14835. *-*-darwin*)
  14836. # Don't need to worry about Apple hardware, it's all SSE capable
  14837. default_ssemath=yes
  14838. ;;
  14839. *64-*-*)
  14840. # x86 64-bit architectures all have SSE instructions
  14841. default_ssemath=yes
  14842. ;;
  14843. *)
  14844. default_ssemath=no
  14845. ;;
  14846. esac
  14847. # Check whether --enable-ssemath was given.
  14848. if test "${enable_ssemath+set}" = set; then :
  14849. enableval=$enable_ssemath;
  14850. else
  14851. enable_ssemath=$default_ssemath
  14852. fi
  14853. if test x$enable_ssemath = xno; then
  14854. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14855. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14856. fi
  14857. fi
  14858. # Check whether --enable-mmx was given.
  14859. if test "${enable_mmx+set}" = set; then :
  14860. enableval=$enable_mmx;
  14861. else
  14862. enable_mmx=yes
  14863. fi
  14864. if test x$enable_mmx = xyes; then
  14865. save_CFLAGS="$CFLAGS"
  14866. have_gcc_mmx=no
  14867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14868. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14869. mmx_CFLAGS="-mmmx"
  14870. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14872. /* end confdefs.h. */
  14873. #ifdef __MINGW32__
  14874. #include <_mingw.h>
  14875. #ifdef __MINGW64_VERSION_MAJOR
  14876. #include <intrin.h>
  14877. #else
  14878. #include <mmintrin.h>
  14879. #endif
  14880. #else
  14881. #include <mmintrin.h>
  14882. #endif
  14883. #ifndef __MMX__
  14884. #error Assembler CPP flag not enabled
  14885. #endif
  14886. int
  14887. main ()
  14888. {
  14889. ;
  14890. return 0;
  14891. }
  14892. _ACEOF
  14893. if ac_fn_c_try_compile "$LINENO"; then :
  14894. have_gcc_mmx=yes
  14895. fi
  14896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14898. $as_echo "$have_gcc_mmx" >&6; }
  14899. CFLAGS="$save_CFLAGS"
  14900. if test x$have_gcc_mmx = xyes; then
  14901. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14902. SUMMARY_math="${SUMMARY_math} mmx"
  14903. fi
  14904. fi
  14905. # Check whether --enable-3dnow was given.
  14906. if test "${enable_3dnow+set}" = set; then :
  14907. enableval=$enable_3dnow;
  14908. else
  14909. enable_3dnow=yes
  14910. fi
  14911. if test x$enable_3dnow = xyes; then
  14912. save_CFLAGS="$CFLAGS"
  14913. have_gcc_3dnow=no
  14914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14915. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14916. amd3dnow_CFLAGS="-m3dnow"
  14917. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14919. /* end confdefs.h. */
  14920. #include <mm3dnow.h>
  14921. #ifndef __3dNOW__
  14922. #error Assembler CPP flag not enabled
  14923. #endif
  14924. int
  14925. main ()
  14926. {
  14927. void *p = 0;
  14928. _m_prefetch(p);
  14929. ;
  14930. return 0;
  14931. }
  14932. _ACEOF
  14933. if ac_fn_c_try_link "$LINENO"; then :
  14934. have_gcc_3dnow=yes
  14935. fi
  14936. rm -f core conftest.err conftest.$ac_objext \
  14937. conftest$ac_exeext conftest.$ac_ext
  14938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14939. $as_echo "$have_gcc_3dnow" >&6; }
  14940. CFLAGS="$save_CFLAGS"
  14941. if test x$have_gcc_3dnow = xyes; then
  14942. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14943. SUMMARY_math="${SUMMARY_math} 3dnow"
  14944. fi
  14945. fi
  14946. # Check whether --enable-sse was given.
  14947. if test "${enable_sse+set}" = set; then :
  14948. enableval=$enable_sse;
  14949. else
  14950. enable_sse=yes
  14951. fi
  14952. if test x$enable_sse = xyes; then
  14953. save_CFLAGS="$CFLAGS"
  14954. have_gcc_sse=no
  14955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14956. $as_echo_n "checking for GCC -msse option... " >&6; }
  14957. sse_CFLAGS="-msse"
  14958. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14960. /* end confdefs.h. */
  14961. #ifdef __MINGW32__
  14962. #include <_mingw.h>
  14963. #ifdef __MINGW64_VERSION_MAJOR
  14964. #include <intrin.h>
  14965. #else
  14966. #include <xmmintrin.h>
  14967. #endif
  14968. #else
  14969. #include <xmmintrin.h>
  14970. #endif
  14971. #ifndef __SSE__
  14972. #error Assembler CPP flag not enabled
  14973. #endif
  14974. int
  14975. main ()
  14976. {
  14977. ;
  14978. return 0;
  14979. }
  14980. _ACEOF
  14981. if ac_fn_c_try_compile "$LINENO"; then :
  14982. have_gcc_sse=yes
  14983. fi
  14984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14986. $as_echo "$have_gcc_sse" >&6; }
  14987. CFLAGS="$save_CFLAGS"
  14988. if test x$have_gcc_sse = xyes; then
  14989. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14990. SUMMARY_math="${SUMMARY_math} sse"
  14991. fi
  14992. fi
  14993. # Check whether --enable-sse2 was given.
  14994. if test "${enable_sse2+set}" = set; then :
  14995. enableval=$enable_sse2;
  14996. else
  14997. enable_sse2=$default_ssemath
  14998. fi
  14999. if test x$enable_sse2 = xyes; then
  15000. save_CFLAGS="$CFLAGS"
  15001. have_gcc_sse2=no
  15002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15003. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15004. sse2_CFLAGS="-msse2"
  15005. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15007. /* end confdefs.h. */
  15008. #ifdef __MINGW32__
  15009. #include <_mingw.h>
  15010. #ifdef __MINGW64_VERSION_MAJOR
  15011. #include <intrin.h>
  15012. #else
  15013. #include <emmintrin.h>
  15014. #endif
  15015. #else
  15016. #include <emmintrin.h>
  15017. #endif
  15018. #ifndef __SSE2__
  15019. #error Assembler CPP flag not enabled
  15020. #endif
  15021. int
  15022. main ()
  15023. {
  15024. ;
  15025. return 0;
  15026. }
  15027. _ACEOF
  15028. if ac_fn_c_try_compile "$LINENO"; then :
  15029. have_gcc_sse2=yes
  15030. fi
  15031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15033. $as_echo "$have_gcc_sse2" >&6; }
  15034. CFLAGS="$save_CFLAGS"
  15035. if test x$have_gcc_sse2 = xyes; then
  15036. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15037. SUMMARY_math="${SUMMARY_math} sse2"
  15038. fi
  15039. fi
  15040. # Check whether --enable-sse3 was given.
  15041. if test "${enable_sse3+set}" = set; then :
  15042. enableval=$enable_sse3;
  15043. else
  15044. enable_sse3=$default_ssemath
  15045. fi
  15046. if test x$enable_sse3 = xyes; then
  15047. save_CFLAGS="$CFLAGS"
  15048. have_gcc_sse3=no
  15049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15050. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15051. sse3_CFLAGS="-msse3"
  15052. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15054. /* end confdefs.h. */
  15055. #ifdef __MINGW32__
  15056. #include <_mingw.h>
  15057. #ifdef __MINGW64_VERSION_MAJOR
  15058. #include <intrin.h>
  15059. #else
  15060. #include <pmmintrin.h>
  15061. #endif
  15062. #else
  15063. #include <pmmintrin.h>
  15064. #endif
  15065. #ifndef __SSE2__
  15066. #error Assembler CPP flag not enabled
  15067. #endif
  15068. int
  15069. main ()
  15070. {
  15071. ;
  15072. return 0;
  15073. }
  15074. _ACEOF
  15075. if ac_fn_c_try_compile "$LINENO"; then :
  15076. have_gcc_sse3=yes
  15077. fi
  15078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15080. $as_echo "$have_gcc_sse3" >&6; }
  15081. CFLAGS="$save_CFLAGS"
  15082. if test x$have_gcc_sse3 = xyes; then
  15083. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15084. SUMMARY_math="${SUMMARY_math} sse3"
  15085. fi
  15086. fi
  15087. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15088. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15089. have_immintrin_h_hdr=yes
  15090. else
  15091. have_immintrin_h_hdr=no
  15092. fi
  15093. if test x$have_immintrin_h_hdr = xyes; then
  15094. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15095. fi
  15096. # Check whether --enable-altivec was given.
  15097. if test "${enable_altivec+set}" = set; then :
  15098. enableval=$enable_altivec;
  15099. else
  15100. enable_altivec=yes
  15101. fi
  15102. if test x$enable_altivec = xyes; then
  15103. save_CFLAGS="$CFLAGS"
  15104. have_gcc_altivec=no
  15105. have_altivec_h_hdr=no
  15106. altivec_CFLAGS="-maltivec"
  15107. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15109. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15111. /* end confdefs.h. */
  15112. #include <altivec.h>
  15113. vector unsigned int vzero() {
  15114. return vec_splat_u32(0);
  15115. }
  15116. int
  15117. main ()
  15118. {
  15119. ;
  15120. return 0;
  15121. }
  15122. _ACEOF
  15123. if ac_fn_c_try_compile "$LINENO"; then :
  15124. have_gcc_altivec=yes
  15125. have_altivec_h_hdr=yes
  15126. fi
  15127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15129. $as_echo "$have_gcc_altivec" >&6; }
  15130. if test x$have_gcc_altivec = xno; then
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15132. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15134. /* end confdefs.h. */
  15135. vector unsigned int vzero() {
  15136. return vec_splat_u32(0);
  15137. }
  15138. int
  15139. main ()
  15140. {
  15141. ;
  15142. return 0;
  15143. }
  15144. _ACEOF
  15145. if ac_fn_c_try_compile "$LINENO"; then :
  15146. have_gcc_altivec=yes
  15147. fi
  15148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15150. $as_echo "$have_gcc_altivec" >&6; }
  15151. fi
  15152. if test x$have_gcc_altivec = xno; then
  15153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15154. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15155. altivec_CFLAGS="-faltivec"
  15156. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15158. /* end confdefs.h. */
  15159. #include <altivec.h>
  15160. vector unsigned int vzero() {
  15161. return vec_splat_u32(0);
  15162. }
  15163. int
  15164. main ()
  15165. {
  15166. ;
  15167. return 0;
  15168. }
  15169. _ACEOF
  15170. if ac_fn_c_try_compile "$LINENO"; then :
  15171. have_gcc_altivec=yes
  15172. have_altivec_h_hdr=yes
  15173. fi
  15174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15176. $as_echo "$have_gcc_altivec" >&6; }
  15177. fi
  15178. if test x$have_gcc_altivec = xno; then
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15180. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15182. /* end confdefs.h. */
  15183. vector unsigned int vzero() {
  15184. return vec_splat_u32(0);
  15185. }
  15186. int
  15187. main ()
  15188. {
  15189. ;
  15190. return 0;
  15191. }
  15192. _ACEOF
  15193. if ac_fn_c_try_compile "$LINENO"; then :
  15194. have_gcc_altivec=yes
  15195. fi
  15196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15198. $as_echo "$have_gcc_altivec" >&6; }
  15199. fi
  15200. CFLAGS="$save_CFLAGS"
  15201. if test x$have_gcc_altivec = xyes; then
  15202. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15203. if test x$have_altivec_h_hdr = xyes; then
  15204. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15205. fi
  15206. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15207. SUMMARY_math="${SUMMARY_math} altivec"
  15208. fi
  15209. fi
  15210. fi
  15211. CheckOSS()
  15212. {
  15213. # Check whether --enable-oss was given.
  15214. if test "${enable_oss+set}" = set; then :
  15215. enableval=$enable_oss;
  15216. else
  15217. enable_oss=maybe
  15218. fi
  15219. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15220. # use sndio instead. So on there, we default to disabled. You can force
  15221. # it on if you really want, though.
  15222. if test x$enable_oss = xmaybe; then
  15223. enable_oss=yes
  15224. case "$host" in
  15225. *-*-openbsd*)
  15226. enable_oss=no;;
  15227. esac
  15228. fi
  15229. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15231. $as_echo_n "checking for OSS audio support... " >&6; }
  15232. have_oss=no
  15233. if test x$have_oss != xyes; then
  15234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15235. /* end confdefs.h. */
  15236. #include <sys/soundcard.h>
  15237. int
  15238. main ()
  15239. {
  15240. int arg = SNDCTL_DSP_SETFRAGMENT;
  15241. ;
  15242. return 0;
  15243. }
  15244. _ACEOF
  15245. if ac_fn_c_try_compile "$LINENO"; then :
  15246. have_oss=yes
  15247. fi
  15248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15249. fi
  15250. if test x$have_oss != xyes; then
  15251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15252. /* end confdefs.h. */
  15253. #include <soundcard.h>
  15254. int
  15255. main ()
  15256. {
  15257. int arg = SNDCTL_DSP_SETFRAGMENT;
  15258. ;
  15259. return 0;
  15260. }
  15261. _ACEOF
  15262. if ac_fn_c_try_compile "$LINENO"; then :
  15263. have_oss=yes
  15264. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15265. fi
  15266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15267. fi
  15268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15269. $as_echo "$have_oss" >&6; }
  15270. if test x$have_oss = xyes; then
  15271. SUMMARY_audio="${SUMMARY_audio} oss"
  15272. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15273. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15274. have_audio=yes
  15275. # We may need to link with ossaudio emulation library
  15276. case "$host" in
  15277. *-*-openbsd*|*-*-netbsd*)
  15278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15279. esac
  15280. fi
  15281. fi
  15282. }
  15283. CheckALSA()
  15284. {
  15285. # Check whether --enable-alsa was given.
  15286. if test "${enable_alsa+set}" = set; then :
  15287. enableval=$enable_alsa;
  15288. else
  15289. enable_alsa=yes
  15290. fi
  15291. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15292. alsa_save_CFLAGS="$CFLAGS"
  15293. alsa_save_LDFLAGS="$LDFLAGS"
  15294. alsa_save_LIBS="$LIBS"
  15295. alsa_found=yes
  15296. # Check whether --with-alsa-prefix was given.
  15297. if test "${with_alsa_prefix+set}" = set; then :
  15298. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15299. else
  15300. alsa_prefix=""
  15301. fi
  15302. # Check whether --with-alsa-inc-prefix was given.
  15303. if test "${with_alsa_inc_prefix+set}" = set; then :
  15304. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15305. else
  15306. alsa_inc_prefix=""
  15307. fi
  15308. # Check whether --enable-alsatest was given.
  15309. if test "${enable_alsatest+set}" = set; then :
  15310. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15311. else
  15312. enable_alsatest=yes
  15313. fi
  15314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15315. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15316. if test "$alsa_inc_prefix" != "" ; then
  15317. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15318. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15319. fi
  15320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15321. $as_echo "$ALSA_CFLAGS" >&6; }
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15323. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15324. if test "$alsa_prefix" != "" ; then
  15325. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15326. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15327. fi
  15328. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15329. LIBS=`echo $LIBS | sed 's/-lm//'`
  15330. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15331. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15332. LIBS=`echo $LIBS | sed 's/ //'`
  15333. LIBS="$ALSA_LIBS $LIBS"
  15334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15335. $as_echo "$ALSA_LIBS" >&6; }
  15336. min_alsa_version=1.0.11
  15337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15338. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15339. no_alsa=""
  15340. alsa_min_major_version=`echo $min_alsa_version | \
  15341. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15342. alsa_min_minor_version=`echo $min_alsa_version | \
  15343. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15344. alsa_min_micro_version=`echo $min_alsa_version | \
  15345. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15346. ac_ext=c
  15347. ac_cpp='$CPP $CPPFLAGS'
  15348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15352. /* end confdefs.h. */
  15353. #include <alsa/asoundlib.h>
  15354. int
  15355. main ()
  15356. {
  15357. /* ensure backward compatibility */
  15358. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15359. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15360. #endif
  15361. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15362. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15363. #endif
  15364. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15365. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15366. #endif
  15367. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15368. exit(0);
  15369. # else
  15370. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15371. # error not present
  15372. # endif
  15373. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15374. exit(0);
  15375. # else
  15376. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15377. # error not present
  15378. # endif
  15379. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15380. # error not present
  15381. # endif
  15382. # endif
  15383. # endif
  15384. exit(0);
  15385. ;
  15386. return 0;
  15387. }
  15388. _ACEOF
  15389. if ac_fn_c_try_compile "$LINENO"; then :
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15391. $as_echo "found." >&6; }
  15392. else
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15394. $as_echo "not present." >&6; }
  15395. alsa_found=no
  15396. fi
  15397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15398. ac_ext=c
  15399. ac_cpp='$CPP $CPPFLAGS'
  15400. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15401. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15402. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15403. if test "x$enable_alsatest" = "xyes"; then
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15405. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15406. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15407. $as_echo_n "(cached) " >&6
  15408. else
  15409. ac_check_lib_save_LIBS=$LIBS
  15410. LIBS="-lasound $LIBS"
  15411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15412. /* end confdefs.h. */
  15413. /* Override any GCC internal prototype to avoid an error.
  15414. Use char because int might match the return type of a GCC
  15415. builtin and then its argument prototype would still apply. */
  15416. #ifdef __cplusplus
  15417. extern "C"
  15418. #endif
  15419. char snd_ctl_open ();
  15420. int
  15421. main ()
  15422. {
  15423. return snd_ctl_open ();
  15424. ;
  15425. return 0;
  15426. }
  15427. _ACEOF
  15428. if ac_fn_c_try_link "$LINENO"; then :
  15429. ac_cv_lib_asound_snd_ctl_open=yes
  15430. else
  15431. ac_cv_lib_asound_snd_ctl_open=no
  15432. fi
  15433. rm -f core conftest.err conftest.$ac_objext \
  15434. conftest$ac_exeext conftest.$ac_ext
  15435. LIBS=$ac_check_lib_save_LIBS
  15436. fi
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15438. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15439. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15440. cat >>confdefs.h <<_ACEOF
  15441. #define HAVE_LIBASOUND 1
  15442. _ACEOF
  15443. LIBS="-lasound $LIBS"
  15444. else
  15445. alsa_found=no
  15446. fi
  15447. fi
  15448. if test "x$alsa_found" = "xyes" ; then
  15449. have_alsa=yes
  15450. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15451. LIBS=`echo $LIBS | sed 's/ //'`
  15452. LIBS="-lasound $LIBS"
  15453. fi
  15454. if test "x$alsa_found" = "xno" ; then
  15455. have_alsa=no
  15456. CFLAGS="$alsa_save_CFLAGS"
  15457. LDFLAGS="$alsa_save_LDFLAGS"
  15458. LIBS="$alsa_save_LIBS"
  15459. ALSA_CFLAGS=""
  15460. ALSA_LIBS=""
  15461. fi
  15462. # Restore all flags from before the ALSA detection runs
  15463. CFLAGS="$alsa_save_CFLAGS"
  15464. LDFLAGS="$alsa_save_LDFLAGS"
  15465. LIBS="$alsa_save_LIBS"
  15466. if test x$have_alsa = xyes; then
  15467. # Check whether --enable-alsa-shared was given.
  15468. if test "${enable_alsa_shared+set}" = set; then :
  15469. enableval=$enable_alsa_shared;
  15470. else
  15471. enable_alsa_shared=yes
  15472. fi
  15473. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15474. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15475. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15476. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15477. if test x$have_loadso != xyes && \
  15478. test x$enable_alsa_shared = xyes; then
  15479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15480. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15481. fi
  15482. if test x$have_loadso = xyes && \
  15483. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15484. echo "-- dynamic libasound -> $alsa_lib"
  15485. cat >>confdefs.h <<_ACEOF
  15486. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15487. _ACEOF
  15488. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15489. else
  15490. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15491. SUMMARY_audio="${SUMMARY_audio} alsa"
  15492. fi
  15493. have_audio=yes
  15494. fi
  15495. fi
  15496. }
  15497. CheckJACK()
  15498. {
  15499. # Check whether --enable-jack was given.
  15500. if test "${enable_jack+set}" = set; then :
  15501. enableval=$enable_jack;
  15502. else
  15503. enable_jack=yes
  15504. fi
  15505. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15506. audio_jack=no
  15507. JACK_REQUIRED_VERSION=0.125
  15508. # Extract the first word of "pkg-config", so it can be a program name with args.
  15509. set dummy pkg-config; ac_word=$2
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15511. $as_echo_n "checking for $ac_word... " >&6; }
  15512. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15513. $as_echo_n "(cached) " >&6
  15514. else
  15515. case $PKG_CONFIG in
  15516. [\\/]* | ?:[\\/]*)
  15517. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15518. ;;
  15519. *)
  15520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15521. for as_dir in $PATH
  15522. do
  15523. IFS=$as_save_IFS
  15524. test -z "$as_dir" && as_dir=.
  15525. for ac_exec_ext in '' $ac_executable_extensions; do
  15526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15527. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15529. break 2
  15530. fi
  15531. done
  15532. done
  15533. IFS=$as_save_IFS
  15534. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15535. ;;
  15536. esac
  15537. fi
  15538. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15539. if test -n "$PKG_CONFIG"; then
  15540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15541. $as_echo "$PKG_CONFIG" >&6; }
  15542. else
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15544. $as_echo "no" >&6; }
  15545. fi
  15546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15547. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15548. if test x$PKG_CONFIG != xno; then
  15549. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15550. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15551. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15552. audio_jack=yes
  15553. fi
  15554. fi
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15556. $as_echo "$audio_jack" >&6; }
  15557. if test x$audio_jack = xyes; then
  15558. # Check whether --enable-jack-shared was given.
  15559. if test "${enable_jack_shared+set}" = set; then :
  15560. enableval=$enable_jack_shared;
  15561. else
  15562. enable_jack_shared=yes
  15563. fi
  15564. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15565. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15566. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15567. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15568. if test x$have_loadso != xyes && \
  15569. test x$enable_jack_shared = xyes; then
  15570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15571. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15572. fi
  15573. if test x$have_loadso = xyes && \
  15574. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15575. echo "-- dynamic libjack -> $jack_lib"
  15576. cat >>confdefs.h <<_ACEOF
  15577. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15578. _ACEOF
  15579. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15580. case "$host" in
  15581. # On Solaris, jack must be linked deferred explicitly
  15582. # to prevent undefined symbol failures.
  15583. *-*-solaris*)
  15584. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15586. esac
  15587. else
  15588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15589. SUMMARY_audio="${SUMMARY_audio} jack"
  15590. fi
  15591. have_audio=yes
  15592. fi
  15593. fi
  15594. }
  15595. CheckESD()
  15596. {
  15597. # Check whether --enable-esd was given.
  15598. if test "${enable_esd+set}" = set; then :
  15599. enableval=$enable_esd;
  15600. else
  15601. enable_esd=yes
  15602. fi
  15603. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15604. # Check whether --with-esd-prefix was given.
  15605. if test "${with_esd_prefix+set}" = set; then :
  15606. withval=$with_esd_prefix; esd_prefix="$withval"
  15607. else
  15608. esd_prefix=""
  15609. fi
  15610. # Check whether --with-esd-exec-prefix was given.
  15611. if test "${with_esd_exec_prefix+set}" = set; then :
  15612. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15613. else
  15614. esd_exec_prefix=""
  15615. fi
  15616. # Check whether --enable-esdtest was given.
  15617. if test "${enable_esdtest+set}" = set; then :
  15618. enableval=$enable_esdtest;
  15619. else
  15620. enable_esdtest=yes
  15621. fi
  15622. if test x$esd_exec_prefix != x ; then
  15623. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15624. if test x${ESD_CONFIG+set} != xset ; then
  15625. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15626. fi
  15627. fi
  15628. if test x$esd_prefix != x ; then
  15629. esd_args="$esd_args --prefix=$esd_prefix"
  15630. if test x${ESD_CONFIG+set} != xset ; then
  15631. ESD_CONFIG=$esd_prefix/bin/esd-config
  15632. fi
  15633. fi
  15634. # Extract the first word of "esd-config", so it can be a program name with args.
  15635. set dummy esd-config; ac_word=$2
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15637. $as_echo_n "checking for $ac_word... " >&6; }
  15638. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15639. $as_echo_n "(cached) " >&6
  15640. else
  15641. case $ESD_CONFIG in
  15642. [\\/]* | ?:[\\/]*)
  15643. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15644. ;;
  15645. *)
  15646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15647. for as_dir in $PATH
  15648. do
  15649. IFS=$as_save_IFS
  15650. test -z "$as_dir" && as_dir=.
  15651. for ac_exec_ext in '' $ac_executable_extensions; do
  15652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15653. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15655. break 2
  15656. fi
  15657. done
  15658. done
  15659. IFS=$as_save_IFS
  15660. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15661. ;;
  15662. esac
  15663. fi
  15664. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15665. if test -n "$ESD_CONFIG"; then
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15667. $as_echo "$ESD_CONFIG" >&6; }
  15668. else
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15670. $as_echo "no" >&6; }
  15671. fi
  15672. min_esd_version=0.2.8
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15674. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15675. no_esd=""
  15676. if test "$ESD_CONFIG" = "no" ; then
  15677. no_esd=yes
  15678. else
  15679. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15680. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15681. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15682. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15683. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15684. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15685. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15686. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15687. if test "x$enable_esdtest" = "xyes" ; then
  15688. ac_save_CFLAGS="$CFLAGS"
  15689. ac_save_LIBS="$LIBS"
  15690. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15691. LIBS="$LIBS $ESD_LIBS"
  15692. rm -f conf.esdtest
  15693. if test "$cross_compiling" = yes; then :
  15694. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15695. else
  15696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15697. /* end confdefs.h. */
  15698. #include <stdio.h>
  15699. #include <stdlib.h>
  15700. #include <string.h>
  15701. #include <esd.h>
  15702. char*
  15703. my_strdup (char *str)
  15704. {
  15705. char *new_str;
  15706. if (str)
  15707. {
  15708. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15709. strcpy (new_str, str);
  15710. }
  15711. else
  15712. new_str = NULL;
  15713. return new_str;
  15714. }
  15715. int main ()
  15716. {
  15717. int major, minor, micro;
  15718. char *tmp_version;
  15719. system ("touch conf.esdtest");
  15720. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15721. tmp_version = my_strdup("$min_esd_version");
  15722. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15723. printf("%s, bad version string\n", "$min_esd_version");
  15724. exit(1);
  15725. }
  15726. if (($esd_major_version > major) ||
  15727. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15728. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15729. {
  15730. return 0;
  15731. }
  15732. else
  15733. {
  15734. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15735. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15736. printf("*** best to upgrade to the required version.\n");
  15737. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15738. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15739. printf("*** config.cache before re-running configure\n");
  15740. return 1;
  15741. }
  15742. }
  15743. _ACEOF
  15744. if ac_fn_c_try_run "$LINENO"; then :
  15745. else
  15746. no_esd=yes
  15747. fi
  15748. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15749. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15750. fi
  15751. CFLAGS="$ac_save_CFLAGS"
  15752. LIBS="$ac_save_LIBS"
  15753. fi
  15754. fi
  15755. if test "x$no_esd" = x ; then
  15756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15757. $as_echo "yes" >&6; }
  15758. have_esd=yes
  15759. else
  15760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15761. $as_echo "no" >&6; }
  15762. if test "$ESD_CONFIG" = "no" ; then
  15763. echo "*** The esd-config script installed by ESD could not be found"
  15764. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15765. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15766. echo "*** full path to esd-config."
  15767. else
  15768. if test -f conf.esdtest ; then
  15769. :
  15770. else
  15771. echo "*** Could not run ESD test program, checking why..."
  15772. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15773. LIBS="$LIBS $ESD_LIBS"
  15774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15775. /* end confdefs.h. */
  15776. #include <stdio.h>
  15777. #include <esd.h>
  15778. int
  15779. main ()
  15780. {
  15781. return 0;
  15782. ;
  15783. return 0;
  15784. }
  15785. _ACEOF
  15786. if ac_fn_c_try_link "$LINENO"; then :
  15787. echo "*** The test program compiled, but did not run. This usually means"
  15788. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15789. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15790. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15791. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15792. echo "*** is required on your system"
  15793. echo "***"
  15794. echo "*** If you have an old version installed, it is best to remove it, although"
  15795. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15796. else
  15797. echo "*** The test program failed to compile or link. See the file config.log for the"
  15798. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15799. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15800. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15801. fi
  15802. rm -f core conftest.err conftest.$ac_objext \
  15803. conftest$ac_exeext conftest.$ac_ext
  15804. CFLAGS="$ac_save_CFLAGS"
  15805. LIBS="$ac_save_LIBS"
  15806. fi
  15807. fi
  15808. ESD_CFLAGS=""
  15809. ESD_LIBS=""
  15810. have_esd=no
  15811. fi
  15812. rm -f conf.esdtest
  15813. if test x$have_esd = xyes; then
  15814. # Check whether --enable-esd-shared was given.
  15815. if test "${enable_esd_shared+set}" = set; then :
  15816. enableval=$enable_esd_shared;
  15817. else
  15818. enable_esd_shared=yes
  15819. fi
  15820. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15821. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15822. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15823. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15824. if test x$have_loadso != xyes && \
  15825. test x$enable_esd_shared = xyes; then
  15826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15827. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15828. fi
  15829. if test x$have_loadso = xyes && \
  15830. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15831. echo "-- dynamic libesd -> $esd_lib"
  15832. cat >>confdefs.h <<_ACEOF
  15833. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15834. _ACEOF
  15835. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15836. else
  15837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15838. SUMMARY_audio="${SUMMARY_audio} esd"
  15839. fi
  15840. have_audio=yes
  15841. fi
  15842. fi
  15843. }
  15844. CheckPulseAudio()
  15845. {
  15846. # Check whether --enable-pulseaudio was given.
  15847. if test "${enable_pulseaudio+set}" = set; then :
  15848. enableval=$enable_pulseaudio;
  15849. else
  15850. enable_pulseaudio=yes
  15851. fi
  15852. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15853. audio_pulseaudio=no
  15854. PULSEAUDIO_REQUIRED_VERSION=0.9
  15855. # Extract the first word of "pkg-config", so it can be a program name with args.
  15856. set dummy pkg-config; ac_word=$2
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15858. $as_echo_n "checking for $ac_word... " >&6; }
  15859. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15860. $as_echo_n "(cached) " >&6
  15861. else
  15862. case $PKG_CONFIG in
  15863. [\\/]* | ?:[\\/]*)
  15864. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15865. ;;
  15866. *)
  15867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15868. for as_dir in $PATH
  15869. do
  15870. IFS=$as_save_IFS
  15871. test -z "$as_dir" && as_dir=.
  15872. for ac_exec_ext in '' $ac_executable_extensions; do
  15873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15874. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15876. break 2
  15877. fi
  15878. done
  15879. done
  15880. IFS=$as_save_IFS
  15881. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15882. ;;
  15883. esac
  15884. fi
  15885. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15886. if test -n "$PKG_CONFIG"; then
  15887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15888. $as_echo "$PKG_CONFIG" >&6; }
  15889. else
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15891. $as_echo "no" >&6; }
  15892. fi
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15894. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15895. if test x$PKG_CONFIG != xno; then
  15896. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15897. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15898. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15899. audio_pulseaudio=yes
  15900. fi
  15901. fi
  15902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15903. $as_echo "$audio_pulseaudio" >&6; }
  15904. if test x$audio_pulseaudio = xyes; then
  15905. # Check whether --enable-pulseaudio-shared was given.
  15906. if test "${enable_pulseaudio_shared+set}" = set; then :
  15907. enableval=$enable_pulseaudio_shared;
  15908. else
  15909. enable_pulseaudio_shared=yes
  15910. fi
  15911. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15912. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15913. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15914. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15915. if test x$have_loadso != xyes && \
  15916. test x$enable_pulseaudio_shared = xyes; then
  15917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15918. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15919. fi
  15920. if test x$have_loadso = xyes && \
  15921. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15922. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15923. cat >>confdefs.h <<_ACEOF
  15924. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15925. _ACEOF
  15926. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15927. case "$host" in
  15928. # On Solaris, pulseaudio must be linked deferred explicitly
  15929. # to prevent undefined symbol failures.
  15930. *-*-solaris*)
  15931. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15932. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15933. esac
  15934. else
  15935. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15936. SUMMARY_audio="${SUMMARY_audio} pulse"
  15937. fi
  15938. have_audio=yes
  15939. fi
  15940. fi
  15941. }
  15942. CheckARTSC()
  15943. {
  15944. # Check whether --enable-arts was given.
  15945. if test "${enable_arts+set}" = set; then :
  15946. enableval=$enable_arts;
  15947. else
  15948. enable_arts=yes
  15949. fi
  15950. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15951. # Extract the first word of "artsc-config", so it can be a program name with args.
  15952. set dummy artsc-config; ac_word=$2
  15953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15954. $as_echo_n "checking for $ac_word... " >&6; }
  15955. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15956. $as_echo_n "(cached) " >&6
  15957. else
  15958. case $ARTSCONFIG in
  15959. [\\/]* | ?:[\\/]*)
  15960. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15961. ;;
  15962. *)
  15963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15964. for as_dir in $PATH
  15965. do
  15966. IFS=$as_save_IFS
  15967. test -z "$as_dir" && as_dir=.
  15968. for ac_exec_ext in '' $ac_executable_extensions; do
  15969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15970. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15972. break 2
  15973. fi
  15974. done
  15975. done
  15976. IFS=$as_save_IFS
  15977. ;;
  15978. esac
  15979. fi
  15980. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15981. if test -n "$ARTSCONFIG"; then
  15982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15983. $as_echo "$ARTSCONFIG" >&6; }
  15984. else
  15985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15986. $as_echo "no" >&6; }
  15987. fi
  15988. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15989. : # arts isn't installed
  15990. else
  15991. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15992. ARTS_LIBS=`$ARTSCONFIG --libs`
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15994. $as_echo_n "checking for aRts development environment... " >&6; }
  15995. audio_arts=no
  15996. save_CFLAGS="$CFLAGS"
  15997. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15999. /* end confdefs.h. */
  16000. #include <artsc.h>
  16001. int
  16002. main ()
  16003. {
  16004. arts_stream_t stream;
  16005. ;
  16006. return 0;
  16007. }
  16008. _ACEOF
  16009. if ac_fn_c_try_compile "$LINENO"; then :
  16010. audio_arts=yes
  16011. fi
  16012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16013. CFLAGS="$save_CFLAGS"
  16014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16015. $as_echo "$audio_arts" >&6; }
  16016. if test x$audio_arts = xyes; then
  16017. # Check whether --enable-arts-shared was given.
  16018. if test "${enable_arts_shared+set}" = set; then :
  16019. enableval=$enable_arts_shared;
  16020. else
  16021. enable_arts_shared=yes
  16022. fi
  16023. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16024. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16025. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16026. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16027. if test x$have_loadso != xyes && \
  16028. test x$enable_arts_shared = xyes; then
  16029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16030. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16031. fi
  16032. if test x$have_loadso = xyes && \
  16033. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16034. echo "-- dynamic libartsc -> $arts_lib"
  16035. cat >>confdefs.h <<_ACEOF
  16036. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16037. _ACEOF
  16038. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16039. else
  16040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16041. SUMMARY_audio="${SUMMARY_audio} arts"
  16042. fi
  16043. have_audio=yes
  16044. fi
  16045. fi
  16046. fi
  16047. }
  16048. CheckNAS()
  16049. {
  16050. # Check whether --enable-nas was given.
  16051. if test "${enable_nas+set}" = set; then :
  16052. enableval=$enable_nas;
  16053. else
  16054. enable_nas=yes
  16055. fi
  16056. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16057. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16058. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16059. have_nas_hdr=yes
  16060. fi
  16061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16062. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16063. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16064. $as_echo_n "(cached) " >&6
  16065. else
  16066. ac_check_lib_save_LIBS=$LIBS
  16067. LIBS="-laudio $LIBS"
  16068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16069. /* end confdefs.h. */
  16070. /* Override any GCC internal prototype to avoid an error.
  16071. Use char because int might match the return type of a GCC
  16072. builtin and then its argument prototype would still apply. */
  16073. #ifdef __cplusplus
  16074. extern "C"
  16075. #endif
  16076. char AuOpenServer ();
  16077. int
  16078. main ()
  16079. {
  16080. return AuOpenServer ();
  16081. ;
  16082. return 0;
  16083. }
  16084. _ACEOF
  16085. if ac_fn_c_try_link "$LINENO"; then :
  16086. ac_cv_lib_audio_AuOpenServer=yes
  16087. else
  16088. ac_cv_lib_audio_AuOpenServer=no
  16089. fi
  16090. rm -f core conftest.err conftest.$ac_objext \
  16091. conftest$ac_exeext conftest.$ac_ext
  16092. LIBS=$ac_check_lib_save_LIBS
  16093. fi
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16095. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16096. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16097. have_nas_lib=yes
  16098. fi
  16099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16100. $as_echo_n "checking for NAS audio support... " >&6; }
  16101. have_nas=no
  16102. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16103. have_nas=yes
  16104. NAS_LIBS="-laudio"
  16105. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16106. have_nas=yes
  16107. NAS_CFLAGS="-I/usr/X11R6/include/"
  16108. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16109. fi
  16110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16111. $as_echo "$have_nas" >&6; }
  16112. if test x$have_nas = xyes; then
  16113. # Check whether --enable-nas-shared was given.
  16114. if test "${enable_nas_shared+set}" = set; then :
  16115. enableval=$enable_nas_shared;
  16116. else
  16117. enable_nas_shared=yes
  16118. fi
  16119. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16120. if test x$have_loadso != xyes && \
  16121. test x$enable_nas_shared = xyes; then
  16122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16123. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16124. fi
  16125. if test x$have_loadso = xyes && \
  16126. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16127. echo "-- dynamic libaudio -> $nas_lib"
  16128. cat >>confdefs.h <<_ACEOF
  16129. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16130. _ACEOF
  16131. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16132. else
  16133. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16134. SUMMARY_audio="${SUMMARY_audio} nas"
  16135. fi
  16136. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16137. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16138. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16139. have_audio=yes
  16140. fi
  16141. fi
  16142. }
  16143. CheckSNDIO()
  16144. {
  16145. # Check whether --enable-sndio was given.
  16146. if test "${enable_sndio+set}" = set; then :
  16147. enableval=$enable_sndio;
  16148. else
  16149. enable_sndio=yes
  16150. fi
  16151. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16152. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16153. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16154. have_sndio_hdr=yes
  16155. fi
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16157. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16158. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16159. $as_echo_n "(cached) " >&6
  16160. else
  16161. ac_check_lib_save_LIBS=$LIBS
  16162. LIBS="-lsndio $LIBS"
  16163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16164. /* end confdefs.h. */
  16165. /* Override any GCC internal prototype to avoid an error.
  16166. Use char because int might match the return type of a GCC
  16167. builtin and then its argument prototype would still apply. */
  16168. #ifdef __cplusplus
  16169. extern "C"
  16170. #endif
  16171. char sio_open ();
  16172. int
  16173. main ()
  16174. {
  16175. return sio_open ();
  16176. ;
  16177. return 0;
  16178. }
  16179. _ACEOF
  16180. if ac_fn_c_try_link "$LINENO"; then :
  16181. ac_cv_lib_sndio_sio_open=yes
  16182. else
  16183. ac_cv_lib_sndio_sio_open=no
  16184. fi
  16185. rm -f core conftest.err conftest.$ac_objext \
  16186. conftest$ac_exeext conftest.$ac_ext
  16187. LIBS=$ac_check_lib_save_LIBS
  16188. fi
  16189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16190. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16191. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16192. have_sndio_lib=yes
  16193. fi
  16194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16195. $as_echo_n "checking for sndio audio support... " >&6; }
  16196. have_sndio=no
  16197. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16198. have_sndio=yes
  16199. SNDIO_LIBS="-lsndio"
  16200. fi
  16201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16202. $as_echo "$have_sndio" >&6; }
  16203. if test x$have_sndio = xyes; then
  16204. # Check whether --enable-sndio-shared was given.
  16205. if test "${enable_sndio_shared+set}" = set; then :
  16206. enableval=$enable_sndio_shared;
  16207. else
  16208. enable_sndio_shared=yes
  16209. fi
  16210. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16211. if test x$have_loadso != xyes && \
  16212. test x$enable_sndio_shared = xyes; then
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16214. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16215. fi
  16216. if test x$have_loadso = xyes && \
  16217. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16218. echo "-- dynamic libsndio -> $sndio_lib"
  16219. cat >>confdefs.h <<_ACEOF
  16220. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16221. _ACEOF
  16222. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16223. else
  16224. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16225. SUMMARY_audio="${SUMMARY_audio} sndio"
  16226. fi
  16227. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16228. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16229. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16230. have_audio=yes
  16231. fi
  16232. fi
  16233. }
  16234. CheckFusionSound()
  16235. {
  16236. # Check whether --enable-fusionsound was given.
  16237. if test "${enable_fusionsound+set}" = set; then :
  16238. enableval=$enable_fusionsound;
  16239. else
  16240. enable_fusionsound=no
  16241. fi
  16242. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16243. fusionsound=no
  16244. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16245. # Extract the first word of "pkg-config", so it can be a program name with args.
  16246. set dummy pkg-config; ac_word=$2
  16247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16248. $as_echo_n "checking for $ac_word... " >&6; }
  16249. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16250. $as_echo_n "(cached) " >&6
  16251. else
  16252. case $PKG_CONFIG in
  16253. [\\/]* | ?:[\\/]*)
  16254. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16255. ;;
  16256. *)
  16257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16258. for as_dir in $PATH
  16259. do
  16260. IFS=$as_save_IFS
  16261. test -z "$as_dir" && as_dir=.
  16262. for ac_exec_ext in '' $ac_executable_extensions; do
  16263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16264. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16266. break 2
  16267. fi
  16268. done
  16269. done
  16270. IFS=$as_save_IFS
  16271. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16272. ;;
  16273. esac
  16274. fi
  16275. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16276. if test -n "$PKG_CONFIG"; then
  16277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16278. $as_echo "$PKG_CONFIG" >&6; }
  16279. else
  16280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16281. $as_echo "no" >&6; }
  16282. fi
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16284. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16285. if test x$PKG_CONFIG != xno; then
  16286. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16287. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16288. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16289. fusionsound=yes
  16290. fi
  16291. fi
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16293. $as_echo "$fusionsound" >&6; }
  16294. if test x$fusionsound = xyes; then
  16295. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16296. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16297. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16298. # Check whether --enable-fusionsound-shared was given.
  16299. if test "${enable_fusionsound_shared+set}" = set; then :
  16300. enableval=$enable_fusionsound_shared;
  16301. else
  16302. enable_fusionsound_shared=yes
  16303. fi
  16304. fusionsound_shared=no
  16305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16306. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16307. if test x$have_loadso != xyes && \
  16308. test x$enable_fusionsound_shared = xyes; then
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16310. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16311. fi
  16312. if test x$have_loadso = xyes && \
  16313. test x$enable_fusionsound_shared = xyes; then
  16314. cat >>confdefs.h <<_ACEOF
  16315. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16316. _ACEOF
  16317. fusionsound_shared=yes
  16318. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16319. else
  16320. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16321. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16322. fi
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16324. $as_echo "$fusionsound_shared" >&6; }
  16325. have_audio=yes
  16326. fi
  16327. fi
  16328. }
  16329. CheckDiskAudio()
  16330. {
  16331. # Check whether --enable-diskaudio was given.
  16332. if test "${enable_diskaudio+set}" = set; then :
  16333. enableval=$enable_diskaudio;
  16334. else
  16335. enable_diskaudio=yes
  16336. fi
  16337. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16338. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16339. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16340. SUMMARY_audio="${SUMMARY_audio} disk"
  16341. fi
  16342. }
  16343. CheckDummyAudio()
  16344. {
  16345. # Check whether --enable-dummyaudio was given.
  16346. if test "${enable_dummyaudio+set}" = set; then :
  16347. enableval=$enable_dummyaudio;
  16348. else
  16349. enable_dummyaudio=yes
  16350. fi
  16351. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16352. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16353. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16354. SUMMARY_audio="${SUMMARY_audio} dummy"
  16355. fi
  16356. }
  16357. CheckLibSampleRate()
  16358. {
  16359. # Check whether --enable-libsamplerate was given.
  16360. if test "${enable_libsamplerate+set}" = set; then :
  16361. enableval=$enable_libsamplerate;
  16362. else
  16363. enable_libsamplerate=yes
  16364. fi
  16365. if test x$enable_libsamplerate = xyes; then
  16366. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16367. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16368. have_samplerate_h_hdr=yes
  16369. else
  16370. have_samplerate_h_hdr=no
  16371. fi
  16372. if test x$have_samplerate_h_hdr = xyes; then
  16373. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16374. # Check whether --enable-libsamplerate-shared was given.
  16375. if test "${enable_libsamplerate_shared+set}" = set; then :
  16376. enableval=$enable_libsamplerate_shared;
  16377. else
  16378. enable_libsamplerate_shared=yes
  16379. fi
  16380. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16381. if test x$have_loadso != xyes && \
  16382. test x$enable_libsamplerate_shared = xyes; then
  16383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16384. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16385. fi
  16386. if test x$have_loadso = xyes && \
  16387. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16388. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16389. cat >>confdefs.h <<_ACEOF
  16390. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16391. _ACEOF
  16392. else
  16393. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16394. fi
  16395. fi
  16396. fi
  16397. }
  16398. CheckVisibilityHidden()
  16399. {
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16401. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16402. have_gcc_fvisibility=no
  16403. visibility_CFLAGS="-fvisibility=hidden"
  16404. save_CFLAGS="$CFLAGS"
  16405. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16407. /* end confdefs.h. */
  16408. #if !defined(__GNUC__) || __GNUC__ < 4
  16409. #error SDL only uses visibility attributes in GCC 4 or newer
  16410. #endif
  16411. int
  16412. main ()
  16413. {
  16414. ;
  16415. return 0;
  16416. }
  16417. _ACEOF
  16418. if ac_fn_c_try_compile "$LINENO"; then :
  16419. have_gcc_fvisibility=yes
  16420. fi
  16421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16423. $as_echo "$have_gcc_fvisibility" >&6; }
  16424. CFLAGS="$save_CFLAGS"
  16425. if test x$have_gcc_fvisibility = xyes; then
  16426. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16427. fi
  16428. }
  16429. CheckStackBoundary()
  16430. {
  16431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16432. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16433. have_gcc_preferred_stack_boundary=no
  16434. save_CFLAGS="$CFLAGS"
  16435. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16437. /* end confdefs.h. */
  16438. int x = 0;
  16439. int
  16440. main ()
  16441. {
  16442. ;
  16443. return 0;
  16444. }
  16445. _ACEOF
  16446. if ac_fn_c_try_compile "$LINENO"; then :
  16447. have_gcc_preferred_stack_boundary=yes
  16448. fi
  16449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16451. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16452. CFLAGS="$save_CFLAGS"
  16453. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16454. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16455. fi
  16456. }
  16457. CheckDeclarationAfterStatement()
  16458. {
  16459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16460. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16461. have_gcc_declaration_after_statement=no
  16462. save_CFLAGS="$CFLAGS"
  16463. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16465. /* end confdefs.h. */
  16466. int x = 0;
  16467. int
  16468. main ()
  16469. {
  16470. ;
  16471. return 0;
  16472. }
  16473. _ACEOF
  16474. if ac_fn_c_try_compile "$LINENO"; then :
  16475. have_gcc_declaration_after_statement=yes
  16476. fi
  16477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16479. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16480. CFLAGS="$save_CFLAGS"
  16481. if test x$have_gcc_declaration_after_statement = xyes; then
  16482. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16483. fi
  16484. }
  16485. CheckWarnAll()
  16486. {
  16487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16488. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16489. have_gcc_Wall=no
  16490. save_CFLAGS="$CFLAGS"
  16491. CFLAGS="$save_CFLAGS -Wall"
  16492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16493. /* end confdefs.h. */
  16494. int x = 0;
  16495. int
  16496. main ()
  16497. {
  16498. ;
  16499. return 0;
  16500. }
  16501. _ACEOF
  16502. if ac_fn_c_try_compile "$LINENO"; then :
  16503. have_gcc_Wall=yes
  16504. fi
  16505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16507. $as_echo "$have_gcc_Wall" >&6; }
  16508. CFLAGS="$save_CFLAGS"
  16509. if test x$have_gcc_Wall = xyes; then
  16510. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16512. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16513. need_gcc_Wno_multichar=no
  16514. case "$host" in
  16515. *-*-haiku*)
  16516. need_gcc_Wno_multichar=yes
  16517. ;;
  16518. esac
  16519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16520. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16521. if test x$need_gcc_Wno_multichar = xyes; then
  16522. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16523. fi
  16524. fi
  16525. }
  16526. CheckWayland()
  16527. {
  16528. # Check whether --enable-video-wayland was given.
  16529. if test "${enable_video_wayland+set}" = set; then :
  16530. enableval=$enable_video_wayland;
  16531. else
  16532. enable_video_wayland=yes
  16533. fi
  16534. # Check whether --enable-video-wayland-qt-touch was given.
  16535. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16536. enableval=$enable_video_wayland_qt_touch;
  16537. else
  16538. enable_video_wayland_qt_touch=yes
  16539. fi
  16540. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16541. # Extract the first word of "pkg-config", so it can be a program name with args.
  16542. set dummy pkg-config; ac_word=$2
  16543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16544. $as_echo_n "checking for $ac_word... " >&6; }
  16545. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16546. $as_echo_n "(cached) " >&6
  16547. else
  16548. case $PKG_CONFIG in
  16549. [\\/]* | ?:[\\/]*)
  16550. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16551. ;;
  16552. *)
  16553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16554. for as_dir in $PATH
  16555. do
  16556. IFS=$as_save_IFS
  16557. test -z "$as_dir" && as_dir=.
  16558. for ac_exec_ext in '' $ac_executable_extensions; do
  16559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16560. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16562. break 2
  16563. fi
  16564. done
  16565. done
  16566. IFS=$as_save_IFS
  16567. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16568. ;;
  16569. esac
  16570. fi
  16571. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16572. if test -n "$PKG_CONFIG"; then
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16574. $as_echo "$PKG_CONFIG" >&6; }
  16575. else
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16577. $as_echo "no" >&6; }
  16578. fi
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16580. $as_echo_n "checking for Wayland support... " >&6; }
  16581. video_wayland=no
  16582. if test x$PKG_CONFIG != xno && \
  16583. test x$video_opengl_egl = xyes && \
  16584. test x$video_opengles_v2 = xyes; then
  16585. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16586. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16587. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16588. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16589. video_wayland=yes
  16590. fi
  16591. fi
  16592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16593. $as_echo "$video_wayland" >&6; }
  16594. if test x$video_wayland = xyes; then
  16595. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16596. if test x$enable_video_wayland_qt_touch = xyes; then
  16597. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16598. fi
  16599. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16600. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16601. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16602. # Check whether --enable-wayland-shared was given.
  16603. if test "${enable_wayland_shared+set}" = set; then :
  16604. enableval=$enable_wayland_shared;
  16605. else
  16606. enable_wayland_shared=maybe
  16607. fi
  16608. case "$host" in
  16609. *)
  16610. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16611. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16612. if test x$wayland_egl_lib = x; then
  16613. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16614. fi
  16615. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16616. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16617. ;;
  16618. esac
  16619. if test x$enable_wayland_shared = xmaybe; then
  16620. enable_wayland_shared=yes
  16621. fi
  16622. if test x$have_loadso != xyes && \
  16623. test x$enable_wayland_shared = xyes; then
  16624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16625. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16626. enable_wayland_shared=no
  16627. fi
  16628. if test x$have_loadso = xyes && \
  16629. test x$enable_wayland_shared = xyes && \
  16630. test x$wayland_client_lib != x && \
  16631. test x$wayland_egl_lib != x && \
  16632. test x$wayland_cursor_lib != x && \
  16633. test x$xkbcommon_lib != x; then
  16634. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16635. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16636. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16637. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16638. cat >>confdefs.h <<_ACEOF
  16639. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16640. _ACEOF
  16641. cat >>confdefs.h <<_ACEOF
  16642. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16643. _ACEOF
  16644. cat >>confdefs.h <<_ACEOF
  16645. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16646. _ACEOF
  16647. cat >>confdefs.h <<_ACEOF
  16648. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16649. _ACEOF
  16650. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16651. else
  16652. enable_wayland_shared=no
  16653. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16654. SUMMARY_video="${SUMMARY_video} wayland"
  16655. fi
  16656. have_video=yes
  16657. fi
  16658. fi
  16659. }
  16660. CheckMir()
  16661. {
  16662. # Check whether --enable-video-mir was given.
  16663. if test "${enable_video_mir+set}" = set; then :
  16664. enableval=$enable_video_mir;
  16665. else
  16666. enable_video_mir=no
  16667. fi
  16668. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16669. # Extract the first word of "pkg-config", so it can be a program name with args.
  16670. set dummy pkg-config; ac_word=$2
  16671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16672. $as_echo_n "checking for $ac_word... " >&6; }
  16673. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16674. $as_echo_n "(cached) " >&6
  16675. else
  16676. case $PKG_CONFIG in
  16677. [\\/]* | ?:[\\/]*)
  16678. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16679. ;;
  16680. *)
  16681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16682. for as_dir in $PATH
  16683. do
  16684. IFS=$as_save_IFS
  16685. test -z "$as_dir" && as_dir=.
  16686. for ac_exec_ext in '' $ac_executable_extensions; do
  16687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16688. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16690. break 2
  16691. fi
  16692. done
  16693. done
  16694. IFS=$as_save_IFS
  16695. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16696. ;;
  16697. esac
  16698. fi
  16699. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16700. if test -n "$PKG_CONFIG"; then
  16701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16702. $as_echo "$PKG_CONFIG" >&6; }
  16703. else
  16704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16705. $as_echo "no" >&6; }
  16706. fi
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16708. $as_echo_n "checking for Mir support... " >&6; }
  16709. video_mir=no
  16710. if test x$PKG_CONFIG != xno; then
  16711. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16712. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16713. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16714. save_CFLAGS="$CFLAGS"
  16715. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16717. /* end confdefs.h. */
  16718. #include <mir_toolkit/mir_client_library.h>
  16719. int
  16720. main ()
  16721. {
  16722. MirWindowAttrib attrib = mir_window_attrib_state
  16723. ;
  16724. return 0;
  16725. }
  16726. _ACEOF
  16727. if ac_fn_c_try_compile "$LINENO"; then :
  16728. video_mir=yes
  16729. fi
  16730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16731. CFLAGS="$save_CFLAGS"
  16732. fi
  16733. fi
  16734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16735. $as_echo "$video_mir" >&6; }
  16736. if test x$video_mir = xyes; then
  16737. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16738. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16739. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16740. # Check whether --enable-mir-shared was given.
  16741. if test "${enable_mir_shared+set}" = set; then :
  16742. enableval=$enable_mir_shared;
  16743. else
  16744. enable_mir_shared=maybe
  16745. fi
  16746. case "$host" in
  16747. *)
  16748. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16749. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16750. ;;
  16751. esac
  16752. if test x$enable_mir_shared = xmaybe; then
  16753. enable_mir_shared=yes
  16754. fi
  16755. if test x$have_loadso != xyes && \
  16756. test x$enable_mir_shared = xyes; then
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16758. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16759. enable_mir_shared=no
  16760. fi
  16761. if test x$have_loadso = xyes && \
  16762. test x$enable_mir_shared = xyes && \
  16763. test x$mirclient_lib != x && \
  16764. test x$xkbcommon_lib != x; then
  16765. echo "-- dynamic libmirclient -> $mirclient_lib"
  16766. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16767. cat >>confdefs.h <<_ACEOF
  16768. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16769. _ACEOF
  16770. cat >>confdefs.h <<_ACEOF
  16771. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16772. _ACEOF
  16773. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16774. else
  16775. enable_mir_shared=no
  16776. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16777. SUMMARY_video="${SUMMARY_video} mir"
  16778. fi
  16779. have_video=yes
  16780. fi
  16781. fi
  16782. }
  16783. CheckNativeClient()
  16784. {
  16785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16786. /* end confdefs.h. */
  16787. #if !defined(__native_client__)
  16788. #error "NO NACL"
  16789. #endif
  16790. int
  16791. main ()
  16792. {
  16793. ;
  16794. return 0;
  16795. }
  16796. _ACEOF
  16797. if ac_fn_c_try_compile "$LINENO"; then :
  16798. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16799. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16800. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16801. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16802. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16803. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16804. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16805. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16806. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16807. SUMMARY_audio="${SUMMARY_audio} nacl"
  16808. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16809. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16810. fi
  16811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16812. }
  16813. CheckRPI()
  16814. {
  16815. # Check whether --enable-video-rpi was given.
  16816. if test "${enable_video_rpi+set}" = set; then :
  16817. enableval=$enable_video_rpi;
  16818. else
  16819. enable_video_rpi=yes
  16820. fi
  16821. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16822. # Extract the first word of "pkg-config", so it can be a program name with args.
  16823. set dummy pkg-config; ac_word=$2
  16824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16825. $as_echo_n "checking for $ac_word... " >&6; }
  16826. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16827. $as_echo_n "(cached) " >&6
  16828. else
  16829. case $PKG_CONFIG in
  16830. [\\/]* | ?:[\\/]*)
  16831. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16832. ;;
  16833. *)
  16834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16835. for as_dir in $PATH
  16836. do
  16837. IFS=$as_save_IFS
  16838. test -z "$as_dir" && as_dir=.
  16839. for ac_exec_ext in '' $ac_executable_extensions; do
  16840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16841. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16843. break 2
  16844. fi
  16845. done
  16846. done
  16847. IFS=$as_save_IFS
  16848. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16849. ;;
  16850. esac
  16851. fi
  16852. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16853. if test -n "$PKG_CONFIG"; then
  16854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16855. $as_echo "$PKG_CONFIG" >&6; }
  16856. else
  16857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16858. $as_echo "no" >&6; }
  16859. fi
  16860. if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
  16861. RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
  16862. RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
  16863. elif test x$ARCH = xnetbsd; then
  16864. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16865. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16866. else
  16867. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16868. RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16869. fi
  16870. # Save the original compiler flags and libraries
  16871. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16872. # Add the Raspberry Pi compiler flags and libraries
  16873. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16875. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16876. have_video_rpi=no
  16877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16878. /* end confdefs.h. */
  16879. #include <bcm_host.h>
  16880. int
  16881. main ()
  16882. {
  16883. bcm_host_init();
  16884. ;
  16885. return 0;
  16886. }
  16887. _ACEOF
  16888. if ac_fn_c_try_link "$LINENO"; then :
  16889. have_video_rpi=yes
  16890. fi
  16891. rm -f core conftest.err conftest.$ac_objext \
  16892. conftest$ac_exeext conftest.$ac_ext
  16893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16894. $as_echo "$have_video_rpi" >&6; }
  16895. # Restore the compiler flags and libraries
  16896. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16897. if test x$have_video_rpi = xyes; then
  16898. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16899. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16900. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16901. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16902. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16903. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16904. SUMMARY_video="${SUMMARY_video} rpi"
  16905. fi
  16906. fi
  16907. }
  16908. CheckX11()
  16909. {
  16910. # Check whether --enable-video-x11 was given.
  16911. if test "${enable_video_x11+set}" = set; then :
  16912. enableval=$enable_video_x11;
  16913. else
  16914. enable_video_x11=yes
  16915. fi
  16916. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16917. case "$host" in
  16918. *-*-darwin*)
  16919. # This isn't necessary for X11, but fixes GLX detection
  16920. if test "x$x_includes" = xNONE && \
  16921. test "x$x_libraries" = xNONE && \
  16922. test -d /usr/X11R6/include && \
  16923. test -d /usr/X11R6/lib; then
  16924. x_includes="/usr/X11R6/include"
  16925. x_libraries="/usr/X11R6/lib"
  16926. fi
  16927. ;;
  16928. esac
  16929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16930. $as_echo_n "checking for X... " >&6; }
  16931. # Check whether --with-x was given.
  16932. if test "${with_x+set}" = set; then :
  16933. withval=$with_x;
  16934. fi
  16935. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16936. if test "x$with_x" = xno; then
  16937. # The user explicitly disabled X.
  16938. have_x=disabled
  16939. else
  16940. case $x_includes,$x_libraries in #(
  16941. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16942. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16943. $as_echo_n "(cached) " >&6
  16944. else
  16945. # One or both of the vars are not set, and there is no cached value.
  16946. ac_x_includes=no ac_x_libraries=no
  16947. rm -f -r conftest.dir
  16948. if mkdir conftest.dir; then
  16949. cd conftest.dir
  16950. cat >Imakefile <<'_ACEOF'
  16951. incroot:
  16952. @echo incroot='${INCROOT}'
  16953. usrlibdir:
  16954. @echo usrlibdir='${USRLIBDIR}'
  16955. libdir:
  16956. @echo libdir='${LIBDIR}'
  16957. _ACEOF
  16958. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16959. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16960. for ac_var in incroot usrlibdir libdir; do
  16961. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16962. done
  16963. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16964. for ac_extension in a so sl dylib la dll; do
  16965. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16966. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16967. ac_im_usrlibdir=$ac_im_libdir; break
  16968. fi
  16969. done
  16970. # Screen out bogus values from the imake configuration. They are
  16971. # bogus both because they are the default anyway, and because
  16972. # using them would break gcc on systems where it needs fixed includes.
  16973. case $ac_im_incroot in
  16974. /usr/include) ac_x_includes= ;;
  16975. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16976. esac
  16977. case $ac_im_usrlibdir in
  16978. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16979. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16980. esac
  16981. fi
  16982. cd ..
  16983. rm -f -r conftest.dir
  16984. fi
  16985. # Standard set of common directories for X headers.
  16986. # Check X11 before X11Rn because it is often a symlink to the current release.
  16987. ac_x_header_dirs='
  16988. /usr/X11/include
  16989. /usr/X11R7/include
  16990. /usr/X11R6/include
  16991. /usr/X11R5/include
  16992. /usr/X11R4/include
  16993. /usr/include/X11
  16994. /usr/include/X11R7
  16995. /usr/include/X11R6
  16996. /usr/include/X11R5
  16997. /usr/include/X11R4
  16998. /usr/local/X11/include
  16999. /usr/local/X11R7/include
  17000. /usr/local/X11R6/include
  17001. /usr/local/X11R5/include
  17002. /usr/local/X11R4/include
  17003. /usr/local/include/X11
  17004. /usr/local/include/X11R7
  17005. /usr/local/include/X11R6
  17006. /usr/local/include/X11R5
  17007. /usr/local/include/X11R4
  17008. /usr/X386/include
  17009. /usr/x386/include
  17010. /usr/XFree86/include/X11
  17011. /usr/include
  17012. /usr/local/include
  17013. /usr/unsupported/include
  17014. /usr/athena/include
  17015. /usr/local/x11r5/include
  17016. /usr/lpp/Xamples/include
  17017. /usr/openwin/include
  17018. /usr/openwin/share/include'
  17019. if test "$ac_x_includes" = no; then
  17020. # Guess where to find include files, by looking for Xlib.h.
  17021. # First, try using that file with no special directory specified.
  17022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17023. /* end confdefs.h. */
  17024. #include <X11/Xlib.h>
  17025. _ACEOF
  17026. if ac_fn_c_try_cpp "$LINENO"; then :
  17027. # We can compile using X headers with no special include directory.
  17028. ac_x_includes=
  17029. else
  17030. for ac_dir in $ac_x_header_dirs; do
  17031. if test -r "$ac_dir/X11/Xlib.h"; then
  17032. ac_x_includes=$ac_dir
  17033. break
  17034. fi
  17035. done
  17036. fi
  17037. rm -f conftest.err conftest.i conftest.$ac_ext
  17038. fi # $ac_x_includes = no
  17039. if test "$ac_x_libraries" = no; then
  17040. # Check for the libraries.
  17041. # See if we find them without any special options.
  17042. # Don't add to $LIBS permanently.
  17043. ac_save_LIBS=$LIBS
  17044. LIBS="-lX11 $LIBS"
  17045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17046. /* end confdefs.h. */
  17047. #include <X11/Xlib.h>
  17048. int
  17049. main ()
  17050. {
  17051. XrmInitialize ()
  17052. ;
  17053. return 0;
  17054. }
  17055. _ACEOF
  17056. if ac_fn_c_try_link "$LINENO"; then :
  17057. LIBS=$ac_save_LIBS
  17058. # We can link X programs with no special library path.
  17059. ac_x_libraries=
  17060. else
  17061. LIBS=$ac_save_LIBS
  17062. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17063. do
  17064. # Don't even attempt the hair of trying to link an X program!
  17065. for ac_extension in a so sl dylib la dll; do
  17066. if test -r "$ac_dir/libX11.$ac_extension"; then
  17067. ac_x_libraries=$ac_dir
  17068. break 2
  17069. fi
  17070. done
  17071. done
  17072. fi
  17073. rm -f core conftest.err conftest.$ac_objext \
  17074. conftest$ac_exeext conftest.$ac_ext
  17075. fi # $ac_x_libraries = no
  17076. case $ac_x_includes,$ac_x_libraries in #(
  17077. no,* | *,no | *\'*)
  17078. # Didn't find X, or a directory has "'" in its name.
  17079. ac_cv_have_x="have_x=no";; #(
  17080. *)
  17081. # Record where we found X for the cache.
  17082. ac_cv_have_x="have_x=yes\
  17083. ac_x_includes='$ac_x_includes'\
  17084. ac_x_libraries='$ac_x_libraries'"
  17085. esac
  17086. fi
  17087. ;; #(
  17088. *) have_x=yes;;
  17089. esac
  17090. eval "$ac_cv_have_x"
  17091. fi # $with_x != no
  17092. if test "$have_x" != yes; then
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17094. $as_echo "$have_x" >&6; }
  17095. no_x=yes
  17096. else
  17097. # If each of the values was on the command line, it overrides each guess.
  17098. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17099. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17100. # Update the cache value to reflect the command line values.
  17101. ac_cv_have_x="have_x=yes\
  17102. ac_x_includes='$x_includes'\
  17103. ac_x_libraries='$x_libraries'"
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17105. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17106. fi
  17107. if test "$no_x" = yes; then
  17108. # Not all programs may use this symbol, but it does not hurt to define it.
  17109. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17110. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17111. else
  17112. if test -n "$x_includes"; then
  17113. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17114. fi
  17115. # It would also be nice to do this for all -L options, not just this one.
  17116. if test -n "$x_libraries"; then
  17117. X_LIBS="$X_LIBS -L$x_libraries"
  17118. # For Solaris; some versions of Sun CC require a space after -R and
  17119. # others require no space. Words are not sufficient . . . .
  17120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17121. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17122. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17123. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17124. ac_c_werror_flag=yes
  17125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17126. /* end confdefs.h. */
  17127. int
  17128. main ()
  17129. {
  17130. ;
  17131. return 0;
  17132. }
  17133. _ACEOF
  17134. if ac_fn_c_try_link "$LINENO"; then :
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17136. $as_echo "no" >&6; }
  17137. X_LIBS="$X_LIBS -R$x_libraries"
  17138. else
  17139. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17141. /* end confdefs.h. */
  17142. int
  17143. main ()
  17144. {
  17145. ;
  17146. return 0;
  17147. }
  17148. _ACEOF
  17149. if ac_fn_c_try_link "$LINENO"; then :
  17150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17151. $as_echo "yes" >&6; }
  17152. X_LIBS="$X_LIBS -R $x_libraries"
  17153. else
  17154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17155. $as_echo "neither works" >&6; }
  17156. fi
  17157. rm -f core conftest.err conftest.$ac_objext \
  17158. conftest$ac_exeext conftest.$ac_ext
  17159. fi
  17160. rm -f core conftest.err conftest.$ac_objext \
  17161. conftest$ac_exeext conftest.$ac_ext
  17162. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17163. LIBS=$ac_xsave_LIBS
  17164. fi
  17165. # Check for system-dependent libraries X programs must link with.
  17166. # Do this before checking for the system-independent R6 libraries
  17167. # (-lICE), since we may need -lsocket or whatever for X linking.
  17168. if test "$ISC" = yes; then
  17169. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17170. else
  17171. # Martyn Johnson says this is needed for Ultrix, if the X
  17172. # libraries were built with DECnet support. And Karl Berry says
  17173. # the Alpha needs dnet_stub (dnet does not exist).
  17174. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17176. /* end confdefs.h. */
  17177. /* Override any GCC internal prototype to avoid an error.
  17178. Use char because int might match the return type of a GCC
  17179. builtin and then its argument prototype would still apply. */
  17180. #ifdef __cplusplus
  17181. extern "C"
  17182. #endif
  17183. char XOpenDisplay ();
  17184. int
  17185. main ()
  17186. {
  17187. return XOpenDisplay ();
  17188. ;
  17189. return 0;
  17190. }
  17191. _ACEOF
  17192. if ac_fn_c_try_link "$LINENO"; then :
  17193. else
  17194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17195. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17196. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17197. $as_echo_n "(cached) " >&6
  17198. else
  17199. ac_check_lib_save_LIBS=$LIBS
  17200. LIBS="-ldnet $LIBS"
  17201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17202. /* end confdefs.h. */
  17203. /* Override any GCC internal prototype to avoid an error.
  17204. Use char because int might match the return type of a GCC
  17205. builtin and then its argument prototype would still apply. */
  17206. #ifdef __cplusplus
  17207. extern "C"
  17208. #endif
  17209. char dnet_ntoa ();
  17210. int
  17211. main ()
  17212. {
  17213. return dnet_ntoa ();
  17214. ;
  17215. return 0;
  17216. }
  17217. _ACEOF
  17218. if ac_fn_c_try_link "$LINENO"; then :
  17219. ac_cv_lib_dnet_dnet_ntoa=yes
  17220. else
  17221. ac_cv_lib_dnet_dnet_ntoa=no
  17222. fi
  17223. rm -f core conftest.err conftest.$ac_objext \
  17224. conftest$ac_exeext conftest.$ac_ext
  17225. LIBS=$ac_check_lib_save_LIBS
  17226. fi
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17228. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17229. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17230. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17231. fi
  17232. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17234. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17235. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17236. $as_echo_n "(cached) " >&6
  17237. else
  17238. ac_check_lib_save_LIBS=$LIBS
  17239. LIBS="-ldnet_stub $LIBS"
  17240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17241. /* end confdefs.h. */
  17242. /* Override any GCC internal prototype to avoid an error.
  17243. Use char because int might match the return type of a GCC
  17244. builtin and then its argument prototype would still apply. */
  17245. #ifdef __cplusplus
  17246. extern "C"
  17247. #endif
  17248. char dnet_ntoa ();
  17249. int
  17250. main ()
  17251. {
  17252. return dnet_ntoa ();
  17253. ;
  17254. return 0;
  17255. }
  17256. _ACEOF
  17257. if ac_fn_c_try_link "$LINENO"; then :
  17258. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17259. else
  17260. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17261. fi
  17262. rm -f core conftest.err conftest.$ac_objext \
  17263. conftest$ac_exeext conftest.$ac_ext
  17264. LIBS=$ac_check_lib_save_LIBS
  17265. fi
  17266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17267. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17268. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17269. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17270. fi
  17271. fi
  17272. fi
  17273. rm -f core conftest.err conftest.$ac_objext \
  17274. conftest$ac_exeext conftest.$ac_ext
  17275. LIBS="$ac_xsave_LIBS"
  17276. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17277. # to get the SysV transport functions.
  17278. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17279. # needs -lnsl.
  17280. # The nsl library prevents programs from opening the X display
  17281. # on Irix 5.2, according to T.E. Dickey.
  17282. # The functions gethostbyname, getservbyname, and inet_addr are
  17283. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17284. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17285. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17286. fi
  17287. if test $ac_cv_func_gethostbyname = no; then
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17289. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17290. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17291. $as_echo_n "(cached) " >&6
  17292. else
  17293. ac_check_lib_save_LIBS=$LIBS
  17294. LIBS="-lnsl $LIBS"
  17295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17296. /* end confdefs.h. */
  17297. /* Override any GCC internal prototype to avoid an error.
  17298. Use char because int might match the return type of a GCC
  17299. builtin and then its argument prototype would still apply. */
  17300. #ifdef __cplusplus
  17301. extern "C"
  17302. #endif
  17303. char gethostbyname ();
  17304. int
  17305. main ()
  17306. {
  17307. return gethostbyname ();
  17308. ;
  17309. return 0;
  17310. }
  17311. _ACEOF
  17312. if ac_fn_c_try_link "$LINENO"; then :
  17313. ac_cv_lib_nsl_gethostbyname=yes
  17314. else
  17315. ac_cv_lib_nsl_gethostbyname=no
  17316. fi
  17317. rm -f core conftest.err conftest.$ac_objext \
  17318. conftest$ac_exeext conftest.$ac_ext
  17319. LIBS=$ac_check_lib_save_LIBS
  17320. fi
  17321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17322. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17323. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17324. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17325. fi
  17326. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17328. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17329. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17330. $as_echo_n "(cached) " >&6
  17331. else
  17332. ac_check_lib_save_LIBS=$LIBS
  17333. LIBS="-lbsd $LIBS"
  17334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17335. /* end confdefs.h. */
  17336. /* Override any GCC internal prototype to avoid an error.
  17337. Use char because int might match the return type of a GCC
  17338. builtin and then its argument prototype would still apply. */
  17339. #ifdef __cplusplus
  17340. extern "C"
  17341. #endif
  17342. char gethostbyname ();
  17343. int
  17344. main ()
  17345. {
  17346. return gethostbyname ();
  17347. ;
  17348. return 0;
  17349. }
  17350. _ACEOF
  17351. if ac_fn_c_try_link "$LINENO"; then :
  17352. ac_cv_lib_bsd_gethostbyname=yes
  17353. else
  17354. ac_cv_lib_bsd_gethostbyname=no
  17355. fi
  17356. rm -f core conftest.err conftest.$ac_objext \
  17357. conftest$ac_exeext conftest.$ac_ext
  17358. LIBS=$ac_check_lib_save_LIBS
  17359. fi
  17360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17361. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17362. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17363. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17364. fi
  17365. fi
  17366. fi
  17367. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17368. # socket/setsockopt and other routines are undefined under SCO ODT
  17369. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17370. # on later versions), says Simon Leinen: it contains gethostby*
  17371. # variants that don't use the name server (or something). -lsocket
  17372. # must be given before -lnsl if both are needed. We assume that
  17373. # if connect needs -lnsl, so does gethostbyname.
  17374. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17375. if test "x$ac_cv_func_connect" = xyes; then :
  17376. fi
  17377. if test $ac_cv_func_connect = no; then
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17379. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17380. if ${ac_cv_lib_socket_connect+:} false; then :
  17381. $as_echo_n "(cached) " >&6
  17382. else
  17383. ac_check_lib_save_LIBS=$LIBS
  17384. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17386. /* end confdefs.h. */
  17387. /* Override any GCC internal prototype to avoid an error.
  17388. Use char because int might match the return type of a GCC
  17389. builtin and then its argument prototype would still apply. */
  17390. #ifdef __cplusplus
  17391. extern "C"
  17392. #endif
  17393. char connect ();
  17394. int
  17395. main ()
  17396. {
  17397. return connect ();
  17398. ;
  17399. return 0;
  17400. }
  17401. _ACEOF
  17402. if ac_fn_c_try_link "$LINENO"; then :
  17403. ac_cv_lib_socket_connect=yes
  17404. else
  17405. ac_cv_lib_socket_connect=no
  17406. fi
  17407. rm -f core conftest.err conftest.$ac_objext \
  17408. conftest$ac_exeext conftest.$ac_ext
  17409. LIBS=$ac_check_lib_save_LIBS
  17410. fi
  17411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17412. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17413. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17414. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17415. fi
  17416. fi
  17417. # Guillermo Gomez says -lposix is necessary on A/UX.
  17418. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17419. if test "x$ac_cv_func_remove" = xyes; then :
  17420. fi
  17421. if test $ac_cv_func_remove = no; then
  17422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17423. $as_echo_n "checking for remove in -lposix... " >&6; }
  17424. if ${ac_cv_lib_posix_remove+:} false; then :
  17425. $as_echo_n "(cached) " >&6
  17426. else
  17427. ac_check_lib_save_LIBS=$LIBS
  17428. LIBS="-lposix $LIBS"
  17429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17430. /* end confdefs.h. */
  17431. /* Override any GCC internal prototype to avoid an error.
  17432. Use char because int might match the return type of a GCC
  17433. builtin and then its argument prototype would still apply. */
  17434. #ifdef __cplusplus
  17435. extern "C"
  17436. #endif
  17437. char remove ();
  17438. int
  17439. main ()
  17440. {
  17441. return remove ();
  17442. ;
  17443. return 0;
  17444. }
  17445. _ACEOF
  17446. if ac_fn_c_try_link "$LINENO"; then :
  17447. ac_cv_lib_posix_remove=yes
  17448. else
  17449. ac_cv_lib_posix_remove=no
  17450. fi
  17451. rm -f core conftest.err conftest.$ac_objext \
  17452. conftest$ac_exeext conftest.$ac_ext
  17453. LIBS=$ac_check_lib_save_LIBS
  17454. fi
  17455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17456. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17457. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17458. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17459. fi
  17460. fi
  17461. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17462. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17463. if test "x$ac_cv_func_shmat" = xyes; then :
  17464. fi
  17465. if test $ac_cv_func_shmat = no; then
  17466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17467. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17468. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17469. $as_echo_n "(cached) " >&6
  17470. else
  17471. ac_check_lib_save_LIBS=$LIBS
  17472. LIBS="-lipc $LIBS"
  17473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17474. /* end confdefs.h. */
  17475. /* Override any GCC internal prototype to avoid an error.
  17476. Use char because int might match the return type of a GCC
  17477. builtin and then its argument prototype would still apply. */
  17478. #ifdef __cplusplus
  17479. extern "C"
  17480. #endif
  17481. char shmat ();
  17482. int
  17483. main ()
  17484. {
  17485. return shmat ();
  17486. ;
  17487. return 0;
  17488. }
  17489. _ACEOF
  17490. if ac_fn_c_try_link "$LINENO"; then :
  17491. ac_cv_lib_ipc_shmat=yes
  17492. else
  17493. ac_cv_lib_ipc_shmat=no
  17494. fi
  17495. rm -f core conftest.err conftest.$ac_objext \
  17496. conftest$ac_exeext conftest.$ac_ext
  17497. LIBS=$ac_check_lib_save_LIBS
  17498. fi
  17499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17500. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17501. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17502. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17503. fi
  17504. fi
  17505. fi
  17506. # Check for libraries that X11R6 Xt/Xaw programs need.
  17507. ac_save_LDFLAGS=$LDFLAGS
  17508. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17509. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17510. # check for ICE first), but we must link in the order -lSM -lICE or
  17511. # we get undefined symbols. So assume we have SM if we have ICE.
  17512. # These have to be linked with before -lX11, unlike the other
  17513. # libraries we check for below, so use a different variable.
  17514. # John Interrante, Karl Berry
  17515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17516. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17517. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17518. $as_echo_n "(cached) " >&6
  17519. else
  17520. ac_check_lib_save_LIBS=$LIBS
  17521. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17523. /* end confdefs.h. */
  17524. /* Override any GCC internal prototype to avoid an error.
  17525. Use char because int might match the return type of a GCC
  17526. builtin and then its argument prototype would still apply. */
  17527. #ifdef __cplusplus
  17528. extern "C"
  17529. #endif
  17530. char IceConnectionNumber ();
  17531. int
  17532. main ()
  17533. {
  17534. return IceConnectionNumber ();
  17535. ;
  17536. return 0;
  17537. }
  17538. _ACEOF
  17539. if ac_fn_c_try_link "$LINENO"; then :
  17540. ac_cv_lib_ICE_IceConnectionNumber=yes
  17541. else
  17542. ac_cv_lib_ICE_IceConnectionNumber=no
  17543. fi
  17544. rm -f core conftest.err conftest.$ac_objext \
  17545. conftest$ac_exeext conftest.$ac_ext
  17546. LIBS=$ac_check_lib_save_LIBS
  17547. fi
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17549. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17550. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17551. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17552. fi
  17553. LDFLAGS=$ac_save_LDFLAGS
  17554. fi
  17555. if test x$have_x = xyes; then
  17556. # Check whether --enable-x11-shared was given.
  17557. if test "${enable_x11_shared+set}" = set; then :
  17558. enableval=$enable_x11_shared;
  17559. else
  17560. enable_x11_shared=maybe
  17561. fi
  17562. case "$host" in
  17563. *-*-darwin*)
  17564. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17565. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17566. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17567. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17568. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17569. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17570. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17571. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17572. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17573. ;;
  17574. *-*-openbsd*)
  17575. x11_lib='libX11.so'
  17576. x11ext_lib='libXext.so'
  17577. xcursor_lib='libXcursor.so'
  17578. xinerama_lib='libXinerama.so'
  17579. xinput_lib='libXi.so'
  17580. xrandr_lib='libXrandr.so'
  17581. xrender_lib='libXrender.so'
  17582. xss_lib='libXss.so'
  17583. xvidmode_lib='libXxf86vm.so'
  17584. ;;
  17585. *)
  17586. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17587. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17588. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17589. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17590. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17591. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17592. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17593. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17594. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17595. ;;
  17596. esac
  17597. if test x$ac_cv_func_shmat != xyes; then
  17598. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17599. fi
  17600. CFLAGS="$CFLAGS $X_CFLAGS"
  17601. LDFLAGS="$LDFLAGS $X_LIBS"
  17602. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17603. #include <X11/Xproto.h>
  17604. "
  17605. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17606. have_xext_h_hdr=yes
  17607. else
  17608. have_xext_h_hdr=no
  17609. fi
  17610. if test x$have_xext_h_hdr != xyes; then
  17611. as_fn_error $? "
  17612. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17613. " "$LINENO" 5
  17614. fi
  17615. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17616. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17617. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17618. # Needed so SDL applications can include SDL_syswm.h
  17619. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17620. if test x$enable_x11_shared = xmaybe; then
  17621. enable_x11_shared=yes
  17622. fi
  17623. if test x$have_loadso != xyes && \
  17624. test x$enable_x11_shared = xyes; then
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17626. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17627. enable_x11_shared=no
  17628. fi
  17629. if test x$have_loadso = xyes && \
  17630. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17631. echo "-- dynamic libX11 -> $x11_lib"
  17632. echo "-- dynamic libX11ext -> $x11ext_lib"
  17633. cat >>confdefs.h <<_ACEOF
  17634. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17635. _ACEOF
  17636. cat >>confdefs.h <<_ACEOF
  17637. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17638. _ACEOF
  17639. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17640. else
  17641. enable_x11_shared=no
  17642. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17643. SUMMARY_video="${SUMMARY_video} x11"
  17644. fi
  17645. have_video=yes
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17647. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17648. have_const_param_XextAddDisplay=no
  17649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17650. /* end confdefs.h. */
  17651. #include <X11/Xlib.h>
  17652. #include <X11/Xproto.h>
  17653. #include <X11/extensions/Xext.h>
  17654. #include <X11/extensions/extutil.h>
  17655. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17656. int
  17657. main ()
  17658. {
  17659. ;
  17660. return 0;
  17661. }
  17662. _ACEOF
  17663. if ac_fn_c_try_compile "$LINENO"; then :
  17664. have_const_param_XextAddDisplay=yes
  17665. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17666. fi
  17667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17669. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17671. $as_echo_n "checking for XGenericEvent... " >&6; }
  17672. have_XGenericEvent=no
  17673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17674. /* end confdefs.h. */
  17675. #include <X11/Xlib.h>
  17676. int
  17677. main ()
  17678. {
  17679. Display *display;
  17680. XEvent event;
  17681. XGenericEventCookie *cookie = &event.xcookie;
  17682. XNextEvent(display, &event);
  17683. XGetEventData(display, cookie);
  17684. XFreeEventData(display, cookie);
  17685. ;
  17686. return 0;
  17687. }
  17688. _ACEOF
  17689. if ac_fn_c_try_compile "$LINENO"; then :
  17690. have_XGenericEvent=yes
  17691. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17692. fi
  17693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17695. $as_echo "$have_XGenericEvent" >&6; }
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17697. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17698. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17699. $as_echo_n "(cached) " >&6
  17700. else
  17701. ac_check_lib_save_LIBS=$LIBS
  17702. LIBS="-lX11 $LIBS"
  17703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17704. /* end confdefs.h. */
  17705. /* Override any GCC internal prototype to avoid an error.
  17706. Use char because int might match the return type of a GCC
  17707. builtin and then its argument prototype would still apply. */
  17708. #ifdef __cplusplus
  17709. extern "C"
  17710. #endif
  17711. char XkbKeycodeToKeysym ();
  17712. int
  17713. main ()
  17714. {
  17715. return XkbKeycodeToKeysym ();
  17716. ;
  17717. return 0;
  17718. }
  17719. _ACEOF
  17720. if ac_fn_c_try_link "$LINENO"; then :
  17721. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17722. else
  17723. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17724. fi
  17725. rm -f core conftest.err conftest.$ac_objext \
  17726. conftest$ac_exeext conftest.$ac_ext
  17727. LIBS=$ac_check_lib_save_LIBS
  17728. fi
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17730. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17731. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17732. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17733. fi
  17734. # Check whether --enable-video-x11-xcursor was given.
  17735. if test "${enable_video_x11_xcursor+set}" = set; then :
  17736. enableval=$enable_video_x11_xcursor;
  17737. else
  17738. enable_video_x11_xcursor=yes
  17739. fi
  17740. if test x$enable_video_x11_xcursor = xyes; then
  17741. definitely_enable_video_x11_xcursor=no
  17742. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17743. "
  17744. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17745. have_xcursor_h_hdr=yes
  17746. else
  17747. have_xcursor_h_hdr=no
  17748. fi
  17749. if test x$have_xcursor_h_hdr = xyes; then
  17750. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17751. echo "-- dynamic libXcursor -> $xcursor_lib"
  17752. cat >>confdefs.h <<_ACEOF
  17753. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17754. _ACEOF
  17755. definitely_enable_video_x11_xcursor=yes
  17756. else
  17757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17758. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17759. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17760. $as_echo_n "(cached) " >&6
  17761. else
  17762. ac_check_lib_save_LIBS=$LIBS
  17763. LIBS="-lXcursor $LIBS"
  17764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17765. /* end confdefs.h. */
  17766. /* Override any GCC internal prototype to avoid an error.
  17767. Use char because int might match the return type of a GCC
  17768. builtin and then its argument prototype would still apply. */
  17769. #ifdef __cplusplus
  17770. extern "C"
  17771. #endif
  17772. char XcursorImageCreate ();
  17773. int
  17774. main ()
  17775. {
  17776. return XcursorImageCreate ();
  17777. ;
  17778. return 0;
  17779. }
  17780. _ACEOF
  17781. if ac_fn_c_try_link "$LINENO"; then :
  17782. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17783. else
  17784. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17785. fi
  17786. rm -f core conftest.err conftest.$ac_objext \
  17787. conftest$ac_exeext conftest.$ac_ext
  17788. LIBS=$ac_check_lib_save_LIBS
  17789. fi
  17790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17791. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17792. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17793. have_xcursor_lib=yes
  17794. fi
  17795. if test x$have_xcursor_lib = xyes ; then
  17796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17797. definitely_enable_video_x11_xcursor=yes
  17798. fi
  17799. fi
  17800. fi
  17801. fi
  17802. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17803. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17804. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17805. fi
  17806. # Check whether --enable-video-x11-xdbe was given.
  17807. if test "${enable_video_x11_xdbe+set}" = set; then :
  17808. enableval=$enable_video_x11_xdbe;
  17809. else
  17810. enable_video_x11_xdbe=yes
  17811. fi
  17812. if test x$enable_video_x11_xdbe = xyes; then
  17813. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17814. "
  17815. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17816. have_dbe_h_hdr=yes
  17817. else
  17818. have_dbe_h_hdr=no
  17819. fi
  17820. if test x$have_dbe_h_hdr = xyes; then
  17821. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17822. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17823. fi
  17824. fi
  17825. # Check whether --enable-video-x11-xinerama was given.
  17826. if test "${enable_video_x11_xinerama+set}" = set; then :
  17827. enableval=$enable_video_x11_xinerama;
  17828. else
  17829. enable_video_x11_xinerama=yes
  17830. fi
  17831. if test x$enable_video_x11_xinerama = xyes; then
  17832. definitely_enable_video_x11_xinerama=no
  17833. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17834. "
  17835. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17836. have_xinerama_h_hdr=yes
  17837. else
  17838. have_xinerama_h_hdr=no
  17839. fi
  17840. if test x$have_xinerama_h_hdr = xyes; then
  17841. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17842. echo "-- dynamic libXinerama -> $xinerama_lib"
  17843. cat >>confdefs.h <<_ACEOF
  17844. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17845. _ACEOF
  17846. definitely_enable_video_x11_xinerama=yes
  17847. else
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17849. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17850. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17851. $as_echo_n "(cached) " >&6
  17852. else
  17853. ac_check_lib_save_LIBS=$LIBS
  17854. LIBS="-lXinerama $LIBS"
  17855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17856. /* end confdefs.h. */
  17857. /* Override any GCC internal prototype to avoid an error.
  17858. Use char because int might match the return type of a GCC
  17859. builtin and then its argument prototype would still apply. */
  17860. #ifdef __cplusplus
  17861. extern "C"
  17862. #endif
  17863. char XineramaQueryExtension ();
  17864. int
  17865. main ()
  17866. {
  17867. return XineramaQueryExtension ();
  17868. ;
  17869. return 0;
  17870. }
  17871. _ACEOF
  17872. if ac_fn_c_try_link "$LINENO"; then :
  17873. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17874. else
  17875. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext \
  17878. conftest$ac_exeext conftest.$ac_ext
  17879. LIBS=$ac_check_lib_save_LIBS
  17880. fi
  17881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17882. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17883. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17884. have_xinerama_lib=yes
  17885. fi
  17886. if test x$have_xinerama_lib = xyes ; then
  17887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17888. definitely_enable_video_x11_xinerama=yes
  17889. fi
  17890. fi
  17891. fi
  17892. fi
  17893. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17894. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17895. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17896. fi
  17897. # Check whether --enable-video-x11-xinput was given.
  17898. if test "${enable_video_x11_xinput+set}" = set; then :
  17899. enableval=$enable_video_x11_xinput;
  17900. else
  17901. enable_video_x11_xinput=yes
  17902. fi
  17903. if test x$enable_video_x11_xinput = xyes; then
  17904. definitely_enable_video_x11_xinput=no
  17905. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17906. "
  17907. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17908. have_xinput_h_hdr=yes
  17909. else
  17910. have_xinput_h_hdr=no
  17911. fi
  17912. if test x$have_xinput_h_hdr = xyes; then
  17913. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17914. echo "-- dynamic libXi -> $xinput_lib"
  17915. cat >>confdefs.h <<_ACEOF
  17916. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17917. _ACEOF
  17918. definitely_enable_video_x11_xinput=yes
  17919. else
  17920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17921. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17922. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17923. $as_echo_n "(cached) " >&6
  17924. else
  17925. ac_check_lib_save_LIBS=$LIBS
  17926. LIBS="-lXi $LIBS"
  17927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17928. /* end confdefs.h. */
  17929. /* Override any GCC internal prototype to avoid an error.
  17930. Use char because int might match the return type of a GCC
  17931. builtin and then its argument prototype would still apply. */
  17932. #ifdef __cplusplus
  17933. extern "C"
  17934. #endif
  17935. char XOpenDevice ();
  17936. int
  17937. main ()
  17938. {
  17939. return XOpenDevice ();
  17940. ;
  17941. return 0;
  17942. }
  17943. _ACEOF
  17944. if ac_fn_c_try_link "$LINENO"; then :
  17945. ac_cv_lib_Xi_XOpenDevice=yes
  17946. else
  17947. ac_cv_lib_Xi_XOpenDevice=no
  17948. fi
  17949. rm -f core conftest.err conftest.$ac_objext \
  17950. conftest$ac_exeext conftest.$ac_ext
  17951. LIBS=$ac_check_lib_save_LIBS
  17952. fi
  17953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17954. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17955. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17956. have_xinput_lib=yes
  17957. fi
  17958. if test x$have_xinput_lib = xyes ; then
  17959. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17960. definitely_enable_video_x11_xinput=yes
  17961. fi
  17962. fi
  17963. fi
  17964. fi
  17965. if test x$definitely_enable_video_x11_xinput = xyes; then
  17966. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17967. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17969. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17970. have_xinput2_multitouch=no
  17971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17972. /* end confdefs.h. */
  17973. #include <X11/Xlib.h>
  17974. #include <X11/Xproto.h>
  17975. #include <X11/extensions/XInput2.h>
  17976. int
  17977. main ()
  17978. {
  17979. int event_type = XI_TouchBegin;
  17980. XITouchClassInfo *t;
  17981. ;
  17982. return 0;
  17983. }
  17984. _ACEOF
  17985. if ac_fn_c_try_compile "$LINENO"; then :
  17986. have_xinput2_multitouch=yes
  17987. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17988. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17989. fi
  17990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17992. $as_echo "$have_xinput2_multitouch" >&6; }
  17993. fi
  17994. # Check whether --enable-video-x11-xrandr was given.
  17995. if test "${enable_video_x11_xrandr+set}" = set; then :
  17996. enableval=$enable_video_x11_xrandr;
  17997. else
  17998. enable_video_x11_xrandr=yes
  17999. fi
  18000. if test x$enable_video_x11_xrandr = xyes; then
  18001. definitely_enable_video_x11_xrandr=no
  18002. have_xrandr_h_hdr=no
  18003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18004. /* end confdefs.h. */
  18005. #include <X11/Xlib.h>
  18006. #include <X11/extensions/Xrandr.h>
  18007. int
  18008. main ()
  18009. {
  18010. XRRScreenResources *res = NULL;
  18011. ;
  18012. return 0;
  18013. }
  18014. _ACEOF
  18015. if ac_fn_c_try_compile "$LINENO"; then :
  18016. have_xrandr_h_hdr=yes
  18017. fi
  18018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18019. if test x$have_xrandr_h_hdr = xyes; then
  18020. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18021. echo "-- dynamic libXrandr -> $xrandr_lib"
  18022. cat >>confdefs.h <<_ACEOF
  18023. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18024. _ACEOF
  18025. definitely_enable_video_x11_xrandr=yes
  18026. else
  18027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18028. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18029. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18030. $as_echo_n "(cached) " >&6
  18031. else
  18032. ac_check_lib_save_LIBS=$LIBS
  18033. LIBS="-lXrandr $LIBS"
  18034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18035. /* end confdefs.h. */
  18036. /* Override any GCC internal prototype to avoid an error.
  18037. Use char because int might match the return type of a GCC
  18038. builtin and then its argument prototype would still apply. */
  18039. #ifdef __cplusplus
  18040. extern "C"
  18041. #endif
  18042. char XRRQueryExtension ();
  18043. int
  18044. main ()
  18045. {
  18046. return XRRQueryExtension ();
  18047. ;
  18048. return 0;
  18049. }
  18050. _ACEOF
  18051. if ac_fn_c_try_link "$LINENO"; then :
  18052. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18053. else
  18054. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18055. fi
  18056. rm -f core conftest.err conftest.$ac_objext \
  18057. conftest$ac_exeext conftest.$ac_ext
  18058. LIBS=$ac_check_lib_save_LIBS
  18059. fi
  18060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18061. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18062. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18063. have_xrandr_lib=yes
  18064. fi
  18065. if test x$have_xrandr_lib = xyes ; then
  18066. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18067. definitely_enable_video_x11_xrandr=yes
  18068. fi
  18069. fi
  18070. fi
  18071. fi
  18072. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18073. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18074. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18075. fi
  18076. # Check whether --enable-video-x11-scrnsaver was given.
  18077. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18078. enableval=$enable_video_x11_scrnsaver;
  18079. else
  18080. enable_video_x11_scrnsaver=yes
  18081. fi
  18082. if test x$enable_video_x11_scrnsaver = xyes; then
  18083. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18084. "
  18085. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18086. have_scrnsaver_h_hdr=yes
  18087. else
  18088. have_scrnsaver_h_hdr=no
  18089. fi
  18090. if test x$have_scrnsaver_h_hdr = xyes; then
  18091. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18092. echo "-- dynamic libXss -> $xss_lib"
  18093. cat >>confdefs.h <<_ACEOF
  18094. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18095. _ACEOF
  18096. definitely_enable_video_x11_scrnsaver=yes
  18097. else
  18098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18099. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18100. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18101. $as_echo_n "(cached) " >&6
  18102. else
  18103. ac_check_lib_save_LIBS=$LIBS
  18104. LIBS="-lXss $LIBS"
  18105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18106. /* end confdefs.h. */
  18107. /* Override any GCC internal prototype to avoid an error.
  18108. Use char because int might match the return type of a GCC
  18109. builtin and then its argument prototype would still apply. */
  18110. #ifdef __cplusplus
  18111. extern "C"
  18112. #endif
  18113. char XScreenSaverSuspend ();
  18114. int
  18115. main ()
  18116. {
  18117. return XScreenSaverSuspend ();
  18118. ;
  18119. return 0;
  18120. }
  18121. _ACEOF
  18122. if ac_fn_c_try_link "$LINENO"; then :
  18123. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18124. else
  18125. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18126. fi
  18127. rm -f core conftest.err conftest.$ac_objext \
  18128. conftest$ac_exeext conftest.$ac_ext
  18129. LIBS=$ac_check_lib_save_LIBS
  18130. fi
  18131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18132. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18133. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18134. have_xss_lib=yes
  18135. fi
  18136. if test x$have_xss_lib = xyes ; then
  18137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18138. definitely_enable_video_x11_scrnsaver=yes
  18139. fi
  18140. fi
  18141. fi
  18142. fi
  18143. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18144. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18145. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18146. fi
  18147. # Check whether --enable-video-x11-xshape was given.
  18148. if test "${enable_video_x11_xshape+set}" = set; then :
  18149. enableval=$enable_video_x11_xshape;
  18150. else
  18151. enable_video_x11_xshape=yes
  18152. fi
  18153. if test x$enable_video_x11_xshape = xyes; then
  18154. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18155. "
  18156. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18157. have_shape_h_hdr=yes
  18158. else
  18159. have_shape_h_hdr=no
  18160. fi
  18161. if test x$have_shape_h_hdr = xyes; then
  18162. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18163. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18164. fi
  18165. fi
  18166. # Check whether --enable-video-x11-vm was given.
  18167. if test "${enable_video_x11_vm+set}" = set; then :
  18168. enableval=$enable_video_x11_vm;
  18169. else
  18170. enable_video_x11_vm=yes
  18171. fi
  18172. if test x$enable_video_x11_vm = xyes; then
  18173. definitely_enable_video_x11_vm=no
  18174. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18175. "
  18176. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18177. have_vm_h_hdr=yes
  18178. else
  18179. have_vm_h_hdr=no
  18180. fi
  18181. if test x$have_vm_h_hdr = xyes; then
  18182. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18183. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18184. cat >>confdefs.h <<_ACEOF
  18185. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18186. _ACEOF
  18187. definitely_enable_video_x11_vm=yes
  18188. else
  18189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18190. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18191. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18192. $as_echo_n "(cached) " >&6
  18193. else
  18194. ac_check_lib_save_LIBS=$LIBS
  18195. LIBS="-lXxf86vm $LIBS"
  18196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18197. /* end confdefs.h. */
  18198. /* Override any GCC internal prototype to avoid an error.
  18199. Use char because int might match the return type of a GCC
  18200. builtin and then its argument prototype would still apply. */
  18201. #ifdef __cplusplus
  18202. extern "C"
  18203. #endif
  18204. char XF86VidModeQueryVersion ();
  18205. int
  18206. main ()
  18207. {
  18208. return XF86VidModeQueryVersion ();
  18209. ;
  18210. return 0;
  18211. }
  18212. _ACEOF
  18213. if ac_fn_c_try_link "$LINENO"; then :
  18214. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18215. else
  18216. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18217. fi
  18218. rm -f core conftest.err conftest.$ac_objext \
  18219. conftest$ac_exeext conftest.$ac_ext
  18220. LIBS=$ac_check_lib_save_LIBS
  18221. fi
  18222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18223. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18224. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18225. have_vm_lib=yes
  18226. fi
  18227. if test x$have_vm_lib = xyes ; then
  18228. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18229. definitely_enable_video_x11_vm=yes
  18230. fi
  18231. fi
  18232. fi
  18233. fi
  18234. if test x$definitely_enable_video_x11_vm = xyes; then
  18235. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18236. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18237. fi
  18238. fi
  18239. fi
  18240. }
  18241. CheckVivanteVideo()
  18242. {
  18243. # Check whether --enable-video-vivante was given.
  18244. if test "${enable_video_vivante+set}" = set; then :
  18245. enableval=$enable_video_vivante;
  18246. else
  18247. enable_video_vivante=yes
  18248. fi
  18249. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18251. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18252. have_vivante_vdk=no
  18253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18254. /* end confdefs.h. */
  18255. #define LINUX
  18256. #define EGL_API_FB
  18257. #include <gc_vdk.h>
  18258. int
  18259. main ()
  18260. {
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. if ac_fn_c_try_compile "$LINENO"; then :
  18266. have_vivante_vdk=yes
  18267. fi
  18268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18270. $as_echo "$have_vivante_vdk" >&6; }
  18271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18272. $as_echo_n "checking for Vivante FB API... " >&6; }
  18273. have_vivante_egl=no
  18274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18275. /* end confdefs.h. */
  18276. #define LINUX
  18277. #define EGL_API_FB
  18278. #include <EGL/eglvivante.h>
  18279. int
  18280. main ()
  18281. {
  18282. ;
  18283. return 0;
  18284. }
  18285. _ACEOF
  18286. if ac_fn_c_try_compile "$LINENO"; then :
  18287. have_vivante_egl=yes
  18288. fi
  18289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18291. $as_echo "$have_vivante_egl" >&6; }
  18292. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18293. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18294. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18295. if test x$have_vivante_vdk = xyes; then
  18296. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18298. fi
  18299. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18300. SUMMARY_video="${SUMMARY_video} vivante"
  18301. have_video=yes
  18302. fi
  18303. fi
  18304. }
  18305. CheckHaikuVideo()
  18306. {
  18307. if test x$enable_video = xyes; then
  18308. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18309. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18310. have_video=yes
  18311. SUMMARY_video="${SUMMARY_video} haiku"
  18312. fi
  18313. }
  18314. CheckCOCOA()
  18315. {
  18316. # Check whether --enable-video-cocoa was given.
  18317. if test "${enable_video_cocoa+set}" = set; then :
  18318. enableval=$enable_video_cocoa;
  18319. else
  18320. enable_video_cocoa=yes
  18321. fi
  18322. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18323. save_CFLAGS="$CFLAGS"
  18324. CFLAGS="$CFLAGS -x objective-c"
  18325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18326. $as_echo_n "checking for Cocoa framework... " >&6; }
  18327. have_cocoa=no
  18328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18329. /* end confdefs.h. */
  18330. #import <Cocoa/Cocoa.h>
  18331. int
  18332. main ()
  18333. {
  18334. ;
  18335. return 0;
  18336. }
  18337. _ACEOF
  18338. if ac_fn_c_try_compile "$LINENO"; then :
  18339. have_cocoa=yes
  18340. fi
  18341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18343. $as_echo "$have_cocoa" >&6; }
  18344. CFLAGS="$save_CFLAGS"
  18345. if test x$have_cocoa = xyes; then
  18346. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18347. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18348. SUMMARY_video="${SUMMARY_video} cocoa"
  18349. have_video=yes
  18350. fi
  18351. fi
  18352. }
  18353. CheckMETAL()
  18354. {
  18355. # Check whether --enable-render-metal was given.
  18356. if test "${enable_render_metal+set}" = set; then :
  18357. enableval=$enable_render_metal;
  18358. else
  18359. enable_render_metal=yes
  18360. fi
  18361. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18362. save_CFLAGS="$CFLAGS"
  18363. CFLAGS="$CFLAGS -x objective-c"
  18364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18365. $as_echo_n "checking for Metal framework... " >&6; }
  18366. have_metal=no
  18367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18368. /* end confdefs.h. */
  18369. #import <Cocoa/Cocoa.h>
  18370. #import <Metal/Metal.h>
  18371. #import <QuartzCore/CAMetalLayer.h>
  18372. #if !TARGET_CPU_X86_64
  18373. #error Metal doesn't work on this configuration
  18374. #endif
  18375. int
  18376. main ()
  18377. {
  18378. ;
  18379. return 0;
  18380. }
  18381. _ACEOF
  18382. if ac_fn_c_try_compile "$LINENO"; then :
  18383. have_metal=yes
  18384. fi
  18385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18386. CFLAGS="$save_CFLAGS"
  18387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18388. $as_echo "$have_metal" >&6; }
  18389. if test x$have_metal = xyes; then
  18390. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18391. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18392. SUMMARY_video="${SUMMARY_video} metal"
  18393. else
  18394. enable_render_metal=no
  18395. fi
  18396. fi
  18397. }
  18398. CheckDirectFB()
  18399. {
  18400. # Check whether --enable-video-directfb was given.
  18401. if test "${enable_video_directfb+set}" = set; then :
  18402. enableval=$enable_video_directfb;
  18403. else
  18404. enable_video_directfb=no
  18405. fi
  18406. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18407. video_directfb=no
  18408. DIRECTFB_REQUIRED_VERSION=1.0.0
  18409. for ac_prog in directfb-config
  18410. do
  18411. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18412. set dummy $ac_prog; ac_word=$2
  18413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18414. $as_echo_n "checking for $ac_word... " >&6; }
  18415. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18416. $as_echo_n "(cached) " >&6
  18417. else
  18418. case $DIRECTFBCONFIG in
  18419. [\\/]* | ?:[\\/]*)
  18420. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18421. ;;
  18422. *)
  18423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18424. as_dummy="$prefix/bin:$PATH"
  18425. for as_dir in $as_dummy
  18426. do
  18427. IFS=$as_save_IFS
  18428. test -z "$as_dir" && as_dir=.
  18429. for ac_exec_ext in '' $ac_executable_extensions; do
  18430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18431. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18433. break 2
  18434. fi
  18435. done
  18436. done
  18437. IFS=$as_save_IFS
  18438. ;;
  18439. esac
  18440. fi
  18441. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18442. if test -n "$DIRECTFBCONFIG"; then
  18443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18444. $as_echo "$DIRECTFBCONFIG" >&6; }
  18445. else
  18446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18447. $as_echo "no" >&6; }
  18448. fi
  18449. test -n "$DIRECTFBCONFIG" && break
  18450. done
  18451. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18452. if test x$DIRECTFBCONFIG = xno; then
  18453. # Extract the first word of "pkg-config", so it can be a program name with args.
  18454. set dummy pkg-config; ac_word=$2
  18455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18456. $as_echo_n "checking for $ac_word... " >&6; }
  18457. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18458. $as_echo_n "(cached) " >&6
  18459. else
  18460. case $PKG_CONFIG in
  18461. [\\/]* | ?:[\\/]*)
  18462. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18463. ;;
  18464. *)
  18465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18466. for as_dir in $PATH
  18467. do
  18468. IFS=$as_save_IFS
  18469. test -z "$as_dir" && as_dir=.
  18470. for ac_exec_ext in '' $ac_executable_extensions; do
  18471. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18472. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18474. break 2
  18475. fi
  18476. done
  18477. done
  18478. IFS=$as_save_IFS
  18479. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18480. ;;
  18481. esac
  18482. fi
  18483. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18484. if test -n "$PKG_CONFIG"; then
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18486. $as_echo "$PKG_CONFIG" >&6; }
  18487. else
  18488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18489. $as_echo "no" >&6; }
  18490. fi
  18491. if test x$PKG_CONFIG != xno; then
  18492. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18493. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18494. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18495. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18496. video_directfb=yes
  18497. fi
  18498. fi
  18499. else
  18500. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18501. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18502. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18503. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18504. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18505. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18506. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18507. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18508. video_directfb=yes
  18509. fi
  18510. fi
  18511. if test x$video_directfb = xyes; then
  18512. # SuSE 11.1 installs directfb-config without directfb-devel
  18513. save_CPPFLAGS="$CPPFLAGS"
  18514. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18515. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18516. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18517. have_directfb_hdr=yes
  18518. else
  18519. have_directfb_hdr=no
  18520. fi
  18521. CPPFLAGS="$save_CPPFLAGS"
  18522. video_directfb=$have_directfb_hdr
  18523. fi
  18524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18525. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18527. $as_echo "$video_directfb" >&6; }
  18528. if test x$video_directfb = xyes; then
  18529. # Check whether --enable-directfb-shared was given.
  18530. if test "${enable_directfb_shared+set}" = set; then :
  18531. enableval=$enable_directfb_shared;
  18532. else
  18533. enable_directfb_shared=yes
  18534. fi
  18535. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18536. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18537. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18538. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18540. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18541. directfb_shared=no
  18542. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18543. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18545. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18546. if test x$have_loadso != xyes && \
  18547. test x$enable_directfb_shared = xyes; then
  18548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18549. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18550. fi
  18551. if test x$have_loadso = xyes && \
  18552. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18553. directfb_shared=yes
  18554. echo "-- $directfb_lib_spec -> $directfb_lib"
  18555. cat >>confdefs.h <<_ACEOF
  18556. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18557. _ACEOF
  18558. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18559. else
  18560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18561. SUMMARY_video="${SUMMARY_video} directfb"
  18562. fi
  18563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18564. $as_echo "$directfb_shared" >&6; }
  18565. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18566. have_video=yes
  18567. fi
  18568. fi
  18569. }
  18570. CheckKMSDRM()
  18571. {
  18572. # Check whether --enable-video-kmsdrm was given.
  18573. if test "${enable_video_kmsdrm+set}" = set; then :
  18574. enableval=$enable_video_kmsdrm;
  18575. else
  18576. enable_video_kmsdrm=no
  18577. fi
  18578. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18579. video_kmsdrm=no
  18580. libdrm_avail=no
  18581. libgbm_avail=no
  18582. LIBDRM_REQUIRED_VERSION=2.4.46
  18583. LIBGBM_REQUIRED_VERSION=9.0.0
  18584. # Extract the first word of "pkg-config", so it can be a program name with args.
  18585. set dummy pkg-config; ac_word=$2
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18587. $as_echo_n "checking for $ac_word... " >&6; }
  18588. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18589. $as_echo_n "(cached) " >&6
  18590. else
  18591. case $PKG_CONFIG in
  18592. [\\/]* | ?:[\\/]*)
  18593. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18594. ;;
  18595. *)
  18596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18597. for as_dir in $PATH
  18598. do
  18599. IFS=$as_save_IFS
  18600. test -z "$as_dir" && as_dir=.
  18601. for ac_exec_ext in '' $ac_executable_extensions; do
  18602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18603. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18605. break 2
  18606. fi
  18607. done
  18608. done
  18609. IFS=$as_save_IFS
  18610. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18611. ;;
  18612. esac
  18613. fi
  18614. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18615. if test -n "$PKG_CONFIG"; then
  18616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18617. $as_echo "$PKG_CONFIG" >&6; }
  18618. else
  18619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18620. $as_echo "no" >&6; }
  18621. fi
  18622. if test x$PKG_CONFIG != xno; then
  18623. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18624. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18625. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18626. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18627. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18628. libdrm_avail=yes
  18629. fi
  18630. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18631. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18632. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18633. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18634. libgbm_avail=yes
  18635. fi
  18636. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18637. video_kmsdrm=yes
  18638. fi
  18639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18640. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18642. $as_echo "$libdrm_avail" >&6; }
  18643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18644. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18646. $as_echo "$libgbm_avail" >&6; }
  18647. if test x$video_kmsdrm = xyes; then
  18648. # Check whether --enable-kmsdrm-shared was given.
  18649. if test "${enable_kmsdrm_shared+set}" = set; then :
  18650. enableval=$enable_kmsdrm_shared;
  18651. else
  18652. enable_kmsdrm_shared=yes
  18653. fi
  18654. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18655. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18656. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18658. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18659. kmsdrm_shared=no
  18660. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18661. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18662. if test x$have_loadso != xyes && \
  18663. test x$enable_kmsdrm_shared = xyes; then
  18664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18665. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18666. fi
  18667. if test x$have_loadso = xyes && \
  18668. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18669. kmsdrm_shared=yes
  18670. cat >>confdefs.h <<_ACEOF
  18671. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18672. _ACEOF
  18673. cat >>confdefs.h <<_ACEOF
  18674. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18675. _ACEOF
  18676. cat >>confdefs.h <<_ACEOF
  18677. #define HAVE_KMSDRM_SHARED "TRUE"
  18678. _ACEOF
  18679. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18680. else
  18681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18682. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18683. fi
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18685. $as_echo "$kmsdrm_shared" >&6; }
  18686. have_video=yes
  18687. fi
  18688. fi
  18689. fi
  18690. fi
  18691. }
  18692. CheckDummyVideo()
  18693. {
  18694. # Check whether --enable-video-dummy was given.
  18695. if test "${enable_video_dummy+set}" = set; then :
  18696. enableval=$enable_video_dummy;
  18697. else
  18698. enable_video_dummy=yes
  18699. fi
  18700. if test x$enable_video_dummy = xyes; then
  18701. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18702. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18703. have_video=yes
  18704. SUMMARY_video="${SUMMARY_video} dummy"
  18705. fi
  18706. }
  18707. CheckQNXVideo()
  18708. {
  18709. if test x$enable_video = xyes; then
  18710. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18711. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18712. have_video=yes
  18713. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18714. SUMMARY_video="${SUMMARY_video} qnx"
  18715. fi
  18716. }
  18717. CheckQNXAudio()
  18718. {
  18719. if test x$enable_audio = xyes; then
  18720. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18721. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18722. have_audio=yes
  18723. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18724. SUMMARY_audio="${SUMMARY_audio} qsa"
  18725. fi
  18726. }
  18727. # Check whether --enable-video-opengl was given.
  18728. if test "${enable_video_opengl+set}" = set; then :
  18729. enableval=$enable_video_opengl;
  18730. else
  18731. enable_video_opengl=yes
  18732. fi
  18733. CheckOpenGLX11()
  18734. {
  18735. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18737. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18738. video_opengl=no
  18739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18740. /* end confdefs.h. */
  18741. #include <GL/gl.h>
  18742. #include <GL/glx.h>
  18743. int
  18744. main ()
  18745. {
  18746. ;
  18747. return 0;
  18748. }
  18749. _ACEOF
  18750. if ac_fn_c_try_compile "$LINENO"; then :
  18751. video_opengl=yes
  18752. fi
  18753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18755. $as_echo "$video_opengl" >&6; }
  18756. if test x$video_opengl = xyes; then
  18757. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18758. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18759. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18760. SUMMARY_video="${SUMMARY_video} opengl"
  18761. fi
  18762. fi
  18763. }
  18764. # Check whether --enable-video-opengles was given.
  18765. if test "${enable_video_opengles+set}" = set; then :
  18766. enableval=$enable_video_opengles;
  18767. else
  18768. enable_video_opengles=yes
  18769. fi
  18770. # Check whether --enable-video-opengles1 was given.
  18771. if test "${enable_video_opengles1+set}" = set; then :
  18772. enableval=$enable_video_opengles1;
  18773. else
  18774. enable_video_opengles1=yes
  18775. fi
  18776. # Check whether --enable-video-opengles2 was given.
  18777. if test "${enable_video_opengles2+set}" = set; then :
  18778. enableval=$enable_video_opengles2;
  18779. else
  18780. enable_video_opengles2=yes
  18781. fi
  18782. CheckOpenGLESX11()
  18783. {
  18784. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18786. $as_echo_n "checking for EGL support... " >&6; }
  18787. video_opengl_egl=no
  18788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18789. /* end confdefs.h. */
  18790. #define LINUX
  18791. #define EGL_API_FB
  18792. #include <EGL/egl.h>
  18793. #include <EGL/eglext.h>
  18794. int
  18795. main ()
  18796. {
  18797. ;
  18798. return 0;
  18799. }
  18800. _ACEOF
  18801. if ac_fn_c_try_compile "$LINENO"; then :
  18802. video_opengl_egl=yes
  18803. fi
  18804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18806. $as_echo "$video_opengl_egl" >&6; }
  18807. if test x$video_opengl_egl = xyes; then
  18808. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18809. fi
  18810. if test x$enable_video_opengles1 = xyes; then
  18811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18812. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18813. video_opengles_v1=no
  18814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18815. /* end confdefs.h. */
  18816. #include <GLES/gl.h>
  18817. #include <GLES/glext.h>
  18818. int
  18819. main ()
  18820. {
  18821. ;
  18822. return 0;
  18823. }
  18824. _ACEOF
  18825. if ac_fn_c_try_compile "$LINENO"; then :
  18826. video_opengles_v1=yes
  18827. fi
  18828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18830. $as_echo "$video_opengles_v1" >&6; }
  18831. if test x$video_opengles_v1 = xyes; then
  18832. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18833. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18834. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18835. fi
  18836. fi
  18837. if test x$enable_video_opengles2 = xyes; then
  18838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18839. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18840. video_opengles_v2=no
  18841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18842. /* end confdefs.h. */
  18843. #include <GLES2/gl2.h>
  18844. #include <GLES2/gl2ext.h>
  18845. int
  18846. main ()
  18847. {
  18848. ;
  18849. return 0;
  18850. }
  18851. _ACEOF
  18852. if ac_fn_c_try_compile "$LINENO"; then :
  18853. video_opengles_v2=yes
  18854. fi
  18855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18857. $as_echo "$video_opengles_v2" >&6; }
  18858. if test x$video_opengles_v2 = xyes; then
  18859. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18860. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18861. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18862. fi
  18863. fi
  18864. fi
  18865. }
  18866. CheckWINDOWSGL()
  18867. {
  18868. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18869. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18870. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18871. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18872. SUMMARY_video="${SUMMARY_video} opengl"
  18873. fi
  18874. }
  18875. CheckWINDOWSGLES()
  18876. {
  18877. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18879. $as_echo_n "checking for EGL support... " >&6; }
  18880. video_opengl_egl=no
  18881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18882. /* end confdefs.h. */
  18883. #include <EGL/egl.h>
  18884. int
  18885. main ()
  18886. {
  18887. ;
  18888. return 0;
  18889. }
  18890. _ACEOF
  18891. if ac_fn_c_try_compile "$LINENO"; then :
  18892. video_opengl_egl=yes
  18893. fi
  18894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18896. $as_echo "$video_opengl_egl" >&6; }
  18897. if test x$video_opengl_egl = xyes; then
  18898. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18899. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18900. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18901. fi
  18902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18903. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18904. video_opengles_v2=no
  18905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18906. /* end confdefs.h. */
  18907. #include <GLES2/gl2.h>
  18908. #include <GLES2/gl2ext.h>
  18909. int
  18910. main ()
  18911. {
  18912. ;
  18913. return 0;
  18914. }
  18915. _ACEOF
  18916. if ac_fn_c_try_compile "$LINENO"; then :
  18917. video_opengles_v2=yes
  18918. fi
  18919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18921. $as_echo "$video_opengles_v2" >&6; }
  18922. if test x$video_opengles_v2 = xyes; then
  18923. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18924. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18925. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18926. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18927. fi
  18928. fi
  18929. }
  18930. CheckHaikuGL()
  18931. {
  18932. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18933. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18934. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18935. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18937. SUMMARY_video="${SUMMARY_video} opengl"
  18938. fi
  18939. }
  18940. CheckMacGL()
  18941. {
  18942. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18943. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18944. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18945. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18946. SUMMARY_video="${SUMMARY_video} opengl"
  18947. fi
  18948. }
  18949. CheckMacGLES()
  18950. {
  18951. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18952. video_opengl_egl=yes
  18953. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18954. video_opengles_v2=yes
  18955. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18956. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18957. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18958. fi
  18959. }
  18960. CheckEmscriptenGLES()
  18961. {
  18962. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18964. $as_echo_n "checking for EGL support... " >&6; }
  18965. video_opengl_egl=no
  18966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18967. /* end confdefs.h. */
  18968. #include <EGL/egl.h>
  18969. int
  18970. main ()
  18971. {
  18972. ;
  18973. return 0;
  18974. }
  18975. _ACEOF
  18976. if ac_fn_c_try_compile "$LINENO"; then :
  18977. video_opengl_egl=yes
  18978. fi
  18979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18981. $as_echo "$video_opengl_egl" >&6; }
  18982. if test x$video_opengl_egl = xyes; then
  18983. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18984. fi
  18985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18986. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18987. video_opengles_v2=no
  18988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18989. /* end confdefs.h. */
  18990. #include <GLES2/gl2.h>
  18991. #include <GLES2/gl2ext.h>
  18992. int
  18993. main ()
  18994. {
  18995. ;
  18996. return 0;
  18997. }
  18998. _ACEOF
  18999. if ac_fn_c_try_compile "$LINENO"; then :
  19000. video_opengles_v2=yes
  19001. fi
  19002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19004. $as_echo "$video_opengles_v2" >&6; }
  19005. if test x$video_opengles_v2 = xyes; then
  19006. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19007. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19008. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19009. fi
  19010. fi
  19011. }
  19012. # Check whether --enable-video-vulkan was given.
  19013. if test "${enable_video_vulkan+set}" = set; then :
  19014. enableval=$enable_video_vulkan;
  19015. else
  19016. enable_video_vulkan=yes
  19017. fi
  19018. CheckVulkan()
  19019. {
  19020. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19021. case "$host" in
  19022. *-*-android*)
  19023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19024. /* end confdefs.h. */
  19025. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19026. #error Vulkan doesn't work on this configuration
  19027. #endif
  19028. int
  19029. main ()
  19030. {
  19031. ;
  19032. return 0;
  19033. }
  19034. _ACEOF
  19035. if ac_fn_c_try_compile "$LINENO"; then :
  19036. else
  19037. enable_video_vulkan=no
  19038. fi
  19039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19040. ;;
  19041. *-*-darwin*)
  19042. save_CFLAGS="$CFLAGS"
  19043. CFLAGS="$CFLAGS -x objective-c"
  19044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19045. /* end confdefs.h. */
  19046. #include <Cocoa/Cocoa.h>
  19047. #include <Metal/Metal.h>
  19048. #include <QuartzCore/CAMetalLayer.h>
  19049. #if !TARGET_CPU_X86_64
  19050. #error Vulkan doesn't work on this configuration
  19051. #endif
  19052. int
  19053. main ()
  19054. {
  19055. ;
  19056. return 0;
  19057. }
  19058. _ACEOF
  19059. if ac_fn_c_try_compile "$LINENO"; then :
  19060. else
  19061. enable_video_vulkan=no
  19062. fi
  19063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19064. CFLAGS="$save_CFLAGS"
  19065. ;;
  19066. *)
  19067. ;;
  19068. esac
  19069. if test x$enable_video_vulkan = xno; then
  19070. # For reasons I am totally unable to see, I get an undefined macro error if
  19071. # I put this in the AC_TRY_COMPILE.
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19073. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19074. fi
  19075. fi
  19076. if test x$enable_video_vulkan = xyes; then
  19077. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19078. SUMMARY_video="${SUMMARY_video} vulkan"
  19079. fi
  19080. }
  19081. CheckInputEvents()
  19082. {
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19084. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19085. use_input_events=no
  19086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19087. /* end confdefs.h. */
  19088. #include <linux/input.h>
  19089. int
  19090. main ()
  19091. {
  19092. #ifndef EVIOCGNAME
  19093. #error EVIOCGNAME() ioctl not available
  19094. #endif
  19095. ;
  19096. return 0;
  19097. }
  19098. _ACEOF
  19099. if ac_fn_c_try_compile "$LINENO"; then :
  19100. use_input_events=yes
  19101. fi
  19102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19104. $as_echo "$use_input_events" >&6; }
  19105. if test x$use_input_events = xyes; then
  19106. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19107. SUMMARY_input="${SUMMARY_input} linuxev"
  19108. fi
  19109. }
  19110. CheckInputKD()
  19111. {
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19113. $as_echo_n "checking for Linux kd.h... " >&6; }
  19114. use_input_kd=no
  19115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19116. /* end confdefs.h. */
  19117. #include <linux/kd.h>
  19118. #include <linux/keyboard.h>
  19119. int
  19120. main ()
  19121. {
  19122. struct kbentry kbe;
  19123. kbe.kb_table = KG_CTRL;
  19124. ioctl(0, KDGKBENT, &kbe);
  19125. ;
  19126. return 0;
  19127. }
  19128. _ACEOF
  19129. if ac_fn_c_try_compile "$LINENO"; then :
  19130. use_input_kd=yes
  19131. fi
  19132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19134. $as_echo "$use_input_kd" >&6; }
  19135. if test x$use_input_kd = xyes; then
  19136. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19137. SUMMARY_input="${SUMMARY_input} linuxkd"
  19138. fi
  19139. }
  19140. CheckLibUDev()
  19141. {
  19142. # Check whether --enable-libudev was given.
  19143. if test "${enable_libudev+set}" = set; then :
  19144. enableval=$enable_libudev;
  19145. else
  19146. enable_libudev=yes
  19147. fi
  19148. if test x$enable_libudev = xyes; then
  19149. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19150. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19151. have_libudev_h_hdr=yes
  19152. else
  19153. have_libudev_h_hdr=no
  19154. fi
  19155. if test x$have_libudev_h_hdr = xyes; then
  19156. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19157. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19158. if test x$udev_lib != x; then
  19159. echo "-- dynamic udev -> $udev_lib"
  19160. cat >>confdefs.h <<_ACEOF
  19161. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19162. _ACEOF
  19163. fi
  19164. fi
  19165. fi
  19166. }
  19167. CheckDBus()
  19168. {
  19169. # Check whether --enable-dbus was given.
  19170. if test "${enable_dbus+set}" = set; then :
  19171. enableval=$enable_dbus;
  19172. else
  19173. enable_dbus=yes
  19174. fi
  19175. if test x$enable_dbus = xyes; then
  19176. # Extract the first word of "pkg-config", so it can be a program name with args.
  19177. set dummy pkg-config; ac_word=$2
  19178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19179. $as_echo_n "checking for $ac_word... " >&6; }
  19180. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19181. $as_echo_n "(cached) " >&6
  19182. else
  19183. case $PKG_CONFIG in
  19184. [\\/]* | ?:[\\/]*)
  19185. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19186. ;;
  19187. *)
  19188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19189. for as_dir in $PATH
  19190. do
  19191. IFS=$as_save_IFS
  19192. test -z "$as_dir" && as_dir=.
  19193. for ac_exec_ext in '' $ac_executable_extensions; do
  19194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19195. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19197. break 2
  19198. fi
  19199. done
  19200. done
  19201. IFS=$as_save_IFS
  19202. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19203. ;;
  19204. esac
  19205. fi
  19206. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19207. if test -n "$PKG_CONFIG"; then
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19209. $as_echo "$PKG_CONFIG" >&6; }
  19210. else
  19211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19212. $as_echo "no" >&6; }
  19213. fi
  19214. if test x$PKG_CONFIG != xno; then
  19215. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19216. save_CFLAGS="$CFLAGS"
  19217. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19218. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19219. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19220. have_dbus_dbus_h_hdr=yes
  19221. else
  19222. have_dbus_dbus_h_hdr=no
  19223. fi
  19224. CFLAGS="$save_CFLAGS"
  19225. if test x$have_dbus_dbus_h_hdr = xyes; then
  19226. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19227. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19228. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19229. fi
  19230. fi
  19231. fi
  19232. }
  19233. CheckIME()
  19234. {
  19235. # Check whether --enable-ime was given.
  19236. if test "${enable_ime+set}" = set; then :
  19237. enableval=$enable_ime;
  19238. else
  19239. enable_ime=yes
  19240. fi
  19241. if test x$enable_ime = xyes; then
  19242. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19243. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19244. fi
  19245. }
  19246. CheckIBus()
  19247. {
  19248. # Check whether --enable-ibus was given.
  19249. if test "${enable_ibus+set}" = set; then :
  19250. enableval=$enable_ibus;
  19251. else
  19252. enable_ibus=yes
  19253. fi
  19254. if test x$enable_ibus = xyes; then
  19255. # Extract the first word of "pkg-config", so it can be a program name with args.
  19256. set dummy pkg-config; ac_word=$2
  19257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19258. $as_echo_n "checking for $ac_word... " >&6; }
  19259. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19260. $as_echo_n "(cached) " >&6
  19261. else
  19262. case $PKG_CONFIG in
  19263. [\\/]* | ?:[\\/]*)
  19264. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19265. ;;
  19266. *)
  19267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19268. for as_dir in $PATH
  19269. do
  19270. IFS=$as_save_IFS
  19271. test -z "$as_dir" && as_dir=.
  19272. for ac_exec_ext in '' $ac_executable_extensions; do
  19273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19274. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19276. break 2
  19277. fi
  19278. done
  19279. done
  19280. IFS=$as_save_IFS
  19281. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19282. ;;
  19283. esac
  19284. fi
  19285. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19286. if test -n "$PKG_CONFIG"; then
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19288. $as_echo "$PKG_CONFIG" >&6; }
  19289. else
  19290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19291. $as_echo "no" >&6; }
  19292. fi
  19293. if test x$PKG_CONFIG != xno; then
  19294. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19295. save_CFLAGS="$CFLAGS"
  19296. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19297. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19298. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19299. have_ibus_ibus_h_hdr=yes
  19300. else
  19301. have_ibus_ibus_h_hdr=no
  19302. fi
  19303. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19304. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19305. have_inotify_inotify_h_hdr=yes
  19306. else
  19307. have_inotify_inotify_h_hdr=no
  19308. fi
  19309. CFLAGS="$save_CFLAGS"
  19310. if test x$have_ibus_ibus_h_hdr = xyes; then
  19311. if test x$enable_ime != xyes; then
  19312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19313. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19314. have_ibus_ibus_h_hdr=no
  19315. elif test x$enable_dbus != xyes; then
  19316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19317. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19318. have_ibus_ibus_h_hdr=no
  19319. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19321. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19322. have_ibus_ibus_h_hdr=no
  19323. else
  19324. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19325. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19326. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19327. fi
  19328. fi
  19329. fi
  19330. fi
  19331. }
  19332. CheckFcitx()
  19333. {
  19334. # Check whether --enable-fcitx was given.
  19335. if test "${enable_fcitx+set}" = set; then :
  19336. enableval=$enable_fcitx;
  19337. else
  19338. enable_fcitx=yes
  19339. fi
  19340. if test x$enable_fcitx = xyes; then
  19341. # Extract the first word of "pkg-config", so it can be a program name with args.
  19342. set dummy pkg-config; ac_word=$2
  19343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19344. $as_echo_n "checking for $ac_word... " >&6; }
  19345. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19346. $as_echo_n "(cached) " >&6
  19347. else
  19348. case $PKG_CONFIG in
  19349. [\\/]* | ?:[\\/]*)
  19350. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19351. ;;
  19352. *)
  19353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19354. for as_dir in $PATH
  19355. do
  19356. IFS=$as_save_IFS
  19357. test -z "$as_dir" && as_dir=.
  19358. for ac_exec_ext in '' $ac_executable_extensions; do
  19359. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19360. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19362. break 2
  19363. fi
  19364. done
  19365. done
  19366. IFS=$as_save_IFS
  19367. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19368. ;;
  19369. esac
  19370. fi
  19371. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19372. if test -n "$PKG_CONFIG"; then
  19373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19374. $as_echo "$PKG_CONFIG" >&6; }
  19375. else
  19376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19377. $as_echo "no" >&6; }
  19378. fi
  19379. if test x$PKG_CONFIG != xno; then
  19380. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19381. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19382. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19383. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19384. have_fcitx_frontend_h_hdr=yes
  19385. else
  19386. have_fcitx_frontend_h_hdr=no
  19387. fi
  19388. CFLAGS="$save_CFLAGS"
  19389. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19390. if test x$enable_ime != xyes; then
  19391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19392. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19393. have_fcitx_frontend_h_hdr=no
  19394. elif test x$enable_dbus != xyes; then
  19395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19396. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19397. have_fcitx_frontend_h_hdr=no
  19398. else
  19399. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19400. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19401. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19402. fi
  19403. fi
  19404. fi
  19405. fi
  19406. }
  19407. CheckTslib()
  19408. {
  19409. # Check whether --enable-input-tslib was given.
  19410. if test "${enable_input_tslib+set}" = set; then :
  19411. enableval=$enable_input_tslib;
  19412. else
  19413. enable_input_tslib=yes
  19414. fi
  19415. if test x$enable_input_tslib = xyes; then
  19416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19417. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19418. enable_input_tslib=no
  19419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19420. /* end confdefs.h. */
  19421. #include "tslib.h"
  19422. int
  19423. main ()
  19424. {
  19425. ;
  19426. return 0;
  19427. }
  19428. _ACEOF
  19429. if ac_fn_c_try_compile "$LINENO"; then :
  19430. enable_input_tslib=yes
  19431. fi
  19432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19434. $as_echo "$enable_input_tslib" >&6; }
  19435. if test x$enable_input_tslib = xyes; then
  19436. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19437. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19438. SUMMARY_input="${SUMMARY_input} ts"
  19439. fi
  19440. fi
  19441. }
  19442. CheckPTHREAD()
  19443. {
  19444. # Check whether --enable-pthreads was given.
  19445. if test "${enable_pthreads+set}" = set; then :
  19446. enableval=$enable_pthreads;
  19447. else
  19448. enable_pthreads=yes
  19449. fi
  19450. # Check whether --enable-pthread-sem was given.
  19451. if test "${enable_pthread_sem+set}" = set; then :
  19452. enableval=$enable_pthread_sem;
  19453. else
  19454. enable_pthread_sem=yes
  19455. fi
  19456. case "$host" in
  19457. *-*-android*)
  19458. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19459. pthread_lib=""
  19460. ;;
  19461. *-*-linux*|*-*-uclinux*)
  19462. pthread_cflags="-D_REENTRANT"
  19463. pthread_lib="-lpthread"
  19464. ;;
  19465. *-*-bsdi*)
  19466. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19467. pthread_lib=""
  19468. ;;
  19469. *-*-darwin*)
  19470. pthread_cflags="-D_THREAD_SAFE"
  19471. # causes Carbon.p complaints?
  19472. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19473. ;;
  19474. *-*-freebsd*|*-*-dragonfly*)
  19475. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19476. pthread_lib="-pthread"
  19477. ;;
  19478. *-*-netbsd*)
  19479. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19480. pthread_lib="-lpthread"
  19481. ;;
  19482. *-*-openbsd*)
  19483. pthread_cflags="-D_REENTRANT"
  19484. pthread_lib="-pthread"
  19485. ;;
  19486. *-*-solaris2.9)
  19487. # From Solaris 9+, posix4's preferred name is rt.
  19488. pthread_cflags="-D_REENTRANT"
  19489. pthread_lib="-lpthread -lrt"
  19490. ;;
  19491. *-*-solaris2.10)
  19492. # Solaris 10+ merged pthread into libc.
  19493. pthread_cflags="-D_REENTRANT"
  19494. pthread_lib="-lrt"
  19495. ;;
  19496. *-*-solaris*)
  19497. # Solaris 11+ merged rt into libc.
  19498. pthread_cflags="-D_REENTRANT"
  19499. pthread_lib=""
  19500. ;;
  19501. *-*-sysv5*)
  19502. pthread_cflags="-D_REENTRANT -Kthread"
  19503. pthread_lib=""
  19504. ;;
  19505. *-*-aix*)
  19506. pthread_cflags="-D_REENTRANT -mthreads"
  19507. pthread_lib="-lpthread"
  19508. ;;
  19509. *-*-hpux11*)
  19510. pthread_cflags="-D_REENTRANT"
  19511. pthread_lib="-L/usr/lib -lpthread"
  19512. ;;
  19513. *-*-haiku*)
  19514. pthread_cflags="-D_REENTRANT"
  19515. pthread_lib=""
  19516. ;;
  19517. *-*-nto*)
  19518. pthread_cflags="-D_REENTRANT"
  19519. pthread_lib=""
  19520. ;;
  19521. *)
  19522. pthread_cflags="-D_REENTRANT"
  19523. pthread_lib="-lpthread"
  19524. ;;
  19525. esac
  19526. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19527. # Save the original compiler flags and libraries
  19528. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19529. # Add the pthread compiler flags and libraries
  19530. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19531. # Check to see if we have pthread support on this system
  19532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19533. $as_echo_n "checking for pthreads... " >&6; }
  19534. use_pthreads=no
  19535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19536. /* end confdefs.h. */
  19537. #include <pthread.h>
  19538. int
  19539. main ()
  19540. {
  19541. pthread_attr_t type;
  19542. pthread_attr_init(&type);
  19543. ;
  19544. return 0;
  19545. }
  19546. _ACEOF
  19547. if ac_fn_c_try_link "$LINENO"; then :
  19548. use_pthreads=yes
  19549. fi
  19550. rm -f core conftest.err conftest.$ac_objext \
  19551. conftest$ac_exeext conftest.$ac_ext
  19552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19553. $as_echo "$use_pthreads" >&6; }
  19554. # Restore the compiler flags and libraries
  19555. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19556. # Do futher testing if we have pthread support...
  19557. if test x$use_pthreads = xyes; then
  19558. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19559. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19561. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19562. # Save the original compiler flags and libraries
  19563. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19564. # Add the pthread compiler flags and libraries
  19565. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19566. # Check to see if recursive mutexes are available
  19567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19568. $as_echo_n "checking for recursive mutexes... " >&6; }
  19569. has_recursive_mutexes=no
  19570. if test x$has_recursive_mutexes = xno; then
  19571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19572. /* end confdefs.h. */
  19573. #define _GNU_SOURCE 1
  19574. #include <pthread.h>
  19575. int
  19576. main ()
  19577. {
  19578. pthread_mutexattr_t attr;
  19579. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19580. ;
  19581. return 0;
  19582. }
  19583. _ACEOF
  19584. if ac_fn_c_try_link "$LINENO"; then :
  19585. has_recursive_mutexes=yes
  19586. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19587. fi
  19588. rm -f core conftest.err conftest.$ac_objext \
  19589. conftest$ac_exeext conftest.$ac_ext
  19590. fi
  19591. if test x$has_recursive_mutexes = xno; then
  19592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19593. /* end confdefs.h. */
  19594. #define _GNU_SOURCE 1
  19595. #include <pthread.h>
  19596. int
  19597. main ()
  19598. {
  19599. pthread_mutexattr_t attr;
  19600. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19601. ;
  19602. return 0;
  19603. }
  19604. _ACEOF
  19605. if ac_fn_c_try_link "$LINENO"; then :
  19606. has_recursive_mutexes=yes
  19607. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19608. fi
  19609. rm -f core conftest.err conftest.$ac_objext \
  19610. conftest$ac_exeext conftest.$ac_ext
  19611. fi
  19612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19613. $as_echo "$has_recursive_mutexes" >&6; }
  19614. # Check to see if pthread semaphore support is missing
  19615. if test x$enable_pthread_sem = xyes; then
  19616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19617. $as_echo_n "checking for pthread semaphores... " >&6; }
  19618. have_pthread_sem=no
  19619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19620. /* end confdefs.h. */
  19621. #include <pthread.h>
  19622. #include <semaphore.h>
  19623. int
  19624. main ()
  19625. {
  19626. ;
  19627. return 0;
  19628. }
  19629. _ACEOF
  19630. if ac_fn_c_try_compile "$LINENO"; then :
  19631. have_pthread_sem=yes
  19632. fi
  19633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19635. $as_echo "$have_pthread_sem" >&6; }
  19636. fi
  19637. if test x$have_pthread_sem = xyes; then
  19638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19639. $as_echo_n "checking for sem_timedwait... " >&6; }
  19640. have_sem_timedwait=no
  19641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19642. /* end confdefs.h. */
  19643. #include <pthread.h>
  19644. #include <semaphore.h>
  19645. int
  19646. main ()
  19647. {
  19648. sem_timedwait(NULL, NULL);
  19649. ;
  19650. return 0;
  19651. }
  19652. _ACEOF
  19653. if ac_fn_c_try_link "$LINENO"; then :
  19654. have_sem_timedwait=yes
  19655. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19656. fi
  19657. rm -f core conftest.err conftest.$ac_objext \
  19658. conftest$ac_exeext conftest.$ac_ext
  19659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19660. $as_echo "$have_sem_timedwait" >&6; }
  19661. fi
  19662. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19663. "
  19664. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19665. have_pthread_np_h=yes
  19666. else
  19667. have_pthread_np_h=no
  19668. fi
  19669. if test x$have_pthread_np_h = xyes; then
  19670. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19671. fi
  19672. # Check to see if pthread naming is available
  19673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19674. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19676. /* end confdefs.h. */
  19677. /* Override any GCC internal prototype to avoid an error.
  19678. Use char because int might match the return type of a GCC
  19679. builtin and then its argument prototype would still apply. */
  19680. #ifdef __cplusplus
  19681. extern "C"
  19682. #endif
  19683. char pthread_setname_np ();
  19684. int
  19685. main ()
  19686. {
  19687. return pthread_setname_np ();
  19688. ;
  19689. return 0;
  19690. }
  19691. _ACEOF
  19692. if ac_fn_c_try_link "$LINENO"; then :
  19693. has_pthread_setname_np=yes
  19694. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19695. else
  19696. has_pthread_setname_np=no
  19697. fi
  19698. rm -f core conftest.err conftest.$ac_objext \
  19699. conftest$ac_exeext conftest.$ac_ext
  19700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19701. $as_echo "$has_pthread_setname_np" >&6; }
  19702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19703. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19705. /* end confdefs.h. */
  19706. /* Override any GCC internal prototype to avoid an error.
  19707. Use char because int might match the return type of a GCC
  19708. builtin and then its argument prototype would still apply. */
  19709. #ifdef __cplusplus
  19710. extern "C"
  19711. #endif
  19712. char pthread_set_name_np ();
  19713. int
  19714. main ()
  19715. {
  19716. return pthread_set_name_np ();
  19717. ;
  19718. return 0;
  19719. }
  19720. _ACEOF
  19721. if ac_fn_c_try_link "$LINENO"; then :
  19722. has_pthread_set_name_np=yes
  19723. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19724. else
  19725. has_pthread_set_name_np=no
  19726. fi
  19727. rm -f core conftest.err conftest.$ac_objext \
  19728. conftest$ac_exeext conftest.$ac_ext
  19729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19730. $as_echo "$has_pthread_set_name_np" >&6; }
  19731. # Restore the compiler flags and libraries
  19732. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19733. # Basic thread creation functions
  19734. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19735. # Semaphores
  19736. # We can fake these with mutexes and condition variables if necessary
  19737. if test x$have_pthread_sem = xyes; then
  19738. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19739. else
  19740. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19741. fi
  19742. # Mutexes
  19743. # We can fake these with semaphores if necessary
  19744. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19745. # Condition variables
  19746. # We can fake these with semaphores and mutexes if necessary
  19747. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19748. # Thread local storage
  19749. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19750. have_threads=yes
  19751. fi
  19752. fi
  19753. }
  19754. CheckWINDOWS()
  19755. {
  19756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19757. $as_echo_n "checking Windows compiler... " >&6; }
  19758. have_win32_gcc=no
  19759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19760. /* end confdefs.h. */
  19761. #include <windows.h>
  19762. int
  19763. main ()
  19764. {
  19765. ;
  19766. return 0;
  19767. }
  19768. _ACEOF
  19769. if ac_fn_c_try_compile "$LINENO"; then :
  19770. have_win32_gcc=yes
  19771. fi
  19772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19774. $as_echo "$have_win32_gcc" >&6; }
  19775. if test x$have_win32_gcc != xyes; then
  19776. as_fn_error $? "
  19777. *** Your compiler ($CC) does not produce Windows executables!
  19778. " "$LINENO" 5
  19779. fi
  19780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19781. $as_echo_n "checking Windows CE... " >&6; }
  19782. have_wince=no
  19783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19784. /* end confdefs.h. */
  19785. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19786. #error This is not Windows CE
  19787. #endif
  19788. int
  19789. main ()
  19790. {
  19791. ;
  19792. return 0;
  19793. }
  19794. _ACEOF
  19795. if ac_fn_c_try_compile "$LINENO"; then :
  19796. have_wince=yes
  19797. as_fn_error $? "
  19798. *** Sorry, Windows CE is no longer supported.
  19799. " "$LINENO" 5
  19800. fi
  19801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19803. $as_echo "$have_wince" >&6; }
  19804. # This fixes Windows stack alignment with newer GCC
  19805. CheckStackBoundary
  19806. }
  19807. CheckDIRECTX()
  19808. {
  19809. # Check whether --enable-directx was given.
  19810. if test "${enable_directx+set}" = set; then :
  19811. enableval=$enable_directx;
  19812. else
  19813. enable_directx=yes
  19814. fi
  19815. if test x$enable_directx = xyes; then
  19816. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19817. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19818. have_d3d=yes
  19819. fi
  19820. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19821. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19822. have_d3d11=yes
  19823. fi
  19824. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19825. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19826. have_ddraw=yes
  19827. fi
  19828. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19829. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19830. have_dsound=yes
  19831. fi
  19832. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19833. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19834. have_dinput=yes
  19835. fi
  19836. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19837. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19838. have_dxgi=yes
  19839. fi
  19840. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19841. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19842. have_xinput=yes
  19843. fi
  19844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19845. /* end confdefs.h. */
  19846. #include <windows.h>
  19847. #include <xinput.h>
  19848. XINPUT_GAMEPAD_EX x1;
  19849. int
  19850. main ()
  19851. {
  19852. ;
  19853. return 0;
  19854. }
  19855. _ACEOF
  19856. if ac_fn_c_try_compile "$LINENO"; then :
  19857. have_xinput_gamepadex=yes
  19858. fi
  19859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19861. /* end confdefs.h. */
  19862. #include <windows.h>
  19863. #include <xinput.h>
  19864. XINPUT_STATE_EX s1;
  19865. int
  19866. main ()
  19867. {
  19868. ;
  19869. return 0;
  19870. }
  19871. _ACEOF
  19872. if ac_fn_c_try_compile "$LINENO"; then :
  19873. have_xinput_stateex=yes
  19874. fi
  19875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19876. if test x$have_ddraw = xyes; then
  19877. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19878. fi
  19879. if test x$have_dinput = xyes; then
  19880. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19881. fi
  19882. if test x$have_dsound = xyes; then
  19883. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19884. fi
  19885. if test x$have_dxgi = xyes; then
  19886. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19887. fi
  19888. if test x$have_xinput = xyes; then
  19889. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19890. fi
  19891. if test x$have_xinput_gamepadex = xyes; then
  19892. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19893. fi
  19894. if test x$have_xinput_stateex = xyes; then
  19895. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19896. fi
  19897. SUMMARY_video="${SUMMARY_video} directx"
  19898. SUMMARY_audio="${SUMMARY_audio} directx"
  19899. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19900. # FIXME: ...so force it off for now.
  19901. case "$host" in
  19902. *-*-cygwin*)
  19903. have_dinput=false
  19904. ;;
  19905. esac
  19906. fi
  19907. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19908. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19909. have_wasapi=yes
  19910. fi
  19911. if test x$have_wasapi = xyes; then
  19912. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  19913. fi
  19914. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19915. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19916. else
  19917. have_wasapi=no
  19918. fi
  19919. if test x$have_wasapi = xyes; then
  19920. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  19921. fi
  19922. ac_fn_c_check_header_mongrel "$LINENO" "endpointvolume.h" "ac_cv_header_endpointvolume_h" "$ac_includes_default"
  19923. if test "x$ac_cv_header_endpointvolume_h" = xyes; then :
  19924. $as_echo "#define HAVE_ENDPOINTVOLUME_H 1" >>confdefs.h
  19925. fi
  19926. # Check whether --enable-wasapi was given.
  19927. if test "${enable_wasapi+set}" = set; then :
  19928. enableval=$enable_wasapi;
  19929. else
  19930. enable_wasapi=yes
  19931. fi
  19932. }
  19933. CheckDLOPEN()
  19934. {
  19935. # Check whether --enable-sdl-dlopen was given.
  19936. if test "${enable_sdl_dlopen+set}" = set; then :
  19937. enableval=$enable_sdl_dlopen;
  19938. else
  19939. enable_sdl_dlopen=yes
  19940. fi
  19941. if test x$enable_sdl_dlopen = xyes; then
  19942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19943. $as_echo_n "checking for dlopen... " >&6; }
  19944. have_dlopen=no
  19945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19946. /* end confdefs.h. */
  19947. #include <dlfcn.h>
  19948. int
  19949. main ()
  19950. {
  19951. void *handle = dlopen("", RTLD_NOW);
  19952. const char *loaderror = (char *) dlerror();
  19953. ;
  19954. return 0;
  19955. }
  19956. _ACEOF
  19957. if ac_fn_c_try_compile "$LINENO"; then :
  19958. have_dlopen=yes
  19959. fi
  19960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19962. $as_echo "$have_dlopen" >&6; }
  19963. if test x$have_dlopen = xyes; then
  19964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19965. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19966. if ${ac_cv_lib_c_dlopen+:} false; then :
  19967. $as_echo_n "(cached) " >&6
  19968. else
  19969. ac_check_lib_save_LIBS=$LIBS
  19970. LIBS="-lc $LIBS"
  19971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19972. /* end confdefs.h. */
  19973. /* Override any GCC internal prototype to avoid an error.
  19974. Use char because int might match the return type of a GCC
  19975. builtin and then its argument prototype would still apply. */
  19976. #ifdef __cplusplus
  19977. extern "C"
  19978. #endif
  19979. char dlopen ();
  19980. int
  19981. main ()
  19982. {
  19983. return dlopen ();
  19984. ;
  19985. return 0;
  19986. }
  19987. _ACEOF
  19988. if ac_fn_c_try_link "$LINENO"; then :
  19989. ac_cv_lib_c_dlopen=yes
  19990. else
  19991. ac_cv_lib_c_dlopen=no
  19992. fi
  19993. rm -f core conftest.err conftest.$ac_objext \
  19994. conftest$ac_exeext conftest.$ac_ext
  19995. LIBS=$ac_check_lib_save_LIBS
  19996. fi
  19997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19998. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19999. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20001. else
  20002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20003. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20004. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20005. $as_echo_n "(cached) " >&6
  20006. else
  20007. ac_check_lib_save_LIBS=$LIBS
  20008. LIBS="-ldl $LIBS"
  20009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20010. /* end confdefs.h. */
  20011. /* Override any GCC internal prototype to avoid an error.
  20012. Use char because int might match the return type of a GCC
  20013. builtin and then its argument prototype would still apply. */
  20014. #ifdef __cplusplus
  20015. extern "C"
  20016. #endif
  20017. char dlopen ();
  20018. int
  20019. main ()
  20020. {
  20021. return dlopen ();
  20022. ;
  20023. return 0;
  20024. }
  20025. _ACEOF
  20026. if ac_fn_c_try_link "$LINENO"; then :
  20027. ac_cv_lib_dl_dlopen=yes
  20028. else
  20029. ac_cv_lib_dl_dlopen=no
  20030. fi
  20031. rm -f core conftest.err conftest.$ac_objext \
  20032. conftest$ac_exeext conftest.$ac_ext
  20033. LIBS=$ac_check_lib_save_LIBS
  20034. fi
  20035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20036. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20037. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20039. else
  20040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20041. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20042. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20043. $as_echo_n "(cached) " >&6
  20044. else
  20045. ac_check_lib_save_LIBS=$LIBS
  20046. LIBS="-lltdl $LIBS"
  20047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20048. /* end confdefs.h. */
  20049. /* Override any GCC internal prototype to avoid an error.
  20050. Use char because int might match the return type of a GCC
  20051. builtin and then its argument prototype would still apply. */
  20052. #ifdef __cplusplus
  20053. extern "C"
  20054. #endif
  20055. char dlopen ();
  20056. int
  20057. main ()
  20058. {
  20059. return dlopen ();
  20060. ;
  20061. return 0;
  20062. }
  20063. _ACEOF
  20064. if ac_fn_c_try_link "$LINENO"; then :
  20065. ac_cv_lib_ltdl_dlopen=yes
  20066. else
  20067. ac_cv_lib_ltdl_dlopen=no
  20068. fi
  20069. rm -f core conftest.err conftest.$ac_objext \
  20070. conftest$ac_exeext conftest.$ac_ext
  20071. LIBS=$ac_check_lib_save_LIBS
  20072. fi
  20073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20074. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20075. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20076. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20077. fi
  20078. fi
  20079. fi
  20080. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20081. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20082. have_loadso=yes
  20083. fi
  20084. fi
  20085. }
  20086. CheckUSBHID()
  20087. {
  20088. case "$host" in
  20089. *-*-*bsd*)
  20090. if test x$enable_joystick = xyes; then
  20091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20092. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20093. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20094. $as_echo_n "(cached) " >&6
  20095. else
  20096. ac_check_lib_save_LIBS=$LIBS
  20097. LIBS="-lusbhid $LIBS"
  20098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20099. /* end confdefs.h. */
  20100. /* Override any GCC internal prototype to avoid an error.
  20101. Use char because int might match the return type of a GCC
  20102. builtin and then its argument prototype would still apply. */
  20103. #ifdef __cplusplus
  20104. extern "C"
  20105. #endif
  20106. char hid_init ();
  20107. int
  20108. main ()
  20109. {
  20110. return hid_init ();
  20111. ;
  20112. return 0;
  20113. }
  20114. _ACEOF
  20115. if ac_fn_c_try_link "$LINENO"; then :
  20116. ac_cv_lib_usbhid_hid_init=yes
  20117. else
  20118. ac_cv_lib_usbhid_hid_init=no
  20119. fi
  20120. rm -f core conftest.err conftest.$ac_objext \
  20121. conftest$ac_exeext conftest.$ac_ext
  20122. LIBS=$ac_check_lib_save_LIBS
  20123. fi
  20124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20125. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20126. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20127. have_libusbhid=yes
  20128. fi
  20129. if test x$have_libusbhid = xyes; then
  20130. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20131. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20132. USB_CFLAGS="-DHAVE_USBHID_H"
  20133. fi
  20134. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20135. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20136. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20137. fi
  20138. USB_LIBS="$USB_LIBS -lusbhid"
  20139. else
  20140. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20141. if test "x$ac_cv_header_usb_h" = xyes; then :
  20142. USB_CFLAGS="-DHAVE_USB_H"
  20143. fi
  20144. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20145. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20146. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20147. fi
  20148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20149. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20150. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20151. $as_echo_n "(cached) " >&6
  20152. else
  20153. ac_check_lib_save_LIBS=$LIBS
  20154. LIBS="-lusb $LIBS"
  20155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20156. /* end confdefs.h. */
  20157. /* Override any GCC internal prototype to avoid an error.
  20158. Use char because int might match the return type of a GCC
  20159. builtin and then its argument prototype would still apply. */
  20160. #ifdef __cplusplus
  20161. extern "C"
  20162. #endif
  20163. char hid_init ();
  20164. int
  20165. main ()
  20166. {
  20167. return hid_init ();
  20168. ;
  20169. return 0;
  20170. }
  20171. _ACEOF
  20172. if ac_fn_c_try_link "$LINENO"; then :
  20173. ac_cv_lib_usb_hid_init=yes
  20174. else
  20175. ac_cv_lib_usb_hid_init=no
  20176. fi
  20177. rm -f core conftest.err conftest.$ac_objext \
  20178. conftest$ac_exeext conftest.$ac_ext
  20179. LIBS=$ac_check_lib_save_LIBS
  20180. fi
  20181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20182. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20183. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20184. USB_LIBS="$USB_LIBS -lusb"
  20185. fi
  20186. fi
  20187. save_CFLAGS="$CFLAGS"
  20188. CFLAGS="$CFLAGS $USB_CFLAGS"
  20189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20190. $as_echo_n "checking for usbhid... " >&6; }
  20191. have_usbhid=no
  20192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20193. /* end confdefs.h. */
  20194. #include <sys/types.h>
  20195. #if defined(HAVE_USB_H)
  20196. #include <usb.h>
  20197. #endif
  20198. #ifdef __DragonFly__
  20199. # include <bus/usb/usb.h>
  20200. # include <bus/usb/usbhid.h>
  20201. #else
  20202. # include <dev/usb/usb.h>
  20203. # include <dev/usb/usbhid.h>
  20204. #endif
  20205. #if defined(HAVE_USBHID_H)
  20206. #include <usbhid.h>
  20207. #elif defined(HAVE_LIBUSB_H)
  20208. #include <libusb.h>
  20209. #elif defined(HAVE_LIBUSBHID_H)
  20210. #include <libusbhid.h>
  20211. #endif
  20212. int
  20213. main ()
  20214. {
  20215. struct report_desc *repdesc;
  20216. struct usb_ctl_report *repbuf;
  20217. hid_kind_t hidkind;
  20218. ;
  20219. return 0;
  20220. }
  20221. _ACEOF
  20222. if ac_fn_c_try_compile "$LINENO"; then :
  20223. have_usbhid=yes
  20224. fi
  20225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20227. $as_echo "$have_usbhid" >&6; }
  20228. if test x$have_usbhid = xyes; then
  20229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20230. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20231. have_usbhid_ucr_data=no
  20232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20233. /* end confdefs.h. */
  20234. #include <sys/types.h>
  20235. #if defined(HAVE_USB_H)
  20236. #include <usb.h>
  20237. #endif
  20238. #ifdef __DragonFly__
  20239. # include <bus/usb/usb.h>
  20240. # include <bus/usb/usbhid.h>
  20241. #else
  20242. # include <dev/usb/usb.h>
  20243. # include <dev/usb/usbhid.h>
  20244. #endif
  20245. #if defined(HAVE_USBHID_H)
  20246. #include <usbhid.h>
  20247. #elif defined(HAVE_LIBUSB_H)
  20248. #include <libusb.h>
  20249. #elif defined(HAVE_LIBUSBHID_H)
  20250. #include <libusbhid.h>
  20251. #endif
  20252. int
  20253. main ()
  20254. {
  20255. struct usb_ctl_report buf;
  20256. if (buf.ucr_data) { }
  20257. ;
  20258. return 0;
  20259. }
  20260. _ACEOF
  20261. if ac_fn_c_try_compile "$LINENO"; then :
  20262. have_usbhid_ucr_data=yes
  20263. fi
  20264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20265. if test x$have_usbhid_ucr_data = xyes; then
  20266. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20267. fi
  20268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20269. $as_echo "$have_usbhid_ucr_data" >&6; }
  20270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20271. $as_echo_n "checking for new usbhid API... " >&6; }
  20272. have_usbhid_new=no
  20273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20274. /* end confdefs.h. */
  20275. #include <sys/types.h>
  20276. #if defined(HAVE_USB_H)
  20277. #include <usb.h>
  20278. #endif
  20279. #ifdef __DragonFly__
  20280. #include <bus/usb/usb.h>
  20281. #include <bus/usb/usbhid.h>
  20282. #else
  20283. #include <dev/usb/usb.h>
  20284. #include <dev/usb/usbhid.h>
  20285. #endif
  20286. #if defined(HAVE_USBHID_H)
  20287. #include <usbhid.h>
  20288. #elif defined(HAVE_LIBUSB_H)
  20289. #include <libusb.h>
  20290. #elif defined(HAVE_LIBUSBHID_H)
  20291. #include <libusbhid.h>
  20292. #endif
  20293. int
  20294. main ()
  20295. {
  20296. report_desc_t d;
  20297. hid_start_parse(d, 1, 1);
  20298. ;
  20299. return 0;
  20300. }
  20301. _ACEOF
  20302. if ac_fn_c_try_compile "$LINENO"; then :
  20303. have_usbhid_new=yes
  20304. fi
  20305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20306. if test x$have_usbhid_new = xyes; then
  20307. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20308. fi
  20309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20310. $as_echo "$have_usbhid_new" >&6; }
  20311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20312. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20313. have_machine_joystick=no
  20314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20315. /* end confdefs.h. */
  20316. #include <machine/joystick.h>
  20317. int
  20318. main ()
  20319. {
  20320. struct joystick t;
  20321. ;
  20322. return 0;
  20323. }
  20324. _ACEOF
  20325. if ac_fn_c_try_compile "$LINENO"; then :
  20326. have_machine_joystick=yes
  20327. fi
  20328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20329. if test x$have_machine_joystick = xyes; then
  20330. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20331. fi
  20332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20333. $as_echo "$have_machine_joystick" >&6; }
  20334. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20335. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20336. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20337. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20338. have_joystick=yes
  20339. fi
  20340. CFLAGS="$save_CFLAGS"
  20341. fi
  20342. ;;
  20343. esac
  20344. }
  20345. CheckHIDAPI()
  20346. {
  20347. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20348. # so we'll just use libusb when it's available.
  20349. #
  20350. # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default.
  20351. # Check whether --enable-hidapi was given.
  20352. if test "${enable_hidapi+set}" = set; then :
  20353. enableval=$enable_hidapi;
  20354. else
  20355. enable_hidapi=no
  20356. fi
  20357. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20358. hidapi_support=no
  20359. # Extract the first word of "pkg-config", so it can be a program name with args.
  20360. set dummy pkg-config; ac_word=$2
  20361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20362. $as_echo_n "checking for $ac_word... " >&6; }
  20363. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  20364. $as_echo_n "(cached) " >&6
  20365. else
  20366. case $PKG_CONFIG in
  20367. [\\/]* | ?:[\\/]*)
  20368. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20369. ;;
  20370. *)
  20371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20372. for as_dir in $PATH
  20373. do
  20374. IFS=$as_save_IFS
  20375. test -z "$as_dir" && as_dir=.
  20376. for ac_exec_ext in '' $ac_executable_extensions; do
  20377. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20378. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20380. break 2
  20381. fi
  20382. done
  20383. done
  20384. IFS=$as_save_IFS
  20385. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  20386. ;;
  20387. esac
  20388. fi
  20389. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20390. if test -n "$PKG_CONFIG"; then
  20391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20392. $as_echo "$PKG_CONFIG" >&6; }
  20393. else
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20395. $as_echo "no" >&6; }
  20396. fi
  20397. if test x$PKG_CONFIG != xno; then
  20398. LIBUSB_CFLAGS=`$PKG_CONFIG --cflags libusb-1.0`
  20399. LIBUSB_LDFLAGS=`$PKG_CONFIG --libs libusb-1.0`
  20400. save_CFLAGS="$CFLAGS"
  20401. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20402. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20403. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20404. have_libusb_h=yes
  20405. fi
  20406. CFLAGS="$save_CFLAGS"
  20407. fi
  20408. if test x$have_libusb_h = xyes; then
  20409. hidapi_support=yes
  20410. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20411. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20412. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20413. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20414. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20415. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LDFLAGS"
  20416. fi
  20417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20418. $as_echo_n "checking for hidapi support... " >&6; }
  20419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20420. $as_echo "$hidapi_support" >&6; }
  20421. fi
  20422. }
  20423. CheckClockGettime()
  20424. {
  20425. # Check whether --enable-clock_gettime was given.
  20426. if test "${enable_clock_gettime+set}" = set; then :
  20427. enableval=$enable_clock_gettime;
  20428. else
  20429. enable_clock_gettime=yes
  20430. fi
  20431. if test x$enable_clock_gettime = xyes; then
  20432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20433. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20434. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20435. $as_echo_n "(cached) " >&6
  20436. else
  20437. ac_check_lib_save_LIBS=$LIBS
  20438. LIBS="-lrt $LIBS"
  20439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20440. /* end confdefs.h. */
  20441. /* Override any GCC internal prototype to avoid an error.
  20442. Use char because int might match the return type of a GCC
  20443. builtin and then its argument prototype would still apply. */
  20444. #ifdef __cplusplus
  20445. extern "C"
  20446. #endif
  20447. char clock_gettime ();
  20448. int
  20449. main ()
  20450. {
  20451. return clock_gettime ();
  20452. ;
  20453. return 0;
  20454. }
  20455. _ACEOF
  20456. if ac_fn_c_try_link "$LINENO"; then :
  20457. ac_cv_lib_rt_clock_gettime=yes
  20458. else
  20459. ac_cv_lib_rt_clock_gettime=no
  20460. fi
  20461. rm -f core conftest.err conftest.$ac_objext \
  20462. conftest$ac_exeext conftest.$ac_ext
  20463. LIBS=$ac_check_lib_save_LIBS
  20464. fi
  20465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20466. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20467. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20468. have_clock_gettime=yes
  20469. fi
  20470. if test x$have_clock_gettime = xyes; then
  20471. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20473. else
  20474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20475. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20476. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20477. $as_echo_n "(cached) " >&6
  20478. else
  20479. ac_check_lib_save_LIBS=$LIBS
  20480. LIBS="-lc $LIBS"
  20481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20482. /* end confdefs.h. */
  20483. /* Override any GCC internal prototype to avoid an error.
  20484. Use char because int might match the return type of a GCC
  20485. builtin and then its argument prototype would still apply. */
  20486. #ifdef __cplusplus
  20487. extern "C"
  20488. #endif
  20489. char clock_gettime ();
  20490. int
  20491. main ()
  20492. {
  20493. return clock_gettime ();
  20494. ;
  20495. return 0;
  20496. }
  20497. _ACEOF
  20498. if ac_fn_c_try_link "$LINENO"; then :
  20499. ac_cv_lib_c_clock_gettime=yes
  20500. else
  20501. ac_cv_lib_c_clock_gettime=no
  20502. fi
  20503. rm -f core conftest.err conftest.$ac_objext \
  20504. conftest$ac_exeext conftest.$ac_ext
  20505. LIBS=$ac_check_lib_save_LIBS
  20506. fi
  20507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20508. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20509. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20510. have_clock_gettime=yes
  20511. fi
  20512. if test x$have_clock_gettime = xyes; then
  20513. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20514. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20515. fi
  20516. fi
  20517. fi
  20518. }
  20519. CheckLinuxVersion()
  20520. {
  20521. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20522. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20523. have_linux_version_h=yes
  20524. fi
  20525. if test x$have_linux_version_h = xyes; then
  20526. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20527. fi
  20528. }
  20529. CheckRPATH()
  20530. {
  20531. # Check whether --enable-rpath was given.
  20532. if test "${enable_rpath+set}" = set; then :
  20533. enableval=$enable_rpath;
  20534. else
  20535. enable_rpath=yes
  20536. fi
  20537. }
  20538. CheckWarnAll
  20539. case "$host" in
  20540. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20541. case "$host" in
  20542. *-*-android*)
  20543. # Android
  20544. ARCH=android
  20545. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20546. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20547. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20548. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20550. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20551. if test x$enable_video = xyes; then
  20552. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20553. # FIXME: confdefs? Not AC_DEFINE?
  20554. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20555. SUMMARY_video="${SUMMARY_video} android"
  20556. fi
  20557. ;;
  20558. *-*-linux*) ARCH=linux ;;
  20559. *-*-uclinux*) ARCH=linux ;;
  20560. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20561. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20562. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20563. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20564. *-*-bsdi*) ARCH=bsdi ;;
  20565. *-*-freebsd*) ARCH=freebsd ;;
  20566. *-*-dragonfly*) ARCH=freebsd ;;
  20567. *-*-netbsd*) ARCH=netbsd ;;
  20568. *-*-openbsd*) ARCH=openbsd ;;
  20569. *-*-sysv5*) ARCH=sysv5 ;;
  20570. *-*-solaris*) ARCH=solaris ;;
  20571. *-*-hpux*) ARCH=hpux ;;
  20572. *-*-aix*) ARCH=aix ;;
  20573. *-*-minix*) ARCH=minix ;;
  20574. *-*-nto*) ARCH=nto
  20575. CheckQNXVideo
  20576. ;;
  20577. esac
  20578. CheckVisibilityHidden
  20579. CheckDeclarationAfterStatement
  20580. CheckDummyVideo
  20581. CheckDiskAudio
  20582. CheckDummyAudio
  20583. CheckDLOPEN
  20584. CheckOSS
  20585. CheckALSA
  20586. CheckPulseAudio
  20587. CheckJACK
  20588. CheckARTSC
  20589. CheckESD
  20590. CheckNAS
  20591. CheckSNDIO
  20592. CheckFusionSound
  20593. CheckLibSampleRate
  20594. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20595. CheckRPI
  20596. CheckX11
  20597. CheckDirectFB
  20598. CheckKMSDRM
  20599. CheckOpenGLX11
  20600. CheckOpenGLESX11
  20601. CheckVulkan
  20602. CheckMir
  20603. CheckWayland
  20604. CheckLibUDev
  20605. CheckDBus
  20606. CheckIME
  20607. CheckIBus
  20608. CheckFcitx
  20609. case $ARCH in
  20610. linux)
  20611. CheckInputEvents
  20612. CheckInputKD
  20613. ;;
  20614. esac
  20615. CheckTslib
  20616. CheckUSBHID
  20617. CheckHIDAPI
  20618. CheckPTHREAD
  20619. CheckClockGettime
  20620. CheckLinuxVersion
  20621. CheckRPATH
  20622. CheckVivanteVideo
  20623. # Set up files for the audio library
  20624. if test x$enable_audio = xyes; then
  20625. case $ARCH in
  20626. sysv5|solaris|hpux)
  20627. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20628. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20629. SUMMARY_audio="${SUMMARY_audio} sun"
  20630. have_audio=yes
  20631. ;;
  20632. netbsd) # Don't use this on OpenBSD, it's busted.
  20633. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20634. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20635. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20636. have_audio=yes
  20637. ;;
  20638. aix)
  20639. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20640. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20641. SUMMARY_audio="${SUMMARY_audio} paudio"
  20642. have_audio=yes
  20643. ;;
  20644. android)
  20645. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20646. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20647. SUMMARY_audio="${SUMMARY_audio} android"
  20648. have_audio=yes
  20649. ;;
  20650. nto)
  20651. CheckQNXAudio
  20652. ;;
  20653. esac
  20654. fi
  20655. # Set up files for the joystick library
  20656. if test x$enable_joystick = xyes; then
  20657. case $ARCH in
  20658. linux)
  20659. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20660. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20661. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20662. have_joystick=yes
  20663. ;;
  20664. android)
  20665. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20666. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20667. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20668. have_joystick=yes
  20669. ;;
  20670. esac
  20671. fi
  20672. # Set up files for the haptic library
  20673. if test x$enable_haptic = xyes; then
  20674. case $ARCH in
  20675. linux)
  20676. if test x$use_input_events = xyes; then
  20677. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20678. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20679. have_haptic=yes
  20680. fi
  20681. ;;
  20682. android)
  20683. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20684. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20685. have_haptic=yes
  20686. ;;
  20687. esac
  20688. fi
  20689. # Set up files for the sensor library
  20690. if test x$enable_sensor = xyes; then
  20691. case $ARCH in
  20692. android)
  20693. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  20694. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  20695. have_sensor=yes
  20696. ;;
  20697. esac
  20698. fi
  20699. # Set up files for the power library
  20700. if test x$enable_power = xyes; then
  20701. case $ARCH in
  20702. linux)
  20703. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20704. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20705. have_power=yes
  20706. ;;
  20707. android)
  20708. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20709. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20710. have_power=yes
  20711. ;;
  20712. esac
  20713. fi
  20714. # Set up files for the filesystem library
  20715. if test x$enable_filesystem = xyes; then
  20716. case $ARCH in
  20717. android)
  20718. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20719. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20720. have_filesystem=yes
  20721. ;;
  20722. *)
  20723. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20724. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20725. have_filesystem=yes
  20726. ;;
  20727. esac
  20728. fi
  20729. # Set up files for the timer library
  20730. if test x$enable_timers = xyes; then
  20731. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20732. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20733. have_timers=yes
  20734. fi
  20735. # Set up files for udev hotplugging support
  20736. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20737. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20738. fi
  20739. # Set up files for evdev input
  20740. if test x$use_input_events = xyes; then
  20741. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20742. fi
  20743. # Set up other core UNIX files
  20744. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20745. ;;
  20746. *-*-cygwin* | *-*-mingw32*)
  20747. ARCH=win32
  20748. if test "$build" != "$host"; then # cross-compiling
  20749. # Default cross-compile location
  20750. ac_default_prefix=/usr/local/cross-tools/$host
  20751. else
  20752. # Look for the location of the tools and install there
  20753. if test "$BUILD_PREFIX" != ""; then
  20754. ac_default_prefix=$BUILD_PREFIX
  20755. fi
  20756. fi
  20757. CheckDeclarationAfterStatement
  20758. CheckDummyVideo
  20759. CheckDiskAudio
  20760. CheckDummyAudio
  20761. CheckWINDOWS
  20762. CheckWINDOWSGL
  20763. CheckWINDOWSGLES
  20764. CheckVulkan
  20765. CheckDIRECTX
  20766. # Set up the core platform files
  20767. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20768. # Set up files for the video library
  20769. if test x$enable_video = xyes; then
  20770. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20771. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20772. have_video=yes
  20773. # Check whether --enable-render-d3d was given.
  20774. if test "${enable_render_d3d+set}" = set; then :
  20775. enableval=$enable_render_d3d;
  20776. else
  20777. enable_render_d3d=yes
  20778. fi
  20779. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20780. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20781. fi
  20782. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20783. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20784. fi
  20785. fi
  20786. # Set up files for the audio library
  20787. if test x$enable_audio = xyes; then
  20788. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20789. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20790. if test x$have_dsound = xyes; then
  20791. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20792. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20793. fi
  20794. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  20795. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20796. SUMMARY_audio="${SUMMARY_audio} wasapi"
  20797. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20798. fi
  20799. have_audio=yes
  20800. fi
  20801. # Set up files for the joystick library
  20802. if test x$enable_joystick = xyes; then
  20803. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20804. if test x$have_xinput = xyes; then
  20805. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20806. fi
  20807. if test x$have_dinput = xyes; then
  20808. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20809. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20810. fi
  20811. else
  20812. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20813. fi
  20814. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20815. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20816. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20817. SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
  20818. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20819. have_joystick=yes
  20820. fi
  20821. if test x$enable_haptic = xyes; then
  20822. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20823. if test x$have_xinput = xyes; then
  20824. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20825. fi
  20826. if test x$have_dinput = xyes; then
  20827. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20828. fi
  20829. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20830. have_haptic=yes
  20831. fi
  20832. fi
  20833. if test x$enable_power = xyes; then
  20834. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20835. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20836. have_power=yes
  20837. fi
  20838. if test x$enable_filesystem = xyes; then
  20839. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20840. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20841. have_filesystem=yes
  20842. fi
  20843. # Set up files for the thread library
  20844. if test x$enable_threads = xyes; then
  20845. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20846. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20847. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20848. have_threads=yes
  20849. fi
  20850. # Set up files for the timer library
  20851. if test x$enable_timers = xyes; then
  20852. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20853. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20854. have_timers=yes
  20855. fi
  20856. # Set up files for the shared object loading library
  20857. if test x$enable_loadso = xyes; then
  20858. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20859. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20860. have_loadso=yes
  20861. fi
  20862. # Set up the system libraries we need
  20863. if test -f /lib/w32api/libuuid.a; then
  20864. LIBUUID=/lib/w32api/libuuid.a
  20865. else
  20866. LIBUUID=-luuid
  20867. fi
  20868. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  20869. # The Windows platform requires special setup
  20870. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20871. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20872. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20873. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20874. # Check to see if this is a mingw or cygwin build
  20875. have_mingw32=
  20876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20877. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20878. if ${ac_cv_lib_mingw32_main+:} false; then :
  20879. $as_echo_n "(cached) " >&6
  20880. else
  20881. ac_check_lib_save_LIBS=$LIBS
  20882. LIBS="-lmingw32 $LIBS"
  20883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20884. /* end confdefs.h. */
  20885. int
  20886. main ()
  20887. {
  20888. return main ();
  20889. ;
  20890. return 0;
  20891. }
  20892. _ACEOF
  20893. if ac_fn_c_try_link "$LINENO"; then :
  20894. ac_cv_lib_mingw32_main=yes
  20895. else
  20896. ac_cv_lib_mingw32_main=no
  20897. fi
  20898. rm -f core conftest.err conftest.$ac_objext \
  20899. conftest$ac_exeext conftest.$ac_ext
  20900. LIBS=$ac_check_lib_save_LIBS
  20901. fi
  20902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20903. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20904. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20905. have_mingw32=yes
  20906. fi
  20907. if test x$have_mingw32 = xyes; then
  20908. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20909. else
  20910. SDL_LIBS="-lcygwin $SDL_LIBS"
  20911. fi
  20912. ;;
  20913. *-*-beos*)
  20914. as_fn_error $? "
  20915. *** BeOS support has been removed as of SDL 2.0.2.
  20916. " "$LINENO" 5
  20917. ;;
  20918. *-*-haiku*)
  20919. ARCH=haiku
  20920. ac_default_prefix=/boot/system
  20921. CheckDummyVideo
  20922. CheckDiskAudio
  20923. CheckDummyAudio
  20924. CheckDLOPEN
  20925. CheckHaikuVideo
  20926. CheckHaikuGL
  20927. CheckPTHREAD
  20928. # Set up files for the audio library
  20929. if test x$enable_audio = xyes; then
  20930. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20931. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20932. SUMMARY_audio="${SUMMARY_audio} haiku"
  20933. have_audio=yes
  20934. fi
  20935. # Set up files for the joystick library
  20936. if test x$enable_joystick = xyes; then
  20937. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20938. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20939. have_joystick=yes
  20940. fi
  20941. # Set up files for the timer library
  20942. if test x$enable_timers = xyes; then
  20943. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20944. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20945. have_timers=yes
  20946. fi
  20947. # Set up files for the system power library
  20948. if test x$enable_power = xyes; then
  20949. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20950. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20951. have_power=yes
  20952. fi
  20953. # Set up files for the system filesystem library
  20954. if test x$enable_filesystem = xyes; then
  20955. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20956. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20957. have_filesystem=yes
  20958. fi
  20959. # The Haiku platform requires special setup.
  20960. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20962. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20963. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20964. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20966. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20967. if eval \${$as_ac_File+:} false; then :
  20968. $as_echo_n "(cached) " >&6
  20969. else
  20970. test "$cross_compiling" = yes &&
  20971. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20972. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20973. eval "$as_ac_File=yes"
  20974. else
  20975. eval "$as_ac_File=no"
  20976. fi
  20977. fi
  20978. eval ac_res=\$$as_ac_File
  20979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20980. $as_echo "$ac_res" >&6; }
  20981. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20983. else
  20984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20985. fi
  20986. ;;
  20987. arm*-apple-darwin*|*-ios-*)
  20988. ARCH=ios
  20989. CheckVisibilityHidden
  20990. CheckDeclarationAfterStatement
  20991. CheckDummyVideo
  20992. CheckDiskAudio
  20993. CheckDummyAudio
  20994. CheckDLOPEN
  20995. CheckMETAL
  20996. CheckVulkan
  20997. CheckPTHREAD
  20998. # Set up files for the audio library
  20999. if test x$enable_audio = xyes; then
  21000. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21001. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21002. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21003. have_audio=yes
  21004. fi
  21005. # Set up files for the joystick library
  21006. if test x$enable_joystick = xyes; then
  21007. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21008. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21009. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21010. have_joystick=yes
  21011. fi
  21012. # Set up files for the haptic library
  21013. #if test x$enable_haptic = xyes; then
  21014. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21015. # have_haptic=yes
  21016. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21017. #fi
  21018. # Set up files for the power library
  21019. if test x$enable_power = xyes; then
  21020. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21021. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21022. have_power=yes
  21023. fi
  21024. # Set up files for the filesystem library
  21025. if test x$enable_filesystem = xyes; then
  21026. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21027. have_filesystem=yes
  21028. fi
  21029. # Set up additional files for the file library
  21030. if test x$enable_file = xyes; then
  21031. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21032. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21033. fi
  21034. # Set up files for the timer library
  21035. if test x$enable_timers = xyes; then
  21036. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21037. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21038. have_timers=yes
  21039. fi
  21040. # Set up other core UNIX files
  21041. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21042. # The iOS platform requires special setup.
  21043. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21044. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21045. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21046. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21047. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21048. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21049. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21050. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21051. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21053. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21054. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21055. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21057. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21059. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21060. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21062. fi
  21063. ;;
  21064. *-*-darwin* )
  21065. # This could be either full "Mac OS X", or plain "Darwin" which is
  21066. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21067. # Next line is broken, and a few files below require Mac OS X (full)
  21068. ARCH=macosx
  21069. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21070. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21071. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21072. CheckVisibilityHidden
  21073. CheckDeclarationAfterStatement
  21074. CheckDummyVideo
  21075. CheckDiskAudio
  21076. CheckDummyAudio
  21077. CheckDLOPEN
  21078. CheckCOCOA
  21079. CheckMETAL
  21080. CheckX11
  21081. CheckMacGL
  21082. CheckMacGLES
  21083. CheckOpenGLX11
  21084. CheckVulkan
  21085. CheckPTHREAD
  21086. # Set up files for the audio library
  21087. if test x$enable_audio = xyes; then
  21088. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21089. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21090. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21091. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21092. have_audio=yes
  21093. fi
  21094. # Set up files for the joystick library
  21095. if test x$enable_joystick = xyes; then
  21096. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21097. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21098. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21099. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21100. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  21101. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21102. have_joystick=yes
  21103. fi
  21104. # Set up files for the haptic library
  21105. if test x$enable_haptic = xyes; then
  21106. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21107. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21108. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21109. have_haptic=yes
  21110. fi
  21111. # Set up files for the power library
  21112. if test x$enable_power = xyes; then
  21113. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21114. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21115. have_power=yes
  21116. fi
  21117. # Set up files for the filesystem library
  21118. if test x$enable_filesystem = xyes; then
  21119. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21120. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21121. have_filesystem=yes
  21122. fi
  21123. # Set up files for the timer library
  21124. if test x$enable_timers = xyes; then
  21125. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21126. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21127. have_timers=yes
  21128. fi
  21129. # Set up additional files for the file library
  21130. if test x$enable_file = xyes; then
  21131. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21132. fi
  21133. # Set up other core UNIX files
  21134. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21135. # The Mac OS X platform requires special setup.
  21136. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21141. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21143. fi
  21144. ;;
  21145. *-nacl|*-pnacl)
  21146. ARCH=nacl
  21147. CheckNativeClient
  21148. CheckDummyAudio
  21149. CheckDummyVideo
  21150. CheckInputEvents
  21151. CheckPTHREAD
  21152. # Set up files for the timer library
  21153. if test x$enable_timers = xyes; then
  21154. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21155. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21156. have_timers=yes
  21157. fi
  21158. if test x$enable_filesystem = xyes; then
  21159. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21160. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21161. have_filesystem=yes
  21162. fi
  21163. ;;
  21164. *-*-emscripten* )
  21165. if test x$enable_video = xyes; then
  21166. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21167. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21168. have_video=yes
  21169. SUMMARY_video="${SUMMARY_video} emscripten"
  21170. fi
  21171. if test x$enable_audio = xyes; then
  21172. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21173. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21174. have_audio=yes
  21175. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21176. fi
  21177. CheckVisibilityHidden
  21178. CheckDeclarationAfterStatement
  21179. CheckDummyVideo
  21180. CheckDiskAudio
  21181. CheckDummyAudio
  21182. CheckDLOPEN
  21183. CheckClockGettime
  21184. CheckEmscriptenGLES
  21185. # Set up files for the power library
  21186. if test x$enable_power = xyes; then
  21187. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21188. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21189. have_power=yes
  21190. fi
  21191. # Set up files for the power library
  21192. if test x$enable_joystick = xyes; then
  21193. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21194. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21195. have_joystick=yes
  21196. fi
  21197. # Set up files for the filesystem library
  21198. if test x$enable_filesystem = xyes; then
  21199. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21200. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21201. have_filesystem=yes
  21202. fi
  21203. # Set up files for the timer library
  21204. if test x$enable_timers = xyes; then
  21205. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21206. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21207. have_timers=yes
  21208. fi
  21209. ;;
  21210. *)
  21211. as_fn_error $? "
  21212. *** Unsupported host: Please add to configure.in
  21213. " "$LINENO" 5
  21214. ;;
  21215. esac
  21216. # Verify that we have all the platform specific files we need
  21217. if test x$have_joystick != xyes; then
  21218. if test x$enable_joystick = xyes; then
  21219. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21220. fi
  21221. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21222. fi
  21223. if test x$have_haptic != xyes; then
  21224. if test x$enable_haptic = xyes; then
  21225. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21226. fi
  21227. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21228. fi
  21229. if test x$have_sensor != xyes; then
  21230. if test x$enable_sensor = xyes; then
  21231. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21232. fi
  21233. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21234. fi
  21235. if test x$have_threads != xyes; then
  21236. if test x$enable_threads = xyes; then
  21237. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21238. fi
  21239. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21240. fi
  21241. if test x$have_timers != xyes; then
  21242. if test x$enable_timers = xyes; then
  21243. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21244. fi
  21245. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21246. fi
  21247. if test x$have_filesystem != xyes; then
  21248. if test x$enable_filesystem = xyes; then
  21249. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21250. fi
  21251. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21252. fi
  21253. if test x$have_loadso != xyes; then
  21254. if test x$enable_loadso = xyes; then
  21255. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21256. fi
  21257. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21258. fi
  21259. if test x$SDLMAIN_SOURCES = x; then
  21260. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21261. fi
  21262. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21263. if test x$video_wayland = xyes; then
  21264. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21265. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21266. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21267. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21268. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21269. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21270. echo ;\
  21271. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21272. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21273. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21274. echo ;\
  21275. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21276. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21277. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21278. echo ;\
  21279. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21280. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21281. done ;\
  21282. echo ;\
  21283. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21284. fi
  21285. OBJECTS=`echo $SOURCES`
  21286. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21287. for EXT in asm cc m c S; do
  21288. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21289. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21290. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  21291. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21292. done
  21293. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21294. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21295. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21296. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21297. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21298. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21299. \\$(WINDRES) \\$< \\$@,g"`
  21300. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21301. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21302. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21303. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21304. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21305. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21306. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21307. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21308. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21309. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21310. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21311. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21312. # Set runtime shared library paths as needed
  21313. if test "x$enable_rpath" = "xyes"; then
  21314. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21315. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21317. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21318. have_enable_new_dtags=no
  21319. save_LDFLAGS="$LDFLAGS"
  21320. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21322. /* end confdefs.h. */
  21323. int
  21324. main ()
  21325. {
  21326. ;
  21327. return 0;
  21328. }
  21329. _ACEOF
  21330. if ac_fn_c_try_link "$LINENO"; then :
  21331. have_enable_new_dtags=yes
  21332. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21333. fi
  21334. rm -f core conftest.err conftest.$ac_objext \
  21335. conftest$ac_exeext conftest.$ac_ext
  21336. LDFLAGS="$save_LDFLAGS"
  21337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21338. $as_echo "$have_enable_new_dtags" >&6; }
  21339. fi
  21340. if test $ARCH = solaris; then
  21341. SDL_RLD_FLAGS="-R\${libdir}"
  21342. fi
  21343. else
  21344. SDL_RLD_FLAGS=""
  21345. fi
  21346. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21347. if test x$enable_shared = xyes; then
  21348. ENABLE_SHARED_TRUE=
  21349. ENABLE_SHARED_FALSE="#"
  21350. else
  21351. ENABLE_SHARED_TRUE="#"
  21352. ENABLE_SHARED_FALSE=
  21353. fi
  21354. if test x$enable_static = xyes; then
  21355. ENABLE_STATIC_TRUE=
  21356. ENABLE_STATIC_FALSE="#"
  21357. else
  21358. ENABLE_STATIC_TRUE="#"
  21359. ENABLE_STATIC_FALSE=
  21360. fi
  21361. cat >Makefile.rules <<__EOF__
  21362. # Build rules for objects
  21363. -include \$(OBJECTS:.lo=.d)
  21364. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21365. $srcdir/src/SDL.c: update-revision
  21366. $DEPENDS
  21367. $VERSION_DEPENDS
  21368. $SDLMAIN_DEPENDS
  21369. $SDLTEST_DEPENDS
  21370. $WAYLAND_PROTOCOLS_DEPENDS
  21371. __EOF__
  21372. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21373. ac_config_commands="$ac_config_commands sdl2_config"
  21374. SUMMARY="SDL2 Configure Summary:\n"
  21375. if test x$enable_shared = xyes; then
  21376. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21377. fi
  21378. if test x$enable_static = xyes; then
  21379. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21380. fi
  21381. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21382. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21383. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21384. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21385. if test x$have_x = xyes; then
  21386. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21387. fi
  21388. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21389. if test x$have_samplerate_h_hdr = xyes; then
  21390. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21391. else
  21392. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21393. fi
  21394. if test x$have_libudev_h_hdr = xyes; then
  21395. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21396. else
  21397. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21398. fi
  21399. if test x$have_dbus_dbus_h_hdr = xyes; then
  21400. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21401. else
  21402. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21403. fi
  21404. if test x$enable_ime = xyes; then
  21405. SUMMARY="${SUMMARY}Using ime : YES\n"
  21406. else
  21407. SUMMARY="${SUMMARY}Using ime : NO\n"
  21408. fi
  21409. if test x$have_ibus_ibus_h_hdr = xyes; then
  21410. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21411. else
  21412. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21413. fi
  21414. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21415. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21416. else
  21417. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21418. fi
  21419. ac_config_commands="$ac_config_commands summary"
  21420. cat >confcache <<\_ACEOF
  21421. # This file is a shell script that caches the results of configure
  21422. # tests run on this system so they can be shared between configure
  21423. # scripts and configure runs, see configure's option --config-cache.
  21424. # It is not useful on other systems. If it contains results you don't
  21425. # want to keep, you may remove or edit it.
  21426. #
  21427. # config.status only pays attention to the cache file if you give it
  21428. # the --recheck option to rerun configure.
  21429. #
  21430. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21431. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21432. # following values.
  21433. _ACEOF
  21434. # The following way of writing the cache mishandles newlines in values,
  21435. # but we know of no workaround that is simple, portable, and efficient.
  21436. # So, we kill variables containing newlines.
  21437. # Ultrix sh set writes to stderr and can't be redirected directly,
  21438. # and sets the high bit in the cache file unless we assign to the vars.
  21439. (
  21440. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21441. eval ac_val=\$$ac_var
  21442. case $ac_val in #(
  21443. *${as_nl}*)
  21444. case $ac_var in #(
  21445. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21446. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21447. esac
  21448. case $ac_var in #(
  21449. _ | IFS | as_nl) ;; #(
  21450. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21451. *) { eval $ac_var=; unset $ac_var;} ;;
  21452. esac ;;
  21453. esac
  21454. done
  21455. (set) 2>&1 |
  21456. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21457. *${as_nl}ac_space=\ *)
  21458. # `set' does not quote correctly, so add quotes: double-quote
  21459. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21460. sed -n \
  21461. "s/'/'\\\\''/g;
  21462. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21463. ;; #(
  21464. *)
  21465. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21466. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21467. ;;
  21468. esac |
  21469. sort
  21470. ) |
  21471. sed '
  21472. /^ac_cv_env_/b end
  21473. t clear
  21474. :clear
  21475. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21476. t end
  21477. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21478. :end' >>confcache
  21479. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21480. if test -w "$cache_file"; then
  21481. if test "x$cache_file" != "x/dev/null"; then
  21482. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21483. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21484. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21485. cat confcache >"$cache_file"
  21486. else
  21487. case $cache_file in #(
  21488. */* | ?:*)
  21489. mv -f confcache "$cache_file"$$ &&
  21490. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21491. *)
  21492. mv -f confcache "$cache_file" ;;
  21493. esac
  21494. fi
  21495. fi
  21496. else
  21497. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21498. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21499. fi
  21500. fi
  21501. rm -f confcache
  21502. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21503. # Let make expand exec_prefix.
  21504. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21505. DEFS=-DHAVE_CONFIG_H
  21506. ac_libobjs=
  21507. ac_ltlibobjs=
  21508. U=
  21509. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21510. # 1. Remove the extension, and $U if already installed.
  21511. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21512. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21513. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21514. # will be set to the directory where LIBOBJS objects are built.
  21515. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21516. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21517. done
  21518. LIBOBJS=$ac_libobjs
  21519. LTLIBOBJS=$ac_ltlibobjs
  21520. : "${CONFIG_STATUS=./config.status}"
  21521. ac_write_fail=0
  21522. ac_clean_files_save=$ac_clean_files
  21523. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21524. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21525. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21526. as_write_fail=0
  21527. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21528. #! $SHELL
  21529. # Generated by $as_me.
  21530. # Run this file to recreate the current configuration.
  21531. # Compiler output produced by configure, useful for debugging
  21532. # configure, is in config.log if it exists.
  21533. debug=false
  21534. ac_cs_recheck=false
  21535. ac_cs_silent=false
  21536. SHELL=\${CONFIG_SHELL-$SHELL}
  21537. export SHELL
  21538. _ASEOF
  21539. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21540. ## -------------------- ##
  21541. ## M4sh Initialization. ##
  21542. ## -------------------- ##
  21543. # Be more Bourne compatible
  21544. DUALCASE=1; export DUALCASE # for MKS sh
  21545. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21546. emulate sh
  21547. NULLCMD=:
  21548. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21549. # is contrary to our usage. Disable this feature.
  21550. alias -g '${1+"$@"}'='"$@"'
  21551. setopt NO_GLOB_SUBST
  21552. else
  21553. case `(set -o) 2>/dev/null` in #(
  21554. *posix*) :
  21555. set -o posix ;; #(
  21556. *) :
  21557. ;;
  21558. esac
  21559. fi
  21560. as_nl='
  21561. '
  21562. export as_nl
  21563. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21564. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21565. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21566. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21567. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21568. # but without wasting forks for bash or zsh.
  21569. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21570. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21571. as_echo='print -r --'
  21572. as_echo_n='print -rn --'
  21573. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21574. as_echo='printf %s\n'
  21575. as_echo_n='printf %s'
  21576. else
  21577. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21578. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21579. as_echo_n='/usr/ucb/echo -n'
  21580. else
  21581. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21582. as_echo_n_body='eval
  21583. arg=$1;
  21584. case $arg in #(
  21585. *"$as_nl"*)
  21586. expr "X$arg" : "X\\(.*\\)$as_nl";
  21587. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21588. esac;
  21589. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21590. '
  21591. export as_echo_n_body
  21592. as_echo_n='sh -c $as_echo_n_body as_echo'
  21593. fi
  21594. export as_echo_body
  21595. as_echo='sh -c $as_echo_body as_echo'
  21596. fi
  21597. # The user is always right.
  21598. if test "${PATH_SEPARATOR+set}" != set; then
  21599. PATH_SEPARATOR=:
  21600. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21601. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21602. PATH_SEPARATOR=';'
  21603. }
  21604. fi
  21605. # IFS
  21606. # We need space, tab and new line, in precisely that order. Quoting is
  21607. # there to prevent editors from complaining about space-tab.
  21608. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21609. # splitting by setting IFS to empty value.)
  21610. IFS=" "" $as_nl"
  21611. # Find who we are. Look in the path if we contain no directory separator.
  21612. as_myself=
  21613. case $0 in #((
  21614. *[\\/]* ) as_myself=$0 ;;
  21615. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21616. for as_dir in $PATH
  21617. do
  21618. IFS=$as_save_IFS
  21619. test -z "$as_dir" && as_dir=.
  21620. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21621. done
  21622. IFS=$as_save_IFS
  21623. ;;
  21624. esac
  21625. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21626. # in which case we are not to be found in the path.
  21627. if test "x$as_myself" = x; then
  21628. as_myself=$0
  21629. fi
  21630. if test ! -f "$as_myself"; then
  21631. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21632. exit 1
  21633. fi
  21634. # Unset variables that we do not need and which cause bugs (e.g. in
  21635. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21636. # suppresses any "Segmentation fault" message there. '((' could
  21637. # trigger a bug in pdksh 5.2.14.
  21638. for as_var in BASH_ENV ENV MAIL MAILPATH
  21639. do eval test x\${$as_var+set} = xset \
  21640. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21641. done
  21642. PS1='$ '
  21643. PS2='> '
  21644. PS4='+ '
  21645. # NLS nuisances.
  21646. LC_ALL=C
  21647. export LC_ALL
  21648. LANGUAGE=C
  21649. export LANGUAGE
  21650. # CDPATH.
  21651. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21652. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21653. # ----------------------------------------
  21654. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21655. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21656. # script with STATUS, using 1 if that was 0.
  21657. as_fn_error ()
  21658. {
  21659. as_status=$1; test $as_status -eq 0 && as_status=1
  21660. if test "$4"; then
  21661. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21662. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21663. fi
  21664. $as_echo "$as_me: error: $2" >&2
  21665. as_fn_exit $as_status
  21666. } # as_fn_error
  21667. # as_fn_set_status STATUS
  21668. # -----------------------
  21669. # Set $? to STATUS, without forking.
  21670. as_fn_set_status ()
  21671. {
  21672. return $1
  21673. } # as_fn_set_status
  21674. # as_fn_exit STATUS
  21675. # -----------------
  21676. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21677. as_fn_exit ()
  21678. {
  21679. set +e
  21680. as_fn_set_status $1
  21681. exit $1
  21682. } # as_fn_exit
  21683. # as_fn_unset VAR
  21684. # ---------------
  21685. # Portably unset VAR.
  21686. as_fn_unset ()
  21687. {
  21688. { eval $1=; unset $1;}
  21689. }
  21690. as_unset=as_fn_unset
  21691. # as_fn_append VAR VALUE
  21692. # ----------------------
  21693. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21694. # advantage of any shell optimizations that allow amortized linear growth over
  21695. # repeated appends, instead of the typical quadratic growth present in naive
  21696. # implementations.
  21697. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21698. eval 'as_fn_append ()
  21699. {
  21700. eval $1+=\$2
  21701. }'
  21702. else
  21703. as_fn_append ()
  21704. {
  21705. eval $1=\$$1\$2
  21706. }
  21707. fi # as_fn_append
  21708. # as_fn_arith ARG...
  21709. # ------------------
  21710. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21711. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21712. # must be portable across $(()) and expr.
  21713. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21714. eval 'as_fn_arith ()
  21715. {
  21716. as_val=$(( $* ))
  21717. }'
  21718. else
  21719. as_fn_arith ()
  21720. {
  21721. as_val=`expr "$@" || test $? -eq 1`
  21722. }
  21723. fi # as_fn_arith
  21724. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21725. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21726. as_expr=expr
  21727. else
  21728. as_expr=false
  21729. fi
  21730. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21731. as_basename=basename
  21732. else
  21733. as_basename=false
  21734. fi
  21735. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21736. as_dirname=dirname
  21737. else
  21738. as_dirname=false
  21739. fi
  21740. as_me=`$as_basename -- "$0" ||
  21741. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21742. X"$0" : 'X\(//\)$' \| \
  21743. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21744. $as_echo X/"$0" |
  21745. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21746. s//\1/
  21747. q
  21748. }
  21749. /^X\/\(\/\/\)$/{
  21750. s//\1/
  21751. q
  21752. }
  21753. /^X\/\(\/\).*/{
  21754. s//\1/
  21755. q
  21756. }
  21757. s/.*/./; q'`
  21758. # Avoid depending upon Character Ranges.
  21759. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21760. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21761. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21762. as_cr_digits='0123456789'
  21763. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21764. ECHO_C= ECHO_N= ECHO_T=
  21765. case `echo -n x` in #(((((
  21766. -n*)
  21767. case `echo 'xy\c'` in
  21768. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21769. xy) ECHO_C='\c';;
  21770. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21771. ECHO_T=' ';;
  21772. esac;;
  21773. *)
  21774. ECHO_N='-n';;
  21775. esac
  21776. rm -f conf$$ conf$$.exe conf$$.file
  21777. if test -d conf$$.dir; then
  21778. rm -f conf$$.dir/conf$$.file
  21779. else
  21780. rm -f conf$$.dir
  21781. mkdir conf$$.dir 2>/dev/null
  21782. fi
  21783. if (echo >conf$$.file) 2>/dev/null; then
  21784. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21785. as_ln_s='ln -s'
  21786. # ... but there are two gotchas:
  21787. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21788. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21789. # In both cases, we have to default to `cp -pR'.
  21790. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21791. as_ln_s='cp -pR'
  21792. elif ln conf$$.file conf$$ 2>/dev/null; then
  21793. as_ln_s=ln
  21794. else
  21795. as_ln_s='cp -pR'
  21796. fi
  21797. else
  21798. as_ln_s='cp -pR'
  21799. fi
  21800. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21801. rmdir conf$$.dir 2>/dev/null
  21802. # as_fn_mkdir_p
  21803. # -------------
  21804. # Create "$as_dir" as a directory, including parents if necessary.
  21805. as_fn_mkdir_p ()
  21806. {
  21807. case $as_dir in #(
  21808. -*) as_dir=./$as_dir;;
  21809. esac
  21810. test -d "$as_dir" || eval $as_mkdir_p || {
  21811. as_dirs=
  21812. while :; do
  21813. case $as_dir in #(
  21814. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21815. *) as_qdir=$as_dir;;
  21816. esac
  21817. as_dirs="'$as_qdir' $as_dirs"
  21818. as_dir=`$as_dirname -- "$as_dir" ||
  21819. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21820. X"$as_dir" : 'X\(//\)[^/]' \| \
  21821. X"$as_dir" : 'X\(//\)$' \| \
  21822. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21823. $as_echo X"$as_dir" |
  21824. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21825. s//\1/
  21826. q
  21827. }
  21828. /^X\(\/\/\)[^/].*/{
  21829. s//\1/
  21830. q
  21831. }
  21832. /^X\(\/\/\)$/{
  21833. s//\1/
  21834. q
  21835. }
  21836. /^X\(\/\).*/{
  21837. s//\1/
  21838. q
  21839. }
  21840. s/.*/./; q'`
  21841. test -d "$as_dir" && break
  21842. done
  21843. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21844. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21845. } # as_fn_mkdir_p
  21846. if mkdir -p . 2>/dev/null; then
  21847. as_mkdir_p='mkdir -p "$as_dir"'
  21848. else
  21849. test -d ./-p && rmdir ./-p
  21850. as_mkdir_p=false
  21851. fi
  21852. # as_fn_executable_p FILE
  21853. # -----------------------
  21854. # Test if FILE is an executable regular file.
  21855. as_fn_executable_p ()
  21856. {
  21857. test -f "$1" && test -x "$1"
  21858. } # as_fn_executable_p
  21859. as_test_x='test -x'
  21860. as_executable_p=as_fn_executable_p
  21861. # Sed expression to map a string onto a valid CPP name.
  21862. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21863. # Sed expression to map a string onto a valid variable name.
  21864. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21865. exec 6>&1
  21866. ## ----------------------------------- ##
  21867. ## Main body of $CONFIG_STATUS script. ##
  21868. ## ----------------------------------- ##
  21869. _ASEOF
  21870. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21871. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21872. # Save the log message, to keep $0 and so on meaningful, and to
  21873. # report actual input values of CONFIG_FILES etc. instead of their
  21874. # values after options handling.
  21875. ac_log="
  21876. This file was extended by $as_me, which was
  21877. generated by GNU Autoconf 2.69. Invocation command line was
  21878. CONFIG_FILES = $CONFIG_FILES
  21879. CONFIG_HEADERS = $CONFIG_HEADERS
  21880. CONFIG_LINKS = $CONFIG_LINKS
  21881. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21882. $ $0 $@
  21883. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21884. "
  21885. _ACEOF
  21886. case $ac_config_files in *"
  21887. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21888. esac
  21889. case $ac_config_headers in *"
  21890. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21891. esac
  21892. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21893. # Files that config.status was made for.
  21894. config_files="$ac_config_files"
  21895. config_headers="$ac_config_headers"
  21896. config_commands="$ac_config_commands"
  21897. _ACEOF
  21898. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21899. ac_cs_usage="\
  21900. \`$as_me' instantiates files and other configuration actions
  21901. from templates according to the current configuration. Unless the files
  21902. and actions are specified as TAGs, all are instantiated by default.
  21903. Usage: $0 [OPTION]... [TAG]...
  21904. -h, --help print this help, then exit
  21905. -V, --version print version number and configuration settings, then exit
  21906. --config print configuration, then exit
  21907. -q, --quiet, --silent
  21908. do not print progress messages
  21909. -d, --debug don't remove temporary files
  21910. --recheck update $as_me by reconfiguring in the same conditions
  21911. --file=FILE[:TEMPLATE]
  21912. instantiate the configuration file FILE
  21913. --header=FILE[:TEMPLATE]
  21914. instantiate the configuration header FILE
  21915. Configuration files:
  21916. $config_files
  21917. Configuration headers:
  21918. $config_headers
  21919. Configuration commands:
  21920. $config_commands
  21921. Report bugs to the package provider."
  21922. _ACEOF
  21923. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21924. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21925. ac_cs_version="\\
  21926. config.status
  21927. configured by $0, generated by GNU Autoconf 2.69,
  21928. with options \\"\$ac_cs_config\\"
  21929. Copyright (C) 2012 Free Software Foundation, Inc.
  21930. This config.status script is free software; the Free Software Foundation
  21931. gives unlimited permission to copy, distribute and modify it."
  21932. ac_pwd='$ac_pwd'
  21933. srcdir='$srcdir'
  21934. INSTALL='$INSTALL'
  21935. AWK='$AWK'
  21936. test -n "\$AWK" || AWK=awk
  21937. _ACEOF
  21938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21939. # The default lists apply if the user does not specify any file.
  21940. ac_need_defaults=:
  21941. while test $# != 0
  21942. do
  21943. case $1 in
  21944. --*=?*)
  21945. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21946. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21947. ac_shift=:
  21948. ;;
  21949. --*=)
  21950. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21951. ac_optarg=
  21952. ac_shift=:
  21953. ;;
  21954. *)
  21955. ac_option=$1
  21956. ac_optarg=$2
  21957. ac_shift=shift
  21958. ;;
  21959. esac
  21960. case $ac_option in
  21961. # Handling of the options.
  21962. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21963. ac_cs_recheck=: ;;
  21964. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21965. $as_echo "$ac_cs_version"; exit ;;
  21966. --config | --confi | --conf | --con | --co | --c )
  21967. $as_echo "$ac_cs_config"; exit ;;
  21968. --debug | --debu | --deb | --de | --d | -d )
  21969. debug=: ;;
  21970. --file | --fil | --fi | --f )
  21971. $ac_shift
  21972. case $ac_optarg in
  21973. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21974. '') as_fn_error $? "missing file argument" ;;
  21975. esac
  21976. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21977. ac_need_defaults=false;;
  21978. --header | --heade | --head | --hea )
  21979. $ac_shift
  21980. case $ac_optarg in
  21981. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21982. esac
  21983. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21984. ac_need_defaults=false;;
  21985. --he | --h)
  21986. # Conflict between --help and --header
  21987. as_fn_error $? "ambiguous option: \`$1'
  21988. Try \`$0 --help' for more information.";;
  21989. --help | --hel | -h )
  21990. $as_echo "$ac_cs_usage"; exit ;;
  21991. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21992. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21993. ac_cs_silent=: ;;
  21994. # This is an error.
  21995. -*) as_fn_error $? "unrecognized option: \`$1'
  21996. Try \`$0 --help' for more information." ;;
  21997. *) as_fn_append ac_config_targets " $1"
  21998. ac_need_defaults=false ;;
  21999. esac
  22000. shift
  22001. done
  22002. ac_configure_extra_args=
  22003. if $ac_cs_silent; then
  22004. exec 6>/dev/null
  22005. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22006. fi
  22007. _ACEOF
  22008. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22009. if \$ac_cs_recheck; then
  22010. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22011. shift
  22012. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22013. CONFIG_SHELL='$SHELL'
  22014. export CONFIG_SHELL
  22015. exec "\$@"
  22016. fi
  22017. _ACEOF
  22018. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22019. exec 5>>config.log
  22020. {
  22021. echo
  22022. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22023. ## Running $as_me. ##
  22024. _ASBOX
  22025. $as_echo "$ac_log"
  22026. } >&5
  22027. _ACEOF
  22028. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22029. #
  22030. # INIT-COMMANDS
  22031. #
  22032. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22033. # if CDPATH is set.
  22034. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22035. sed_quote_subst='$sed_quote_subst'
  22036. double_quote_subst='$double_quote_subst'
  22037. delay_variable_subst='$delay_variable_subst'
  22038. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22039. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22040. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22041. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22042. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22043. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22044. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22045. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22046. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22047. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22048. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22049. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22050. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22051. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22052. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22053. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22054. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22055. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22056. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22057. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22058. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22059. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22060. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22061. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22062. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22063. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22064. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22065. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22066. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22067. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22068. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22069. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22070. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22071. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22072. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22073. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22074. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22075. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22076. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22077. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22078. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22079. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22080. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22081. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22082. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22083. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22084. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22085. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22086. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22087. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22088. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22089. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22090. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22091. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22092. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22093. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22094. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22095. 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"`'
  22096. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22097. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22098. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22099. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22100. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22101. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22102. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22103. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22104. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22105. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22106. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22107. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22108. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22109. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22110. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22111. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22112. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22113. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22114. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22115. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22116. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22117. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22118. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22119. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22120. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22121. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22122. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22123. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22124. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22125. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22126. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22127. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22128. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22129. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22130. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22131. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22132. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22133. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22134. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22135. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22136. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22137. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22138. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22139. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22140. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22141. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22142. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22143. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22144. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22145. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22146. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22147. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22148. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22149. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22150. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22151. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22152. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22153. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22154. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22155. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22156. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22157. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22158. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22159. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22160. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22161. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22162. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22163. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22164. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22165. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22166. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22167. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22168. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22169. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22170. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22171. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22172. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22173. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22174. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22175. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22176. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22177. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22178. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22179. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22180. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22181. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22182. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22183. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22184. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22185. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22186. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22187. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22188. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22189. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22190. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22191. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22192. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22193. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22194. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22195. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22196. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22197. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22198. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22199. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22200. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22201. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22202. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22203. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22204. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22205. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22206. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22207. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22208. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22209. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22210. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22211. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22212. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22213. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22214. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22215. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22216. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22217. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22218. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22219. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22220. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22221. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22222. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22223. LTCC='$LTCC'
  22224. LTCFLAGS='$LTCFLAGS'
  22225. compiler='$compiler_DEFAULT'
  22226. # A function that is used when there is no print builtin or printf.
  22227. func_fallback_echo ()
  22228. {
  22229. eval 'cat <<_LTECHO_EOF
  22230. \$1
  22231. _LTECHO_EOF'
  22232. }
  22233. # Quote evaled strings.
  22234. for var in AS \
  22235. DLLTOOL \
  22236. OBJDUMP \
  22237. SHELL \
  22238. ECHO \
  22239. PATH_SEPARATOR \
  22240. SED \
  22241. GREP \
  22242. EGREP \
  22243. FGREP \
  22244. LD \
  22245. NM \
  22246. LN_S \
  22247. lt_SP2NL \
  22248. lt_NL2SP \
  22249. reload_flag \
  22250. deplibs_check_method \
  22251. file_magic_cmd \
  22252. file_magic_glob \
  22253. want_nocaseglob \
  22254. sharedlib_from_linklib_cmd \
  22255. AR \
  22256. AR_FLAGS \
  22257. archiver_list_spec \
  22258. STRIP \
  22259. RANLIB \
  22260. CC \
  22261. CFLAGS \
  22262. compiler \
  22263. lt_cv_sys_global_symbol_pipe \
  22264. lt_cv_sys_global_symbol_to_cdecl \
  22265. lt_cv_sys_global_symbol_to_c_name_address \
  22266. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22267. nm_file_list_spec \
  22268. lt_prog_compiler_no_builtin_flag \
  22269. lt_prog_compiler_pic \
  22270. lt_prog_compiler_wl \
  22271. lt_prog_compiler_static \
  22272. lt_cv_prog_compiler_c_o \
  22273. need_locks \
  22274. MANIFEST_TOOL \
  22275. DSYMUTIL \
  22276. NMEDIT \
  22277. LIPO \
  22278. OTOOL \
  22279. OTOOL64 \
  22280. shrext_cmds \
  22281. export_dynamic_flag_spec \
  22282. whole_archive_flag_spec \
  22283. compiler_needs_object \
  22284. with_gnu_ld \
  22285. allow_undefined_flag \
  22286. no_undefined_flag \
  22287. hardcode_libdir_flag_spec \
  22288. hardcode_libdir_separator \
  22289. exclude_expsyms \
  22290. include_expsyms \
  22291. file_list_spec \
  22292. variables_saved_for_relink \
  22293. libname_spec \
  22294. library_names_spec \
  22295. soname_spec \
  22296. install_override_mode \
  22297. finish_eval \
  22298. old_striplib \
  22299. striplib \
  22300. compiler_lib_search_dirs \
  22301. predep_objects \
  22302. postdep_objects \
  22303. predeps \
  22304. postdeps \
  22305. compiler_lib_search_path \
  22306. LD_CXX \
  22307. reload_flag_CXX \
  22308. compiler_CXX \
  22309. lt_prog_compiler_no_builtin_flag_CXX \
  22310. lt_prog_compiler_pic_CXX \
  22311. lt_prog_compiler_wl_CXX \
  22312. lt_prog_compiler_static_CXX \
  22313. lt_cv_prog_compiler_c_o_CXX \
  22314. export_dynamic_flag_spec_CXX \
  22315. whole_archive_flag_spec_CXX \
  22316. compiler_needs_object_CXX \
  22317. with_gnu_ld_CXX \
  22318. allow_undefined_flag_CXX \
  22319. no_undefined_flag_CXX \
  22320. hardcode_libdir_flag_spec_CXX \
  22321. hardcode_libdir_separator_CXX \
  22322. exclude_expsyms_CXX \
  22323. include_expsyms_CXX \
  22324. file_list_spec_CXX \
  22325. compiler_lib_search_dirs_CXX \
  22326. predep_objects_CXX \
  22327. postdep_objects_CXX \
  22328. predeps_CXX \
  22329. postdeps_CXX \
  22330. compiler_lib_search_path_CXX; do
  22331. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22332. *[\\\\\\\`\\"\\\$]*)
  22333. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22334. ;;
  22335. *)
  22336. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22337. ;;
  22338. esac
  22339. done
  22340. # Double-quote double-evaled strings.
  22341. for var in reload_cmds \
  22342. old_postinstall_cmds \
  22343. old_postuninstall_cmds \
  22344. old_archive_cmds \
  22345. extract_expsyms_cmds \
  22346. old_archive_from_new_cmds \
  22347. old_archive_from_expsyms_cmds \
  22348. archive_cmds \
  22349. archive_expsym_cmds \
  22350. module_cmds \
  22351. module_expsym_cmds \
  22352. export_symbols_cmds \
  22353. prelink_cmds \
  22354. postlink_cmds \
  22355. postinstall_cmds \
  22356. postuninstall_cmds \
  22357. finish_cmds \
  22358. sys_lib_search_path_spec \
  22359. sys_lib_dlsearch_path_spec \
  22360. reload_cmds_CXX \
  22361. old_archive_cmds_CXX \
  22362. old_archive_from_new_cmds_CXX \
  22363. old_archive_from_expsyms_cmds_CXX \
  22364. archive_cmds_CXX \
  22365. archive_expsym_cmds_CXX \
  22366. module_cmds_CXX \
  22367. module_expsym_cmds_CXX \
  22368. export_symbols_cmds_CXX \
  22369. prelink_cmds_CXX \
  22370. postlink_cmds_CXX; do
  22371. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22372. *[\\\\\\\`\\"\\\$]*)
  22373. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22374. ;;
  22375. *)
  22376. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22377. ;;
  22378. esac
  22379. done
  22380. ac_aux_dir='$ac_aux_dir'
  22381. xsi_shell='$xsi_shell'
  22382. lt_shell_append='$lt_shell_append'
  22383. # See if we are running on zsh, and set the options which allow our
  22384. # commands through without removal of \ escapes INIT.
  22385. if test -n "\${ZSH_VERSION+set}" ; then
  22386. setopt NO_GLOB_SUBST
  22387. fi
  22388. PACKAGE='$PACKAGE'
  22389. VERSION='$VERSION'
  22390. TIMESTAMP='$TIMESTAMP'
  22391. RM='$RM'
  22392. ofile='$ofile'
  22393. SUMMARY="$SUMMARY"
  22394. _ACEOF
  22395. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22396. # Handling of arguments.
  22397. for ac_config_target in $ac_config_targets
  22398. do
  22399. case $ac_config_target in
  22400. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22401. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22402. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22403. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22404. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22405. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22406. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22407. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22408. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22409. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22410. esac
  22411. done
  22412. # If the user did not use the arguments to specify the items to instantiate,
  22413. # then the envvar interface is used. Set only those that are not.
  22414. # We use the long form for the default assignment because of an extremely
  22415. # bizarre bug on SunOS 4.1.3.
  22416. if $ac_need_defaults; then
  22417. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22418. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22419. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22420. fi
  22421. # Have a temporary directory for convenience. Make it in the build tree
  22422. # simply because there is no reason against having it here, and in addition,
  22423. # creating and moving files from /tmp can sometimes cause problems.
  22424. # Hook for its removal unless debugging.
  22425. # Note that there is a small window in which the directory will not be cleaned:
  22426. # after its creation but before its name has been assigned to `$tmp'.
  22427. $debug ||
  22428. {
  22429. tmp= ac_tmp=
  22430. trap 'exit_status=$?
  22431. : "${ac_tmp:=$tmp}"
  22432. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22433. ' 0
  22434. trap 'as_fn_exit 1' 1 2 13 15
  22435. }
  22436. # Create a (secure) tmp directory for tmp files.
  22437. {
  22438. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22439. test -d "$tmp"
  22440. } ||
  22441. {
  22442. tmp=./conf$$-$RANDOM
  22443. (umask 077 && mkdir "$tmp")
  22444. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22445. ac_tmp=$tmp
  22446. # Set up the scripts for CONFIG_FILES section.
  22447. # No need to generate them if there are no CONFIG_FILES.
  22448. # This happens for instance with `./config.status config.h'.
  22449. if test -n "$CONFIG_FILES"; then
  22450. ac_cr=`echo X | tr X '\015'`
  22451. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22452. # But we know of no other shell where ac_cr would be empty at this
  22453. # point, so we can use a bashism as a fallback.
  22454. if test "x$ac_cr" = x; then
  22455. eval ac_cr=\$\'\\r\'
  22456. fi
  22457. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22458. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22459. ac_cs_awk_cr='\\r'
  22460. else
  22461. ac_cs_awk_cr=$ac_cr
  22462. fi
  22463. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22464. _ACEOF
  22465. {
  22466. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22467. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22468. echo "_ACEOF"
  22469. } >conf$$subs.sh ||
  22470. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22471. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22472. ac_delim='%!_!# '
  22473. for ac_last_try in false false false false false :; do
  22474. . ./conf$$subs.sh ||
  22475. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22476. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22477. if test $ac_delim_n = $ac_delim_num; then
  22478. break
  22479. elif $ac_last_try; then
  22480. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22481. else
  22482. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22483. fi
  22484. done
  22485. rm -f conf$$subs.sh
  22486. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22487. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22488. _ACEOF
  22489. sed -n '
  22490. h
  22491. s/^/S["/; s/!.*/"]=/
  22492. p
  22493. g
  22494. s/^[^!]*!//
  22495. :repl
  22496. t repl
  22497. s/'"$ac_delim"'$//
  22498. t delim
  22499. :nl
  22500. h
  22501. s/\(.\{148\}\)..*/\1/
  22502. t more1
  22503. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22504. p
  22505. n
  22506. b repl
  22507. :more1
  22508. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22509. p
  22510. g
  22511. s/.\{148\}//
  22512. t nl
  22513. :delim
  22514. h
  22515. s/\(.\{148\}\)..*/\1/
  22516. t more2
  22517. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22518. p
  22519. b
  22520. :more2
  22521. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22522. p
  22523. g
  22524. s/.\{148\}//
  22525. t delim
  22526. ' <conf$$subs.awk | sed '
  22527. /^[^""]/{
  22528. N
  22529. s/\n//
  22530. }
  22531. ' >>$CONFIG_STATUS || ac_write_fail=1
  22532. rm -f conf$$subs.awk
  22533. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22534. _ACAWK
  22535. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22536. for (key in S) S_is_set[key] = 1
  22537. FS = ""
  22538. }
  22539. {
  22540. line = $ 0
  22541. nfields = split(line, field, "@")
  22542. substed = 0
  22543. len = length(field[1])
  22544. for (i = 2; i < nfields; i++) {
  22545. key = field[i]
  22546. keylen = length(key)
  22547. if (S_is_set[key]) {
  22548. value = S[key]
  22549. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22550. len += length(value) + length(field[++i])
  22551. substed = 1
  22552. } else
  22553. len += 1 + keylen
  22554. }
  22555. print line
  22556. }
  22557. _ACAWK
  22558. _ACEOF
  22559. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22560. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22561. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22562. else
  22563. cat
  22564. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22565. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22566. _ACEOF
  22567. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22568. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22569. # trailing colons and then remove the whole line if VPATH becomes empty
  22570. # (actually we leave an empty line to preserve line numbers).
  22571. if test "x$srcdir" = x.; then
  22572. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22573. h
  22574. s///
  22575. s/^/:/
  22576. s/[ ]*$/:/
  22577. s/:\$(srcdir):/:/g
  22578. s/:\${srcdir}:/:/g
  22579. s/:@srcdir@:/:/g
  22580. s/^:*//
  22581. s/:*$//
  22582. x
  22583. s/\(=[ ]*\).*/\1/
  22584. G
  22585. s/\n//
  22586. s/^[^=]*=[ ]*$//
  22587. }'
  22588. fi
  22589. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22590. fi # test -n "$CONFIG_FILES"
  22591. # Set up the scripts for CONFIG_HEADERS section.
  22592. # No need to generate them if there are no CONFIG_HEADERS.
  22593. # This happens for instance with `./config.status Makefile'.
  22594. if test -n "$CONFIG_HEADERS"; then
  22595. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22596. BEGIN {
  22597. _ACEOF
  22598. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22599. # here-document in config.status, that substitutes the proper values into
  22600. # config.h.in to produce config.h.
  22601. # Create a delimiter string that does not exist in confdefs.h, to ease
  22602. # handling of long lines.
  22603. ac_delim='%!_!# '
  22604. for ac_last_try in false false :; do
  22605. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22606. if test -z "$ac_tt"; then
  22607. break
  22608. elif $ac_last_try; then
  22609. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22610. else
  22611. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22612. fi
  22613. done
  22614. # For the awk script, D is an array of macro values keyed by name,
  22615. # likewise P contains macro parameters if any. Preserve backslash
  22616. # newline sequences.
  22617. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22618. sed -n '
  22619. s/.\{148\}/&'"$ac_delim"'/g
  22620. t rset
  22621. :rset
  22622. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22623. t def
  22624. d
  22625. :def
  22626. s/\\$//
  22627. t bsnl
  22628. s/["\\]/\\&/g
  22629. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22630. D["\1"]=" \3"/p
  22631. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22632. d
  22633. :bsnl
  22634. s/["\\]/\\&/g
  22635. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22636. D["\1"]=" \3\\\\\\n"\\/p
  22637. t cont
  22638. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22639. t cont
  22640. d
  22641. :cont
  22642. n
  22643. s/.\{148\}/&'"$ac_delim"'/g
  22644. t clear
  22645. :clear
  22646. s/\\$//
  22647. t bsnlc
  22648. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22649. d
  22650. :bsnlc
  22651. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22652. b cont
  22653. ' <confdefs.h | sed '
  22654. s/'"$ac_delim"'/"\\\
  22655. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22656. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22657. for (key in D) D_is_set[key] = 1
  22658. FS = ""
  22659. }
  22660. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22661. line = \$ 0
  22662. split(line, arg, " ")
  22663. if (arg[1] == "#") {
  22664. defundef = arg[2]
  22665. mac1 = arg[3]
  22666. } else {
  22667. defundef = substr(arg[1], 2)
  22668. mac1 = arg[2]
  22669. }
  22670. split(mac1, mac2, "(") #)
  22671. macro = mac2[1]
  22672. prefix = substr(line, 1, index(line, defundef) - 1)
  22673. if (D_is_set[macro]) {
  22674. # Preserve the white space surrounding the "#".
  22675. print prefix "define", macro P[macro] D[macro]
  22676. next
  22677. } else {
  22678. # Replace #undef with comments. This is necessary, for example,
  22679. # in the case of _POSIX_SOURCE, which is predefined and required
  22680. # on some systems where configure will not decide to define it.
  22681. if (defundef == "undef") {
  22682. print "/*", prefix defundef, macro, "*/"
  22683. next
  22684. }
  22685. }
  22686. }
  22687. { print }
  22688. _ACAWK
  22689. _ACEOF
  22690. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22691. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22692. fi # test -n "$CONFIG_HEADERS"
  22693. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22694. shift
  22695. for ac_tag
  22696. do
  22697. case $ac_tag in
  22698. :[FHLC]) ac_mode=$ac_tag; continue;;
  22699. esac
  22700. case $ac_mode$ac_tag in
  22701. :[FHL]*:*);;
  22702. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22703. :[FH]-) ac_tag=-:-;;
  22704. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22705. esac
  22706. ac_save_IFS=$IFS
  22707. IFS=:
  22708. set x $ac_tag
  22709. IFS=$ac_save_IFS
  22710. shift
  22711. ac_file=$1
  22712. shift
  22713. case $ac_mode in
  22714. :L) ac_source=$1;;
  22715. :[FH])
  22716. ac_file_inputs=
  22717. for ac_f
  22718. do
  22719. case $ac_f in
  22720. -) ac_f="$ac_tmp/stdin";;
  22721. *) # Look for the file first in the build tree, then in the source tree
  22722. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22723. # because $ac_f cannot contain `:'.
  22724. test -f "$ac_f" ||
  22725. case $ac_f in
  22726. [\\/$]*) false;;
  22727. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22728. esac ||
  22729. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22730. esac
  22731. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22732. as_fn_append ac_file_inputs " '$ac_f'"
  22733. done
  22734. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22735. # use $as_me), people would be surprised to read:
  22736. # /* config.h. Generated by config.status. */
  22737. configure_input='Generated from '`
  22738. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22739. `' by configure.'
  22740. if test x"$ac_file" != x-; then
  22741. configure_input="$ac_file. $configure_input"
  22742. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22743. $as_echo "$as_me: creating $ac_file" >&6;}
  22744. fi
  22745. # Neutralize special characters interpreted by sed in replacement strings.
  22746. case $configure_input in #(
  22747. *\&* | *\|* | *\\* )
  22748. ac_sed_conf_input=`$as_echo "$configure_input" |
  22749. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22750. *) ac_sed_conf_input=$configure_input;;
  22751. esac
  22752. case $ac_tag in
  22753. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22754. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22755. esac
  22756. ;;
  22757. esac
  22758. ac_dir=`$as_dirname -- "$ac_file" ||
  22759. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22760. X"$ac_file" : 'X\(//\)[^/]' \| \
  22761. X"$ac_file" : 'X\(//\)$' \| \
  22762. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22763. $as_echo X"$ac_file" |
  22764. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22765. s//\1/
  22766. q
  22767. }
  22768. /^X\(\/\/\)[^/].*/{
  22769. s//\1/
  22770. q
  22771. }
  22772. /^X\(\/\/\)$/{
  22773. s//\1/
  22774. q
  22775. }
  22776. /^X\(\/\).*/{
  22777. s//\1/
  22778. q
  22779. }
  22780. s/.*/./; q'`
  22781. as_dir="$ac_dir"; as_fn_mkdir_p
  22782. ac_builddir=.
  22783. case "$ac_dir" in
  22784. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22785. *)
  22786. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22787. # A ".." for each directory in $ac_dir_suffix.
  22788. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22789. case $ac_top_builddir_sub in
  22790. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22791. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22792. esac ;;
  22793. esac
  22794. ac_abs_top_builddir=$ac_pwd
  22795. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22796. # for backward compatibility:
  22797. ac_top_builddir=$ac_top_build_prefix
  22798. case $srcdir in
  22799. .) # We are building in place.
  22800. ac_srcdir=.
  22801. ac_top_srcdir=$ac_top_builddir_sub
  22802. ac_abs_top_srcdir=$ac_pwd ;;
  22803. [\\/]* | ?:[\\/]* ) # Absolute name.
  22804. ac_srcdir=$srcdir$ac_dir_suffix;
  22805. ac_top_srcdir=$srcdir
  22806. ac_abs_top_srcdir=$srcdir ;;
  22807. *) # Relative name.
  22808. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22809. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22810. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22811. esac
  22812. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22813. case $ac_mode in
  22814. :F)
  22815. #
  22816. # CONFIG_FILE
  22817. #
  22818. case $INSTALL in
  22819. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22820. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22821. esac
  22822. _ACEOF
  22823. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22824. # If the template does not know about datarootdir, expand it.
  22825. # FIXME: This hack should be removed a few years after 2.60.
  22826. ac_datarootdir_hack=; ac_datarootdir_seen=
  22827. ac_sed_dataroot='
  22828. /datarootdir/ {
  22829. p
  22830. q
  22831. }
  22832. /@datadir@/p
  22833. /@docdir@/p
  22834. /@infodir@/p
  22835. /@localedir@/p
  22836. /@mandir@/p'
  22837. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22838. *datarootdir*) ac_datarootdir_seen=yes;;
  22839. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22841. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22842. _ACEOF
  22843. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22844. ac_datarootdir_hack='
  22845. s&@datadir@&$datadir&g
  22846. s&@docdir@&$docdir&g
  22847. s&@infodir@&$infodir&g
  22848. s&@localedir@&$localedir&g
  22849. s&@mandir@&$mandir&g
  22850. s&\\\${datarootdir}&$datarootdir&g' ;;
  22851. esac
  22852. _ACEOF
  22853. # Neutralize VPATH when `$srcdir' = `.'.
  22854. # Shell code in configure.ac might set extrasub.
  22855. # FIXME: do we really want to maintain this feature?
  22856. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22857. ac_sed_extra="$ac_vpsub
  22858. $extrasub
  22859. _ACEOF
  22860. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22861. :t
  22862. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22863. s|@configure_input@|$ac_sed_conf_input|;t t
  22864. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22865. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22866. s&@srcdir@&$ac_srcdir&;t t
  22867. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22868. s&@top_srcdir@&$ac_top_srcdir&;t t
  22869. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22870. s&@builddir@&$ac_builddir&;t t
  22871. s&@abs_builddir@&$ac_abs_builddir&;t t
  22872. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22873. s&@INSTALL@&$ac_INSTALL&;t t
  22874. $ac_datarootdir_hack
  22875. "
  22876. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22877. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22878. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22879. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22880. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22881. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22883. which seems to be undefined. Please make sure it is defined" >&5
  22884. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22885. which seems to be undefined. Please make sure it is defined" >&2;}
  22886. rm -f "$ac_tmp/stdin"
  22887. case $ac_file in
  22888. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22889. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22890. esac \
  22891. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22892. ;;
  22893. :H)
  22894. #
  22895. # CONFIG_HEADER
  22896. #
  22897. if test x"$ac_file" != x-; then
  22898. {
  22899. $as_echo "/* $configure_input */" \
  22900. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22901. } >"$ac_tmp/config.h" \
  22902. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22903. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22904. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22905. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22906. else
  22907. rm -f "$ac_file"
  22908. mv "$ac_tmp/config.h" "$ac_file" \
  22909. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22910. fi
  22911. else
  22912. $as_echo "/* $configure_input */" \
  22913. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22914. || as_fn_error $? "could not create -" "$LINENO" 5
  22915. fi
  22916. ;;
  22917. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22918. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22919. ;;
  22920. esac
  22921. case $ac_file$ac_mode in
  22922. "libtool":C)
  22923. # See if we are running on zsh, and set the options which allow our
  22924. # commands through without removal of \ escapes.
  22925. if test -n "${ZSH_VERSION+set}" ; then
  22926. setopt NO_GLOB_SUBST
  22927. fi
  22928. cfgfile="${ofile}T"
  22929. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22930. $RM "$cfgfile"
  22931. cat <<_LT_EOF >> "$cfgfile"
  22932. #! $SHELL
  22933. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22934. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22935. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22936. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22937. #
  22938. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22939. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22940. # Foundation, Inc.
  22941. # Written by Gordon Matzigkeit, 1996
  22942. #
  22943. # This file is part of GNU Libtool.
  22944. #
  22945. # GNU Libtool is free software; you can redistribute it and/or
  22946. # modify it under the terms of the GNU General Public License as
  22947. # published by the Free Software Foundation; either version 2 of
  22948. # the License, or (at your option) any later version.
  22949. #
  22950. # As a special exception to the GNU General Public License,
  22951. # if you distribute this file as part of a program or library that
  22952. # is built using GNU Libtool, you may include this file under the
  22953. # same distribution terms that you use for the rest of that program.
  22954. #
  22955. # GNU Libtool is distributed in the hope that it will be useful,
  22956. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22957. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22958. # GNU General Public License for more details.
  22959. #
  22960. # You should have received a copy of the GNU General Public License
  22961. # along with GNU Libtool; see the file COPYING. If not, a copy
  22962. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22963. # obtained by writing to the Free Software Foundation, Inc.,
  22964. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22965. # The names of the tagged configurations supported by this script.
  22966. available_tags="CXX "
  22967. # ### BEGIN LIBTOOL CONFIG
  22968. # Which release of libtool.m4 was used?
  22969. macro_version=$macro_version
  22970. macro_revision=$macro_revision
  22971. # Assembler program.
  22972. AS=$lt_AS
  22973. # DLL creation program.
  22974. DLLTOOL=$lt_DLLTOOL
  22975. # Object dumper program.
  22976. OBJDUMP=$lt_OBJDUMP
  22977. # Whether or not to build shared libraries.
  22978. build_libtool_libs=$enable_shared
  22979. # Whether or not to build static libraries.
  22980. build_old_libs=$enable_static
  22981. # What type of objects to build.
  22982. pic_mode=$pic_mode
  22983. # Whether or not to optimize for fast installation.
  22984. fast_install=$enable_fast_install
  22985. # Shell to use when invoking shell scripts.
  22986. SHELL=$lt_SHELL
  22987. # An echo program that protects backslashes.
  22988. ECHO=$lt_ECHO
  22989. # The PATH separator for the build system.
  22990. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22991. # The host system.
  22992. host_alias=$host_alias
  22993. host=$host
  22994. host_os=$host_os
  22995. # The build system.
  22996. build_alias=$build_alias
  22997. build=$build
  22998. build_os=$build_os
  22999. # A sed program that does not truncate output.
  23000. SED=$lt_SED
  23001. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23002. Xsed="\$SED -e 1s/^X//"
  23003. # A grep program that handles long lines.
  23004. GREP=$lt_GREP
  23005. # An ERE matcher.
  23006. EGREP=$lt_EGREP
  23007. # A literal string matcher.
  23008. FGREP=$lt_FGREP
  23009. # A BSD- or MS-compatible name lister.
  23010. NM=$lt_NM
  23011. # Whether we need soft or hard links.
  23012. LN_S=$lt_LN_S
  23013. # What is the maximum length of a command?
  23014. max_cmd_len=$max_cmd_len
  23015. # Object file suffix (normally "o").
  23016. objext=$ac_objext
  23017. # Executable file suffix (normally "").
  23018. exeext=$exeext
  23019. # whether the shell understands "unset".
  23020. lt_unset=$lt_unset
  23021. # turn spaces into newlines.
  23022. SP2NL=$lt_lt_SP2NL
  23023. # turn newlines into spaces.
  23024. NL2SP=$lt_lt_NL2SP
  23025. # convert \$build file names to \$host format.
  23026. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23027. # convert \$build files to toolchain format.
  23028. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23029. # Method to check whether dependent libraries are shared objects.
  23030. deplibs_check_method=$lt_deplibs_check_method
  23031. # Command to use when deplibs_check_method = "file_magic".
  23032. file_magic_cmd=$lt_file_magic_cmd
  23033. # How to find potential files when deplibs_check_method = "file_magic".
  23034. file_magic_glob=$lt_file_magic_glob
  23035. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23036. want_nocaseglob=$lt_want_nocaseglob
  23037. # Command to associate shared and link libraries.
  23038. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23039. # The archiver.
  23040. AR=$lt_AR
  23041. # Flags to create an archive.
  23042. AR_FLAGS=$lt_AR_FLAGS
  23043. # How to feed a file listing to the archiver.
  23044. archiver_list_spec=$lt_archiver_list_spec
  23045. # A symbol stripping program.
  23046. STRIP=$lt_STRIP
  23047. # Commands used to install an old-style archive.
  23048. RANLIB=$lt_RANLIB
  23049. old_postinstall_cmds=$lt_old_postinstall_cmds
  23050. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23051. # Whether to use a lock for old archive extraction.
  23052. lock_old_archive_extraction=$lock_old_archive_extraction
  23053. # A C compiler.
  23054. LTCC=$lt_CC
  23055. # LTCC compiler flags.
  23056. LTCFLAGS=$lt_CFLAGS
  23057. # Take the output of nm and produce a listing of raw symbols and C names.
  23058. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23059. # Transform the output of nm in a proper C declaration.
  23060. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23061. # Transform the output of nm in a C name address pair.
  23062. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23063. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23064. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23065. # Specify filename containing input files for \$NM.
  23066. nm_file_list_spec=$lt_nm_file_list_spec
  23067. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23068. lt_sysroot=$lt_sysroot
  23069. # The name of the directory that contains temporary libtool files.
  23070. objdir=$objdir
  23071. # Used to examine libraries when file_magic_cmd begins with "file".
  23072. MAGIC_CMD=$MAGIC_CMD
  23073. # Must we lock files when doing compilation?
  23074. need_locks=$lt_need_locks
  23075. # Manifest tool.
  23076. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23077. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23078. DSYMUTIL=$lt_DSYMUTIL
  23079. # Tool to change global to local symbols on Mac OS X.
  23080. NMEDIT=$lt_NMEDIT
  23081. # Tool to manipulate fat objects and archives on Mac OS X.
  23082. LIPO=$lt_LIPO
  23083. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23084. OTOOL=$lt_OTOOL
  23085. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23086. OTOOL64=$lt_OTOOL64
  23087. # Old archive suffix (normally "a").
  23088. libext=$libext
  23089. # Shared library suffix (normally ".so").
  23090. shrext_cmds=$lt_shrext_cmds
  23091. # The commands to extract the exported symbol list from a shared archive.
  23092. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23093. # Variables whose values should be saved in libtool wrapper scripts and
  23094. # restored at link time.
  23095. variables_saved_for_relink=$lt_variables_saved_for_relink
  23096. # Do we need the "lib" prefix for modules?
  23097. need_lib_prefix=$need_lib_prefix
  23098. # Do we need a version for libraries?
  23099. need_version=$need_version
  23100. # Library versioning type.
  23101. version_type=$version_type
  23102. # Shared library runtime path variable.
  23103. runpath_var=$runpath_var
  23104. # Shared library path variable.
  23105. shlibpath_var=$shlibpath_var
  23106. # Is shlibpath searched before the hard-coded library search path?
  23107. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23108. # Format of library name prefix.
  23109. libname_spec=$lt_libname_spec
  23110. # List of archive names. First name is the real one, the rest are links.
  23111. # The last name is the one that the linker finds with -lNAME
  23112. library_names_spec=$lt_library_names_spec
  23113. # The coded name of the library, if different from the real name.
  23114. soname_spec=$lt_soname_spec
  23115. # Permission mode override for installation of shared libraries.
  23116. install_override_mode=$lt_install_override_mode
  23117. # Command to use after installation of a shared archive.
  23118. postinstall_cmds=$lt_postinstall_cmds
  23119. # Command to use after uninstallation of a shared archive.
  23120. postuninstall_cmds=$lt_postuninstall_cmds
  23121. # Commands used to finish a libtool library installation in a directory.
  23122. finish_cmds=$lt_finish_cmds
  23123. # As "finish_cmds", except a single script fragment to be evaled but
  23124. # not shown.
  23125. finish_eval=$lt_finish_eval
  23126. # Whether we should hardcode library paths into libraries.
  23127. hardcode_into_libs=$hardcode_into_libs
  23128. # Compile-time system search path for libraries.
  23129. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23130. # Run-time system search path for libraries.
  23131. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23132. # Whether dlopen is supported.
  23133. dlopen_support=$enable_dlopen
  23134. # Whether dlopen of programs is supported.
  23135. dlopen_self=$enable_dlopen_self
  23136. # Whether dlopen of statically linked programs is supported.
  23137. dlopen_self_static=$enable_dlopen_self_static
  23138. # Commands to strip libraries.
  23139. old_striplib=$lt_old_striplib
  23140. striplib=$lt_striplib
  23141. # The linker used to build libraries.
  23142. LD=$lt_LD
  23143. # How to create reloadable object files.
  23144. reload_flag=$lt_reload_flag
  23145. reload_cmds=$lt_reload_cmds
  23146. # Commands used to build an old-style archive.
  23147. old_archive_cmds=$lt_old_archive_cmds
  23148. # A language specific compiler.
  23149. CC=$lt_compiler
  23150. # Is the compiler the GNU compiler?
  23151. with_gcc=$GCC
  23152. # Compiler flag to turn off builtin functions.
  23153. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23154. # Additional compiler flags for building library objects.
  23155. pic_flag=$lt_lt_prog_compiler_pic
  23156. # How to pass a linker flag through the compiler.
  23157. wl=$lt_lt_prog_compiler_wl
  23158. # Compiler flag to prevent dynamic linking.
  23159. link_static_flag=$lt_lt_prog_compiler_static
  23160. # Does compiler simultaneously support -c and -o options?
  23161. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23162. # Whether or not to add -lc for building shared libraries.
  23163. build_libtool_need_lc=$archive_cmds_need_lc
  23164. # Whether or not to disallow shared libs when runtime libs are static.
  23165. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23166. # Compiler flag to allow reflexive dlopens.
  23167. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23168. # Compiler flag to generate shared objects directly from archives.
  23169. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23170. # Whether the compiler copes with passing no objects directly.
  23171. compiler_needs_object=$lt_compiler_needs_object
  23172. # Create an old-style archive from a shared archive.
  23173. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23174. # Create a temporary old-style archive to link instead of a shared archive.
  23175. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23176. # Commands used to build a shared archive.
  23177. archive_cmds=$lt_archive_cmds
  23178. archive_expsym_cmds=$lt_archive_expsym_cmds
  23179. # Commands used to build a loadable module if different from building
  23180. # a shared archive.
  23181. module_cmds=$lt_module_cmds
  23182. module_expsym_cmds=$lt_module_expsym_cmds
  23183. # Whether we are building with GNU ld or not.
  23184. with_gnu_ld=$lt_with_gnu_ld
  23185. # Flag that allows shared libraries with undefined symbols to be built.
  23186. allow_undefined_flag=$lt_allow_undefined_flag
  23187. # Flag that enforces no undefined symbols.
  23188. no_undefined_flag=$lt_no_undefined_flag
  23189. # Flag to hardcode \$libdir into a binary during linking.
  23190. # This must work even if \$libdir does not exist
  23191. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23192. # Whether we need a single "-rpath" flag with a separated argument.
  23193. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23194. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23195. # DIR into the resulting binary.
  23196. hardcode_direct=$hardcode_direct
  23197. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23198. # DIR into the resulting binary and the resulting library dependency is
  23199. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23200. # library is relocated.
  23201. hardcode_direct_absolute=$hardcode_direct_absolute
  23202. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23203. # into the resulting binary.
  23204. hardcode_minus_L=$hardcode_minus_L
  23205. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23206. # into the resulting binary.
  23207. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23208. # Set to "yes" if building a shared library automatically hardcodes DIR
  23209. # into the library and all subsequent libraries and executables linked
  23210. # against it.
  23211. hardcode_automatic=$hardcode_automatic
  23212. # Set to yes if linker adds runtime paths of dependent libraries
  23213. # to runtime path list.
  23214. inherit_rpath=$inherit_rpath
  23215. # Whether libtool must link a program against all its dependency libraries.
  23216. link_all_deplibs=$link_all_deplibs
  23217. # Set to "yes" if exported symbols are required.
  23218. always_export_symbols=$always_export_symbols
  23219. # The commands to list exported symbols.
  23220. export_symbols_cmds=$lt_export_symbols_cmds
  23221. # Symbols that should not be listed in the preloaded symbols.
  23222. exclude_expsyms=$lt_exclude_expsyms
  23223. # Symbols that must always be exported.
  23224. include_expsyms=$lt_include_expsyms
  23225. # Commands necessary for linking programs (against libraries) with templates.
  23226. prelink_cmds=$lt_prelink_cmds
  23227. # Commands necessary for finishing linking programs.
  23228. postlink_cmds=$lt_postlink_cmds
  23229. # Specify filename containing input files.
  23230. file_list_spec=$lt_file_list_spec
  23231. # How to hardcode a shared library path into an executable.
  23232. hardcode_action=$hardcode_action
  23233. # The directories searched by this compiler when creating a shared library.
  23234. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23235. # Dependencies to place before and after the objects being linked to
  23236. # create a shared library.
  23237. predep_objects=$lt_predep_objects
  23238. postdep_objects=$lt_postdep_objects
  23239. predeps=$lt_predeps
  23240. postdeps=$lt_postdeps
  23241. # The library search path used internally by the compiler when linking
  23242. # a shared library.
  23243. compiler_lib_search_path=$lt_compiler_lib_search_path
  23244. # ### END LIBTOOL CONFIG
  23245. _LT_EOF
  23246. case $host_os in
  23247. aix3*)
  23248. cat <<\_LT_EOF >> "$cfgfile"
  23249. # AIX sometimes has problems with the GCC collect2 program. For some
  23250. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23251. # vanish in a puff of smoke.
  23252. if test "X${COLLECT_NAMES+set}" != Xset; then
  23253. COLLECT_NAMES=
  23254. export COLLECT_NAMES
  23255. fi
  23256. _LT_EOF
  23257. ;;
  23258. esac
  23259. ltmain="$ac_aux_dir/ltmain.sh"
  23260. # We use sed instead of cat because bash on DJGPP gets confused if
  23261. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23262. # text mode, it properly converts lines to CR/LF. This bash problem
  23263. # is reportedly fixed, but why not run on old versions too?
  23264. sed '$q' "$ltmain" >> "$cfgfile" \
  23265. || (rm -f "$cfgfile"; exit 1)
  23266. if test x"$xsi_shell" = xyes; then
  23267. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23268. func_dirname ()\
  23269. {\
  23270. \ case ${1} in\
  23271. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23272. \ * ) func_dirname_result="${3}" ;;\
  23273. \ esac\
  23274. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23275. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23276. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23277. test 0 -eq $? || _lt_function_replace_fail=:
  23278. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23279. func_basename ()\
  23280. {\
  23281. \ func_basename_result="${1##*/}"\
  23282. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23283. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23284. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23285. test 0 -eq $? || _lt_function_replace_fail=:
  23286. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23287. func_dirname_and_basename ()\
  23288. {\
  23289. \ case ${1} in\
  23290. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23291. \ * ) func_dirname_result="${3}" ;;\
  23292. \ esac\
  23293. \ func_basename_result="${1##*/}"\
  23294. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23295. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23296. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23297. test 0 -eq $? || _lt_function_replace_fail=:
  23298. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23299. func_stripname ()\
  23300. {\
  23301. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23302. \ # positional parameters, so assign one to ordinary parameter first.\
  23303. \ func_stripname_result=${3}\
  23304. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23305. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23306. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23307. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23308. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23309. test 0 -eq $? || _lt_function_replace_fail=:
  23310. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23311. func_split_long_opt ()\
  23312. {\
  23313. \ func_split_long_opt_name=${1%%=*}\
  23314. \ func_split_long_opt_arg=${1#*=}\
  23315. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23316. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23317. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23318. test 0 -eq $? || _lt_function_replace_fail=:
  23319. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23320. func_split_short_opt ()\
  23321. {\
  23322. \ func_split_short_opt_arg=${1#??}\
  23323. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23324. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23325. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23326. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23327. test 0 -eq $? || _lt_function_replace_fail=:
  23328. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23329. func_lo2o ()\
  23330. {\
  23331. \ case ${1} in\
  23332. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23333. \ *) func_lo2o_result=${1} ;;\
  23334. \ esac\
  23335. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23336. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23337. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23338. test 0 -eq $? || _lt_function_replace_fail=:
  23339. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23340. func_xform ()\
  23341. {\
  23342. func_xform_result=${1%.*}.lo\
  23343. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23344. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23345. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23346. test 0 -eq $? || _lt_function_replace_fail=:
  23347. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23348. func_arith ()\
  23349. {\
  23350. func_arith_result=$(( $* ))\
  23351. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23352. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23353. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23354. test 0 -eq $? || _lt_function_replace_fail=:
  23355. sed -e '/^func_len ()$/,/^} # func_len /c\
  23356. func_len ()\
  23357. {\
  23358. func_len_result=${#1}\
  23359. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23360. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23361. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23362. test 0 -eq $? || _lt_function_replace_fail=:
  23363. fi
  23364. if test x"$lt_shell_append" = xyes; then
  23365. sed -e '/^func_append ()$/,/^} # func_append /c\
  23366. func_append ()\
  23367. {\
  23368. eval "${1}+=\\${2}"\
  23369. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23370. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23371. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23372. test 0 -eq $? || _lt_function_replace_fail=:
  23373. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23374. func_append_quoted ()\
  23375. {\
  23376. \ func_quote_for_eval "${2}"\
  23377. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23378. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23379. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23380. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23381. test 0 -eq $? || _lt_function_replace_fail=:
  23382. # Save a `func_append' function call where possible by direct use of '+='
  23383. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23384. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23385. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23386. test 0 -eq $? || _lt_function_replace_fail=:
  23387. else
  23388. # Save a `func_append' function call even when '+=' is not available
  23389. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23390. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23391. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23392. test 0 -eq $? || _lt_function_replace_fail=:
  23393. fi
  23394. if test x"$_lt_function_replace_fail" = x":"; then
  23395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23396. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23397. fi
  23398. mv -f "$cfgfile" "$ofile" ||
  23399. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23400. chmod +x "$ofile"
  23401. cat <<_LT_EOF >> "$ofile"
  23402. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23403. # The linker used to build libraries.
  23404. LD=$lt_LD_CXX
  23405. # How to create reloadable object files.
  23406. reload_flag=$lt_reload_flag_CXX
  23407. reload_cmds=$lt_reload_cmds_CXX
  23408. # Commands used to build an old-style archive.
  23409. old_archive_cmds=$lt_old_archive_cmds_CXX
  23410. # A language specific compiler.
  23411. CC=$lt_compiler_CXX
  23412. # Is the compiler the GNU compiler?
  23413. with_gcc=$GCC_CXX
  23414. # Compiler flag to turn off builtin functions.
  23415. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23416. # Additional compiler flags for building library objects.
  23417. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23418. # How to pass a linker flag through the compiler.
  23419. wl=$lt_lt_prog_compiler_wl_CXX
  23420. # Compiler flag to prevent dynamic linking.
  23421. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23422. # Does compiler simultaneously support -c and -o options?
  23423. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23424. # Whether or not to add -lc for building shared libraries.
  23425. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23426. # Whether or not to disallow shared libs when runtime libs are static.
  23427. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23428. # Compiler flag to allow reflexive dlopens.
  23429. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23430. # Compiler flag to generate shared objects directly from archives.
  23431. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23432. # Whether the compiler copes with passing no objects directly.
  23433. compiler_needs_object=$lt_compiler_needs_object_CXX
  23434. # Create an old-style archive from a shared archive.
  23435. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23436. # Create a temporary old-style archive to link instead of a shared archive.
  23437. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23438. # Commands used to build a shared archive.
  23439. archive_cmds=$lt_archive_cmds_CXX
  23440. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23441. # Commands used to build a loadable module if different from building
  23442. # a shared archive.
  23443. module_cmds=$lt_module_cmds_CXX
  23444. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23445. # Whether we are building with GNU ld or not.
  23446. with_gnu_ld=$lt_with_gnu_ld_CXX
  23447. # Flag that allows shared libraries with undefined symbols to be built.
  23448. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23449. # Flag that enforces no undefined symbols.
  23450. no_undefined_flag=$lt_no_undefined_flag_CXX
  23451. # Flag to hardcode \$libdir into a binary during linking.
  23452. # This must work even if \$libdir does not exist
  23453. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23454. # Whether we need a single "-rpath" flag with a separated argument.
  23455. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23456. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23457. # DIR into the resulting binary.
  23458. hardcode_direct=$hardcode_direct_CXX
  23459. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23460. # DIR into the resulting binary and the resulting library dependency is
  23461. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23462. # library is relocated.
  23463. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23464. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23465. # into the resulting binary.
  23466. hardcode_minus_L=$hardcode_minus_L_CXX
  23467. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23468. # into the resulting binary.
  23469. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23470. # Set to "yes" if building a shared library automatically hardcodes DIR
  23471. # into the library and all subsequent libraries and executables linked
  23472. # against it.
  23473. hardcode_automatic=$hardcode_automatic_CXX
  23474. # Set to yes if linker adds runtime paths of dependent libraries
  23475. # to runtime path list.
  23476. inherit_rpath=$inherit_rpath_CXX
  23477. # Whether libtool must link a program against all its dependency libraries.
  23478. link_all_deplibs=$link_all_deplibs_CXX
  23479. # Set to "yes" if exported symbols are required.
  23480. always_export_symbols=$always_export_symbols_CXX
  23481. # The commands to list exported symbols.
  23482. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23483. # Symbols that should not be listed in the preloaded symbols.
  23484. exclude_expsyms=$lt_exclude_expsyms_CXX
  23485. # Symbols that must always be exported.
  23486. include_expsyms=$lt_include_expsyms_CXX
  23487. # Commands necessary for linking programs (against libraries) with templates.
  23488. prelink_cmds=$lt_prelink_cmds_CXX
  23489. # Commands necessary for finishing linking programs.
  23490. postlink_cmds=$lt_postlink_cmds_CXX
  23491. # Specify filename containing input files.
  23492. file_list_spec=$lt_file_list_spec_CXX
  23493. # How to hardcode a shared library path into an executable.
  23494. hardcode_action=$hardcode_action_CXX
  23495. # The directories searched by this compiler when creating a shared library.
  23496. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23497. # Dependencies to place before and after the objects being linked to
  23498. # create a shared library.
  23499. predep_objects=$lt_predep_objects_CXX
  23500. postdep_objects=$lt_postdep_objects_CXX
  23501. predeps=$lt_predeps_CXX
  23502. postdeps=$lt_postdeps_CXX
  23503. # The library search path used internally by the compiler when linking
  23504. # a shared library.
  23505. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23506. # ### END LIBTOOL TAG CONFIG: CXX
  23507. _LT_EOF
  23508. ;;
  23509. "sdl2_config":C) chmod a+x sdl2-config ;;
  23510. "summary":C) echo -en "$SUMMARY" ;;
  23511. esac
  23512. done # for ac_tag
  23513. as_fn_exit 0
  23514. _ACEOF
  23515. ac_clean_files=$ac_clean_files_save
  23516. test $ac_write_fail = 0 ||
  23517. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23518. # configure is writing to config.log, and then calls config.status.
  23519. # config.status does its own redirection, appending to config.log.
  23520. # Unfortunately, on DOS this fails, as config.log is still kept open
  23521. # by configure, so config.status won't be able to write to it; its
  23522. # output is simply discarded. So we exec the FD to /dev/null,
  23523. # effectively closing config.log, so it can be properly (re)opened and
  23524. # appended to by config.status. When coming back to configure, we
  23525. # need to make the FD available again.
  23526. if test "$no_create" != yes; then
  23527. ac_cs_success=:
  23528. ac_config_status_args=
  23529. test "$silent" = yes &&
  23530. ac_config_status_args="$ac_config_status_args --quiet"
  23531. exec 5>/dev/null
  23532. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23533. exec 5>>config.log
  23534. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23535. # would make configure fail if this is the last instruction.
  23536. $ac_cs_success || as_fn_exit 1
  23537. fi
  23538. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23540. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23541. fi