configure 842 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761
  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. PKG_CONFIG_LIBS_PRIV
  599. SDL_RLD_FLAGS
  600. SDL_STATIC_LIBS
  601. SDL_LIBS
  602. SDL_CFLAGS
  603. INSTALL_SDL2_CONFIG
  604. LIBUSB_LIBS
  605. LIBUSB_CFLAGS
  606. IBUS_LIBS
  607. IBUS_CFLAGS
  608. DBUS_LIBS
  609. DBUS_CFLAGS
  610. LIBGBM_LIBS
  611. LIBGBM_CFLAGS
  612. LIBDRM_LIBS
  613. LIBDRM_CFLAGS
  614. DIRECTFB_LIBS
  615. DIRECTFB_CFLAGS
  616. X_EXTRA_LIBS
  617. X_LIBS
  618. X_PRE_LIBS
  619. X_CFLAGS
  620. XMKMF
  621. RPI_LIBS
  622. RPI_CFLAGS
  623. FUSIONSOUND_LIBS
  624. FUSIONSOUND_CFLAGS
  625. ARTSCONFIG
  626. PULSEAUDIO_LIBS
  627. PULSEAUDIO_CFLAGS
  628. ESD_LIBS
  629. ESD_CFLAGS
  630. ESD_CONFIG
  631. JACK_LIBS
  632. JACK_CFLAGS
  633. ALSA_LIBS
  634. ALSA_CFLAGS
  635. POW_LIB
  636. LIBOBJS
  637. ALLOCA
  638. PKG_CONFIG_LIBDIR
  639. PKG_CONFIG_PATH
  640. PKG_CONFIG
  641. SET_MAKE
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. CXXCPP
  646. ac_ct_CXX
  647. CXXFLAGS
  648. CXX
  649. LT_AGE
  650. LT_REVISION
  651. LT_CURRENT
  652. LT_RELEASE
  653. RC
  654. CPP
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. AWK
  662. RANLIB
  663. STRIP
  664. ac_ct_AR
  665. AR
  666. LN_S
  667. NM
  668. ac_ct_DUMPBIN
  669. DUMPBIN
  670. LD
  671. FGREP
  672. EGREP
  673. GREP
  674. SED
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. host_os
  683. host_vendor
  684. host_cpu
  685. host
  686. build_os
  687. build_vendor
  688. build_cpu
  689. build
  690. LIBTOOL
  691. OBJDUMP
  692. DLLTOOL
  693. AS
  694. SDL_VERSION
  695. SDL_BINARY_AGE
  696. SDL_INTERFACE_AGE
  697. SDL_MICRO_VERSION
  698. SDL_MINOR_VERSION
  699. SDL_MAJOR_VERSION
  700. target_alias
  701. host_alias
  702. build_alias
  703. LIBS
  704. ECHO_T
  705. ECHO_N
  706. ECHO_C
  707. DEFS
  708. mandir
  709. localedir
  710. libdir
  711. psdir
  712. pdfdir
  713. dvidir
  714. htmldir
  715. infodir
  716. docdir
  717. oldincludedir
  718. includedir
  719. localstatedir
  720. sharedstatedir
  721. sysconfdir
  722. datadir
  723. datarootdir
  724. libexecdir
  725. sbindir
  726. bindir
  727. program_transform_name
  728. prefix
  729. exec_prefix
  730. PACKAGE_URL
  731. PACKAGE_BUGREPORT
  732. PACKAGE_STRING
  733. PACKAGE_VERSION
  734. PACKAGE_TARNAME
  735. PACKAGE_NAME
  736. PATH_SEPARATOR
  737. SHELL'
  738. ac_subst_files=''
  739. ac_user_opts='
  740. enable_option_checking
  741. enable_shared
  742. enable_static
  743. with_pic
  744. enable_fast_install
  745. with_gnu_ld
  746. with_sysroot
  747. enable_libtool_lock
  748. enable_assertions
  749. enable_dependency_tracking
  750. enable_libc
  751. enable_gcc_atomics
  752. enable_atomic
  753. enable_audio
  754. enable_video
  755. enable_render
  756. enable_events
  757. enable_joystick
  758. enable_haptic
  759. enable_sensor
  760. enable_power
  761. enable_filesystem
  762. enable_threads
  763. enable_timers
  764. enable_file
  765. enable_loadso
  766. enable_cpuinfo
  767. enable_assembly
  768. enable_ssemath
  769. enable_mmx
  770. enable_3dnow
  771. enable_sse
  772. enable_sse2
  773. enable_sse3
  774. enable_altivec
  775. enable_oss
  776. enable_alsa
  777. with_alsa_prefix
  778. with_alsa_inc_prefix
  779. enable_alsatest
  780. enable_alsa_shared
  781. enable_jack
  782. enable_jack_shared
  783. enable_esd
  784. with_esd_prefix
  785. with_esd_exec_prefix
  786. enable_esdtest
  787. enable_esd_shared
  788. enable_pulseaudio
  789. enable_pulseaudio_shared
  790. enable_arts
  791. enable_arts_shared
  792. enable_nas
  793. enable_nas_shared
  794. enable_sndio
  795. enable_sndio_shared
  796. enable_fusionsound
  797. enable_fusionsound_shared
  798. enable_diskaudio
  799. enable_dummyaudio
  800. enable_libsamplerate
  801. enable_libsamplerate_shared
  802. enable_arm_simd
  803. enable_arm_neon
  804. enable_video_wayland
  805. enable_video_wayland_qt_touch
  806. enable_wayland_shared
  807. enable_video_rpi
  808. enable_video_x11
  809. with_x
  810. enable_x11_shared
  811. enable_video_x11_xcursor
  812. enable_video_x11_xdbe
  813. enable_video_x11_xinerama
  814. enable_video_x11_xinput
  815. enable_video_x11_xrandr
  816. enable_video_x11_scrnsaver
  817. enable_video_x11_xshape
  818. enable_video_x11_vm
  819. enable_video_vivante
  820. enable_video_cocoa
  821. enable_video_metal
  822. enable_render_metal
  823. enable_video_directfb
  824. enable_directfb_shared
  825. enable_video_kmsdrm
  826. enable_kmsdrm_shared
  827. enable_video_dummy
  828. enable_video_opengl
  829. enable_video_opengles
  830. enable_video_opengles1
  831. enable_video_opengles2
  832. enable_video_vulkan
  833. enable_libudev
  834. enable_dbus
  835. enable_ime
  836. enable_ibus
  837. enable_fcitx
  838. enable_joystick_mfi
  839. enable_pthreads
  840. enable_pthread_sem
  841. enable_directx
  842. enable_wasapi
  843. enable_sdl_dlopen
  844. enable_hidapi
  845. enable_hidapi_libusb
  846. enable_clock_gettime
  847. enable_rpath
  848. enable_backgrounding_signal
  849. enable_foregrounding_signal
  850. enable_joystick_virtual
  851. enable_render_d3d
  852. enable_sdl2_config
  853. '
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. LIBS
  861. CPPFLAGS
  862. CPP
  863. CXX
  864. CXXFLAGS
  865. CCC
  866. CXXCPP
  867. PKG_CONFIG
  868. PKG_CONFIG_PATH
  869. PKG_CONFIG_LIBDIR
  870. JACK_CFLAGS
  871. JACK_LIBS
  872. PULSEAUDIO_CFLAGS
  873. PULSEAUDIO_LIBS
  874. FUSIONSOUND_CFLAGS
  875. FUSIONSOUND_LIBS
  876. RPI_CFLAGS
  877. RPI_LIBS
  878. XMKMF
  879. DIRECTFB_CFLAGS
  880. DIRECTFB_LIBS
  881. LIBDRM_CFLAGS
  882. LIBDRM_LIBS
  883. LIBGBM_CFLAGS
  884. LIBGBM_LIBS
  885. DBUS_CFLAGS
  886. DBUS_LIBS
  887. IBUS_CFLAGS
  888. IBUS_LIBS
  889. LIBUSB_CFLAGS
  890. LIBUSB_LIBS'
  891. # Initialize some variables set by options.
  892. ac_init_help=
  893. ac_init_version=false
  894. ac_unrecognized_opts=
  895. ac_unrecognized_sep=
  896. # The variables have the same names as the options, with
  897. # dashes changed to underlines.
  898. cache_file=/dev/null
  899. exec_prefix=NONE
  900. no_create=
  901. no_recursion=
  902. prefix=NONE
  903. program_prefix=NONE
  904. program_suffix=NONE
  905. program_transform_name=s,x,x,
  906. silent=
  907. site=
  908. srcdir=
  909. verbose=
  910. x_includes=NONE
  911. x_libraries=NONE
  912. # Installation directory options.
  913. # These are left unexpanded so users can "make install exec_prefix=/foo"
  914. # and all the variables that are supposed to be based on exec_prefix
  915. # by default will actually change.
  916. # Use braces instead of parens because sh, perl, etc. also accept them.
  917. # (The list follows the same order as the GNU Coding Standards.)
  918. bindir='${exec_prefix}/bin'
  919. sbindir='${exec_prefix}/sbin'
  920. libexecdir='${exec_prefix}/libexec'
  921. datarootdir='${prefix}/share'
  922. datadir='${datarootdir}'
  923. sysconfdir='${prefix}/etc'
  924. sharedstatedir='${prefix}/com'
  925. localstatedir='${prefix}/var'
  926. includedir='${prefix}/include'
  927. oldincludedir='/usr/include'
  928. docdir='${datarootdir}/doc/${PACKAGE}'
  929. infodir='${datarootdir}/info'
  930. htmldir='${docdir}'
  931. dvidir='${docdir}'
  932. pdfdir='${docdir}'
  933. psdir='${docdir}'
  934. libdir='${exec_prefix}/lib'
  935. localedir='${datarootdir}/locale'
  936. mandir='${datarootdir}/man'
  937. ac_prev=
  938. ac_dashdash=
  939. for ac_option
  940. do
  941. # If the previous option needs an argument, assign it.
  942. if test -n "$ac_prev"; then
  943. eval $ac_prev=\$ac_option
  944. ac_prev=
  945. continue
  946. fi
  947. case $ac_option in
  948. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  949. *=) ac_optarg= ;;
  950. *) ac_optarg=yes ;;
  951. esac
  952. # Accept the important Cygnus configure options, so we can diagnose typos.
  953. case $ac_dashdash$ac_option in
  954. --)
  955. ac_dashdash=yes ;;
  956. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  957. ac_prev=bindir ;;
  958. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  959. bindir=$ac_optarg ;;
  960. -build | --build | --buil | --bui | --bu)
  961. ac_prev=build_alias ;;
  962. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  963. build_alias=$ac_optarg ;;
  964. -cache-file | --cache-file | --cache-fil | --cache-fi \
  965. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  966. ac_prev=cache_file ;;
  967. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  968. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  969. cache_file=$ac_optarg ;;
  970. --config-cache | -C)
  971. cache_file=config.cache ;;
  972. -datadir | --datadir | --datadi | --datad)
  973. ac_prev=datadir ;;
  974. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  975. datadir=$ac_optarg ;;
  976. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  977. | --dataroo | --dataro | --datar)
  978. ac_prev=datarootdir ;;
  979. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  980. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  981. datarootdir=$ac_optarg ;;
  982. -disable-* | --disable-*)
  983. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  984. # Reject names that are not valid shell variable names.
  985. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  986. as_fn_error $? "invalid feature name: $ac_useropt"
  987. ac_useropt_orig=$ac_useropt
  988. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  989. case $ac_user_opts in
  990. *"
  991. "enable_$ac_useropt"
  992. "*) ;;
  993. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  994. ac_unrecognized_sep=', ';;
  995. esac
  996. eval enable_$ac_useropt=no ;;
  997. -docdir | --docdir | --docdi | --doc | --do)
  998. ac_prev=docdir ;;
  999. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1000. docdir=$ac_optarg ;;
  1001. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1002. ac_prev=dvidir ;;
  1003. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1004. dvidir=$ac_optarg ;;
  1005. -enable-* | --enable-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error $? "invalid feature name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "enable_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval enable_$ac_useropt=\$ac_optarg ;;
  1020. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1021. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1022. | --exec | --exe | --ex)
  1023. ac_prev=exec_prefix ;;
  1024. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1025. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1026. | --exec=* | --exe=* | --ex=*)
  1027. exec_prefix=$ac_optarg ;;
  1028. -gas | --gas | --ga | --g)
  1029. # Obsolete; use --with-gas.
  1030. with_gas=yes ;;
  1031. -help | --help | --hel | --he | -h)
  1032. ac_init_help=long ;;
  1033. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1034. ac_init_help=recursive ;;
  1035. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1036. ac_init_help=short ;;
  1037. -host | --host | --hos | --ho)
  1038. ac_prev=host_alias ;;
  1039. -host=* | --host=* | --hos=* | --ho=*)
  1040. host_alias=$ac_optarg ;;
  1041. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1042. ac_prev=htmldir ;;
  1043. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1044. | --ht=*)
  1045. htmldir=$ac_optarg ;;
  1046. -includedir | --includedir | --includedi | --included | --include \
  1047. | --includ | --inclu | --incl | --inc)
  1048. ac_prev=includedir ;;
  1049. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1050. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1051. includedir=$ac_optarg ;;
  1052. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1053. ac_prev=infodir ;;
  1054. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1055. infodir=$ac_optarg ;;
  1056. -libdir | --libdir | --libdi | --libd)
  1057. ac_prev=libdir ;;
  1058. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1059. libdir=$ac_optarg ;;
  1060. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1061. | --libexe | --libex | --libe)
  1062. ac_prev=libexecdir ;;
  1063. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1064. | --libexe=* | --libex=* | --libe=*)
  1065. libexecdir=$ac_optarg ;;
  1066. -localedir | --localedir | --localedi | --localed | --locale)
  1067. ac_prev=localedir ;;
  1068. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1069. localedir=$ac_optarg ;;
  1070. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1071. | --localstate | --localstat | --localsta | --localst | --locals)
  1072. ac_prev=localstatedir ;;
  1073. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1074. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1075. localstatedir=$ac_optarg ;;
  1076. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1077. ac_prev=mandir ;;
  1078. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1079. mandir=$ac_optarg ;;
  1080. -nfp | --nfp | --nf)
  1081. # Obsolete; use --without-fp.
  1082. with_fp=no ;;
  1083. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1084. | --no-cr | --no-c | -n)
  1085. no_create=yes ;;
  1086. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1087. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1088. no_recursion=yes ;;
  1089. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1090. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1091. | --oldin | --oldi | --old | --ol | --o)
  1092. ac_prev=oldincludedir ;;
  1093. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1094. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1095. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1096. oldincludedir=$ac_optarg ;;
  1097. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1098. ac_prev=prefix ;;
  1099. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1100. prefix=$ac_optarg ;;
  1101. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1102. | --program-pre | --program-pr | --program-p)
  1103. ac_prev=program_prefix ;;
  1104. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1105. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1106. program_prefix=$ac_optarg ;;
  1107. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1108. | --program-suf | --program-su | --program-s)
  1109. ac_prev=program_suffix ;;
  1110. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1111. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1112. program_suffix=$ac_optarg ;;
  1113. -program-transform-name | --program-transform-name \
  1114. | --program-transform-nam | --program-transform-na \
  1115. | --program-transform-n | --program-transform- \
  1116. | --program-transform | --program-transfor \
  1117. | --program-transfo | --program-transf \
  1118. | --program-trans | --program-tran \
  1119. | --progr-tra | --program-tr | --program-t)
  1120. ac_prev=program_transform_name ;;
  1121. -program-transform-name=* | --program-transform-name=* \
  1122. | --program-transform-nam=* | --program-transform-na=* \
  1123. | --program-transform-n=* | --program-transform-=* \
  1124. | --program-transform=* | --program-transfor=* \
  1125. | --program-transfo=* | --program-transf=* \
  1126. | --program-trans=* | --program-tran=* \
  1127. | --progr-tra=* | --program-tr=* | --program-t=*)
  1128. program_transform_name=$ac_optarg ;;
  1129. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1130. ac_prev=pdfdir ;;
  1131. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1132. pdfdir=$ac_optarg ;;
  1133. -psdir | --psdir | --psdi | --psd | --ps)
  1134. ac_prev=psdir ;;
  1135. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1136. psdir=$ac_optarg ;;
  1137. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1138. | -silent | --silent | --silen | --sile | --sil)
  1139. silent=yes ;;
  1140. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1141. ac_prev=sbindir ;;
  1142. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1143. | --sbi=* | --sb=*)
  1144. sbindir=$ac_optarg ;;
  1145. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1146. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1147. | --sharedst | --shareds | --shared | --share | --shar \
  1148. | --sha | --sh)
  1149. ac_prev=sharedstatedir ;;
  1150. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1151. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1152. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1153. | --sha=* | --sh=*)
  1154. sharedstatedir=$ac_optarg ;;
  1155. -site | --site | --sit)
  1156. ac_prev=site ;;
  1157. -site=* | --site=* | --sit=*)
  1158. site=$ac_optarg ;;
  1159. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1160. ac_prev=srcdir ;;
  1161. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1162. srcdir=$ac_optarg ;;
  1163. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1164. | --syscon | --sysco | --sysc | --sys | --sy)
  1165. ac_prev=sysconfdir ;;
  1166. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1167. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1168. sysconfdir=$ac_optarg ;;
  1169. -target | --target | --targe | --targ | --tar | --ta | --t)
  1170. ac_prev=target_alias ;;
  1171. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1172. target_alias=$ac_optarg ;;
  1173. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1174. verbose=yes ;;
  1175. -version | --version | --versio | --versi | --vers | -V)
  1176. ac_init_version=: ;;
  1177. -with-* | --with-*)
  1178. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1179. # Reject names that are not valid shell variable names.
  1180. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1181. as_fn_error $? "invalid package name: $ac_useropt"
  1182. ac_useropt_orig=$ac_useropt
  1183. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1184. case $ac_user_opts in
  1185. *"
  1186. "with_$ac_useropt"
  1187. "*) ;;
  1188. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1189. ac_unrecognized_sep=', ';;
  1190. esac
  1191. eval with_$ac_useropt=\$ac_optarg ;;
  1192. -without-* | --without-*)
  1193. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1194. # Reject names that are not valid shell variable names.
  1195. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1196. as_fn_error $? "invalid package name: $ac_useropt"
  1197. ac_useropt_orig=$ac_useropt
  1198. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1199. case $ac_user_opts in
  1200. *"
  1201. "with_$ac_useropt"
  1202. "*) ;;
  1203. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1204. ac_unrecognized_sep=', ';;
  1205. esac
  1206. eval with_$ac_useropt=no ;;
  1207. --x)
  1208. # Obsolete; use --with-x.
  1209. with_x=yes ;;
  1210. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1211. | --x-incl | --x-inc | --x-in | --x-i)
  1212. ac_prev=x_includes ;;
  1213. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1214. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1215. x_includes=$ac_optarg ;;
  1216. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1217. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1218. ac_prev=x_libraries ;;
  1219. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1220. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1221. x_libraries=$ac_optarg ;;
  1222. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1223. Try \`$0 --help' for more information"
  1224. ;;
  1225. *=*)
  1226. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1227. # Reject names that are not valid shell variable names.
  1228. case $ac_envvar in #(
  1229. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1230. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1231. esac
  1232. eval $ac_envvar=\$ac_optarg
  1233. export $ac_envvar ;;
  1234. *)
  1235. # FIXME: should be removed in autoconf 3.0.
  1236. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1237. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1238. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1239. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1240. ;;
  1241. esac
  1242. done
  1243. if test -n "$ac_prev"; then
  1244. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1245. as_fn_error $? "missing argument to $ac_option"
  1246. fi
  1247. if test -n "$ac_unrecognized_opts"; then
  1248. case $enable_option_checking in
  1249. no) ;;
  1250. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1251. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1252. esac
  1253. fi
  1254. # Check all directory arguments for consistency.
  1255. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1256. datadir sysconfdir sharedstatedir localstatedir includedir \
  1257. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1258. libdir localedir mandir
  1259. do
  1260. eval ac_val=\$$ac_var
  1261. # Remove trailing slashes.
  1262. case $ac_val in
  1263. */ )
  1264. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1265. eval $ac_var=\$ac_val;;
  1266. esac
  1267. # Be sure to have absolute directory names.
  1268. case $ac_val in
  1269. [\\/$]* | ?:[\\/]* ) continue;;
  1270. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1271. esac
  1272. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1273. done
  1274. # There might be people who depend on the old broken behavior: `$host'
  1275. # used to hold the argument of --host etc.
  1276. # FIXME: To remove some day.
  1277. build=$build_alias
  1278. host=$host_alias
  1279. target=$target_alias
  1280. # FIXME: To remove some day.
  1281. if test "x$host_alias" != x; then
  1282. if test "x$build_alias" = x; then
  1283. cross_compiling=maybe
  1284. elif test "x$build_alias" != "x$host_alias"; then
  1285. cross_compiling=yes
  1286. fi
  1287. fi
  1288. ac_tool_prefix=
  1289. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1290. test "$silent" = yes && exec 6>/dev/null
  1291. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1292. ac_ls_di=`ls -di .` &&
  1293. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1294. as_fn_error $? "working directory cannot be determined"
  1295. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1296. as_fn_error $? "pwd does not report name of working directory"
  1297. # Find the source files, if location was not specified.
  1298. if test -z "$srcdir"; then
  1299. ac_srcdir_defaulted=yes
  1300. # Try the directory containing this script, then the parent directory.
  1301. ac_confdir=`$as_dirname -- "$as_myself" ||
  1302. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1303. X"$as_myself" : 'X\(//\)[^/]' \| \
  1304. X"$as_myself" : 'X\(//\)$' \| \
  1305. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1306. $as_echo X"$as_myself" |
  1307. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1308. s//\1/
  1309. q
  1310. }
  1311. /^X\(\/\/\)[^/].*/{
  1312. s//\1/
  1313. q
  1314. }
  1315. /^X\(\/\/\)$/{
  1316. s//\1/
  1317. q
  1318. }
  1319. /^X\(\/\).*/{
  1320. s//\1/
  1321. q
  1322. }
  1323. s/.*/./; q'`
  1324. srcdir=$ac_confdir
  1325. if test ! -r "$srcdir/$ac_unique_file"; then
  1326. srcdir=..
  1327. fi
  1328. else
  1329. ac_srcdir_defaulted=no
  1330. fi
  1331. if test ! -r "$srcdir/$ac_unique_file"; then
  1332. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1333. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1334. fi
  1335. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1336. ac_abs_confdir=`(
  1337. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1338. pwd)`
  1339. # When building in place, set srcdir=.
  1340. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1341. srcdir=.
  1342. fi
  1343. # Remove unnecessary trailing slashes from srcdir.
  1344. # Double slashes in file names in object file debugging info
  1345. # mess up M-x gdb in Emacs.
  1346. case $srcdir in
  1347. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1348. esac
  1349. for ac_var in $ac_precious_vars; do
  1350. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1351. eval ac_env_${ac_var}_value=\$${ac_var}
  1352. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1353. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1354. done
  1355. #
  1356. # Report the --help message.
  1357. #
  1358. if test "$ac_init_help" = "long"; then
  1359. # Omit some internal or obsolete options to make the list less imposing.
  1360. # This message is too long to be a string in the A/UX 3.1 sh.
  1361. cat <<_ACEOF
  1362. \`configure' configures this package to adapt to many kinds of systems.
  1363. Usage: $0 [OPTION]... [VAR=VALUE]...
  1364. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1365. VAR=VALUE. See below for descriptions of some of the useful variables.
  1366. Defaults for the options are specified in brackets.
  1367. Configuration:
  1368. -h, --help display this help and exit
  1369. --help=short display options specific to this package
  1370. --help=recursive display the short help of all the included packages
  1371. -V, --version display version information and exit
  1372. -q, --quiet, --silent do not print \`checking ...' messages
  1373. --cache-file=FILE cache test results in FILE [disabled]
  1374. -C, --config-cache alias for \`--cache-file=config.cache'
  1375. -n, --no-create do not create output files
  1376. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1377. Installation directories:
  1378. --prefix=PREFIX install architecture-independent files in PREFIX
  1379. [$ac_default_prefix]
  1380. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1381. [PREFIX]
  1382. By default, \`make install' will install all the files in
  1383. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1384. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1385. for instance \`--prefix=\$HOME'.
  1386. For better control, use the options below.
  1387. Fine tuning of the installation directories:
  1388. --bindir=DIR user executables [EPREFIX/bin]
  1389. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1390. --libexecdir=DIR program executables [EPREFIX/libexec]
  1391. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1392. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1393. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1394. --libdir=DIR object code libraries [EPREFIX/lib]
  1395. --includedir=DIR C header files [PREFIX/include]
  1396. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1397. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1398. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1399. --infodir=DIR info documentation [DATAROOTDIR/info]
  1400. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1401. --mandir=DIR man documentation [DATAROOTDIR/man]
  1402. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1403. --htmldir=DIR html documentation [DOCDIR]
  1404. --dvidir=DIR dvi documentation [DOCDIR]
  1405. --pdfdir=DIR pdf documentation [DOCDIR]
  1406. --psdir=DIR ps documentation [DOCDIR]
  1407. _ACEOF
  1408. cat <<\_ACEOF
  1409. X features:
  1410. --x-includes=DIR X include files are in DIR
  1411. --x-libraries=DIR X library files are in DIR
  1412. System types:
  1413. --build=BUILD configure for building on BUILD [guessed]
  1414. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1415. _ACEOF
  1416. fi
  1417. if test -n "$ac_init_help"; then
  1418. cat <<\_ACEOF
  1419. Optional Features:
  1420. --disable-option-checking ignore unrecognized --enable/--with options
  1421. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1422. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1423. --enable-shared[=PKGS] build shared libraries [default=yes]
  1424. --enable-static[=PKGS] build static libraries [default=yes]
  1425. --enable-fast-install[=PKGS]
  1426. optimize for fast installation [default=yes]
  1427. --disable-libtool-lock avoid locking (might break parallel builds)
  1428. --enable-assertions Enable internal sanity checks
  1429. (auto/disabled/release/enabled/paranoid)
  1430. [[default=auto]]
  1431. --enable-dependency-tracking
  1432. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1433. --enable-libc Use the system C library [[default=yes]]
  1434. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1435. --enable-atomic Enable the atomic operations subsystem
  1436. [[default=yes]]
  1437. --enable-audio Enable the audio subsystem [[default=yes]]
  1438. --enable-video Enable the video subsystem [[default=yes]]
  1439. --enable-render Enable the render subsystem [[default=yes]]
  1440. --enable-events Enable the events subsystem [[default=yes]]
  1441. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1442. --enable-haptic Enable the haptic (force feedback) subsystem
  1443. [[default=yes]]
  1444. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1445. --enable-power Enable the power subsystem [[default=yes]]
  1446. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1447. --enable-threads Enable the threading subsystem [[default=yes]]
  1448. --enable-timers Enable the timer subsystem [[default=yes]]
  1449. --enable-file Enable the file subsystem [[default=yes]]
  1450. --enable-loadso Enable the shared object loading subsystem
  1451. [[default=yes]]
  1452. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1453. --enable-assembly Enable assembly routines [[default=yes]]
  1454. --enable-ssemath Allow GCC to use SSE floating point math
  1455. [[default=maybe]]
  1456. --enable-mmx use MMX assembly routines [[default=yes]]
  1457. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1458. --enable-sse use SSE assembly routines [[default=yes]]
  1459. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1460. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1461. --enable-altivec use Altivec assembly routines [[default=yes]]
  1462. --enable-oss support the OSS audio API [[default=maybe]]
  1463. --enable-alsa support the ALSA audio API [[default=yes]]
  1464. --disable-alsatest Do not try to compile and run a test Alsa program
  1465. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1466. --enable-jack use JACK audio [[default=yes]]
  1467. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1468. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1469. --disable-esdtest Do not try to compile and run a test ESD program
  1470. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1471. --enable-pulseaudio use PulseAudio [[default=yes]]
  1472. --enable-pulseaudio-shared
  1473. dynamically load PulseAudio support [[default=yes]]
  1474. --enable-arts support the Analog Real Time Synthesizer
  1475. [[default=yes]]
  1476. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1477. --enable-nas support the NAS audio API [[default=yes]]
  1478. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1479. --enable-sndio support the sndio audio API [[default=yes]]
  1480. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1481. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1482. --enable-fusionsound-shared
  1483. dynamically load fusionsound audio support
  1484. [[default=yes]]
  1485. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1486. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1487. --enable-libsamplerate use libsamplerate for audio rate conversion
  1488. [[default=yes]]
  1489. --enable-libsamplerate-shared
  1490. dynamically load libsamplerate [[default=yes]]
  1491. --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]]
  1492. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1493. --enable-video-wayland use Wayland video driver [[default=yes]]
  1494. --enable-video-wayland-qt-touch
  1495. QtWayland server support for Wayland video driver
  1496. [[default=yes]]
  1497. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1498. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1499. --enable-video-x11 use X11 video driver [[default=yes]]
  1500. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1501. --enable-video-x11-xcursor
  1502. enable X11 Xcursor support [[default=yes]]
  1503. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1504. --enable-video-x11-xinerama
  1505. enable X11 Xinerama support [[default=yes]]
  1506. --enable-video-x11-xinput
  1507. enable X11 XInput extension for manymouse, tablets,
  1508. etc [[default=yes]]
  1509. --enable-video-x11-xrandr
  1510. enable X11 Xrandr extension for fullscreen
  1511. [[default=yes]]
  1512. --enable-video-x11-scrnsaver
  1513. enable X11 screensaver extension [[default=yes]]
  1514. --enable-video-x11-xshape
  1515. enable X11 XShape support [[default=yes]]
  1516. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1517. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1518. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1519. --enable-video-metal include Metal support [[default=yes]]
  1520. --enable-render-metal enable the Metal render driver [[default=yes]]
  1521. --enable-video-directfb use DirectFB video driver [[default=no]]
  1522. --enable-directfb-shared
  1523. dynamically load directfb support [[default=yes]]
  1524. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1525. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1526. --enable-video-dummy use dummy video driver [[default=yes]]
  1527. --enable-video-opengl include OpenGL support [[default=yes]]
  1528. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1529. --enable-video-opengles1
  1530. include OpenGL ES 1.1 support [[default=yes]]
  1531. --enable-video-opengles2
  1532. include OpenGL ES 2.0 support [[default=yes]]
  1533. --enable-video-vulkan include Vulkan support [[default=yes]]
  1534. --enable-libudev enable libudev support [[default=yes]]
  1535. --enable-dbus enable D-Bus support [[default=yes]]
  1536. --enable-ime enable IME support [[default=yes]]
  1537. --enable-ibus enable IBus support [[default=yes]]
  1538. --enable-fcitx enable fcitx support [[default=yes]]
  1539. --enable-joystick-mfi include macOS MFI joystick support [[default=yes]]
  1540. --enable-pthreads use POSIX threads for multi-threading
  1541. [[default=yes]]
  1542. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1543. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1544. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1545. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1546. --enable-hidapi use HIDAPI for low level joystick drivers
  1547. [[default=yes]]
  1548. --enable-hidapi-libusb use libusb for low level joystick drivers
  1549. [[default=maybe]]
  1550. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1551. UNIX [[default=yes]]
  1552. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1553. --enable-backgrounding-signal
  1554. number to use for magic backgrounding signal or 'no'
  1555. [[default=no]]
  1556. --enable-foregrounding-signal
  1557. number to use for magic foregrounding signal or 'no'
  1558. [[default=no]]
  1559. --enable-joystick-virtual
  1560. enable virtual joystick APIs [[default=yes]]
  1561. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1562. --enable-sdl2-config Install sdl2-config [default=yes]
  1563. Optional Packages:
  1564. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1565. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1566. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1567. both]
  1568. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1569. --with-sysroot=DIR Search for dependent libraries within DIR
  1570. (or the compiler's sysroot if not specified).
  1571. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1572. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1573. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1574. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1575. --with-x use the X Window System
  1576. Some influential environment variables:
  1577. CC C compiler command
  1578. CFLAGS C compiler flags
  1579. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1580. nonstandard directory <lib dir>
  1581. LIBS libraries to pass to the linker, e.g. -l<library>
  1582. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1583. you have headers in a nonstandard directory <include dir>
  1584. CPP C preprocessor
  1585. CXX C++ compiler command
  1586. CXXFLAGS C++ compiler flags
  1587. CXXCPP C++ preprocessor
  1588. PKG_CONFIG path to pkg-config utility
  1589. PKG_CONFIG_PATH
  1590. directories to add to pkg-config's search path
  1591. PKG_CONFIG_LIBDIR
  1592. path overriding pkg-config's built-in search path
  1593. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1594. JACK_LIBS linker flags for JACK, overriding pkg-config
  1595. PULSEAUDIO_CFLAGS
  1596. C compiler flags for PULSEAUDIO, overriding pkg-config
  1597. PULSEAUDIO_LIBS
  1598. linker flags for PULSEAUDIO, overriding pkg-config
  1599. FUSIONSOUND_CFLAGS
  1600. C compiler flags for FUSIONSOUND, overriding pkg-config
  1601. FUSIONSOUND_LIBS
  1602. linker flags for FUSIONSOUND, overriding pkg-config
  1603. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1604. RPI_LIBS linker flags for RPI, overriding pkg-config
  1605. XMKMF Path to xmkmf, Makefile generator for X Window System
  1606. DIRECTFB_CFLAGS
  1607. C compiler flags for DIRECTFB, overriding pkg-config
  1608. DIRECTFB_LIBS
  1609. linker flags for DIRECTFB, overriding pkg-config
  1610. LIBDRM_CFLAGS
  1611. C compiler flags for LIBDRM, overriding pkg-config
  1612. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1613. LIBGBM_CFLAGS
  1614. C compiler flags for LIBGBM, overriding pkg-config
  1615. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1616. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1617. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1618. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1619. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1620. LIBUSB_CFLAGS
  1621. C compiler flags for LIBUSB, overriding pkg-config
  1622. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1623. Use these variables to override the choices made by `configure' or to help
  1624. it to find libraries and programs with nonstandard names/locations.
  1625. Report bugs to the package provider.
  1626. _ACEOF
  1627. ac_status=$?
  1628. fi
  1629. if test "$ac_init_help" = "recursive"; then
  1630. # If there are subdirs, report their specific --help.
  1631. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1632. test -d "$ac_dir" ||
  1633. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1634. continue
  1635. ac_builddir=.
  1636. case "$ac_dir" in
  1637. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1638. *)
  1639. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1640. # A ".." for each directory in $ac_dir_suffix.
  1641. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1642. case $ac_top_builddir_sub in
  1643. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1644. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1645. esac ;;
  1646. esac
  1647. ac_abs_top_builddir=$ac_pwd
  1648. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1649. # for backward compatibility:
  1650. ac_top_builddir=$ac_top_build_prefix
  1651. case $srcdir in
  1652. .) # We are building in place.
  1653. ac_srcdir=.
  1654. ac_top_srcdir=$ac_top_builddir_sub
  1655. ac_abs_top_srcdir=$ac_pwd ;;
  1656. [\\/]* | ?:[\\/]* ) # Absolute name.
  1657. ac_srcdir=$srcdir$ac_dir_suffix;
  1658. ac_top_srcdir=$srcdir
  1659. ac_abs_top_srcdir=$srcdir ;;
  1660. *) # Relative name.
  1661. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1662. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1663. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1664. esac
  1665. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1666. cd "$ac_dir" || { ac_status=$?; continue; }
  1667. # Check for guested configure.
  1668. if test -f "$ac_srcdir/configure.gnu"; then
  1669. echo &&
  1670. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1671. elif test -f "$ac_srcdir/configure"; then
  1672. echo &&
  1673. $SHELL "$ac_srcdir/configure" --help=recursive
  1674. else
  1675. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1676. fi || ac_status=$?
  1677. cd "$ac_pwd" || { ac_status=$?; break; }
  1678. done
  1679. fi
  1680. test -n "$ac_init_help" && exit $ac_status
  1681. if $ac_init_version; then
  1682. cat <<\_ACEOF
  1683. configure
  1684. generated by GNU Autoconf 2.69
  1685. Copyright (C) 2012 Free Software Foundation, Inc.
  1686. This configure script is free software; the Free Software Foundation
  1687. gives unlimited permission to copy, distribute and modify it.
  1688. _ACEOF
  1689. exit
  1690. fi
  1691. ## ------------------------ ##
  1692. ## Autoconf initialization. ##
  1693. ## ------------------------ ##
  1694. # ac_fn_c_try_compile LINENO
  1695. # --------------------------
  1696. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1697. ac_fn_c_try_compile ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. rm -f conftest.$ac_objext
  1701. if { { ac_try="$ac_compile"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_compile") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } && {
  1717. test -z "$ac_c_werror_flag" ||
  1718. test ! -s conftest.err
  1719. } && test -s conftest.$ac_objext; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_c_try_compile
  1729. # ac_fn_c_try_link LINENO
  1730. # -----------------------
  1731. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1732. ac_fn_c_try_link ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. rm -f conftest.$ac_objext conftest$ac_exeext
  1736. if { { ac_try="$ac_link"
  1737. case "(($ac_try" in
  1738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1739. *) ac_try_echo=$ac_try;;
  1740. esac
  1741. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1742. $as_echo "$ac_try_echo"; } >&5
  1743. (eval "$ac_link") 2>conftest.err
  1744. ac_status=$?
  1745. if test -s conftest.err; then
  1746. grep -v '^ *+' conftest.err >conftest.er1
  1747. cat conftest.er1 >&5
  1748. mv -f conftest.er1 conftest.err
  1749. fi
  1750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1751. test $ac_status = 0; } && {
  1752. test -z "$ac_c_werror_flag" ||
  1753. test ! -s conftest.err
  1754. } && test -s conftest$ac_exeext && {
  1755. test "$cross_compiling" = yes ||
  1756. test -x conftest$ac_exeext
  1757. }; then :
  1758. ac_retval=0
  1759. else
  1760. $as_echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762. ac_retval=1
  1763. fi
  1764. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1765. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1766. # interfere with the next link command; also delete a directory that is
  1767. # left behind by Apple's compiler. We do this before executing the actions.
  1768. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1769. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1770. as_fn_set_status $ac_retval
  1771. } # ac_fn_c_try_link
  1772. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1773. # -------------------------------------------------------
  1774. # Tests whether HEADER exists and can be compiled using the include files in
  1775. # INCLUDES, setting the cache variable VAR accordingly.
  1776. ac_fn_c_check_header_compile ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1780. $as_echo_n "checking for $2... " >&6; }
  1781. if eval \${$3+:} false; then :
  1782. $as_echo_n "(cached) " >&6
  1783. else
  1784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1785. /* end confdefs.h. */
  1786. $4
  1787. #include <$2>
  1788. _ACEOF
  1789. if ac_fn_c_try_compile "$LINENO"; then :
  1790. eval "$3=yes"
  1791. else
  1792. eval "$3=no"
  1793. fi
  1794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1795. fi
  1796. eval ac_res=\$$3
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1798. $as_echo "$ac_res" >&6; }
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. } # ac_fn_c_check_header_compile
  1801. # ac_fn_c_try_cpp LINENO
  1802. # ----------------------
  1803. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1804. ac_fn_c_try_cpp ()
  1805. {
  1806. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1808. case "(($ac_try" in
  1809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1810. *) ac_try_echo=$ac_try;;
  1811. esac
  1812. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1813. $as_echo "$ac_try_echo"; } >&5
  1814. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1815. ac_status=$?
  1816. if test -s conftest.err; then
  1817. grep -v '^ *+' conftest.err >conftest.er1
  1818. cat conftest.er1 >&5
  1819. mv -f conftest.er1 conftest.err
  1820. fi
  1821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1822. test $ac_status = 0; } > conftest.i && {
  1823. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1824. test ! -s conftest.err
  1825. }; then :
  1826. ac_retval=0
  1827. else
  1828. $as_echo "$as_me: failed program was:" >&5
  1829. sed 's/^/| /' conftest.$ac_ext >&5
  1830. ac_retval=1
  1831. fi
  1832. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1833. as_fn_set_status $ac_retval
  1834. } # ac_fn_c_try_cpp
  1835. # ac_fn_c_try_run LINENO
  1836. # ----------------------
  1837. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1838. # that executables *can* be run.
  1839. ac_fn_c_try_run ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. if { { ac_try="$ac_link"
  1843. case "(($ac_try" in
  1844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1845. *) ac_try_echo=$ac_try;;
  1846. esac
  1847. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1848. $as_echo "$ac_try_echo"; } >&5
  1849. (eval "$ac_link") 2>&5
  1850. ac_status=$?
  1851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1853. { { case "(($ac_try" in
  1854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1855. *) ac_try_echo=$ac_try;;
  1856. esac
  1857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1858. $as_echo "$ac_try_echo"; } >&5
  1859. (eval "$ac_try") 2>&5
  1860. ac_status=$?
  1861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; }; }; then :
  1863. ac_retval=0
  1864. else
  1865. $as_echo "$as_me: program exited with status $ac_status" >&5
  1866. $as_echo "$as_me: failed program was:" >&5
  1867. sed 's/^/| /' conftest.$ac_ext >&5
  1868. ac_retval=$ac_status
  1869. fi
  1870. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. as_fn_set_status $ac_retval
  1873. } # ac_fn_c_try_run
  1874. # ac_fn_c_check_func LINENO FUNC VAR
  1875. # ----------------------------------
  1876. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1877. ac_fn_c_check_func ()
  1878. {
  1879. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1881. $as_echo_n "checking for $2... " >&6; }
  1882. if eval \${$3+:} false; then :
  1883. $as_echo_n "(cached) " >&6
  1884. else
  1885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1886. /* end confdefs.h. */
  1887. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1888. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1889. #define $2 innocuous_$2
  1890. /* System header to define __stub macros and hopefully few prototypes,
  1891. which can conflict with char $2 (); below.
  1892. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1893. <limits.h> exists even on freestanding compilers. */
  1894. #ifdef __STDC__
  1895. # include <limits.h>
  1896. #else
  1897. # include <assert.h>
  1898. #endif
  1899. #undef $2
  1900. /* Override any GCC internal prototype to avoid an error.
  1901. Use char because int might match the return type of a GCC
  1902. builtin and then its argument prototype would still apply. */
  1903. #ifdef __cplusplus
  1904. extern "C"
  1905. #endif
  1906. char $2 ();
  1907. /* The GNU C library defines this for functions which it implements
  1908. to always fail with ENOSYS. Some functions are actually named
  1909. something starting with __ and the normal name is an alias. */
  1910. #if defined __stub_$2 || defined __stub___$2
  1911. choke me
  1912. #endif
  1913. int
  1914. main ()
  1915. {
  1916. return $2 ();
  1917. ;
  1918. return 0;
  1919. }
  1920. _ACEOF
  1921. if ac_fn_c_try_link "$LINENO"; then :
  1922. eval "$3=yes"
  1923. else
  1924. eval "$3=no"
  1925. fi
  1926. rm -f core conftest.err conftest.$ac_objext \
  1927. conftest$ac_exeext conftest.$ac_ext
  1928. fi
  1929. eval ac_res=\$$3
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1931. $as_echo "$ac_res" >&6; }
  1932. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1933. } # ac_fn_c_check_func
  1934. # ac_fn_cxx_try_compile LINENO
  1935. # ----------------------------
  1936. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1937. ac_fn_cxx_try_compile ()
  1938. {
  1939. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1940. rm -f conftest.$ac_objext
  1941. if { { ac_try="$ac_compile"
  1942. case "(($ac_try" in
  1943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1944. *) ac_try_echo=$ac_try;;
  1945. esac
  1946. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1947. $as_echo "$ac_try_echo"; } >&5
  1948. (eval "$ac_compile") 2>conftest.err
  1949. ac_status=$?
  1950. if test -s conftest.err; then
  1951. grep -v '^ *+' conftest.err >conftest.er1
  1952. cat conftest.er1 >&5
  1953. mv -f conftest.er1 conftest.err
  1954. fi
  1955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1956. test $ac_status = 0; } && {
  1957. test -z "$ac_cxx_werror_flag" ||
  1958. test ! -s conftest.err
  1959. } && test -s conftest.$ac_objext; then :
  1960. ac_retval=0
  1961. else
  1962. $as_echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. ac_retval=1
  1965. fi
  1966. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1967. as_fn_set_status $ac_retval
  1968. } # ac_fn_cxx_try_compile
  1969. # ac_fn_cxx_try_cpp LINENO
  1970. # ------------------------
  1971. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1972. ac_fn_cxx_try_cpp ()
  1973. {
  1974. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1975. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1976. case "(($ac_try" in
  1977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1978. *) ac_try_echo=$ac_try;;
  1979. esac
  1980. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1981. $as_echo "$ac_try_echo"; } >&5
  1982. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1983. ac_status=$?
  1984. if test -s conftest.err; then
  1985. grep -v '^ *+' conftest.err >conftest.er1
  1986. cat conftest.er1 >&5
  1987. mv -f conftest.er1 conftest.err
  1988. fi
  1989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1990. test $ac_status = 0; } > conftest.i && {
  1991. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1992. test ! -s conftest.err
  1993. }; then :
  1994. ac_retval=0
  1995. else
  1996. $as_echo "$as_me: failed program was:" >&5
  1997. sed 's/^/| /' conftest.$ac_ext >&5
  1998. ac_retval=1
  1999. fi
  2000. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2001. as_fn_set_status $ac_retval
  2002. } # ac_fn_cxx_try_cpp
  2003. # ac_fn_cxx_try_link LINENO
  2004. # -------------------------
  2005. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2006. ac_fn_cxx_try_link ()
  2007. {
  2008. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2009. rm -f conftest.$ac_objext conftest$ac_exeext
  2010. if { { ac_try="$ac_link"
  2011. case "(($ac_try" in
  2012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2013. *) ac_try_echo=$ac_try;;
  2014. esac
  2015. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2016. $as_echo "$ac_try_echo"; } >&5
  2017. (eval "$ac_link") 2>conftest.err
  2018. ac_status=$?
  2019. if test -s conftest.err; then
  2020. grep -v '^ *+' conftest.err >conftest.er1
  2021. cat conftest.er1 >&5
  2022. mv -f conftest.er1 conftest.err
  2023. fi
  2024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2025. test $ac_status = 0; } && {
  2026. test -z "$ac_cxx_werror_flag" ||
  2027. test ! -s conftest.err
  2028. } && test -s conftest$ac_exeext && {
  2029. test "$cross_compiling" = yes ||
  2030. test -x conftest$ac_exeext
  2031. }; then :
  2032. ac_retval=0
  2033. else
  2034. $as_echo "$as_me: failed program was:" >&5
  2035. sed 's/^/| /' conftest.$ac_ext >&5
  2036. ac_retval=1
  2037. fi
  2038. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2039. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2040. # interfere with the next link command; also delete a directory that is
  2041. # left behind by Apple's compiler. We do this before executing the actions.
  2042. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2043. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2044. as_fn_set_status $ac_retval
  2045. } # ac_fn_cxx_try_link
  2046. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2047. # -------------------------------------------------------
  2048. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2049. # the include files in INCLUDES and setting the cache variable VAR
  2050. # accordingly.
  2051. ac_fn_c_check_header_mongrel ()
  2052. {
  2053. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2054. if eval \${$3+:} false; then :
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2056. $as_echo_n "checking for $2... " >&6; }
  2057. if eval \${$3+:} false; then :
  2058. $as_echo_n "(cached) " >&6
  2059. fi
  2060. eval ac_res=\$$3
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2062. $as_echo "$ac_res" >&6; }
  2063. else
  2064. # Is the header compilable?
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2066. $as_echo_n "checking $2 usability... " >&6; }
  2067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2068. /* end confdefs.h. */
  2069. $4
  2070. #include <$2>
  2071. _ACEOF
  2072. if ac_fn_c_try_compile "$LINENO"; then :
  2073. ac_header_compiler=yes
  2074. else
  2075. ac_header_compiler=no
  2076. fi
  2077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2079. $as_echo "$ac_header_compiler" >&6; }
  2080. # Is the header present?
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2082. $as_echo_n "checking $2 presence... " >&6; }
  2083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2084. /* end confdefs.h. */
  2085. #include <$2>
  2086. _ACEOF
  2087. if ac_fn_c_try_cpp "$LINENO"; then :
  2088. ac_header_preproc=yes
  2089. else
  2090. ac_header_preproc=no
  2091. fi
  2092. rm -f conftest.err conftest.i conftest.$ac_ext
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2094. $as_echo "$ac_header_preproc" >&6; }
  2095. # So? What about this header?
  2096. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2097. yes:no: )
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2099. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2101. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2102. ;;
  2103. no:yes:* )
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2105. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2107. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2109. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2111. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2113. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2114. ;;
  2115. esac
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2117. $as_echo_n "checking for $2... " >&6; }
  2118. if eval \${$3+:} false; then :
  2119. $as_echo_n "(cached) " >&6
  2120. else
  2121. eval "$3=\$ac_header_compiler"
  2122. fi
  2123. eval ac_res=\$$3
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2125. $as_echo "$ac_res" >&6; }
  2126. fi
  2127. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2128. } # ac_fn_c_check_header_mongrel
  2129. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2130. # -------------------------------------------
  2131. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2132. # variable VAR accordingly.
  2133. ac_fn_c_check_type ()
  2134. {
  2135. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2137. $as_echo_n "checking for $2... " >&6; }
  2138. if eval \${$3+:} false; then :
  2139. $as_echo_n "(cached) " >&6
  2140. else
  2141. eval "$3=no"
  2142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2143. /* end confdefs.h. */
  2144. $4
  2145. int
  2146. main ()
  2147. {
  2148. if (sizeof ($2))
  2149. return 0;
  2150. ;
  2151. return 0;
  2152. }
  2153. _ACEOF
  2154. if ac_fn_c_try_compile "$LINENO"; then :
  2155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2156. /* end confdefs.h. */
  2157. $4
  2158. int
  2159. main ()
  2160. {
  2161. if (sizeof (($2)))
  2162. return 0;
  2163. ;
  2164. return 0;
  2165. }
  2166. _ACEOF
  2167. if ac_fn_c_try_compile "$LINENO"; then :
  2168. else
  2169. eval "$3=yes"
  2170. fi
  2171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2172. fi
  2173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2174. fi
  2175. eval ac_res=\$$3
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2177. $as_echo "$ac_res" >&6; }
  2178. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2179. } # ac_fn_c_check_type
  2180. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2181. # ----------------------------------------------------
  2182. # Tries to find if the field MEMBER exists in type AGGR, after including
  2183. # INCLUDES, setting cache variable VAR accordingly.
  2184. ac_fn_c_check_member ()
  2185. {
  2186. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2188. $as_echo_n "checking for $2.$3... " >&6; }
  2189. if eval \${$4+:} false; then :
  2190. $as_echo_n "(cached) " >&6
  2191. else
  2192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2193. /* end confdefs.h. */
  2194. $5
  2195. int
  2196. main ()
  2197. {
  2198. static $2 ac_aggr;
  2199. if (ac_aggr.$3)
  2200. return 0;
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. if ac_fn_c_try_compile "$LINENO"; then :
  2206. eval "$4=yes"
  2207. else
  2208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2209. /* end confdefs.h. */
  2210. $5
  2211. int
  2212. main ()
  2213. {
  2214. static $2 ac_aggr;
  2215. if (sizeof ac_aggr.$3)
  2216. return 0;
  2217. ;
  2218. return 0;
  2219. }
  2220. _ACEOF
  2221. if ac_fn_c_try_compile "$LINENO"; then :
  2222. eval "$4=yes"
  2223. else
  2224. eval "$4=no"
  2225. fi
  2226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2227. fi
  2228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2229. fi
  2230. eval ac_res=\$$4
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2232. $as_echo "$ac_res" >&6; }
  2233. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2234. } # ac_fn_c_check_member
  2235. cat >config.log <<_ACEOF
  2236. This file contains any messages produced by compilers while
  2237. running configure, to aid debugging if configure makes a mistake.
  2238. It was created by $as_me, which was
  2239. generated by GNU Autoconf 2.69. Invocation command line was
  2240. $ $0 $@
  2241. _ACEOF
  2242. exec 5>>config.log
  2243. {
  2244. cat <<_ASUNAME
  2245. ## --------- ##
  2246. ## Platform. ##
  2247. ## --------- ##
  2248. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2249. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2250. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2251. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2252. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2253. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2254. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2255. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2256. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2257. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2258. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2259. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2260. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2261. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2262. _ASUNAME
  2263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2264. for as_dir in $PATH
  2265. do
  2266. IFS=$as_save_IFS
  2267. test -z "$as_dir" && as_dir=.
  2268. $as_echo "PATH: $as_dir"
  2269. done
  2270. IFS=$as_save_IFS
  2271. } >&5
  2272. cat >&5 <<_ACEOF
  2273. ## ----------- ##
  2274. ## Core tests. ##
  2275. ## ----------- ##
  2276. _ACEOF
  2277. # Keep a trace of the command line.
  2278. # Strip out --no-create and --no-recursion so they do not pile up.
  2279. # Strip out --silent because we don't want to record it for future runs.
  2280. # Also quote any args containing shell meta-characters.
  2281. # Make two passes to allow for proper duplicate-argument suppression.
  2282. ac_configure_args=
  2283. ac_configure_args0=
  2284. ac_configure_args1=
  2285. ac_must_keep_next=false
  2286. for ac_pass in 1 2
  2287. do
  2288. for ac_arg
  2289. do
  2290. case $ac_arg in
  2291. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2292. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2293. | -silent | --silent | --silen | --sile | --sil)
  2294. continue ;;
  2295. *\'*)
  2296. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2297. esac
  2298. case $ac_pass in
  2299. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2300. 2)
  2301. as_fn_append ac_configure_args1 " '$ac_arg'"
  2302. if test $ac_must_keep_next = true; then
  2303. ac_must_keep_next=false # Got value, back to normal.
  2304. else
  2305. case $ac_arg in
  2306. *=* | --config-cache | -C | -disable-* | --disable-* \
  2307. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2308. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2309. | -with-* | --with-* | -without-* | --without-* | --x)
  2310. case "$ac_configure_args0 " in
  2311. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2312. esac
  2313. ;;
  2314. -* ) ac_must_keep_next=true ;;
  2315. esac
  2316. fi
  2317. as_fn_append ac_configure_args " '$ac_arg'"
  2318. ;;
  2319. esac
  2320. done
  2321. done
  2322. { ac_configure_args0=; unset ac_configure_args0;}
  2323. { ac_configure_args1=; unset ac_configure_args1;}
  2324. # When interrupted or exit'd, cleanup temporary files, and complete
  2325. # config.log. We remove comments because anyway the quotes in there
  2326. # would cause problems or look ugly.
  2327. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2328. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2329. trap 'exit_status=$?
  2330. # Save into config.log some information that might help in debugging.
  2331. {
  2332. echo
  2333. $as_echo "## ---------------- ##
  2334. ## Cache variables. ##
  2335. ## ---------------- ##"
  2336. echo
  2337. # The following way of writing the cache mishandles newlines in values,
  2338. (
  2339. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2340. eval ac_val=\$$ac_var
  2341. case $ac_val in #(
  2342. *${as_nl}*)
  2343. case $ac_var in #(
  2344. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2345. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2346. esac
  2347. case $ac_var in #(
  2348. _ | IFS | as_nl) ;; #(
  2349. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2350. *) { eval $ac_var=; unset $ac_var;} ;;
  2351. esac ;;
  2352. esac
  2353. done
  2354. (set) 2>&1 |
  2355. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2356. *${as_nl}ac_space=\ *)
  2357. sed -n \
  2358. "s/'\''/'\''\\\\'\'''\''/g;
  2359. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2360. ;; #(
  2361. *)
  2362. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2363. ;;
  2364. esac |
  2365. sort
  2366. )
  2367. echo
  2368. $as_echo "## ----------------- ##
  2369. ## Output variables. ##
  2370. ## ----------------- ##"
  2371. echo
  2372. for ac_var in $ac_subst_vars
  2373. do
  2374. eval ac_val=\$$ac_var
  2375. case $ac_val in
  2376. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2377. esac
  2378. $as_echo "$ac_var='\''$ac_val'\''"
  2379. done | sort
  2380. echo
  2381. if test -n "$ac_subst_files"; then
  2382. $as_echo "## ------------------- ##
  2383. ## File substitutions. ##
  2384. ## ------------------- ##"
  2385. echo
  2386. for ac_var in $ac_subst_files
  2387. do
  2388. eval ac_val=\$$ac_var
  2389. case $ac_val in
  2390. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2391. esac
  2392. $as_echo "$ac_var='\''$ac_val'\''"
  2393. done | sort
  2394. echo
  2395. fi
  2396. if test -s confdefs.h; then
  2397. $as_echo "## ----------- ##
  2398. ## confdefs.h. ##
  2399. ## ----------- ##"
  2400. echo
  2401. cat confdefs.h
  2402. echo
  2403. fi
  2404. test "$ac_signal" != 0 &&
  2405. $as_echo "$as_me: caught signal $ac_signal"
  2406. $as_echo "$as_me: exit $exit_status"
  2407. } >&5
  2408. rm -f core *.core core.conftest.* &&
  2409. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2410. exit $exit_status
  2411. ' 0
  2412. for ac_signal in 1 2 13 15; do
  2413. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2414. done
  2415. ac_signal=0
  2416. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2417. rm -f -r conftest* confdefs.h
  2418. $as_echo "/* confdefs.h */" > confdefs.h
  2419. # Predefined preprocessor variables.
  2420. cat >>confdefs.h <<_ACEOF
  2421. #define PACKAGE_NAME "$PACKAGE_NAME"
  2422. _ACEOF
  2423. cat >>confdefs.h <<_ACEOF
  2424. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2425. _ACEOF
  2426. cat >>confdefs.h <<_ACEOF
  2427. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2428. _ACEOF
  2429. cat >>confdefs.h <<_ACEOF
  2430. #define PACKAGE_STRING "$PACKAGE_STRING"
  2431. _ACEOF
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2434. _ACEOF
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_URL "$PACKAGE_URL"
  2437. _ACEOF
  2438. # Let the site file select an alternate cache file if it wants to.
  2439. # Prefer an explicitly selected file to automatically selected ones.
  2440. ac_site_file1=NONE
  2441. ac_site_file2=NONE
  2442. if test -n "$CONFIG_SITE"; then
  2443. # We do not want a PATH search for config.site.
  2444. case $CONFIG_SITE in #((
  2445. -*) ac_site_file1=./$CONFIG_SITE;;
  2446. */*) ac_site_file1=$CONFIG_SITE;;
  2447. *) ac_site_file1=./$CONFIG_SITE;;
  2448. esac
  2449. elif test "x$prefix" != xNONE; then
  2450. ac_site_file1=$prefix/share/config.site
  2451. ac_site_file2=$prefix/etc/config.site
  2452. else
  2453. ac_site_file1=$ac_default_prefix/share/config.site
  2454. ac_site_file2=$ac_default_prefix/etc/config.site
  2455. fi
  2456. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2457. do
  2458. test "x$ac_site_file" = xNONE && continue
  2459. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2461. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2462. sed 's/^/| /' "$ac_site_file" >&5
  2463. . "$ac_site_file" \
  2464. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2465. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2466. as_fn_error $? "failed to load site script $ac_site_file
  2467. See \`config.log' for more details" "$LINENO" 5; }
  2468. fi
  2469. done
  2470. if test -r "$cache_file"; then
  2471. # Some versions of bash will fail to source /dev/null (special files
  2472. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2473. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2475. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2476. case $cache_file in
  2477. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2478. *) . "./$cache_file";;
  2479. esac
  2480. fi
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2483. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2484. >$cache_file
  2485. fi
  2486. # Check that the precious variables saved in the cache have kept the same
  2487. # value.
  2488. ac_cache_corrupted=false
  2489. for ac_var in $ac_precious_vars; do
  2490. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2491. eval ac_new_set=\$ac_env_${ac_var}_set
  2492. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2493. eval ac_new_val=\$ac_env_${ac_var}_value
  2494. case $ac_old_set,$ac_new_set in
  2495. set,)
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2497. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2498. ac_cache_corrupted=: ;;
  2499. ,set)
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2501. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2502. ac_cache_corrupted=: ;;
  2503. ,);;
  2504. *)
  2505. if test "x$ac_old_val" != "x$ac_new_val"; then
  2506. # differences in whitespace do not lead to failure.
  2507. ac_old_val_w=`echo x $ac_old_val`
  2508. ac_new_val_w=`echo x $ac_new_val`
  2509. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2511. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2512. ac_cache_corrupted=:
  2513. else
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2515. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2516. eval $ac_var=\$ac_old_val
  2517. fi
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2519. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2521. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2522. fi;;
  2523. esac
  2524. # Pass precious variables to config.status.
  2525. if test "$ac_new_set" = set; then
  2526. case $ac_new_val in
  2527. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2528. *) ac_arg=$ac_var=$ac_new_val ;;
  2529. esac
  2530. case " $ac_configure_args " in
  2531. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2532. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2533. esac
  2534. fi
  2535. done
  2536. if $ac_cache_corrupted; then
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2540. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2541. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2542. fi
  2543. ## -------------------- ##
  2544. ## Main body of script. ##
  2545. ## -------------------- ##
  2546. ac_ext=c
  2547. ac_cpp='$CPP $CPPFLAGS'
  2548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2551. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2552. ac_aux_dir=
  2553. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2554. if test -f "$ac_dir/install-sh"; then
  2555. ac_aux_dir=$ac_dir
  2556. ac_install_sh="$ac_aux_dir/install-sh -c"
  2557. break
  2558. elif test -f "$ac_dir/install.sh"; then
  2559. ac_aux_dir=$ac_dir
  2560. ac_install_sh="$ac_aux_dir/install.sh -c"
  2561. break
  2562. elif test -f "$ac_dir/shtool"; then
  2563. ac_aux_dir=$ac_dir
  2564. ac_install_sh="$ac_aux_dir/shtool install -c"
  2565. break
  2566. fi
  2567. done
  2568. if test -z "$ac_aux_dir"; then
  2569. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2570. fi
  2571. # These three variables are undocumented and unsupported,
  2572. # and are intended to be withdrawn in a future Autoconf release.
  2573. # They can cause serious problems if a builder's source tree is in a directory
  2574. # whose full name contains unusual characters.
  2575. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2576. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2577. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2578. orig_CFLAGS="$CFLAGS"
  2579. #
  2580. # Making releases:
  2581. # Edit include/SDL_version.h and change the version, then:
  2582. # SDL_MICRO_VERSION += 1;
  2583. # SDL_INTERFACE_AGE += 1;
  2584. # SDL_BINARY_AGE += 1;
  2585. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2586. # if backwards compatibility has been broken,
  2587. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2588. #
  2589. SDL_MAJOR_VERSION=2
  2590. SDL_MINOR_VERSION=0
  2591. SDL_MICRO_VERSION=15
  2592. SDL_INTERFACE_AGE=1
  2593. SDL_BINARY_AGE=15
  2594. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2595. # libtool versioning
  2596. case `pwd` in
  2597. *\ * | *\ *)
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2599. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2600. esac
  2601. macro_version='2.4.2'
  2602. macro_revision='1.3337'
  2603. ltmain="$ac_aux_dir/ltmain.sh"
  2604. # Make sure we can run config.sub.
  2605. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2606. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2608. $as_echo_n "checking build system type... " >&6; }
  2609. if ${ac_cv_build+:} false; then :
  2610. $as_echo_n "(cached) " >&6
  2611. else
  2612. ac_build_alias=$build_alias
  2613. test "x$ac_build_alias" = x &&
  2614. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2615. test "x$ac_build_alias" = x &&
  2616. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2617. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2618. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2619. fi
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2621. $as_echo "$ac_cv_build" >&6; }
  2622. case $ac_cv_build in
  2623. *-*-*) ;;
  2624. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2625. esac
  2626. build=$ac_cv_build
  2627. ac_save_IFS=$IFS; IFS='-'
  2628. set x $ac_cv_build
  2629. shift
  2630. build_cpu=$1
  2631. build_vendor=$2
  2632. shift; shift
  2633. # Remember, the first character of IFS is used to create $*,
  2634. # except with old shells:
  2635. build_os=$*
  2636. IFS=$ac_save_IFS
  2637. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2639. $as_echo_n "checking host system type... " >&6; }
  2640. if ${ac_cv_host+:} false; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. if test "x$host_alias" = x; then
  2644. ac_cv_host=$ac_cv_build
  2645. else
  2646. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2647. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2648. fi
  2649. fi
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2651. $as_echo "$ac_cv_host" >&6; }
  2652. case $ac_cv_host in
  2653. *-*-*) ;;
  2654. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2655. esac
  2656. host=$ac_cv_host
  2657. ac_save_IFS=$IFS; IFS='-'
  2658. set x $ac_cv_host
  2659. shift
  2660. host_cpu=$1
  2661. host_vendor=$2
  2662. shift; shift
  2663. # Remember, the first character of IFS is used to create $*,
  2664. # except with old shells:
  2665. host_os=$*
  2666. IFS=$ac_save_IFS
  2667. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2668. # Backslashify metacharacters that are still active within
  2669. # double-quoted strings.
  2670. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2671. # Same as above, but do not quote variable references.
  2672. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2673. # Sed substitution to delay expansion of an escaped shell variable in a
  2674. # double_quote_subst'ed string.
  2675. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2676. # Sed substitution to delay expansion of an escaped single quote.
  2677. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2678. # Sed substitution to avoid accidental globbing in evaled expressions
  2679. no_glob_subst='s/\*/\\\*/g'
  2680. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2681. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2682. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2684. $as_echo_n "checking how to print strings... " >&6; }
  2685. # Test print first, because it will be a builtin if present.
  2686. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2687. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2688. ECHO='print -r --'
  2689. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2690. ECHO='printf %s\n'
  2691. else
  2692. # Use this function as a fallback that always works.
  2693. func_fallback_echo ()
  2694. {
  2695. eval 'cat <<_LTECHO_EOF
  2696. $1
  2697. _LTECHO_EOF'
  2698. }
  2699. ECHO='func_fallback_echo'
  2700. fi
  2701. # func_echo_all arg...
  2702. # Invoke $ECHO with all args, space-separated.
  2703. func_echo_all ()
  2704. {
  2705. $ECHO ""
  2706. }
  2707. case "$ECHO" in
  2708. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2709. $as_echo "printf" >&6; } ;;
  2710. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2711. $as_echo "print -r" >&6; } ;;
  2712. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2713. $as_echo "cat" >&6; } ;;
  2714. esac
  2715. ac_ext=c
  2716. ac_cpp='$CPP $CPPFLAGS'
  2717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2720. if test -n "$ac_tool_prefix"; then
  2721. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2722. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2724. $as_echo_n "checking for $ac_word... " >&6; }
  2725. if ${ac_cv_prog_CC+:} false; then :
  2726. $as_echo_n "(cached) " >&6
  2727. else
  2728. if test -n "$CC"; then
  2729. ac_cv_prog_CC="$CC" # Let the user override the test.
  2730. else
  2731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2732. for as_dir in $PATH
  2733. do
  2734. IFS=$as_save_IFS
  2735. test -z "$as_dir" && as_dir=.
  2736. for ac_exec_ext in '' $ac_executable_extensions; do
  2737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2738. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2740. break 2
  2741. fi
  2742. done
  2743. done
  2744. IFS=$as_save_IFS
  2745. fi
  2746. fi
  2747. CC=$ac_cv_prog_CC
  2748. if test -n "$CC"; then
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2750. $as_echo "$CC" >&6; }
  2751. else
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2753. $as_echo "no" >&6; }
  2754. fi
  2755. fi
  2756. if test -z "$ac_cv_prog_CC"; then
  2757. ac_ct_CC=$CC
  2758. # Extract the first word of "gcc", so it can be a program name with args.
  2759. set dummy gcc; ac_word=$2
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2761. $as_echo_n "checking for $ac_word... " >&6; }
  2762. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. if test -n "$ac_ct_CC"; then
  2766. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2767. else
  2768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2769. for as_dir in $PATH
  2770. do
  2771. IFS=$as_save_IFS
  2772. test -z "$as_dir" && as_dir=.
  2773. for ac_exec_ext in '' $ac_executable_extensions; do
  2774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2775. ac_cv_prog_ac_ct_CC="gcc"
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2777. break 2
  2778. fi
  2779. done
  2780. done
  2781. IFS=$as_save_IFS
  2782. fi
  2783. fi
  2784. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2785. if test -n "$ac_ct_CC"; then
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2787. $as_echo "$ac_ct_CC" >&6; }
  2788. else
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2790. $as_echo "no" >&6; }
  2791. fi
  2792. if test "x$ac_ct_CC" = x; then
  2793. CC=""
  2794. else
  2795. case $cross_compiling:$ac_tool_warned in
  2796. yes:)
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2799. ac_tool_warned=yes ;;
  2800. esac
  2801. CC=$ac_ct_CC
  2802. fi
  2803. else
  2804. CC="$ac_cv_prog_CC"
  2805. fi
  2806. if test -z "$CC"; then
  2807. if test -n "$ac_tool_prefix"; then
  2808. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2809. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if ${ac_cv_prog_CC+:} false; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$CC"; then
  2816. ac_cv_prog_CC="$CC" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2825. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. CC=$ac_cv_prog_CC
  2835. if test -n "$CC"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2837. $as_echo "$CC" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. fi
  2843. fi
  2844. if test -z "$CC"; then
  2845. # Extract the first word of "cc", so it can be a program name with args.
  2846. set dummy cc; 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_CC+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. if test -n "$CC"; then
  2853. ac_cv_prog_CC="$CC" # Let the user override the test.
  2854. else
  2855. ac_prog_rejected=no
  2856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857. for as_dir in $PATH
  2858. do
  2859. IFS=$as_save_IFS
  2860. test -z "$as_dir" && as_dir=.
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2863. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2864. ac_prog_rejected=yes
  2865. continue
  2866. fi
  2867. ac_cv_prog_CC="cc"
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2869. break 2
  2870. fi
  2871. done
  2872. done
  2873. IFS=$as_save_IFS
  2874. if test $ac_prog_rejected = yes; then
  2875. # We found a bogon in the path, so make sure we never use it.
  2876. set dummy $ac_cv_prog_CC
  2877. shift
  2878. if test $# != 0; then
  2879. # We chose a different compiler from the bogus one.
  2880. # However, it has the same basename, so the bogon will be chosen
  2881. # first if we set CC to just the basename; use the full file name.
  2882. shift
  2883. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2884. fi
  2885. fi
  2886. fi
  2887. fi
  2888. CC=$ac_cv_prog_CC
  2889. if test -n "$CC"; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2891. $as_echo "$CC" >&6; }
  2892. else
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. $as_echo "no" >&6; }
  2895. fi
  2896. fi
  2897. if test -z "$CC"; then
  2898. if test -n "$ac_tool_prefix"; then
  2899. for ac_prog in cl.exe
  2900. do
  2901. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2902. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2904. $as_echo_n "checking for $ac_word... " >&6; }
  2905. if ${ac_cv_prog_CC+:} false; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -n "$CC"; then
  2909. ac_cv_prog_CC="$CC" # Let the user override the test.
  2910. else
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_exec_ext in '' $ac_executable_extensions; do
  2917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2918. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. fi
  2926. fi
  2927. CC=$ac_cv_prog_CC
  2928. if test -n "$CC"; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2930. $as_echo "$CC" >&6; }
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fi
  2935. test -n "$CC" && break
  2936. done
  2937. fi
  2938. if test -z "$CC"; then
  2939. ac_ct_CC=$CC
  2940. for ac_prog in cl.exe
  2941. do
  2942. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2943. set dummy $ac_prog; ac_word=$2
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2945. $as_echo_n "checking for $ac_word... " >&6; }
  2946. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2947. $as_echo_n "(cached) " >&6
  2948. else
  2949. if test -n "$ac_ct_CC"; then
  2950. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2951. else
  2952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2953. for as_dir in $PATH
  2954. do
  2955. IFS=$as_save_IFS
  2956. test -z "$as_dir" && as_dir=.
  2957. for ac_exec_ext in '' $ac_executable_extensions; do
  2958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2959. ac_cv_prog_ac_ct_CC="$ac_prog"
  2960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2961. break 2
  2962. fi
  2963. done
  2964. done
  2965. IFS=$as_save_IFS
  2966. fi
  2967. fi
  2968. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2969. if test -n "$ac_ct_CC"; then
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2971. $as_echo "$ac_ct_CC" >&6; }
  2972. else
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2974. $as_echo "no" >&6; }
  2975. fi
  2976. test -n "$ac_ct_CC" && break
  2977. done
  2978. if test "x$ac_ct_CC" = x; then
  2979. CC=""
  2980. else
  2981. case $cross_compiling:$ac_tool_warned in
  2982. yes:)
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2984. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2985. ac_tool_warned=yes ;;
  2986. esac
  2987. CC=$ac_ct_CC
  2988. fi
  2989. fi
  2990. fi
  2991. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2993. as_fn_error $? "no acceptable C compiler found in \$PATH
  2994. See \`config.log' for more details" "$LINENO" 5; }
  2995. # Provide some information about the compiler.
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2997. set X $ac_compile
  2998. ac_compiler=$2
  2999. for ac_option in --version -v -V -qversion; do
  3000. { { ac_try="$ac_compiler $ac_option >&5"
  3001. case "(($ac_try" in
  3002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3003. *) ac_try_echo=$ac_try;;
  3004. esac
  3005. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3006. $as_echo "$ac_try_echo"; } >&5
  3007. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3008. ac_status=$?
  3009. if test -s conftest.err; then
  3010. sed '10a\
  3011. ... rest of stderr output deleted ...
  3012. 10q' conftest.err >conftest.er1
  3013. cat conftest.er1 >&5
  3014. fi
  3015. rm -f conftest.er1 conftest.err
  3016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3017. test $ac_status = 0; }
  3018. done
  3019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3020. /* end confdefs.h. */
  3021. int
  3022. main ()
  3023. {
  3024. ;
  3025. return 0;
  3026. }
  3027. _ACEOF
  3028. ac_clean_files_save=$ac_clean_files
  3029. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3030. # Try to create an executable without -o first, disregard a.out.
  3031. # It will help us diagnose broken compilers, and finding out an intuition
  3032. # of exeext.
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3034. $as_echo_n "checking whether the C compiler works... " >&6; }
  3035. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3036. # The possible output files:
  3037. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3038. ac_rmfiles=
  3039. for ac_file in $ac_files
  3040. do
  3041. case $ac_file in
  3042. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3043. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3044. esac
  3045. done
  3046. rm -f $ac_rmfiles
  3047. if { { ac_try="$ac_link_default"
  3048. case "(($ac_try" in
  3049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3050. *) ac_try_echo=$ac_try;;
  3051. esac
  3052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3053. $as_echo "$ac_try_echo"; } >&5
  3054. (eval "$ac_link_default") 2>&5
  3055. ac_status=$?
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3057. test $ac_status = 0; }; then :
  3058. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3059. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3060. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3061. # so that the user can short-circuit this test for compilers unknown to
  3062. # Autoconf.
  3063. for ac_file in $ac_files ''
  3064. do
  3065. test -f "$ac_file" || continue
  3066. case $ac_file in
  3067. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3068. ;;
  3069. [ab].out )
  3070. # We found the default executable, but exeext='' is most
  3071. # certainly right.
  3072. break;;
  3073. *.* )
  3074. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3075. then :; else
  3076. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3077. fi
  3078. # We set ac_cv_exeext here because the later test for it is not
  3079. # safe: cross compilers may not add the suffix if given an `-o'
  3080. # argument, so we may need to know it at that point already.
  3081. # Even if this section looks crufty: it has the advantage of
  3082. # actually working.
  3083. break;;
  3084. * )
  3085. break;;
  3086. esac
  3087. done
  3088. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3089. else
  3090. ac_file=''
  3091. fi
  3092. if test -z "$ac_file"; then :
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3094. $as_echo "no" >&6; }
  3095. $as_echo "$as_me: failed program was:" >&5
  3096. sed 's/^/| /' conftest.$ac_ext >&5
  3097. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3098. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3099. as_fn_error 77 "C compiler cannot create executables
  3100. See \`config.log' for more details" "$LINENO" 5; }
  3101. else
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3103. $as_echo "yes" >&6; }
  3104. fi
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3106. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3108. $as_echo "$ac_file" >&6; }
  3109. ac_exeext=$ac_cv_exeext
  3110. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3111. ac_clean_files=$ac_clean_files_save
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3113. $as_echo_n "checking for suffix of executables... " >&6; }
  3114. if { { ac_try="$ac_link"
  3115. case "(($ac_try" in
  3116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3117. *) ac_try_echo=$ac_try;;
  3118. esac
  3119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3120. $as_echo "$ac_try_echo"; } >&5
  3121. (eval "$ac_link") 2>&5
  3122. ac_status=$?
  3123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3124. test $ac_status = 0; }; then :
  3125. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3126. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3127. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3128. # `rm'.
  3129. for ac_file in conftest.exe conftest conftest.*; do
  3130. test -f "$ac_file" || continue
  3131. case $ac_file in
  3132. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3133. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3134. break;;
  3135. * ) break;;
  3136. esac
  3137. done
  3138. else
  3139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3141. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3142. See \`config.log' for more details" "$LINENO" 5; }
  3143. fi
  3144. rm -f conftest conftest$ac_cv_exeext
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3146. $as_echo "$ac_cv_exeext" >&6; }
  3147. rm -f conftest.$ac_ext
  3148. EXEEXT=$ac_cv_exeext
  3149. ac_exeext=$EXEEXT
  3150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3151. /* end confdefs.h. */
  3152. #include <stdio.h>
  3153. int
  3154. main ()
  3155. {
  3156. FILE *f = fopen ("conftest.out", "w");
  3157. return ferror (f) || fclose (f) != 0;
  3158. ;
  3159. return 0;
  3160. }
  3161. _ACEOF
  3162. ac_clean_files="$ac_clean_files conftest.out"
  3163. # Check that the compiler produces executables we can run. If not, either
  3164. # the compiler is broken, or we cross compile.
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3166. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3167. if test "$cross_compiling" != yes; then
  3168. { { ac_try="$ac_link"
  3169. case "(($ac_try" in
  3170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3171. *) ac_try_echo=$ac_try;;
  3172. esac
  3173. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3174. $as_echo "$ac_try_echo"; } >&5
  3175. (eval "$ac_link") 2>&5
  3176. ac_status=$?
  3177. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3178. test $ac_status = 0; }
  3179. if { ac_try='./conftest$ac_cv_exeext'
  3180. { { case "(($ac_try" in
  3181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3182. *) ac_try_echo=$ac_try;;
  3183. esac
  3184. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3185. $as_echo "$ac_try_echo"; } >&5
  3186. (eval "$ac_try") 2>&5
  3187. ac_status=$?
  3188. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3189. test $ac_status = 0; }; }; then
  3190. cross_compiling=no
  3191. else
  3192. if test "$cross_compiling" = maybe; then
  3193. cross_compiling=yes
  3194. else
  3195. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3196. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3197. as_fn_error $? "cannot run C compiled programs.
  3198. If you meant to cross compile, use \`--host'.
  3199. See \`config.log' for more details" "$LINENO" 5; }
  3200. fi
  3201. fi
  3202. fi
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3204. $as_echo "$cross_compiling" >&6; }
  3205. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3206. ac_clean_files=$ac_clean_files_save
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3208. $as_echo_n "checking for suffix of object files... " >&6; }
  3209. if ${ac_cv_objext+:} false; then :
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3213. /* end confdefs.h. */
  3214. int
  3215. main ()
  3216. {
  3217. ;
  3218. return 0;
  3219. }
  3220. _ACEOF
  3221. rm -f conftest.o conftest.obj
  3222. if { { ac_try="$ac_compile"
  3223. case "(($ac_try" in
  3224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3225. *) ac_try_echo=$ac_try;;
  3226. esac
  3227. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3228. $as_echo "$ac_try_echo"; } >&5
  3229. (eval "$ac_compile") 2>&5
  3230. ac_status=$?
  3231. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3232. test $ac_status = 0; }; then :
  3233. for ac_file in conftest.o conftest.obj conftest.*; do
  3234. test -f "$ac_file" || continue;
  3235. case $ac_file in
  3236. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3237. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3238. break;;
  3239. esac
  3240. done
  3241. else
  3242. $as_echo "$as_me: failed program was:" >&5
  3243. sed 's/^/| /' conftest.$ac_ext >&5
  3244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3246. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3247. See \`config.log' for more details" "$LINENO" 5; }
  3248. fi
  3249. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3250. fi
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3252. $as_echo "$ac_cv_objext" >&6; }
  3253. OBJEXT=$ac_cv_objext
  3254. ac_objext=$OBJEXT
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3256. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3257. if ${ac_cv_c_compiler_gnu+:} false; then :
  3258. $as_echo_n "(cached) " >&6
  3259. else
  3260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3261. /* end confdefs.h. */
  3262. int
  3263. main ()
  3264. {
  3265. #ifndef __GNUC__
  3266. choke me
  3267. #endif
  3268. ;
  3269. return 0;
  3270. }
  3271. _ACEOF
  3272. if ac_fn_c_try_compile "$LINENO"; then :
  3273. ac_compiler_gnu=yes
  3274. else
  3275. ac_compiler_gnu=no
  3276. fi
  3277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3278. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3281. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3282. if test $ac_compiler_gnu = yes; then
  3283. GCC=yes
  3284. else
  3285. GCC=
  3286. fi
  3287. ac_test_CFLAGS=${CFLAGS+set}
  3288. ac_save_CFLAGS=$CFLAGS
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3290. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3291. if ${ac_cv_prog_cc_g+:} false; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. ac_save_c_werror_flag=$ac_c_werror_flag
  3295. ac_c_werror_flag=yes
  3296. ac_cv_prog_cc_g=no
  3297. CFLAGS="-g"
  3298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3299. /* end confdefs.h. */
  3300. int
  3301. main ()
  3302. {
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. if ac_fn_c_try_compile "$LINENO"; then :
  3308. ac_cv_prog_cc_g=yes
  3309. else
  3310. CFLAGS=""
  3311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3312. /* end confdefs.h. */
  3313. int
  3314. main ()
  3315. {
  3316. ;
  3317. return 0;
  3318. }
  3319. _ACEOF
  3320. if ac_fn_c_try_compile "$LINENO"; then :
  3321. else
  3322. ac_c_werror_flag=$ac_save_c_werror_flag
  3323. CFLAGS="-g"
  3324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3325. /* end confdefs.h. */
  3326. int
  3327. main ()
  3328. {
  3329. ;
  3330. return 0;
  3331. }
  3332. _ACEOF
  3333. if ac_fn_c_try_compile "$LINENO"; then :
  3334. ac_cv_prog_cc_g=yes
  3335. fi
  3336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3337. fi
  3338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3339. fi
  3340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3341. ac_c_werror_flag=$ac_save_c_werror_flag
  3342. fi
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3344. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3345. if test "$ac_test_CFLAGS" = set; then
  3346. CFLAGS=$ac_save_CFLAGS
  3347. elif test $ac_cv_prog_cc_g = yes; then
  3348. if test "$GCC" = yes; then
  3349. CFLAGS="-g -O2"
  3350. else
  3351. CFLAGS="-g"
  3352. fi
  3353. else
  3354. if test "$GCC" = yes; then
  3355. CFLAGS="-O2"
  3356. else
  3357. CFLAGS=
  3358. fi
  3359. fi
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3361. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3362. if ${ac_cv_prog_cc_c89+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. ac_cv_prog_cc_c89=no
  3366. ac_save_CC=$CC
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. #include <stdarg.h>
  3370. #include <stdio.h>
  3371. struct stat;
  3372. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3373. struct buf { int x; };
  3374. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3375. static char *e (p, i)
  3376. char **p;
  3377. int i;
  3378. {
  3379. return p[i];
  3380. }
  3381. static char *f (char * (*g) (char **, int), char **p, ...)
  3382. {
  3383. char *s;
  3384. va_list v;
  3385. va_start (v,p);
  3386. s = g (p, va_arg (v,int));
  3387. va_end (v);
  3388. return s;
  3389. }
  3390. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3391. function prototypes and stuff, but not '\xHH' hex character constants.
  3392. These don't provoke an error unfortunately, instead are silently treated
  3393. as 'x'. The following induces an error, until -std is added to get
  3394. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3395. array size at least. It's necessary to write '\x00'==0 to get something
  3396. that's true only with -std. */
  3397. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3398. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3399. inside strings and character constants. */
  3400. #define FOO(x) 'x'
  3401. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3402. int test (int i, double x);
  3403. struct s1 {int (*f) (int a);};
  3404. struct s2 {int (*f) (double a);};
  3405. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3406. int argc;
  3407. char **argv;
  3408. int
  3409. main ()
  3410. {
  3411. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3412. ;
  3413. return 0;
  3414. }
  3415. _ACEOF
  3416. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3417. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3418. do
  3419. CC="$ac_save_CC $ac_arg"
  3420. if ac_fn_c_try_compile "$LINENO"; then :
  3421. ac_cv_prog_cc_c89=$ac_arg
  3422. fi
  3423. rm -f core conftest.err conftest.$ac_objext
  3424. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3425. done
  3426. rm -f conftest.$ac_ext
  3427. CC=$ac_save_CC
  3428. fi
  3429. # AC_CACHE_VAL
  3430. case "x$ac_cv_prog_cc_c89" in
  3431. x)
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3433. $as_echo "none needed" >&6; } ;;
  3434. xno)
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3436. $as_echo "unsupported" >&6; } ;;
  3437. *)
  3438. CC="$CC $ac_cv_prog_cc_c89"
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3440. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3441. esac
  3442. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3443. fi
  3444. ac_ext=c
  3445. ac_cpp='$CPP $CPPFLAGS'
  3446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3450. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3451. if ${ac_cv_path_SED+:} false; then :
  3452. $as_echo_n "(cached) " >&6
  3453. else
  3454. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3455. for ac_i in 1 2 3 4 5 6 7; do
  3456. ac_script="$ac_script$as_nl$ac_script"
  3457. done
  3458. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3459. { ac_script=; unset ac_script;}
  3460. if test -z "$SED"; then
  3461. ac_path_SED_found=false
  3462. # Loop through the user's path and test for each of PROGNAME-LIST
  3463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3464. for as_dir in $PATH
  3465. do
  3466. IFS=$as_save_IFS
  3467. test -z "$as_dir" && as_dir=.
  3468. for ac_prog in sed gsed; do
  3469. for ac_exec_ext in '' $ac_executable_extensions; do
  3470. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3471. as_fn_executable_p "$ac_path_SED" || continue
  3472. # Check for GNU ac_path_SED and select it if it is found.
  3473. # Check for GNU $ac_path_SED
  3474. case `"$ac_path_SED" --version 2>&1` in
  3475. *GNU*)
  3476. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3477. *)
  3478. ac_count=0
  3479. $as_echo_n 0123456789 >"conftest.in"
  3480. while :
  3481. do
  3482. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3483. mv "conftest.tmp" "conftest.in"
  3484. cp "conftest.in" "conftest.nl"
  3485. $as_echo '' >> "conftest.nl"
  3486. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3487. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3488. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3489. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3490. # Best one so far, save it but keep looking for a better one
  3491. ac_cv_path_SED="$ac_path_SED"
  3492. ac_path_SED_max=$ac_count
  3493. fi
  3494. # 10*(2^10) chars as input seems more than enough
  3495. test $ac_count -gt 10 && break
  3496. done
  3497. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3498. esac
  3499. $ac_path_SED_found && break 3
  3500. done
  3501. done
  3502. done
  3503. IFS=$as_save_IFS
  3504. if test -z "$ac_cv_path_SED"; then
  3505. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3506. fi
  3507. else
  3508. ac_cv_path_SED=$SED
  3509. fi
  3510. fi
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3512. $as_echo "$ac_cv_path_SED" >&6; }
  3513. SED="$ac_cv_path_SED"
  3514. rm -f conftest.sed
  3515. test -z "$SED" && SED=sed
  3516. Xsed="$SED -e 1s/^X//"
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3518. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3519. if ${ac_cv_path_GREP+:} false; then :
  3520. $as_echo_n "(cached) " >&6
  3521. else
  3522. if test -z "$GREP"; then
  3523. ac_path_GREP_found=false
  3524. # Loop through the user's path and test for each of PROGNAME-LIST
  3525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3526. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3527. do
  3528. IFS=$as_save_IFS
  3529. test -z "$as_dir" && as_dir=.
  3530. for ac_prog in grep ggrep; do
  3531. for ac_exec_ext in '' $ac_executable_extensions; do
  3532. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3533. as_fn_executable_p "$ac_path_GREP" || continue
  3534. # Check for GNU ac_path_GREP and select it if it is found.
  3535. # Check for GNU $ac_path_GREP
  3536. case `"$ac_path_GREP" --version 2>&1` in
  3537. *GNU*)
  3538. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3539. *)
  3540. ac_count=0
  3541. $as_echo_n 0123456789 >"conftest.in"
  3542. while :
  3543. do
  3544. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3545. mv "conftest.tmp" "conftest.in"
  3546. cp "conftest.in" "conftest.nl"
  3547. $as_echo 'GREP' >> "conftest.nl"
  3548. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3549. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3550. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3551. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3552. # Best one so far, save it but keep looking for a better one
  3553. ac_cv_path_GREP="$ac_path_GREP"
  3554. ac_path_GREP_max=$ac_count
  3555. fi
  3556. # 10*(2^10) chars as input seems more than enough
  3557. test $ac_count -gt 10 && break
  3558. done
  3559. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3560. esac
  3561. $ac_path_GREP_found && break 3
  3562. done
  3563. done
  3564. done
  3565. IFS=$as_save_IFS
  3566. if test -z "$ac_cv_path_GREP"; then
  3567. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3568. fi
  3569. else
  3570. ac_cv_path_GREP=$GREP
  3571. fi
  3572. fi
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3574. $as_echo "$ac_cv_path_GREP" >&6; }
  3575. GREP="$ac_cv_path_GREP"
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3577. $as_echo_n "checking for egrep... " >&6; }
  3578. if ${ac_cv_path_EGREP+:} false; then :
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3582. then ac_cv_path_EGREP="$GREP -E"
  3583. else
  3584. if test -z "$EGREP"; then
  3585. ac_path_EGREP_found=false
  3586. # Loop through the user's path and test for each of PROGNAME-LIST
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3589. do
  3590. IFS=$as_save_IFS
  3591. test -z "$as_dir" && as_dir=.
  3592. for ac_prog in egrep; do
  3593. for ac_exec_ext in '' $ac_executable_extensions; do
  3594. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3595. as_fn_executable_p "$ac_path_EGREP" || continue
  3596. # Check for GNU ac_path_EGREP and select it if it is found.
  3597. # Check for GNU $ac_path_EGREP
  3598. case `"$ac_path_EGREP" --version 2>&1` in
  3599. *GNU*)
  3600. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3601. *)
  3602. ac_count=0
  3603. $as_echo_n 0123456789 >"conftest.in"
  3604. while :
  3605. do
  3606. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3607. mv "conftest.tmp" "conftest.in"
  3608. cp "conftest.in" "conftest.nl"
  3609. $as_echo 'EGREP' >> "conftest.nl"
  3610. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3611. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3612. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3613. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3614. # Best one so far, save it but keep looking for a better one
  3615. ac_cv_path_EGREP="$ac_path_EGREP"
  3616. ac_path_EGREP_max=$ac_count
  3617. fi
  3618. # 10*(2^10) chars as input seems more than enough
  3619. test $ac_count -gt 10 && break
  3620. done
  3621. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3622. esac
  3623. $ac_path_EGREP_found && break 3
  3624. done
  3625. done
  3626. done
  3627. IFS=$as_save_IFS
  3628. if test -z "$ac_cv_path_EGREP"; then
  3629. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3630. fi
  3631. else
  3632. ac_cv_path_EGREP=$EGREP
  3633. fi
  3634. fi
  3635. fi
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3637. $as_echo "$ac_cv_path_EGREP" >&6; }
  3638. EGREP="$ac_cv_path_EGREP"
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3640. $as_echo_n "checking for fgrep... " >&6; }
  3641. if ${ac_cv_path_FGREP+:} false; then :
  3642. $as_echo_n "(cached) " >&6
  3643. else
  3644. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3645. then ac_cv_path_FGREP="$GREP -F"
  3646. else
  3647. if test -z "$FGREP"; then
  3648. ac_path_FGREP_found=false
  3649. # Loop through the user's path and test for each of PROGNAME-LIST
  3650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3651. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3652. do
  3653. IFS=$as_save_IFS
  3654. test -z "$as_dir" && as_dir=.
  3655. for ac_prog in fgrep; do
  3656. for ac_exec_ext in '' $ac_executable_extensions; do
  3657. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3658. as_fn_executable_p "$ac_path_FGREP" || continue
  3659. # Check for GNU ac_path_FGREP and select it if it is found.
  3660. # Check for GNU $ac_path_FGREP
  3661. case `"$ac_path_FGREP" --version 2>&1` in
  3662. *GNU*)
  3663. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3664. *)
  3665. ac_count=0
  3666. $as_echo_n 0123456789 >"conftest.in"
  3667. while :
  3668. do
  3669. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3670. mv "conftest.tmp" "conftest.in"
  3671. cp "conftest.in" "conftest.nl"
  3672. $as_echo 'FGREP' >> "conftest.nl"
  3673. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3674. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3675. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3676. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3677. # Best one so far, save it but keep looking for a better one
  3678. ac_cv_path_FGREP="$ac_path_FGREP"
  3679. ac_path_FGREP_max=$ac_count
  3680. fi
  3681. # 10*(2^10) chars as input seems more than enough
  3682. test $ac_count -gt 10 && break
  3683. done
  3684. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3685. esac
  3686. $ac_path_FGREP_found && break 3
  3687. done
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. if test -z "$ac_cv_path_FGREP"; then
  3692. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3693. fi
  3694. else
  3695. ac_cv_path_FGREP=$FGREP
  3696. fi
  3697. fi
  3698. fi
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3700. $as_echo "$ac_cv_path_FGREP" >&6; }
  3701. FGREP="$ac_cv_path_FGREP"
  3702. test -z "$GREP" && GREP=grep
  3703. # Check whether --with-gnu-ld was given.
  3704. if test "${with_gnu_ld+set}" = set; then :
  3705. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3706. else
  3707. with_gnu_ld=no
  3708. fi
  3709. ac_prog=ld
  3710. if test "$GCC" = yes; then
  3711. # Check if gcc -print-prog-name=ld gives a path.
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3713. $as_echo_n "checking for ld used by $CC... " >&6; }
  3714. case $host in
  3715. *-*-mingw*)
  3716. # gcc leaves a trailing carriage return which upsets mingw
  3717. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3718. *)
  3719. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3720. esac
  3721. case $ac_prog in
  3722. # Accept absolute paths.
  3723. [\\/]* | ?:[\\/]*)
  3724. re_direlt='/[^/][^/]*/\.\./'
  3725. # Canonicalize the pathname of ld
  3726. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3727. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3728. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3729. done
  3730. test -z "$LD" && LD="$ac_prog"
  3731. ;;
  3732. "")
  3733. # If it fails, then pretend we aren't using GCC.
  3734. ac_prog=ld
  3735. ;;
  3736. *)
  3737. # If it is relative, then search for the first ld in PATH.
  3738. with_gnu_ld=unknown
  3739. ;;
  3740. esac
  3741. elif test "$with_gnu_ld" = yes; then
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3743. $as_echo_n "checking for GNU ld... " >&6; }
  3744. else
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3746. $as_echo_n "checking for non-GNU ld... " >&6; }
  3747. fi
  3748. if ${lt_cv_path_LD+:} false; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. if test -z "$LD"; then
  3752. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3753. for ac_dir in $PATH; do
  3754. IFS="$lt_save_ifs"
  3755. test -z "$ac_dir" && ac_dir=.
  3756. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3757. lt_cv_path_LD="$ac_dir/$ac_prog"
  3758. # Check to see if the program is GNU ld. I'd rather use --version,
  3759. # but apparently some variants of GNU ld only accept -v.
  3760. # Break only if it was the GNU/non-GNU ld that we prefer.
  3761. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3762. *GNU* | *'with BFD'*)
  3763. test "$with_gnu_ld" != no && break
  3764. ;;
  3765. *)
  3766. test "$with_gnu_ld" != yes && break
  3767. ;;
  3768. esac
  3769. fi
  3770. done
  3771. IFS="$lt_save_ifs"
  3772. else
  3773. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3774. fi
  3775. fi
  3776. LD="$lt_cv_path_LD"
  3777. if test -n "$LD"; then
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3779. $as_echo "$LD" >&6; }
  3780. else
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3782. $as_echo "no" >&6; }
  3783. fi
  3784. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3786. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3787. if ${lt_cv_prog_gnu_ld+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3791. case `$LD -v 2>&1 </dev/null` in
  3792. *GNU* | *'with BFD'*)
  3793. lt_cv_prog_gnu_ld=yes
  3794. ;;
  3795. *)
  3796. lt_cv_prog_gnu_ld=no
  3797. ;;
  3798. esac
  3799. fi
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3801. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3802. with_gnu_ld=$lt_cv_prog_gnu_ld
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3804. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3805. if ${lt_cv_path_NM+:} false; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. if test -n "$NM"; then
  3809. # Let the user override the test.
  3810. lt_cv_path_NM="$NM"
  3811. else
  3812. lt_nm_to_check="${ac_tool_prefix}nm"
  3813. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3814. lt_nm_to_check="$lt_nm_to_check nm"
  3815. fi
  3816. for lt_tmp_nm in $lt_nm_to_check; do
  3817. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3818. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3819. IFS="$lt_save_ifs"
  3820. test -z "$ac_dir" && ac_dir=.
  3821. tmp_nm="$ac_dir/$lt_tmp_nm"
  3822. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3823. # Check to see if the nm accepts a BSD-compat flag.
  3824. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3825. # nm: unknown option "B" ignored
  3826. # Tru64's nm complains that /dev/null is an invalid object file
  3827. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3828. */dev/null* | *'Invalid file or object type'*)
  3829. lt_cv_path_NM="$tmp_nm -B"
  3830. break
  3831. ;;
  3832. *)
  3833. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3834. */dev/null*)
  3835. lt_cv_path_NM="$tmp_nm -p"
  3836. break
  3837. ;;
  3838. *)
  3839. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3840. continue # so that we can try to find one that supports BSD flags
  3841. ;;
  3842. esac
  3843. ;;
  3844. esac
  3845. fi
  3846. done
  3847. IFS="$lt_save_ifs"
  3848. done
  3849. : ${lt_cv_path_NM=no}
  3850. fi
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3853. $as_echo "$lt_cv_path_NM" >&6; }
  3854. if test "$lt_cv_path_NM" != "no"; then
  3855. NM="$lt_cv_path_NM"
  3856. else
  3857. # Didn't find any BSD compatible name lister, look for dumpbin.
  3858. if test -n "$DUMPBIN"; then :
  3859. # Let the user override the test.
  3860. else
  3861. if test -n "$ac_tool_prefix"; then
  3862. for ac_prog in dumpbin "link -dump"
  3863. do
  3864. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3865. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3867. $as_echo_n "checking for $ac_word... " >&6; }
  3868. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. if test -n "$DUMPBIN"; then
  3872. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3873. else
  3874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3875. for as_dir in $PATH
  3876. do
  3877. IFS=$as_save_IFS
  3878. test -z "$as_dir" && as_dir=.
  3879. for ac_exec_ext in '' $ac_executable_extensions; do
  3880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3881. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3883. break 2
  3884. fi
  3885. done
  3886. done
  3887. IFS=$as_save_IFS
  3888. fi
  3889. fi
  3890. DUMPBIN=$ac_cv_prog_DUMPBIN
  3891. if test -n "$DUMPBIN"; then
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3893. $as_echo "$DUMPBIN" >&6; }
  3894. else
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3896. $as_echo "no" >&6; }
  3897. fi
  3898. test -n "$DUMPBIN" && break
  3899. done
  3900. fi
  3901. if test -z "$DUMPBIN"; then
  3902. ac_ct_DUMPBIN=$DUMPBIN
  3903. for ac_prog in dumpbin "link -dump"
  3904. do
  3905. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3906. set dummy $ac_prog; ac_word=$2
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3908. $as_echo_n "checking for $ac_word... " >&6; }
  3909. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. if test -n "$ac_ct_DUMPBIN"; then
  3913. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3914. else
  3915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3916. for as_dir in $PATH
  3917. do
  3918. IFS=$as_save_IFS
  3919. test -z "$as_dir" && as_dir=.
  3920. for ac_exec_ext in '' $ac_executable_extensions; do
  3921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3922. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3924. break 2
  3925. fi
  3926. done
  3927. done
  3928. IFS=$as_save_IFS
  3929. fi
  3930. fi
  3931. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3932. if test -n "$ac_ct_DUMPBIN"; then
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3934. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3935. else
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3937. $as_echo "no" >&6; }
  3938. fi
  3939. test -n "$ac_ct_DUMPBIN" && break
  3940. done
  3941. if test "x$ac_ct_DUMPBIN" = x; then
  3942. DUMPBIN=":"
  3943. else
  3944. case $cross_compiling:$ac_tool_warned in
  3945. yes:)
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3947. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3948. ac_tool_warned=yes ;;
  3949. esac
  3950. DUMPBIN=$ac_ct_DUMPBIN
  3951. fi
  3952. fi
  3953. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3954. *COFF*)
  3955. DUMPBIN="$DUMPBIN -symbols"
  3956. ;;
  3957. *)
  3958. DUMPBIN=:
  3959. ;;
  3960. esac
  3961. fi
  3962. if test "$DUMPBIN" != ":"; then
  3963. NM="$DUMPBIN"
  3964. fi
  3965. fi
  3966. test -z "$NM" && NM=nm
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3968. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3969. if ${lt_cv_nm_interface+:} false; then :
  3970. $as_echo_n "(cached) " >&6
  3971. else
  3972. lt_cv_nm_interface="BSD nm"
  3973. echo "int some_variable = 0;" > conftest.$ac_ext
  3974. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3975. (eval "$ac_compile" 2>conftest.err)
  3976. cat conftest.err >&5
  3977. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3978. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3979. cat conftest.err >&5
  3980. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3981. cat conftest.out >&5
  3982. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3983. lt_cv_nm_interface="MS dumpbin"
  3984. fi
  3985. rm -f conftest*
  3986. fi
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3988. $as_echo "$lt_cv_nm_interface" >&6; }
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3990. $as_echo_n "checking whether ln -s works... " >&6; }
  3991. LN_S=$as_ln_s
  3992. if test "$LN_S" = "ln -s"; then
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3994. $as_echo "yes" >&6; }
  3995. else
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3997. $as_echo "no, using $LN_S" >&6; }
  3998. fi
  3999. # find the maximum length of command line arguments
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4001. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4002. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. i=0
  4006. teststring="ABCD"
  4007. case $build_os in
  4008. msdosdjgpp*)
  4009. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4010. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4011. # during glob expansion). Even if it were fixed, the result of this
  4012. # check would be larger than it should be.
  4013. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4014. ;;
  4015. gnu*)
  4016. # Under GNU Hurd, this test is not required because there is
  4017. # no limit to the length of command line arguments.
  4018. # Libtool will interpret -1 as no limit whatsoever
  4019. lt_cv_sys_max_cmd_len=-1;
  4020. ;;
  4021. cygwin* | mingw* | cegcc*)
  4022. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4023. # about 5 minutes as the teststring grows exponentially.
  4024. # Worse, since 9x/ME are not pre-emptively multitasking,
  4025. # you end up with a "frozen" computer, even though with patience
  4026. # the test eventually succeeds (with a max line length of 256k).
  4027. # Instead, let's just punt: use the minimum linelength reported by
  4028. # all of the supported platforms: 8192 (on NT/2K/XP).
  4029. lt_cv_sys_max_cmd_len=8192;
  4030. ;;
  4031. mint*)
  4032. # On MiNT this can take a long time and run out of memory.
  4033. lt_cv_sys_max_cmd_len=8192;
  4034. ;;
  4035. amigaos*)
  4036. # On AmigaOS with pdksh, this test takes hours, literally.
  4037. # So we just punt and use a minimum line length of 8192.
  4038. lt_cv_sys_max_cmd_len=8192;
  4039. ;;
  4040. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4041. # This has been around since 386BSD, at least. Likely further.
  4042. if test -x /sbin/sysctl; then
  4043. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4044. elif test -x /usr/sbin/sysctl; then
  4045. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4046. else
  4047. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4048. fi
  4049. # And add a safety zone
  4050. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4051. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4052. ;;
  4053. interix*)
  4054. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4055. lt_cv_sys_max_cmd_len=196608
  4056. ;;
  4057. os2*)
  4058. # The test takes a long time on OS/2.
  4059. lt_cv_sys_max_cmd_len=8192
  4060. ;;
  4061. osf*)
  4062. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4063. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4064. # nice to cause kernel panics so lets avoid the loop below.
  4065. # First set a reasonable default.
  4066. lt_cv_sys_max_cmd_len=16384
  4067. #
  4068. if test -x /sbin/sysconfig; then
  4069. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4070. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4071. esac
  4072. fi
  4073. ;;
  4074. sco3.2v5*)
  4075. lt_cv_sys_max_cmd_len=102400
  4076. ;;
  4077. sysv5* | sco5v6* | sysv4.2uw2*)
  4078. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4079. if test -n "$kargmax"; then
  4080. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4081. else
  4082. lt_cv_sys_max_cmd_len=32768
  4083. fi
  4084. ;;
  4085. *)
  4086. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4087. if test -n "$lt_cv_sys_max_cmd_len"; then
  4088. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4089. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4090. else
  4091. # Make teststring a little bigger before we do anything with it.
  4092. # a 1K string should be a reasonable start.
  4093. for i in 1 2 3 4 5 6 7 8 ; do
  4094. teststring=$teststring$teststring
  4095. done
  4096. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4097. # If test is not a shell built-in, we'll probably end up computing a
  4098. # maximum length that is only half of the actual maximum length, but
  4099. # we can't tell.
  4100. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4101. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4102. test $i != 17 # 1/2 MB should be enough
  4103. do
  4104. i=`expr $i + 1`
  4105. teststring=$teststring$teststring
  4106. done
  4107. # Only check the string length outside the loop.
  4108. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4109. teststring=
  4110. # Add a significant safety factor because C++ compilers can tack on
  4111. # massive amounts of additional arguments before passing them to the
  4112. # linker. It appears as though 1/2 is a usable value.
  4113. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4114. fi
  4115. ;;
  4116. esac
  4117. fi
  4118. if test -n $lt_cv_sys_max_cmd_len ; then
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4120. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4121. else
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4123. $as_echo "none" >&6; }
  4124. fi
  4125. max_cmd_len=$lt_cv_sys_max_cmd_len
  4126. : ${CP="cp -f"}
  4127. : ${MV="mv -f"}
  4128. : ${RM="rm -f"}
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4130. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4131. # Try some XSI features
  4132. xsi_shell=no
  4133. ( _lt_dummy="a/b/c"
  4134. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4135. = c,a/b,b/c, \
  4136. && eval 'test $(( 1 + 1 )) -eq 2 \
  4137. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4138. && xsi_shell=yes
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4140. $as_echo "$xsi_shell" >&6; }
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4142. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4143. lt_shell_append=no
  4144. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4145. >/dev/null 2>&1 \
  4146. && lt_shell_append=yes
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4148. $as_echo "$lt_shell_append" >&6; }
  4149. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4150. lt_unset=unset
  4151. else
  4152. lt_unset=false
  4153. fi
  4154. # test EBCDIC or ASCII
  4155. case `echo X|tr X '\101'` in
  4156. A) # ASCII based system
  4157. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4158. lt_SP2NL='tr \040 \012'
  4159. lt_NL2SP='tr \015\012 \040\040'
  4160. ;;
  4161. *) # EBCDIC based system
  4162. lt_SP2NL='tr \100 \n'
  4163. lt_NL2SP='tr \r\n \100\100'
  4164. ;;
  4165. esac
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4167. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4168. if ${lt_cv_to_host_file_cmd+:} false; then :
  4169. $as_echo_n "(cached) " >&6
  4170. else
  4171. case $host in
  4172. *-*-mingw* )
  4173. case $build in
  4174. *-*-mingw* ) # actually msys
  4175. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4176. ;;
  4177. *-*-cygwin* )
  4178. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4179. ;;
  4180. * ) # otherwise, assume *nix
  4181. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4182. ;;
  4183. esac
  4184. ;;
  4185. *-*-cygwin* )
  4186. case $build in
  4187. *-*-mingw* ) # actually msys
  4188. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4189. ;;
  4190. *-*-cygwin* )
  4191. lt_cv_to_host_file_cmd=func_convert_file_noop
  4192. ;;
  4193. * ) # otherwise, assume *nix
  4194. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4195. ;;
  4196. esac
  4197. ;;
  4198. * ) # unhandled hosts (and "normal" native builds)
  4199. lt_cv_to_host_file_cmd=func_convert_file_noop
  4200. ;;
  4201. esac
  4202. fi
  4203. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4205. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4207. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4208. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. #assume ordinary cross tools, or native build.
  4212. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4213. case $host in
  4214. *-*-mingw* )
  4215. case $build in
  4216. *-*-mingw* ) # actually msys
  4217. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4218. ;;
  4219. esac
  4220. ;;
  4221. esac
  4222. fi
  4223. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4225. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4227. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4228. if ${lt_cv_ld_reload_flag+:} false; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. lt_cv_ld_reload_flag='-r'
  4232. fi
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4234. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4235. reload_flag=$lt_cv_ld_reload_flag
  4236. case $reload_flag in
  4237. "" | " "*) ;;
  4238. *) reload_flag=" $reload_flag" ;;
  4239. esac
  4240. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4241. case $host_os in
  4242. cygwin* | mingw* | pw32* | cegcc*)
  4243. if test "$GCC" != yes; then
  4244. reload_cmds=false
  4245. fi
  4246. ;;
  4247. darwin*)
  4248. if test "$GCC" = yes; then
  4249. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4250. else
  4251. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4252. fi
  4253. ;;
  4254. esac
  4255. if test -n "$ac_tool_prefix"; then
  4256. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4257. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4259. $as_echo_n "checking for $ac_word... " >&6; }
  4260. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4261. $as_echo_n "(cached) " >&6
  4262. else
  4263. if test -n "$OBJDUMP"; then
  4264. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4265. else
  4266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4267. for as_dir in $PATH
  4268. do
  4269. IFS=$as_save_IFS
  4270. test -z "$as_dir" && as_dir=.
  4271. for ac_exec_ext in '' $ac_executable_extensions; do
  4272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4273. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4275. break 2
  4276. fi
  4277. done
  4278. done
  4279. IFS=$as_save_IFS
  4280. fi
  4281. fi
  4282. OBJDUMP=$ac_cv_prog_OBJDUMP
  4283. if test -n "$OBJDUMP"; then
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4285. $as_echo "$OBJDUMP" >&6; }
  4286. else
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4288. $as_echo "no" >&6; }
  4289. fi
  4290. fi
  4291. if test -z "$ac_cv_prog_OBJDUMP"; then
  4292. ac_ct_OBJDUMP=$OBJDUMP
  4293. # Extract the first word of "objdump", so it can be a program name with args.
  4294. set dummy objdump; ac_word=$2
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4296. $as_echo_n "checking for $ac_word... " >&6; }
  4297. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. if test -n "$ac_ct_OBJDUMP"; then
  4301. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4302. else
  4303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4304. for as_dir in $PATH
  4305. do
  4306. IFS=$as_save_IFS
  4307. test -z "$as_dir" && as_dir=.
  4308. for ac_exec_ext in '' $ac_executable_extensions; do
  4309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4310. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4312. break 2
  4313. fi
  4314. done
  4315. done
  4316. IFS=$as_save_IFS
  4317. fi
  4318. fi
  4319. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4320. if test -n "$ac_ct_OBJDUMP"; then
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4322. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4323. else
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4325. $as_echo "no" >&6; }
  4326. fi
  4327. if test "x$ac_ct_OBJDUMP" = x; then
  4328. OBJDUMP="false"
  4329. else
  4330. case $cross_compiling:$ac_tool_warned in
  4331. yes:)
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4333. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4334. ac_tool_warned=yes ;;
  4335. esac
  4336. OBJDUMP=$ac_ct_OBJDUMP
  4337. fi
  4338. else
  4339. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4340. fi
  4341. test -z "$OBJDUMP" && OBJDUMP=objdump
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4343. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4344. if ${lt_cv_deplibs_check_method+:} false; then :
  4345. $as_echo_n "(cached) " >&6
  4346. else
  4347. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4348. lt_cv_file_magic_test_file=
  4349. lt_cv_deplibs_check_method='unknown'
  4350. # Need to set the preceding variable on all platforms that support
  4351. # interlibrary dependencies.
  4352. # 'none' -- dependencies not supported.
  4353. # `unknown' -- same as none, but documents that we really don't know.
  4354. # 'pass_all' -- all dependencies passed with no checks.
  4355. # 'test_compile' -- check by making test program.
  4356. # 'file_magic [[regex]]' -- check by looking for files in library path
  4357. # which responds to the $file_magic_cmd with a given extended regex.
  4358. # If you have `file' or equivalent on your system and you're not sure
  4359. # whether `pass_all' will *always* work, you probably want this one.
  4360. case $host_os in
  4361. aix[4-9]*)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. beos*)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. bsdi[45]*)
  4368. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4369. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4370. lt_cv_file_magic_test_file=/shlib/libc.so
  4371. ;;
  4372. cygwin*)
  4373. # func_win32_libid is a shell function defined in ltmain.sh
  4374. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4375. lt_cv_file_magic_cmd='func_win32_libid'
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. mingw* | pw32*)
  4379. # Base MSYS/MinGW do not provide the 'file' command needed by
  4380. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4381. # unless we find 'file', for example because we are cross-compiling.
  4382. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4383. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4384. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4385. lt_cv_file_magic_cmd='func_win32_libid'
  4386. else
  4387. # Keep this pattern in sync with the one in func_win32_libid.
  4388. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4389. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4390. fi
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. cegcc*)
  4394. # use the weaker test based on 'objdump'. See mingw*.
  4395. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4396. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4397. ;;
  4398. darwin* | rhapsody*)
  4399. lt_cv_deplibs_check_method=pass_all
  4400. ;;
  4401. freebsd* | dragonfly*)
  4402. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4403. case $host_cpu in
  4404. i*86 )
  4405. # Not sure whether the presence of OpenBSD here was a mistake.
  4406. # Let's accept both of them until this is cleared up.
  4407. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4408. lt_cv_file_magic_cmd=/usr/bin/file
  4409. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4410. ;;
  4411. esac
  4412. else
  4413. lt_cv_deplibs_check_method=pass_all
  4414. fi
  4415. ;;
  4416. gnu*)
  4417. lt_cv_deplibs_check_method=pass_all
  4418. ;;
  4419. haiku*)
  4420. lt_cv_deplibs_check_method=pass_all
  4421. ;;
  4422. hpux10.20* | hpux11*)
  4423. lt_cv_file_magic_cmd=/usr/bin/file
  4424. case $host_cpu in
  4425. ia64*)
  4426. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4427. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4428. ;;
  4429. hppa*64*)
  4430. 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]'
  4431. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4432. ;;
  4433. *)
  4434. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4435. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4436. ;;
  4437. esac
  4438. ;;
  4439. interix[3-9]*)
  4440. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4441. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4442. ;;
  4443. irix5* | irix6* | nonstopux*)
  4444. case $LD in
  4445. *-32|*"-32 ") libmagic=32-bit;;
  4446. *-n32|*"-n32 ") libmagic=N32;;
  4447. *-64|*"-64 ") libmagic=64-bit;;
  4448. *) libmagic=never-match;;
  4449. esac
  4450. lt_cv_deplibs_check_method=pass_all
  4451. ;;
  4452. # This must be glibc/ELF.
  4453. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4454. lt_cv_deplibs_check_method=pass_all
  4455. ;;
  4456. netbsd*)
  4457. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4458. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4459. else
  4460. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4461. fi
  4462. ;;
  4463. newos6*)
  4464. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4465. lt_cv_file_magic_cmd=/usr/bin/file
  4466. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4467. ;;
  4468. *nto* | *qnx*)
  4469. lt_cv_deplibs_check_method=pass_all
  4470. ;;
  4471. openbsd*)
  4472. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4473. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4474. else
  4475. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4476. fi
  4477. ;;
  4478. osf3* | osf4* | osf5*)
  4479. lt_cv_deplibs_check_method=pass_all
  4480. ;;
  4481. rdos*)
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. solaris*)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4488. lt_cv_deplibs_check_method=pass_all
  4489. ;;
  4490. sysv4 | sysv4.3*)
  4491. case $host_vendor in
  4492. motorola)
  4493. 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]'
  4494. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4495. ;;
  4496. ncr)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. sequent)
  4500. lt_cv_file_magic_cmd='/bin/file'
  4501. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4502. ;;
  4503. sni)
  4504. lt_cv_file_magic_cmd='/bin/file'
  4505. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4506. lt_cv_file_magic_test_file=/lib/libc.so
  4507. ;;
  4508. siemens)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. pc)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. esac
  4515. ;;
  4516. tpf*)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. esac
  4520. fi
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4522. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4523. file_magic_glob=
  4524. want_nocaseglob=no
  4525. if test "$build" = "$host"; then
  4526. case $host_os in
  4527. mingw* | pw32*)
  4528. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4529. want_nocaseglob=yes
  4530. else
  4531. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4532. fi
  4533. ;;
  4534. esac
  4535. fi
  4536. file_magic_cmd=$lt_cv_file_magic_cmd
  4537. deplibs_check_method=$lt_cv_deplibs_check_method
  4538. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4539. if test -n "$ac_tool_prefix"; then
  4540. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4541. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4543. $as_echo_n "checking for $ac_word... " >&6; }
  4544. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4545. $as_echo_n "(cached) " >&6
  4546. else
  4547. if test -n "$DLLTOOL"; then
  4548. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4549. else
  4550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4551. for as_dir in $PATH
  4552. do
  4553. IFS=$as_save_IFS
  4554. test -z "$as_dir" && as_dir=.
  4555. for ac_exec_ext in '' $ac_executable_extensions; do
  4556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4557. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4559. break 2
  4560. fi
  4561. done
  4562. done
  4563. IFS=$as_save_IFS
  4564. fi
  4565. fi
  4566. DLLTOOL=$ac_cv_prog_DLLTOOL
  4567. if test -n "$DLLTOOL"; then
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4569. $as_echo "$DLLTOOL" >&6; }
  4570. else
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4572. $as_echo "no" >&6; }
  4573. fi
  4574. fi
  4575. if test -z "$ac_cv_prog_DLLTOOL"; then
  4576. ac_ct_DLLTOOL=$DLLTOOL
  4577. # Extract the first word of "dlltool", so it can be a program name with args.
  4578. set dummy dlltool; ac_word=$2
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4580. $as_echo_n "checking for $ac_word... " >&6; }
  4581. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4582. $as_echo_n "(cached) " >&6
  4583. else
  4584. if test -n "$ac_ct_DLLTOOL"; then
  4585. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4586. else
  4587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4588. for as_dir in $PATH
  4589. do
  4590. IFS=$as_save_IFS
  4591. test -z "$as_dir" && as_dir=.
  4592. for ac_exec_ext in '' $ac_executable_extensions; do
  4593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4594. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4596. break 2
  4597. fi
  4598. done
  4599. done
  4600. IFS=$as_save_IFS
  4601. fi
  4602. fi
  4603. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4604. if test -n "$ac_ct_DLLTOOL"; then
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4606. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4607. else
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4609. $as_echo "no" >&6; }
  4610. fi
  4611. if test "x$ac_ct_DLLTOOL" = x; then
  4612. DLLTOOL="false"
  4613. else
  4614. case $cross_compiling:$ac_tool_warned in
  4615. yes:)
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4617. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4618. ac_tool_warned=yes ;;
  4619. esac
  4620. DLLTOOL=$ac_ct_DLLTOOL
  4621. fi
  4622. else
  4623. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4624. fi
  4625. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4627. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4628. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4632. case $host_os in
  4633. cygwin* | mingw* | pw32* | cegcc*)
  4634. # two different shell functions defined in ltmain.sh
  4635. # decide which to use based on capabilities of $DLLTOOL
  4636. case `$DLLTOOL --help 2>&1` in
  4637. *--identify-strict*)
  4638. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4639. ;;
  4640. *)
  4641. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4642. ;;
  4643. esac
  4644. ;;
  4645. *)
  4646. # fallback: assume linklib IS sharedlib
  4647. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4648. ;;
  4649. esac
  4650. fi
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4652. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4653. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4654. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4655. if test -n "$ac_tool_prefix"; then
  4656. for ac_prog in ar
  4657. do
  4658. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4659. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4661. $as_echo_n "checking for $ac_word... " >&6; }
  4662. if ${ac_cv_prog_AR+:} false; then :
  4663. $as_echo_n "(cached) " >&6
  4664. else
  4665. if test -n "$AR"; then
  4666. ac_cv_prog_AR="$AR" # Let the user override the test.
  4667. else
  4668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4669. for as_dir in $PATH
  4670. do
  4671. IFS=$as_save_IFS
  4672. test -z "$as_dir" && as_dir=.
  4673. for ac_exec_ext in '' $ac_executable_extensions; do
  4674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4675. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4677. break 2
  4678. fi
  4679. done
  4680. done
  4681. IFS=$as_save_IFS
  4682. fi
  4683. fi
  4684. AR=$ac_cv_prog_AR
  4685. if test -n "$AR"; then
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4687. $as_echo "$AR" >&6; }
  4688. else
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4690. $as_echo "no" >&6; }
  4691. fi
  4692. test -n "$AR" && break
  4693. done
  4694. fi
  4695. if test -z "$AR"; then
  4696. ac_ct_AR=$AR
  4697. for ac_prog in ar
  4698. do
  4699. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4700. set dummy $ac_prog; 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_ac_ct_AR+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. if test -n "$ac_ct_AR"; then
  4707. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="$ac_prog"
  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. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4726. if test -n "$ac_ct_AR"; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4728. $as_echo "$ac_ct_AR" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4731. $as_echo "no" >&6; }
  4732. fi
  4733. test -n "$ac_ct_AR" && break
  4734. done
  4735. if test "x$ac_ct_AR" = x; then
  4736. AR="false"
  4737. else
  4738. case $cross_compiling:$ac_tool_warned in
  4739. yes:)
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4742. ac_tool_warned=yes ;;
  4743. esac
  4744. AR=$ac_ct_AR
  4745. fi
  4746. fi
  4747. : ${AR=ar}
  4748. : ${AR_FLAGS=cru}
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4750. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4751. if ${lt_cv_ar_at_file+:} false; then :
  4752. $as_echo_n "(cached) " >&6
  4753. else
  4754. lt_cv_ar_at_file=no
  4755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4756. /* end confdefs.h. */
  4757. int
  4758. main ()
  4759. {
  4760. ;
  4761. return 0;
  4762. }
  4763. _ACEOF
  4764. if ac_fn_c_try_compile "$LINENO"; then :
  4765. echo conftest.$ac_objext > conftest.lst
  4766. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4767. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4768. (eval $lt_ar_try) 2>&5
  4769. ac_status=$?
  4770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4771. test $ac_status = 0; }
  4772. if test "$ac_status" -eq 0; then
  4773. # Ensure the archiver fails upon bogus file names.
  4774. rm -f conftest.$ac_objext libconftest.a
  4775. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4776. (eval $lt_ar_try) 2>&5
  4777. ac_status=$?
  4778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4779. test $ac_status = 0; }
  4780. if test "$ac_status" -ne 0; then
  4781. lt_cv_ar_at_file=@
  4782. fi
  4783. fi
  4784. rm -f conftest.* libconftest.a
  4785. fi
  4786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4787. fi
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4789. $as_echo "$lt_cv_ar_at_file" >&6; }
  4790. if test "x$lt_cv_ar_at_file" = xno; then
  4791. archiver_list_spec=
  4792. else
  4793. archiver_list_spec=$lt_cv_ar_at_file
  4794. fi
  4795. if test -n "$ac_tool_prefix"; then
  4796. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4797. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4799. $as_echo_n "checking for $ac_word... " >&6; }
  4800. if ${ac_cv_prog_STRIP+:} false; then :
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. if test -n "$STRIP"; then
  4804. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4805. else
  4806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4807. for as_dir in $PATH
  4808. do
  4809. IFS=$as_save_IFS
  4810. test -z "$as_dir" && as_dir=.
  4811. for ac_exec_ext in '' $ac_executable_extensions; do
  4812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4813. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4815. break 2
  4816. fi
  4817. done
  4818. done
  4819. IFS=$as_save_IFS
  4820. fi
  4821. fi
  4822. STRIP=$ac_cv_prog_STRIP
  4823. if test -n "$STRIP"; then
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4825. $as_echo "$STRIP" >&6; }
  4826. else
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4828. $as_echo "no" >&6; }
  4829. fi
  4830. fi
  4831. if test -z "$ac_cv_prog_STRIP"; then
  4832. ac_ct_STRIP=$STRIP
  4833. # Extract the first word of "strip", so it can be a program name with args.
  4834. set dummy strip; ac_word=$2
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4836. $as_echo_n "checking for $ac_word... " >&6; }
  4837. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4838. $as_echo_n "(cached) " >&6
  4839. else
  4840. if test -n "$ac_ct_STRIP"; then
  4841. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4842. else
  4843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4844. for as_dir in $PATH
  4845. do
  4846. IFS=$as_save_IFS
  4847. test -z "$as_dir" && as_dir=.
  4848. for ac_exec_ext in '' $ac_executable_extensions; do
  4849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4850. ac_cv_prog_ac_ct_STRIP="strip"
  4851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4852. break 2
  4853. fi
  4854. done
  4855. done
  4856. IFS=$as_save_IFS
  4857. fi
  4858. fi
  4859. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4860. if test -n "$ac_ct_STRIP"; then
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4862. $as_echo "$ac_ct_STRIP" >&6; }
  4863. else
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4865. $as_echo "no" >&6; }
  4866. fi
  4867. if test "x$ac_ct_STRIP" = x; then
  4868. STRIP=":"
  4869. else
  4870. case $cross_compiling:$ac_tool_warned in
  4871. yes:)
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4874. ac_tool_warned=yes ;;
  4875. esac
  4876. STRIP=$ac_ct_STRIP
  4877. fi
  4878. else
  4879. STRIP="$ac_cv_prog_STRIP"
  4880. fi
  4881. test -z "$STRIP" && STRIP=:
  4882. if test -n "$ac_tool_prefix"; then
  4883. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4884. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4886. $as_echo_n "checking for $ac_word... " >&6; }
  4887. if ${ac_cv_prog_RANLIB+:} false; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. if test -n "$RANLIB"; then
  4891. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4892. else
  4893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4894. for as_dir in $PATH
  4895. do
  4896. IFS=$as_save_IFS
  4897. test -z "$as_dir" && as_dir=.
  4898. for ac_exec_ext in '' $ac_executable_extensions; do
  4899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4900. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4902. break 2
  4903. fi
  4904. done
  4905. done
  4906. IFS=$as_save_IFS
  4907. fi
  4908. fi
  4909. RANLIB=$ac_cv_prog_RANLIB
  4910. if test -n "$RANLIB"; then
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4912. $as_echo "$RANLIB" >&6; }
  4913. else
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4915. $as_echo "no" >&6; }
  4916. fi
  4917. fi
  4918. if test -z "$ac_cv_prog_RANLIB"; then
  4919. ac_ct_RANLIB=$RANLIB
  4920. # Extract the first word of "ranlib", so it can be a program name with args.
  4921. set dummy ranlib; ac_word=$2
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4923. $as_echo_n "checking for $ac_word... " >&6; }
  4924. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4925. $as_echo_n "(cached) " >&6
  4926. else
  4927. if test -n "$ac_ct_RANLIB"; then
  4928. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4929. else
  4930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4931. for as_dir in $PATH
  4932. do
  4933. IFS=$as_save_IFS
  4934. test -z "$as_dir" && as_dir=.
  4935. for ac_exec_ext in '' $ac_executable_extensions; do
  4936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4937. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4939. break 2
  4940. fi
  4941. done
  4942. done
  4943. IFS=$as_save_IFS
  4944. fi
  4945. fi
  4946. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4947. if test -n "$ac_ct_RANLIB"; then
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4949. $as_echo "$ac_ct_RANLIB" >&6; }
  4950. else
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4952. $as_echo "no" >&6; }
  4953. fi
  4954. if test "x$ac_ct_RANLIB" = x; then
  4955. RANLIB=":"
  4956. else
  4957. case $cross_compiling:$ac_tool_warned in
  4958. yes:)
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4960. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4961. ac_tool_warned=yes ;;
  4962. esac
  4963. RANLIB=$ac_ct_RANLIB
  4964. fi
  4965. else
  4966. RANLIB="$ac_cv_prog_RANLIB"
  4967. fi
  4968. test -z "$RANLIB" && RANLIB=:
  4969. # Determine commands to create old-style static archives.
  4970. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4971. old_postinstall_cmds='chmod 644 $oldlib'
  4972. old_postuninstall_cmds=
  4973. if test -n "$RANLIB"; then
  4974. case $host_os in
  4975. openbsd*)
  4976. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4977. ;;
  4978. *)
  4979. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4980. ;;
  4981. esac
  4982. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4983. fi
  4984. case $host_os in
  4985. darwin*)
  4986. lock_old_archive_extraction=yes ;;
  4987. *)
  4988. lock_old_archive_extraction=no ;;
  4989. esac
  4990. for ac_prog in gawk mawk nawk awk
  4991. do
  4992. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4993. set dummy $ac_prog; ac_word=$2
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4995. $as_echo_n "checking for $ac_word... " >&6; }
  4996. if ${ac_cv_prog_AWK+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. if test -n "$AWK"; then
  5000. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5001. else
  5002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5003. for as_dir in $PATH
  5004. do
  5005. IFS=$as_save_IFS
  5006. test -z "$as_dir" && as_dir=.
  5007. for ac_exec_ext in '' $ac_executable_extensions; do
  5008. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5009. ac_cv_prog_AWK="$ac_prog"
  5010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5011. break 2
  5012. fi
  5013. done
  5014. done
  5015. IFS=$as_save_IFS
  5016. fi
  5017. fi
  5018. AWK=$ac_cv_prog_AWK
  5019. if test -n "$AWK"; then
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5021. $as_echo "$AWK" >&6; }
  5022. else
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5024. $as_echo "no" >&6; }
  5025. fi
  5026. test -n "$AWK" && break
  5027. done
  5028. # If no C compiler was specified, use CC.
  5029. LTCC=${LTCC-"$CC"}
  5030. # If no C compiler flags were specified, use CFLAGS.
  5031. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5032. # Allow CC to be a program name with arguments.
  5033. compiler=$CC
  5034. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5036. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5037. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5038. $as_echo_n "(cached) " >&6
  5039. else
  5040. # These are sane defaults that work on at least a few old systems.
  5041. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5042. # Character class describing NM global symbol codes.
  5043. symcode='[BCDEGRST]'
  5044. # Regexp to match symbols that can be accessed directly from C.
  5045. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5046. # Define system-specific variables.
  5047. case $host_os in
  5048. aix*)
  5049. symcode='[BCDT]'
  5050. ;;
  5051. cygwin* | mingw* | pw32* | cegcc*)
  5052. symcode='[ABCDGISTW]'
  5053. ;;
  5054. hpux*)
  5055. if test "$host_cpu" = ia64; then
  5056. symcode='[ABCDEGRST]'
  5057. fi
  5058. ;;
  5059. irix* | nonstopux*)
  5060. symcode='[BCDEGRST]'
  5061. ;;
  5062. osf*)
  5063. symcode='[BCDEGQRST]'
  5064. ;;
  5065. solaris*)
  5066. symcode='[BDRT]'
  5067. ;;
  5068. sco3.2v5*)
  5069. symcode='[DT]'
  5070. ;;
  5071. sysv4.2uw2*)
  5072. symcode='[DT]'
  5073. ;;
  5074. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5075. symcode='[ABDT]'
  5076. ;;
  5077. sysv4)
  5078. symcode='[DFNSTU]'
  5079. ;;
  5080. esac
  5081. # If we're using GNU nm, then use its standard symbol codes.
  5082. case `$NM -V 2>&1` in
  5083. *GNU* | *'with BFD'*)
  5084. symcode='[ABCDGIRSTW]' ;;
  5085. esac
  5086. # Transform an extracted symbol line into a proper C declaration.
  5087. # Some systems (esp. on ia64) link data and code symbols differently,
  5088. # so use this general approach.
  5089. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5090. # Transform an extracted symbol line into symbol name and symbol address
  5091. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5092. 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'"
  5093. # Handle CRLF in mingw tool chain
  5094. opt_cr=
  5095. case $build_os in
  5096. mingw*)
  5097. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5098. ;;
  5099. esac
  5100. # Try without a prefix underscore, then with it.
  5101. for ac_symprfx in "" "_"; do
  5102. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5103. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5104. # Write the raw and C identifiers.
  5105. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5106. # Fake it for dumpbin and say T for any non-static function
  5107. # and D for any global variable.
  5108. # Also find C++ and __fastcall symbols from MSVC++,
  5109. # which start with @ or ?.
  5110. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5111. " {last_section=section; section=\$ 3};"\
  5112. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5113. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5114. " \$ 0!~/External *\|/{next};"\
  5115. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5116. " {if(hide[section]) next};"\
  5117. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5118. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5119. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5120. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5121. " ' prfx=^$ac_symprfx"
  5122. else
  5123. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5124. fi
  5125. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5126. # Check to see that the pipe works correctly.
  5127. pipe_works=no
  5128. rm -f conftest*
  5129. cat > conftest.$ac_ext <<_LT_EOF
  5130. #ifdef __cplusplus
  5131. extern "C" {
  5132. #endif
  5133. char nm_test_var;
  5134. void nm_test_func(void);
  5135. void nm_test_func(void){}
  5136. #ifdef __cplusplus
  5137. }
  5138. #endif
  5139. int main(){nm_test_var='a';nm_test_func();return(0);}
  5140. _LT_EOF
  5141. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5142. (eval $ac_compile) 2>&5
  5143. ac_status=$?
  5144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5145. test $ac_status = 0; }; then
  5146. # Now try to grab the symbols.
  5147. nlist=conftest.nm
  5148. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5149. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5150. ac_status=$?
  5151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5152. test $ac_status = 0; } && test -s "$nlist"; then
  5153. # Try sorting and uniquifying the output.
  5154. if sort "$nlist" | uniq > "$nlist"T; then
  5155. mv -f "$nlist"T "$nlist"
  5156. else
  5157. rm -f "$nlist"T
  5158. fi
  5159. # Make sure that we snagged all the symbols we need.
  5160. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5161. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5162. cat <<_LT_EOF > conftest.$ac_ext
  5163. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5164. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5165. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5166. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5167. # define LT_DLSYM_CONST
  5168. #elif defined(__osf__)
  5169. /* This system does not cope well with relocations in const data. */
  5170. # define LT_DLSYM_CONST
  5171. #else
  5172. # define LT_DLSYM_CONST const
  5173. #endif
  5174. #ifdef __cplusplus
  5175. extern "C" {
  5176. #endif
  5177. _LT_EOF
  5178. # Now generate the symbol file.
  5179. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5180. cat <<_LT_EOF >> conftest.$ac_ext
  5181. /* The mapping between symbol names and symbols. */
  5182. LT_DLSYM_CONST struct {
  5183. const char *name;
  5184. void *address;
  5185. }
  5186. lt__PROGRAM__LTX_preloaded_symbols[] =
  5187. {
  5188. { "@PROGRAM@", (void *) 0 },
  5189. _LT_EOF
  5190. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5191. cat <<\_LT_EOF >> conftest.$ac_ext
  5192. {0, (void *) 0}
  5193. };
  5194. /* This works around a problem in FreeBSD linker */
  5195. #ifdef FREEBSD_WORKAROUND
  5196. static const void *lt_preloaded_setup() {
  5197. return lt__PROGRAM__LTX_preloaded_symbols;
  5198. }
  5199. #endif
  5200. #ifdef __cplusplus
  5201. }
  5202. #endif
  5203. _LT_EOF
  5204. # Now try linking the two files.
  5205. mv conftest.$ac_objext conftstm.$ac_objext
  5206. lt_globsym_save_LIBS=$LIBS
  5207. lt_globsym_save_CFLAGS=$CFLAGS
  5208. LIBS="conftstm.$ac_objext"
  5209. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5210. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5211. (eval $ac_link) 2>&5
  5212. ac_status=$?
  5213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5214. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5215. pipe_works=yes
  5216. fi
  5217. LIBS=$lt_globsym_save_LIBS
  5218. CFLAGS=$lt_globsym_save_CFLAGS
  5219. else
  5220. echo "cannot find nm_test_func in $nlist" >&5
  5221. fi
  5222. else
  5223. echo "cannot find nm_test_var in $nlist" >&5
  5224. fi
  5225. else
  5226. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5227. fi
  5228. else
  5229. echo "$progname: failed program was:" >&5
  5230. cat conftest.$ac_ext >&5
  5231. fi
  5232. rm -rf conftest* conftst*
  5233. # Do not use the global_symbol_pipe unless it works.
  5234. if test "$pipe_works" = yes; then
  5235. break
  5236. else
  5237. lt_cv_sys_global_symbol_pipe=
  5238. fi
  5239. done
  5240. fi
  5241. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5242. lt_cv_sys_global_symbol_to_cdecl=
  5243. fi
  5244. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5246. $as_echo "failed" >&6; }
  5247. else
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5249. $as_echo "ok" >&6; }
  5250. fi
  5251. # Response file support.
  5252. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5253. nm_file_list_spec='@'
  5254. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5255. nm_file_list_spec='@'
  5256. fi
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5258. $as_echo_n "checking for sysroot... " >&6; }
  5259. # Check whether --with-sysroot was given.
  5260. if test "${with_sysroot+set}" = set; then :
  5261. withval=$with_sysroot;
  5262. else
  5263. with_sysroot=no
  5264. fi
  5265. lt_sysroot=
  5266. case ${with_sysroot} in #(
  5267. yes)
  5268. if test "$GCC" = yes; then
  5269. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5270. fi
  5271. ;; #(
  5272. /*)
  5273. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5274. ;; #(
  5275. no|'')
  5276. ;; #(
  5277. *)
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5279. $as_echo "${with_sysroot}" >&6; }
  5280. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5281. ;;
  5282. esac
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5284. $as_echo "${lt_sysroot:-no}" >&6; }
  5285. # Check whether --enable-libtool-lock was given.
  5286. if test "${enable_libtool_lock+set}" = set; then :
  5287. enableval=$enable_libtool_lock;
  5288. fi
  5289. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5290. # Some flags need to be propagated to the compiler or linker for good
  5291. # libtool support.
  5292. case $host in
  5293. ia64-*-hpux*)
  5294. # Find out which ABI we are using.
  5295. echo 'int i;' > conftest.$ac_ext
  5296. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5297. (eval $ac_compile) 2>&5
  5298. ac_status=$?
  5299. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5300. test $ac_status = 0; }; then
  5301. case `/usr/bin/file conftest.$ac_objext` in
  5302. *ELF-32*)
  5303. HPUX_IA64_MODE="32"
  5304. ;;
  5305. *ELF-64*)
  5306. HPUX_IA64_MODE="64"
  5307. ;;
  5308. esac
  5309. fi
  5310. rm -rf conftest*
  5311. ;;
  5312. *-*-irix6*)
  5313. # Find out which ABI we are using.
  5314. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5315. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5316. (eval $ac_compile) 2>&5
  5317. ac_status=$?
  5318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5319. test $ac_status = 0; }; then
  5320. if test "$lt_cv_prog_gnu_ld" = yes; then
  5321. case `/usr/bin/file conftest.$ac_objext` in
  5322. *32-bit*)
  5323. LD="${LD-ld} -melf32bsmip"
  5324. ;;
  5325. *N32*)
  5326. LD="${LD-ld} -melf32bmipn32"
  5327. ;;
  5328. *64-bit*)
  5329. LD="${LD-ld} -melf64bmip"
  5330. ;;
  5331. esac
  5332. else
  5333. case `/usr/bin/file conftest.$ac_objext` in
  5334. *32-bit*)
  5335. LD="${LD-ld} -32"
  5336. ;;
  5337. *N32*)
  5338. LD="${LD-ld} -n32"
  5339. ;;
  5340. *64-bit*)
  5341. LD="${LD-ld} -64"
  5342. ;;
  5343. esac
  5344. fi
  5345. fi
  5346. rm -rf conftest*
  5347. ;;
  5348. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5349. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  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. *32-bit*)
  5359. case $host in
  5360. x86_64-*kfreebsd*-gnu)
  5361. LD="${LD-ld} -m elf_i386_fbsd"
  5362. ;;
  5363. x86_64-*linux*)
  5364. LD="${LD-ld} -m elf_i386"
  5365. ;;
  5366. ppc64-*linux*|powerpc64-*linux*)
  5367. LD="${LD-ld} -m elf32ppclinux"
  5368. ;;
  5369. s390x-*linux*)
  5370. LD="${LD-ld} -m elf_s390"
  5371. ;;
  5372. sparc64-*linux*)
  5373. LD="${LD-ld} -m elf32_sparc"
  5374. ;;
  5375. esac
  5376. ;;
  5377. *64-bit*)
  5378. case $host in
  5379. x86_64-*kfreebsd*-gnu)
  5380. LD="${LD-ld} -m elf_x86_64_fbsd"
  5381. ;;
  5382. x86_64-*linux*)
  5383. LD="${LD-ld} -m elf_x86_64"
  5384. ;;
  5385. powerpc64le-*linux*)
  5386. LD="${LD-ld} -m elf64lppc"
  5387. ;;
  5388. powerpc64-*linux*)
  5389. LD="${LD-ld} -m elf64ppc"
  5390. ;;
  5391. s390*-*linux*|s390*-*tpf*)
  5392. LD="${LD-ld} -m elf64_s390"
  5393. ;;
  5394. sparc*-*linux*)
  5395. LD="${LD-ld} -m elf64_sparc"
  5396. ;;
  5397. esac
  5398. ;;
  5399. esac
  5400. fi
  5401. rm -rf conftest*
  5402. ;;
  5403. *-*-sco3.2v5*)
  5404. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5405. SAVE_CFLAGS="$CFLAGS"
  5406. CFLAGS="$CFLAGS -belf"
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5408. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5409. if ${lt_cv_cc_needs_belf+:} false; then :
  5410. $as_echo_n "(cached) " >&6
  5411. else
  5412. ac_ext=c
  5413. ac_cpp='$CPP $CPPFLAGS'
  5414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5418. /* end confdefs.h. */
  5419. int
  5420. main ()
  5421. {
  5422. ;
  5423. return 0;
  5424. }
  5425. _ACEOF
  5426. if ac_fn_c_try_link "$LINENO"; then :
  5427. lt_cv_cc_needs_belf=yes
  5428. else
  5429. lt_cv_cc_needs_belf=no
  5430. fi
  5431. rm -f core conftest.err conftest.$ac_objext \
  5432. conftest$ac_exeext conftest.$ac_ext
  5433. ac_ext=c
  5434. ac_cpp='$CPP $CPPFLAGS'
  5435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5438. fi
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5440. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5441. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5442. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5443. CFLAGS="$SAVE_CFLAGS"
  5444. fi
  5445. ;;
  5446. *-*solaris*)
  5447. # Find out which ABI we are using.
  5448. echo 'int i;' > conftest.$ac_ext
  5449. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5450. (eval $ac_compile) 2>&5
  5451. ac_status=$?
  5452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5453. test $ac_status = 0; }; then
  5454. case `/usr/bin/file conftest.o` in
  5455. *64-bit*)
  5456. case $lt_cv_prog_gnu_ld in
  5457. yes*)
  5458. case $host in
  5459. i?86-*-solaris*)
  5460. LD="${LD-ld} -m elf_x86_64"
  5461. ;;
  5462. sparc*-*-solaris*)
  5463. LD="${LD-ld} -m elf64_sparc"
  5464. ;;
  5465. esac
  5466. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5467. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5468. LD="${LD-ld}_sol2"
  5469. fi
  5470. ;;
  5471. *)
  5472. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5473. LD="${LD-ld} -64"
  5474. fi
  5475. ;;
  5476. esac
  5477. ;;
  5478. esac
  5479. fi
  5480. rm -rf conftest*
  5481. ;;
  5482. esac
  5483. need_locks="$enable_libtool_lock"
  5484. if test -n "$ac_tool_prefix"; then
  5485. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5486. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5488. $as_echo_n "checking for $ac_word... " >&6; }
  5489. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. if test -n "$MANIFEST_TOOL"; then
  5493. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5494. else
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5502. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. IFS=$as_save_IFS
  5509. fi
  5510. fi
  5511. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5512. if test -n "$MANIFEST_TOOL"; then
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5514. $as_echo "$MANIFEST_TOOL" >&6; }
  5515. else
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5517. $as_echo "no" >&6; }
  5518. fi
  5519. fi
  5520. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5521. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5522. # Extract the first word of "mt", so it can be a program name with args.
  5523. set dummy mt; ac_word=$2
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5525. $as_echo_n "checking for $ac_word... " >&6; }
  5526. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5527. $as_echo_n "(cached) " >&6
  5528. else
  5529. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5530. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5531. else
  5532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5533. for as_dir in $PATH
  5534. do
  5535. IFS=$as_save_IFS
  5536. test -z "$as_dir" && as_dir=.
  5537. for ac_exec_ext in '' $ac_executable_extensions; do
  5538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5539. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5541. break 2
  5542. fi
  5543. done
  5544. done
  5545. IFS=$as_save_IFS
  5546. fi
  5547. fi
  5548. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5549. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5551. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5552. else
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5554. $as_echo "no" >&6; }
  5555. fi
  5556. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5557. MANIFEST_TOOL=":"
  5558. else
  5559. case $cross_compiling:$ac_tool_warned in
  5560. yes:)
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5563. ac_tool_warned=yes ;;
  5564. esac
  5565. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5566. fi
  5567. else
  5568. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5569. fi
  5570. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5572. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5573. if ${lt_cv_path_mainfest_tool+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. lt_cv_path_mainfest_tool=no
  5577. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5578. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5579. cat conftest.err >&5
  5580. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5581. lt_cv_path_mainfest_tool=yes
  5582. fi
  5583. rm -f conftest*
  5584. fi
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5586. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5587. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5588. MANIFEST_TOOL=:
  5589. fi
  5590. case $host_os in
  5591. rhapsody* | darwin*)
  5592. if test -n "$ac_tool_prefix"; then
  5593. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5594. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5596. $as_echo_n "checking for $ac_word... " >&6; }
  5597. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. if test -n "$DSYMUTIL"; then
  5601. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5602. else
  5603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5604. for as_dir in $PATH
  5605. do
  5606. IFS=$as_save_IFS
  5607. test -z "$as_dir" && as_dir=.
  5608. for ac_exec_ext in '' $ac_executable_extensions; do
  5609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5610. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5612. break 2
  5613. fi
  5614. done
  5615. done
  5616. IFS=$as_save_IFS
  5617. fi
  5618. fi
  5619. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5620. if test -n "$DSYMUTIL"; then
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5622. $as_echo "$DSYMUTIL" >&6; }
  5623. else
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5625. $as_echo "no" >&6; }
  5626. fi
  5627. fi
  5628. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5629. ac_ct_DSYMUTIL=$DSYMUTIL
  5630. # Extract the first word of "dsymutil", so it can be a program name with args.
  5631. set dummy dsymutil; ac_word=$2
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5633. $as_echo_n "checking for $ac_word... " >&6; }
  5634. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5635. $as_echo_n "(cached) " >&6
  5636. else
  5637. if test -n "$ac_ct_DSYMUTIL"; then
  5638. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5639. else
  5640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5641. for as_dir in $PATH
  5642. do
  5643. IFS=$as_save_IFS
  5644. test -z "$as_dir" && as_dir=.
  5645. for ac_exec_ext in '' $ac_executable_extensions; do
  5646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5647. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5649. break 2
  5650. fi
  5651. done
  5652. done
  5653. IFS=$as_save_IFS
  5654. fi
  5655. fi
  5656. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5657. if test -n "$ac_ct_DSYMUTIL"; then
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5659. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5660. else
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5662. $as_echo "no" >&6; }
  5663. fi
  5664. if test "x$ac_ct_DSYMUTIL" = x; then
  5665. DSYMUTIL=":"
  5666. else
  5667. case $cross_compiling:$ac_tool_warned in
  5668. yes:)
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5670. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5671. ac_tool_warned=yes ;;
  5672. esac
  5673. DSYMUTIL=$ac_ct_DSYMUTIL
  5674. fi
  5675. else
  5676. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5677. fi
  5678. if test -n "$ac_tool_prefix"; then
  5679. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5680. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5682. $as_echo_n "checking for $ac_word... " >&6; }
  5683. if ${ac_cv_prog_NMEDIT+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. if test -n "$NMEDIT"; then
  5687. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5688. else
  5689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5690. for as_dir in $PATH
  5691. do
  5692. IFS=$as_save_IFS
  5693. test -z "$as_dir" && as_dir=.
  5694. for ac_exec_ext in '' $ac_executable_extensions; do
  5695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5696. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5698. break 2
  5699. fi
  5700. done
  5701. done
  5702. IFS=$as_save_IFS
  5703. fi
  5704. fi
  5705. NMEDIT=$ac_cv_prog_NMEDIT
  5706. if test -n "$NMEDIT"; then
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5708. $as_echo "$NMEDIT" >&6; }
  5709. else
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5711. $as_echo "no" >&6; }
  5712. fi
  5713. fi
  5714. if test -z "$ac_cv_prog_NMEDIT"; then
  5715. ac_ct_NMEDIT=$NMEDIT
  5716. # Extract the first word of "nmedit", so it can be a program name with args.
  5717. set dummy nmedit; ac_word=$2
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5719. $as_echo_n "checking for $ac_word... " >&6; }
  5720. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. if test -n "$ac_ct_NMEDIT"; then
  5724. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5725. else
  5726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5727. for as_dir in $PATH
  5728. do
  5729. IFS=$as_save_IFS
  5730. test -z "$as_dir" && as_dir=.
  5731. for ac_exec_ext in '' $ac_executable_extensions; do
  5732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5733. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5735. break 2
  5736. fi
  5737. done
  5738. done
  5739. IFS=$as_save_IFS
  5740. fi
  5741. fi
  5742. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5743. if test -n "$ac_ct_NMEDIT"; then
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5745. $as_echo "$ac_ct_NMEDIT" >&6; }
  5746. else
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5748. $as_echo "no" >&6; }
  5749. fi
  5750. if test "x$ac_ct_NMEDIT" = x; then
  5751. NMEDIT=":"
  5752. else
  5753. case $cross_compiling:$ac_tool_warned in
  5754. yes:)
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5757. ac_tool_warned=yes ;;
  5758. esac
  5759. NMEDIT=$ac_ct_NMEDIT
  5760. fi
  5761. else
  5762. NMEDIT="$ac_cv_prog_NMEDIT"
  5763. fi
  5764. if test -n "$ac_tool_prefix"; then
  5765. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5766. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5768. $as_echo_n "checking for $ac_word... " >&6; }
  5769. if ${ac_cv_prog_LIPO+:} false; then :
  5770. $as_echo_n "(cached) " >&6
  5771. else
  5772. if test -n "$LIPO"; then
  5773. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5774. else
  5775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5776. for as_dir in $PATH
  5777. do
  5778. IFS=$as_save_IFS
  5779. test -z "$as_dir" && as_dir=.
  5780. for ac_exec_ext in '' $ac_executable_extensions; do
  5781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5782. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5784. break 2
  5785. fi
  5786. done
  5787. done
  5788. IFS=$as_save_IFS
  5789. fi
  5790. fi
  5791. LIPO=$ac_cv_prog_LIPO
  5792. if test -n "$LIPO"; then
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5794. $as_echo "$LIPO" >&6; }
  5795. else
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5797. $as_echo "no" >&6; }
  5798. fi
  5799. fi
  5800. if test -z "$ac_cv_prog_LIPO"; then
  5801. ac_ct_LIPO=$LIPO
  5802. # Extract the first word of "lipo", so it can be a program name with args.
  5803. set dummy lipo; ac_word=$2
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5805. $as_echo_n "checking for $ac_word... " >&6; }
  5806. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. if test -n "$ac_ct_LIPO"; then
  5810. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5811. else
  5812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5813. for as_dir in $PATH
  5814. do
  5815. IFS=$as_save_IFS
  5816. test -z "$as_dir" && as_dir=.
  5817. for ac_exec_ext in '' $ac_executable_extensions; do
  5818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5819. ac_cv_prog_ac_ct_LIPO="lipo"
  5820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5821. break 2
  5822. fi
  5823. done
  5824. done
  5825. IFS=$as_save_IFS
  5826. fi
  5827. fi
  5828. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5829. if test -n "$ac_ct_LIPO"; then
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5831. $as_echo "$ac_ct_LIPO" >&6; }
  5832. else
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5834. $as_echo "no" >&6; }
  5835. fi
  5836. if test "x$ac_ct_LIPO" = x; then
  5837. LIPO=":"
  5838. else
  5839. case $cross_compiling:$ac_tool_warned in
  5840. yes:)
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5843. ac_tool_warned=yes ;;
  5844. esac
  5845. LIPO=$ac_ct_LIPO
  5846. fi
  5847. else
  5848. LIPO="$ac_cv_prog_LIPO"
  5849. fi
  5850. if test -n "$ac_tool_prefix"; then
  5851. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5852. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5854. $as_echo_n "checking for $ac_word... " >&6; }
  5855. if ${ac_cv_prog_OTOOL+:} false; then :
  5856. $as_echo_n "(cached) " >&6
  5857. else
  5858. if test -n "$OTOOL"; then
  5859. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5860. else
  5861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5862. for as_dir in $PATH
  5863. do
  5864. IFS=$as_save_IFS
  5865. test -z "$as_dir" && as_dir=.
  5866. for ac_exec_ext in '' $ac_executable_extensions; do
  5867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5868. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5870. break 2
  5871. fi
  5872. done
  5873. done
  5874. IFS=$as_save_IFS
  5875. fi
  5876. fi
  5877. OTOOL=$ac_cv_prog_OTOOL
  5878. if test -n "$OTOOL"; then
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5880. $as_echo "$OTOOL" >&6; }
  5881. else
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5883. $as_echo "no" >&6; }
  5884. fi
  5885. fi
  5886. if test -z "$ac_cv_prog_OTOOL"; then
  5887. ac_ct_OTOOL=$OTOOL
  5888. # Extract the first word of "otool", so it can be a program name with args.
  5889. set dummy otool; ac_word=$2
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5891. $as_echo_n "checking for $ac_word... " >&6; }
  5892. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5893. $as_echo_n "(cached) " >&6
  5894. else
  5895. if test -n "$ac_ct_OTOOL"; then
  5896. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5897. else
  5898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5899. for as_dir in $PATH
  5900. do
  5901. IFS=$as_save_IFS
  5902. test -z "$as_dir" && as_dir=.
  5903. for ac_exec_ext in '' $ac_executable_extensions; do
  5904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5905. ac_cv_prog_ac_ct_OTOOL="otool"
  5906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5907. break 2
  5908. fi
  5909. done
  5910. done
  5911. IFS=$as_save_IFS
  5912. fi
  5913. fi
  5914. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5915. if test -n "$ac_ct_OTOOL"; then
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5917. $as_echo "$ac_ct_OTOOL" >&6; }
  5918. else
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5920. $as_echo "no" >&6; }
  5921. fi
  5922. if test "x$ac_ct_OTOOL" = x; then
  5923. OTOOL=":"
  5924. else
  5925. case $cross_compiling:$ac_tool_warned in
  5926. yes:)
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5928. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5929. ac_tool_warned=yes ;;
  5930. esac
  5931. OTOOL=$ac_ct_OTOOL
  5932. fi
  5933. else
  5934. OTOOL="$ac_cv_prog_OTOOL"
  5935. fi
  5936. if test -n "$ac_tool_prefix"; then
  5937. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5938. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5940. $as_echo_n "checking for $ac_word... " >&6; }
  5941. if ${ac_cv_prog_OTOOL64+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. if test -n "$OTOOL64"; then
  5945. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5946. else
  5947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5948. for as_dir in $PATH
  5949. do
  5950. IFS=$as_save_IFS
  5951. test -z "$as_dir" && as_dir=.
  5952. for ac_exec_ext in '' $ac_executable_extensions; do
  5953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5954. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5956. break 2
  5957. fi
  5958. done
  5959. done
  5960. IFS=$as_save_IFS
  5961. fi
  5962. fi
  5963. OTOOL64=$ac_cv_prog_OTOOL64
  5964. if test -n "$OTOOL64"; then
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5966. $as_echo "$OTOOL64" >&6; }
  5967. else
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5969. $as_echo "no" >&6; }
  5970. fi
  5971. fi
  5972. if test -z "$ac_cv_prog_OTOOL64"; then
  5973. ac_ct_OTOOL64=$OTOOL64
  5974. # Extract the first word of "otool64", so it can be a program name with args.
  5975. set dummy otool64; ac_word=$2
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5977. $as_echo_n "checking for $ac_word... " >&6; }
  5978. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. if test -n "$ac_ct_OTOOL64"; then
  5982. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5983. else
  5984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5985. for as_dir in $PATH
  5986. do
  5987. IFS=$as_save_IFS
  5988. test -z "$as_dir" && as_dir=.
  5989. for ac_exec_ext in '' $ac_executable_extensions; do
  5990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5991. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5993. break 2
  5994. fi
  5995. done
  5996. done
  5997. IFS=$as_save_IFS
  5998. fi
  5999. fi
  6000. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6001. if test -n "$ac_ct_OTOOL64"; then
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6003. $as_echo "$ac_ct_OTOOL64" >&6; }
  6004. else
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6006. $as_echo "no" >&6; }
  6007. fi
  6008. if test "x$ac_ct_OTOOL64" = x; then
  6009. OTOOL64=":"
  6010. else
  6011. case $cross_compiling:$ac_tool_warned in
  6012. yes:)
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6014. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6015. ac_tool_warned=yes ;;
  6016. esac
  6017. OTOOL64=$ac_ct_OTOOL64
  6018. fi
  6019. else
  6020. OTOOL64="$ac_cv_prog_OTOOL64"
  6021. fi
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6023. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6024. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. lt_cv_apple_cc_single_mod=no
  6028. if test -z "${LT_MULTI_MODULE}"; then
  6029. # By default we will add the -single_module flag. You can override
  6030. # by either setting the environment variable LT_MULTI_MODULE
  6031. # non-empty at configure time, or by adding -multi_module to the
  6032. # link flags.
  6033. rm -rf libconftest.dylib*
  6034. echo "int foo(void){return 1;}" > conftest.c
  6035. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6036. -dynamiclib -Wl,-single_module conftest.c" >&5
  6037. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6038. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6039. _lt_result=$?
  6040. # If there is a non-empty error log, and "single_module"
  6041. # appears in it, assume the flag caused a linker warning
  6042. if test -s conftest.err && $GREP single_module conftest.err; then
  6043. cat conftest.err >&5
  6044. # Otherwise, if the output was created with a 0 exit code from
  6045. # the compiler, it worked.
  6046. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6047. lt_cv_apple_cc_single_mod=yes
  6048. else
  6049. cat conftest.err >&5
  6050. fi
  6051. rm -rf libconftest.dylib*
  6052. rm -f conftest.*
  6053. fi
  6054. fi
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6056. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6058. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6059. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6060. $as_echo_n "(cached) " >&6
  6061. else
  6062. lt_cv_ld_exported_symbols_list=no
  6063. save_LDFLAGS=$LDFLAGS
  6064. echo "_main" > conftest.sym
  6065. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. int
  6069. main ()
  6070. {
  6071. ;
  6072. return 0;
  6073. }
  6074. _ACEOF
  6075. if ac_fn_c_try_link "$LINENO"; then :
  6076. lt_cv_ld_exported_symbols_list=yes
  6077. else
  6078. lt_cv_ld_exported_symbols_list=no
  6079. fi
  6080. rm -f core conftest.err conftest.$ac_objext \
  6081. conftest$ac_exeext conftest.$ac_ext
  6082. LDFLAGS="$save_LDFLAGS"
  6083. fi
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6085. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6087. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6088. if ${lt_cv_ld_force_load+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. lt_cv_ld_force_load=no
  6092. cat > conftest.c << _LT_EOF
  6093. int forced_loaded() { return 2;}
  6094. _LT_EOF
  6095. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6096. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6097. echo "$AR cru libconftest.a conftest.o" >&5
  6098. $AR cru libconftest.a conftest.o 2>&5
  6099. echo "$RANLIB libconftest.a" >&5
  6100. $RANLIB libconftest.a 2>&5
  6101. cat > conftest.c << _LT_EOF
  6102. int main() { return 0;}
  6103. _LT_EOF
  6104. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6105. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6106. _lt_result=$?
  6107. if test -s conftest.err && $GREP force_load conftest.err; then
  6108. cat conftest.err >&5
  6109. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6110. lt_cv_ld_force_load=yes
  6111. else
  6112. cat conftest.err >&5
  6113. fi
  6114. rm -f conftest.err libconftest.a conftest conftest.c
  6115. rm -rf conftest.dSYM
  6116. fi
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6118. $as_echo "$lt_cv_ld_force_load" >&6; }
  6119. case $host_os in
  6120. rhapsody* | darwin1.[012])
  6121. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6122. darwin1.*)
  6123. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6124. darwin*)
  6125. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6126. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6127. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6128. *)
  6129. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6130. esac
  6131. ;;
  6132. esac
  6133. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6134. _lt_dar_single_mod='$single_module'
  6135. fi
  6136. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6137. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6138. else
  6139. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6140. fi
  6141. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6142. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6143. else
  6144. _lt_dsymutil=
  6145. fi
  6146. ;;
  6147. esac
  6148. ac_ext=c
  6149. ac_cpp='$CPP $CPPFLAGS'
  6150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6154. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6155. # On Suns, sometimes $CPP names a directory.
  6156. if test -n "$CPP" && test -d "$CPP"; then
  6157. CPP=
  6158. fi
  6159. if test -z "$CPP"; then
  6160. if ${ac_cv_prog_CPP+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. # Double quotes because CPP needs to be expanded
  6164. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6165. do
  6166. ac_preproc_ok=false
  6167. for ac_c_preproc_warn_flag in '' yes
  6168. do
  6169. # Use a header file that comes with gcc, so configuring glibc
  6170. # with a fresh cross-compiler works.
  6171. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6172. # <limits.h> exists even on freestanding compilers.
  6173. # On the NeXT, cc -E runs the code through the compiler's parser,
  6174. # not just through cpp. "Syntax error" is here to catch this case.
  6175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6176. /* end confdefs.h. */
  6177. #ifdef __STDC__
  6178. # include <limits.h>
  6179. #else
  6180. # include <assert.h>
  6181. #endif
  6182. Syntax error
  6183. _ACEOF
  6184. if ac_fn_c_try_cpp "$LINENO"; then :
  6185. else
  6186. # Broken: fails on valid input.
  6187. continue
  6188. fi
  6189. rm -f conftest.err conftest.i conftest.$ac_ext
  6190. # OK, works on sane cases. Now check whether nonexistent headers
  6191. # can be detected and how.
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #include <ac_nonexistent.h>
  6195. _ACEOF
  6196. if ac_fn_c_try_cpp "$LINENO"; then :
  6197. # Broken: success on invalid input.
  6198. continue
  6199. else
  6200. # Passes both tests.
  6201. ac_preproc_ok=:
  6202. break
  6203. fi
  6204. rm -f conftest.err conftest.i conftest.$ac_ext
  6205. done
  6206. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6207. rm -f conftest.i conftest.err conftest.$ac_ext
  6208. if $ac_preproc_ok; then :
  6209. break
  6210. fi
  6211. done
  6212. ac_cv_prog_CPP=$CPP
  6213. fi
  6214. CPP=$ac_cv_prog_CPP
  6215. else
  6216. ac_cv_prog_CPP=$CPP
  6217. fi
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6219. $as_echo "$CPP" >&6; }
  6220. ac_preproc_ok=false
  6221. for ac_c_preproc_warn_flag in '' yes
  6222. do
  6223. # Use a header file that comes with gcc, so configuring glibc
  6224. # with a fresh cross-compiler works.
  6225. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6226. # <limits.h> exists even on freestanding compilers.
  6227. # On the NeXT, cc -E runs the code through the compiler's parser,
  6228. # not just through cpp. "Syntax error" is here to catch this case.
  6229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end confdefs.h. */
  6231. #ifdef __STDC__
  6232. # include <limits.h>
  6233. #else
  6234. # include <assert.h>
  6235. #endif
  6236. Syntax error
  6237. _ACEOF
  6238. if ac_fn_c_try_cpp "$LINENO"; then :
  6239. else
  6240. # Broken: fails on valid input.
  6241. continue
  6242. fi
  6243. rm -f conftest.err conftest.i conftest.$ac_ext
  6244. # OK, works on sane cases. Now check whether nonexistent headers
  6245. # can be detected and how.
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. #include <ac_nonexistent.h>
  6249. _ACEOF
  6250. if ac_fn_c_try_cpp "$LINENO"; then :
  6251. # Broken: success on invalid input.
  6252. continue
  6253. else
  6254. # Passes both tests.
  6255. ac_preproc_ok=:
  6256. break
  6257. fi
  6258. rm -f conftest.err conftest.i conftest.$ac_ext
  6259. done
  6260. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6261. rm -f conftest.i conftest.err conftest.$ac_ext
  6262. if $ac_preproc_ok; then :
  6263. else
  6264. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6265. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6266. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6267. See \`config.log' for more details" "$LINENO" 5; }
  6268. fi
  6269. ac_ext=c
  6270. ac_cpp='$CPP $CPPFLAGS'
  6271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6275. $as_echo_n "checking for ANSI C header files... " >&6; }
  6276. if ${ac_cv_header_stdc+:} false; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6280. /* end confdefs.h. */
  6281. #include <stdlib.h>
  6282. #include <stdarg.h>
  6283. #include <string.h>
  6284. #include <float.h>
  6285. int
  6286. main ()
  6287. {
  6288. ;
  6289. return 0;
  6290. }
  6291. _ACEOF
  6292. if ac_fn_c_try_compile "$LINENO"; then :
  6293. ac_cv_header_stdc=yes
  6294. else
  6295. ac_cv_header_stdc=no
  6296. fi
  6297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6298. if test $ac_cv_header_stdc = yes; then
  6299. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6301. /* end confdefs.h. */
  6302. #include <string.h>
  6303. _ACEOF
  6304. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6305. $EGREP "memchr" >/dev/null 2>&1; then :
  6306. else
  6307. ac_cv_header_stdc=no
  6308. fi
  6309. rm -f conftest*
  6310. fi
  6311. if test $ac_cv_header_stdc = yes; then
  6312. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6314. /* end confdefs.h. */
  6315. #include <stdlib.h>
  6316. _ACEOF
  6317. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6318. $EGREP "free" >/dev/null 2>&1; then :
  6319. else
  6320. ac_cv_header_stdc=no
  6321. fi
  6322. rm -f conftest*
  6323. fi
  6324. if test $ac_cv_header_stdc = yes; then
  6325. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6326. if test "$cross_compiling" = yes; then :
  6327. :
  6328. else
  6329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6330. /* end confdefs.h. */
  6331. #include <ctype.h>
  6332. #include <stdlib.h>
  6333. #if ((' ' & 0x0FF) == 0x020)
  6334. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6335. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6336. #else
  6337. # define ISLOWER(c) \
  6338. (('a' <= (c) && (c) <= 'i') \
  6339. || ('j' <= (c) && (c) <= 'r') \
  6340. || ('s' <= (c) && (c) <= 'z'))
  6341. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6342. #endif
  6343. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6344. int
  6345. main ()
  6346. {
  6347. int i;
  6348. for (i = 0; i < 256; i++)
  6349. if (XOR (islower (i), ISLOWER (i))
  6350. || toupper (i) != TOUPPER (i))
  6351. return 2;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_c_try_run "$LINENO"; then :
  6356. else
  6357. ac_cv_header_stdc=no
  6358. fi
  6359. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6360. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6361. fi
  6362. fi
  6363. fi
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6365. $as_echo "$ac_cv_header_stdc" >&6; }
  6366. if test $ac_cv_header_stdc = yes; then
  6367. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6368. fi
  6369. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6370. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6371. inttypes.h stdint.h unistd.h
  6372. do :
  6373. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6374. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6375. "
  6376. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6377. cat >>confdefs.h <<_ACEOF
  6378. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6379. _ACEOF
  6380. fi
  6381. done
  6382. for ac_header in dlfcn.h
  6383. do :
  6384. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6385. "
  6386. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6387. cat >>confdefs.h <<_ACEOF
  6388. #define HAVE_DLFCN_H 1
  6389. _ACEOF
  6390. fi
  6391. done
  6392. # Set options
  6393. enable_win32_dll=yes
  6394. case $host in
  6395. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6396. if test -n "$ac_tool_prefix"; then
  6397. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6398. set dummy ${ac_tool_prefix}as; ac_word=$2
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6400. $as_echo_n "checking for $ac_word... " >&6; }
  6401. if ${ac_cv_prog_AS+:} false; then :
  6402. $as_echo_n "(cached) " >&6
  6403. else
  6404. if test -n "$AS"; then
  6405. ac_cv_prog_AS="$AS" # Let the user override the test.
  6406. else
  6407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6408. for as_dir in $PATH
  6409. do
  6410. IFS=$as_save_IFS
  6411. test -z "$as_dir" && as_dir=.
  6412. for ac_exec_ext in '' $ac_executable_extensions; do
  6413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6414. ac_cv_prog_AS="${ac_tool_prefix}as"
  6415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6416. break 2
  6417. fi
  6418. done
  6419. done
  6420. IFS=$as_save_IFS
  6421. fi
  6422. fi
  6423. AS=$ac_cv_prog_AS
  6424. if test -n "$AS"; then
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6426. $as_echo "$AS" >&6; }
  6427. else
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6429. $as_echo "no" >&6; }
  6430. fi
  6431. fi
  6432. if test -z "$ac_cv_prog_AS"; then
  6433. ac_ct_AS=$AS
  6434. # Extract the first word of "as", so it can be a program name with args.
  6435. set dummy as; ac_word=$2
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6437. $as_echo_n "checking for $ac_word... " >&6; }
  6438. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6439. $as_echo_n "(cached) " >&6
  6440. else
  6441. if test -n "$ac_ct_AS"; then
  6442. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6443. else
  6444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6445. for as_dir in $PATH
  6446. do
  6447. IFS=$as_save_IFS
  6448. test -z "$as_dir" && as_dir=.
  6449. for ac_exec_ext in '' $ac_executable_extensions; do
  6450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6451. ac_cv_prog_ac_ct_AS="as"
  6452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6453. break 2
  6454. fi
  6455. done
  6456. done
  6457. IFS=$as_save_IFS
  6458. fi
  6459. fi
  6460. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6461. if test -n "$ac_ct_AS"; then
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6463. $as_echo "$ac_ct_AS" >&6; }
  6464. else
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6466. $as_echo "no" >&6; }
  6467. fi
  6468. if test "x$ac_ct_AS" = x; then
  6469. AS="false"
  6470. else
  6471. case $cross_compiling:$ac_tool_warned in
  6472. yes:)
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6474. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6475. ac_tool_warned=yes ;;
  6476. esac
  6477. AS=$ac_ct_AS
  6478. fi
  6479. else
  6480. AS="$ac_cv_prog_AS"
  6481. fi
  6482. if test -n "$ac_tool_prefix"; then
  6483. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6484. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6486. $as_echo_n "checking for $ac_word... " >&6; }
  6487. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6488. $as_echo_n "(cached) " >&6
  6489. else
  6490. if test -n "$DLLTOOL"; then
  6491. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6492. else
  6493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6494. for as_dir in $PATH
  6495. do
  6496. IFS=$as_save_IFS
  6497. test -z "$as_dir" && as_dir=.
  6498. for ac_exec_ext in '' $ac_executable_extensions; do
  6499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6500. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6502. break 2
  6503. fi
  6504. done
  6505. done
  6506. IFS=$as_save_IFS
  6507. fi
  6508. fi
  6509. DLLTOOL=$ac_cv_prog_DLLTOOL
  6510. if test -n "$DLLTOOL"; then
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6512. $as_echo "$DLLTOOL" >&6; }
  6513. else
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6515. $as_echo "no" >&6; }
  6516. fi
  6517. fi
  6518. if test -z "$ac_cv_prog_DLLTOOL"; then
  6519. ac_ct_DLLTOOL=$DLLTOOL
  6520. # Extract the first word of "dlltool", so it can be a program name with args.
  6521. set dummy dlltool; ac_word=$2
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6523. $as_echo_n "checking for $ac_word... " >&6; }
  6524. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6525. $as_echo_n "(cached) " >&6
  6526. else
  6527. if test -n "$ac_ct_DLLTOOL"; then
  6528. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6529. else
  6530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6531. for as_dir in $PATH
  6532. do
  6533. IFS=$as_save_IFS
  6534. test -z "$as_dir" && as_dir=.
  6535. for ac_exec_ext in '' $ac_executable_extensions; do
  6536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6537. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6539. break 2
  6540. fi
  6541. done
  6542. done
  6543. IFS=$as_save_IFS
  6544. fi
  6545. fi
  6546. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6547. if test -n "$ac_ct_DLLTOOL"; then
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6549. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6550. else
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6552. $as_echo "no" >&6; }
  6553. fi
  6554. if test "x$ac_ct_DLLTOOL" = x; then
  6555. DLLTOOL="false"
  6556. else
  6557. case $cross_compiling:$ac_tool_warned in
  6558. yes:)
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6560. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6561. ac_tool_warned=yes ;;
  6562. esac
  6563. DLLTOOL=$ac_ct_DLLTOOL
  6564. fi
  6565. else
  6566. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6567. fi
  6568. if test -n "$ac_tool_prefix"; then
  6569. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6570. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6572. $as_echo_n "checking for $ac_word... " >&6; }
  6573. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6574. $as_echo_n "(cached) " >&6
  6575. else
  6576. if test -n "$OBJDUMP"; then
  6577. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6578. else
  6579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6580. for as_dir in $PATH
  6581. do
  6582. IFS=$as_save_IFS
  6583. test -z "$as_dir" && as_dir=.
  6584. for ac_exec_ext in '' $ac_executable_extensions; do
  6585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6586. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6588. break 2
  6589. fi
  6590. done
  6591. done
  6592. IFS=$as_save_IFS
  6593. fi
  6594. fi
  6595. OBJDUMP=$ac_cv_prog_OBJDUMP
  6596. if test -n "$OBJDUMP"; then
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6598. $as_echo "$OBJDUMP" >&6; }
  6599. else
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6601. $as_echo "no" >&6; }
  6602. fi
  6603. fi
  6604. if test -z "$ac_cv_prog_OBJDUMP"; then
  6605. ac_ct_OBJDUMP=$OBJDUMP
  6606. # Extract the first word of "objdump", so it can be a program name with args.
  6607. set dummy objdump; ac_word=$2
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6609. $as_echo_n "checking for $ac_word... " >&6; }
  6610. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6611. $as_echo_n "(cached) " >&6
  6612. else
  6613. if test -n "$ac_ct_OBJDUMP"; then
  6614. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6615. else
  6616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6617. for as_dir in $PATH
  6618. do
  6619. IFS=$as_save_IFS
  6620. test -z "$as_dir" && as_dir=.
  6621. for ac_exec_ext in '' $ac_executable_extensions; do
  6622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6623. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6625. break 2
  6626. fi
  6627. done
  6628. done
  6629. IFS=$as_save_IFS
  6630. fi
  6631. fi
  6632. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6633. if test -n "$ac_ct_OBJDUMP"; then
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6635. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6636. else
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6638. $as_echo "no" >&6; }
  6639. fi
  6640. if test "x$ac_ct_OBJDUMP" = x; then
  6641. OBJDUMP="false"
  6642. else
  6643. case $cross_compiling:$ac_tool_warned in
  6644. yes:)
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6647. ac_tool_warned=yes ;;
  6648. esac
  6649. OBJDUMP=$ac_ct_OBJDUMP
  6650. fi
  6651. else
  6652. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6653. fi
  6654. ;;
  6655. esac
  6656. test -z "$AS" && AS=as
  6657. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6658. test -z "$OBJDUMP" && OBJDUMP=objdump
  6659. enable_dlopen=no
  6660. # Check whether --enable-shared was given.
  6661. if test "${enable_shared+set}" = set; then :
  6662. enableval=$enable_shared; p=${PACKAGE-default}
  6663. case $enableval in
  6664. yes) enable_shared=yes ;;
  6665. no) enable_shared=no ;;
  6666. *)
  6667. enable_shared=no
  6668. # Look at the argument we got. We use all the common list separators.
  6669. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6670. for pkg in $enableval; do
  6671. IFS="$lt_save_ifs"
  6672. if test "X$pkg" = "X$p"; then
  6673. enable_shared=yes
  6674. fi
  6675. done
  6676. IFS="$lt_save_ifs"
  6677. ;;
  6678. esac
  6679. else
  6680. enable_shared=yes
  6681. fi
  6682. # Check whether --enable-static was given.
  6683. if test "${enable_static+set}" = set; then :
  6684. enableval=$enable_static; p=${PACKAGE-default}
  6685. case $enableval in
  6686. yes) enable_static=yes ;;
  6687. no) enable_static=no ;;
  6688. *)
  6689. enable_static=no
  6690. # Look at the argument we got. We use all the common list separators.
  6691. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6692. for pkg in $enableval; do
  6693. IFS="$lt_save_ifs"
  6694. if test "X$pkg" = "X$p"; then
  6695. enable_static=yes
  6696. fi
  6697. done
  6698. IFS="$lt_save_ifs"
  6699. ;;
  6700. esac
  6701. else
  6702. enable_static=yes
  6703. fi
  6704. # Check whether --with-pic was given.
  6705. if test "${with_pic+set}" = set; then :
  6706. withval=$with_pic; lt_p=${PACKAGE-default}
  6707. case $withval in
  6708. yes|no) pic_mode=$withval ;;
  6709. *)
  6710. pic_mode=default
  6711. # Look at the argument we got. We use all the common list separators.
  6712. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6713. for lt_pkg in $withval; do
  6714. IFS="$lt_save_ifs"
  6715. if test "X$lt_pkg" = "X$lt_p"; then
  6716. pic_mode=yes
  6717. fi
  6718. done
  6719. IFS="$lt_save_ifs"
  6720. ;;
  6721. esac
  6722. else
  6723. pic_mode=default
  6724. fi
  6725. test -z "$pic_mode" && pic_mode=default
  6726. # Check whether --enable-fast-install was given.
  6727. if test "${enable_fast_install+set}" = set; then :
  6728. enableval=$enable_fast_install; p=${PACKAGE-default}
  6729. case $enableval in
  6730. yes) enable_fast_install=yes ;;
  6731. no) enable_fast_install=no ;;
  6732. *)
  6733. enable_fast_install=no
  6734. # Look at the argument we got. We use all the common list separators.
  6735. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6736. for pkg in $enableval; do
  6737. IFS="$lt_save_ifs"
  6738. if test "X$pkg" = "X$p"; then
  6739. enable_fast_install=yes
  6740. fi
  6741. done
  6742. IFS="$lt_save_ifs"
  6743. ;;
  6744. esac
  6745. else
  6746. enable_fast_install=yes
  6747. fi
  6748. # This can be used to rebuild libtool when needed
  6749. LIBTOOL_DEPS="$ltmain"
  6750. # Always use our own libtool.
  6751. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6752. test -z "$LN_S" && LN_S="ln -s"
  6753. if test -n "${ZSH_VERSION+set}" ; then
  6754. setopt NO_GLOB_SUBST
  6755. fi
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6757. $as_echo_n "checking for objdir... " >&6; }
  6758. if ${lt_cv_objdir+:} false; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. rm -f .libs 2>/dev/null
  6762. mkdir .libs 2>/dev/null
  6763. if test -d .libs; then
  6764. lt_cv_objdir=.libs
  6765. else
  6766. # MS-DOS does not allow filenames that begin with a dot.
  6767. lt_cv_objdir=_libs
  6768. fi
  6769. rmdir .libs 2>/dev/null
  6770. fi
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6772. $as_echo "$lt_cv_objdir" >&6; }
  6773. objdir=$lt_cv_objdir
  6774. cat >>confdefs.h <<_ACEOF
  6775. #define LT_OBJDIR "$lt_cv_objdir/"
  6776. _ACEOF
  6777. case $host_os in
  6778. aix3*)
  6779. # AIX sometimes has problems with the GCC collect2 program. For some
  6780. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6781. # vanish in a puff of smoke.
  6782. if test "X${COLLECT_NAMES+set}" != Xset; then
  6783. COLLECT_NAMES=
  6784. export COLLECT_NAMES
  6785. fi
  6786. ;;
  6787. esac
  6788. # Global variables:
  6789. ofile=libtool
  6790. can_build_shared=yes
  6791. # All known linkers require a `.a' archive for static linking (except MSVC,
  6792. # which needs '.lib').
  6793. libext=a
  6794. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6795. old_CC="$CC"
  6796. old_CFLAGS="$CFLAGS"
  6797. # Set sane defaults for various variables
  6798. test -z "$CC" && CC=cc
  6799. test -z "$LTCC" && LTCC=$CC
  6800. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6801. test -z "$LD" && LD=ld
  6802. test -z "$ac_objext" && ac_objext=o
  6803. for cc_temp in $compiler""; do
  6804. case $cc_temp in
  6805. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6806. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6807. \-*) ;;
  6808. *) break;;
  6809. esac
  6810. done
  6811. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6812. # Only perform the check for file, if the check method requires it
  6813. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6814. case $deplibs_check_method in
  6815. file_magic*)
  6816. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6818. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6819. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6820. $as_echo_n "(cached) " >&6
  6821. else
  6822. case $MAGIC_CMD in
  6823. [\\/*] | ?:[\\/]*)
  6824. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6825. ;;
  6826. *)
  6827. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6828. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6829. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6830. for ac_dir in $ac_dummy; do
  6831. IFS="$lt_save_ifs"
  6832. test -z "$ac_dir" && ac_dir=.
  6833. if test -f $ac_dir/${ac_tool_prefix}file; then
  6834. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6835. if test -n "$file_magic_test_file"; then
  6836. case $deplibs_check_method in
  6837. "file_magic "*)
  6838. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6839. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6840. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6841. $EGREP "$file_magic_regex" > /dev/null; then
  6842. :
  6843. else
  6844. cat <<_LT_EOF 1>&2
  6845. *** Warning: the command libtool uses to detect shared libraries,
  6846. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6847. *** The result is that libtool may fail to recognize shared libraries
  6848. *** as such. This will affect the creation of libtool libraries that
  6849. *** depend on shared libraries, but programs linked with such libtool
  6850. *** libraries will work regardless of this problem. Nevertheless, you
  6851. *** may want to report the problem to your system manager and/or to
  6852. *** bug-libtool@gnu.org
  6853. _LT_EOF
  6854. fi ;;
  6855. esac
  6856. fi
  6857. break
  6858. fi
  6859. done
  6860. IFS="$lt_save_ifs"
  6861. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6862. ;;
  6863. esac
  6864. fi
  6865. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6866. if test -n "$MAGIC_CMD"; then
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6868. $as_echo "$MAGIC_CMD" >&6; }
  6869. else
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6871. $as_echo "no" >&6; }
  6872. fi
  6873. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6874. if test -n "$ac_tool_prefix"; then
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6876. $as_echo_n "checking for file... " >&6; }
  6877. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. case $MAGIC_CMD in
  6881. [\\/*] | ?:[\\/]*)
  6882. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6883. ;;
  6884. *)
  6885. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6886. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6887. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6888. for ac_dir in $ac_dummy; do
  6889. IFS="$lt_save_ifs"
  6890. test -z "$ac_dir" && ac_dir=.
  6891. if test -f $ac_dir/file; then
  6892. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6893. if test -n "$file_magic_test_file"; then
  6894. case $deplibs_check_method in
  6895. "file_magic "*)
  6896. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6897. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6898. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6899. $EGREP "$file_magic_regex" > /dev/null; then
  6900. :
  6901. else
  6902. cat <<_LT_EOF 1>&2
  6903. *** Warning: the command libtool uses to detect shared libraries,
  6904. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6905. *** The result is that libtool may fail to recognize shared libraries
  6906. *** as such. This will affect the creation of libtool libraries that
  6907. *** depend on shared libraries, but programs linked with such libtool
  6908. *** libraries will work regardless of this problem. Nevertheless, you
  6909. *** may want to report the problem to your system manager and/or to
  6910. *** bug-libtool@gnu.org
  6911. _LT_EOF
  6912. fi ;;
  6913. esac
  6914. fi
  6915. break
  6916. fi
  6917. done
  6918. IFS="$lt_save_ifs"
  6919. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6920. ;;
  6921. esac
  6922. fi
  6923. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6924. if test -n "$MAGIC_CMD"; then
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6926. $as_echo "$MAGIC_CMD" >&6; }
  6927. else
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6929. $as_echo "no" >&6; }
  6930. fi
  6931. else
  6932. MAGIC_CMD=:
  6933. fi
  6934. fi
  6935. fi
  6936. ;;
  6937. esac
  6938. # Use C for the default configuration in the libtool script
  6939. lt_save_CC="$CC"
  6940. ac_ext=c
  6941. ac_cpp='$CPP $CPPFLAGS'
  6942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6945. # Source file extension for C test sources.
  6946. ac_ext=c
  6947. # Object file extension for compiled C test sources.
  6948. objext=o
  6949. objext=$objext
  6950. # Code to be used in simple compile tests
  6951. lt_simple_compile_test_code="int some_variable = 0;"
  6952. # Code to be used in simple link tests
  6953. lt_simple_link_test_code='int main(){return(0);}'
  6954. # If no C compiler was specified, use CC.
  6955. LTCC=${LTCC-"$CC"}
  6956. # If no C compiler flags were specified, use CFLAGS.
  6957. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6958. # Allow CC to be a program name with arguments.
  6959. compiler=$CC
  6960. # Save the default compiler, since it gets overwritten when the other
  6961. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6962. compiler_DEFAULT=$CC
  6963. # save warnings/boilerplate of simple test code
  6964. ac_outfile=conftest.$ac_objext
  6965. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6966. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6967. _lt_compiler_boilerplate=`cat conftest.err`
  6968. $RM conftest*
  6969. ac_outfile=conftest.$ac_objext
  6970. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6971. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6972. _lt_linker_boilerplate=`cat conftest.err`
  6973. $RM -r conftest*
  6974. ## CAVEAT EMPTOR:
  6975. ## There is no encapsulation within the following macros, do not change
  6976. ## the running order or otherwise move them around unless you know exactly
  6977. ## what you are doing...
  6978. if test -n "$compiler"; then
  6979. lt_prog_compiler_no_builtin_flag=
  6980. if test "$GCC" = yes; then
  6981. case $cc_basename in
  6982. nvcc*)
  6983. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6984. *)
  6985. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6986. esac
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6988. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6989. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6990. $as_echo_n "(cached) " >&6
  6991. else
  6992. lt_cv_prog_compiler_rtti_exceptions=no
  6993. ac_outfile=conftest.$ac_objext
  6994. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6995. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6996. # Insert the option either (1) after the last *FLAGS variable, or
  6997. # (2) before a word containing "conftest.", or (3) at the end.
  6998. # Note that $ac_compile itself does not contain backslashes and begins
  6999. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7000. # The option is referenced via a variable to avoid confusing sed.
  7001. lt_compile=`echo "$ac_compile" | $SED \
  7002. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7003. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7004. -e 's:$: $lt_compiler_flag:'`
  7005. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7006. (eval "$lt_compile" 2>conftest.err)
  7007. ac_status=$?
  7008. cat conftest.err >&5
  7009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7010. if (exit $ac_status) && test -s "$ac_outfile"; then
  7011. # The compiler can only warn and ignore the option if not recognized
  7012. # So say no if there are warnings other than the usual output.
  7013. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7014. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7015. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7016. lt_cv_prog_compiler_rtti_exceptions=yes
  7017. fi
  7018. fi
  7019. $RM conftest*
  7020. fi
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7022. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7023. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7024. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7025. else
  7026. :
  7027. fi
  7028. fi
  7029. lt_prog_compiler_wl=
  7030. lt_prog_compiler_pic=
  7031. lt_prog_compiler_static=
  7032. if test "$GCC" = yes; then
  7033. lt_prog_compiler_wl='-Wl,'
  7034. lt_prog_compiler_static='-static'
  7035. case $host_os in
  7036. aix*)
  7037. # All AIX code is PIC.
  7038. if test "$host_cpu" = ia64; then
  7039. # AIX 5 now supports IA64 processor
  7040. lt_prog_compiler_static='-Bstatic'
  7041. fi
  7042. ;;
  7043. amigaos*)
  7044. case $host_cpu in
  7045. powerpc)
  7046. # see comment about AmigaOS4 .so support
  7047. lt_prog_compiler_pic='-fPIC'
  7048. ;;
  7049. m68k)
  7050. # FIXME: we need at least 68020 code to build shared libraries, but
  7051. # adding the `-m68020' flag to GCC prevents building anything better,
  7052. # like `-m68040'.
  7053. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7054. ;;
  7055. esac
  7056. ;;
  7057. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7058. # PIC is the default for these OSes.
  7059. ;;
  7060. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7061. # This hack is so that the source file can tell whether it is being
  7062. # built for inclusion in a dll (and should export symbols for example).
  7063. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7064. # (--disable-auto-import) libraries
  7065. lt_prog_compiler_pic='-DDLL_EXPORT'
  7066. ;;
  7067. darwin* | rhapsody*)
  7068. # PIC is the default on this platform
  7069. # Common symbols not allowed in MH_DYLIB files
  7070. lt_prog_compiler_pic='-fno-common'
  7071. ;;
  7072. haiku*)
  7073. # PIC is the default for Haiku.
  7074. # The "-static" flag exists, but is broken.
  7075. lt_prog_compiler_static=
  7076. ;;
  7077. hpux*)
  7078. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7079. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7080. # sets the default TLS model and affects inlining.
  7081. case $host_cpu in
  7082. hppa*64*)
  7083. # +Z the default
  7084. ;;
  7085. *)
  7086. lt_prog_compiler_pic='-fPIC'
  7087. ;;
  7088. esac
  7089. ;;
  7090. interix[3-9]*)
  7091. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7092. # Instead, we relocate shared libraries at runtime.
  7093. ;;
  7094. msdosdjgpp*)
  7095. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7096. # on systems that don't support them.
  7097. lt_prog_compiler_can_build_shared=no
  7098. enable_shared=no
  7099. ;;
  7100. *nto* | *qnx*)
  7101. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7102. # it will coredump.
  7103. lt_prog_compiler_pic='-fPIC -shared'
  7104. ;;
  7105. sysv4*MP*)
  7106. if test -d /usr/nec; then
  7107. lt_prog_compiler_pic=-Kconform_pic
  7108. fi
  7109. ;;
  7110. *)
  7111. lt_prog_compiler_pic='-fPIC'
  7112. ;;
  7113. esac
  7114. case $cc_basename in
  7115. nvcc*) # Cuda Compiler Driver 2.2
  7116. lt_prog_compiler_wl='-Xlinker '
  7117. if test -n "$lt_prog_compiler_pic"; then
  7118. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7119. fi
  7120. ;;
  7121. esac
  7122. else
  7123. # PORTME Check for flag to pass linker flags through the system compiler.
  7124. case $host_os in
  7125. aix*)
  7126. lt_prog_compiler_wl='-Wl,'
  7127. if test "$host_cpu" = ia64; then
  7128. # AIX 5 now supports IA64 processor
  7129. lt_prog_compiler_static='-Bstatic'
  7130. else
  7131. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7132. fi
  7133. ;;
  7134. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7135. # This hack is so that the source file can tell whether it is being
  7136. # built for inclusion in a dll (and should export symbols for example).
  7137. lt_prog_compiler_pic='-DDLL_EXPORT'
  7138. ;;
  7139. hpux9* | hpux10* | hpux11*)
  7140. lt_prog_compiler_wl='-Wl,'
  7141. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7142. # not for PA HP-UX.
  7143. case $host_cpu in
  7144. hppa*64*|ia64*)
  7145. # +Z the default
  7146. ;;
  7147. *)
  7148. lt_prog_compiler_pic='+Z'
  7149. ;;
  7150. esac
  7151. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7152. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7153. ;;
  7154. irix5* | irix6* | nonstopux*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. # PIC (with -KPIC) is the default.
  7157. lt_prog_compiler_static='-non_shared'
  7158. ;;
  7159. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7160. case $cc_basename in
  7161. # old Intel for x86_64 which still supported -KPIC.
  7162. ecc*)
  7163. lt_prog_compiler_wl='-Wl,'
  7164. lt_prog_compiler_pic='-KPIC'
  7165. lt_prog_compiler_static='-static'
  7166. ;;
  7167. # icc used to be incompatible with GCC.
  7168. # ICC 10 doesn't accept -KPIC any more.
  7169. icc* | ifort*)
  7170. lt_prog_compiler_wl='-Wl,'
  7171. lt_prog_compiler_pic='-fPIC'
  7172. lt_prog_compiler_static='-static'
  7173. ;;
  7174. # Lahey Fortran 8.1.
  7175. lf95*)
  7176. lt_prog_compiler_wl='-Wl,'
  7177. lt_prog_compiler_pic='--shared'
  7178. lt_prog_compiler_static='--static'
  7179. ;;
  7180. nagfor*)
  7181. # NAG Fortran compiler
  7182. lt_prog_compiler_wl='-Wl,-Wl,,'
  7183. lt_prog_compiler_pic='-PIC'
  7184. lt_prog_compiler_static='-Bstatic'
  7185. ;;
  7186. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7187. # Portland Group compilers (*not* the Pentium gcc compiler,
  7188. # which looks to be a dead project)
  7189. lt_prog_compiler_wl='-Wl,'
  7190. lt_prog_compiler_pic='-fpic'
  7191. lt_prog_compiler_static='-Bstatic'
  7192. ;;
  7193. ccc*)
  7194. lt_prog_compiler_wl='-Wl,'
  7195. # All Alpha code is PIC.
  7196. lt_prog_compiler_static='-non_shared'
  7197. ;;
  7198. xl* | bgxl* | bgf* | mpixl*)
  7199. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7200. lt_prog_compiler_wl='-Wl,'
  7201. lt_prog_compiler_pic='-qpic'
  7202. lt_prog_compiler_static='-qstaticlink'
  7203. ;;
  7204. *)
  7205. case `$CC -V 2>&1 | sed 5q` in
  7206. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7207. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7208. lt_prog_compiler_pic='-KPIC'
  7209. lt_prog_compiler_static='-Bstatic'
  7210. lt_prog_compiler_wl=''
  7211. ;;
  7212. *Sun\ F* | *Sun*Fortran*)
  7213. lt_prog_compiler_pic='-KPIC'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. lt_prog_compiler_wl='-Qoption ld '
  7216. ;;
  7217. *Sun\ C*)
  7218. # Sun C 5.9
  7219. lt_prog_compiler_pic='-KPIC'
  7220. lt_prog_compiler_static='-Bstatic'
  7221. lt_prog_compiler_wl='-Wl,'
  7222. ;;
  7223. *Intel*\ [CF]*Compiler*)
  7224. lt_prog_compiler_wl='-Wl,'
  7225. lt_prog_compiler_pic='-fPIC'
  7226. lt_prog_compiler_static='-static'
  7227. ;;
  7228. *Portland\ Group*)
  7229. lt_prog_compiler_wl='-Wl,'
  7230. lt_prog_compiler_pic='-fpic'
  7231. lt_prog_compiler_static='-Bstatic'
  7232. ;;
  7233. esac
  7234. ;;
  7235. esac
  7236. ;;
  7237. newsos6)
  7238. lt_prog_compiler_pic='-KPIC'
  7239. lt_prog_compiler_static='-Bstatic'
  7240. ;;
  7241. *nto* | *qnx*)
  7242. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7243. # it will coredump.
  7244. lt_prog_compiler_pic='-fPIC -shared'
  7245. ;;
  7246. osf3* | osf4* | osf5*)
  7247. lt_prog_compiler_wl='-Wl,'
  7248. # All OSF/1 code is PIC.
  7249. lt_prog_compiler_static='-non_shared'
  7250. ;;
  7251. rdos*)
  7252. lt_prog_compiler_static='-non_shared'
  7253. ;;
  7254. solaris*)
  7255. lt_prog_compiler_pic='-KPIC'
  7256. lt_prog_compiler_static='-Bstatic'
  7257. case $cc_basename in
  7258. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7259. lt_prog_compiler_wl='-Qoption ld ';;
  7260. *)
  7261. lt_prog_compiler_wl='-Wl,';;
  7262. esac
  7263. ;;
  7264. sunos4*)
  7265. lt_prog_compiler_wl='-Qoption ld '
  7266. lt_prog_compiler_pic='-PIC'
  7267. lt_prog_compiler_static='-Bstatic'
  7268. ;;
  7269. sysv4 | sysv4.2uw2* | sysv4.3*)
  7270. lt_prog_compiler_wl='-Wl,'
  7271. lt_prog_compiler_pic='-KPIC'
  7272. lt_prog_compiler_static='-Bstatic'
  7273. ;;
  7274. sysv4*MP*)
  7275. if test -d /usr/nec ;then
  7276. lt_prog_compiler_pic='-Kconform_pic'
  7277. lt_prog_compiler_static='-Bstatic'
  7278. fi
  7279. ;;
  7280. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7281. lt_prog_compiler_wl='-Wl,'
  7282. lt_prog_compiler_pic='-KPIC'
  7283. lt_prog_compiler_static='-Bstatic'
  7284. ;;
  7285. unicos*)
  7286. lt_prog_compiler_wl='-Wl,'
  7287. lt_prog_compiler_can_build_shared=no
  7288. ;;
  7289. uts4*)
  7290. lt_prog_compiler_pic='-pic'
  7291. lt_prog_compiler_static='-Bstatic'
  7292. ;;
  7293. *)
  7294. lt_prog_compiler_can_build_shared=no
  7295. ;;
  7296. esac
  7297. fi
  7298. case $host_os in
  7299. # For platforms which do not support PIC, -DPIC is meaningless:
  7300. *djgpp*)
  7301. lt_prog_compiler_pic=
  7302. ;;
  7303. *)
  7304. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7305. ;;
  7306. esac
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7308. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7309. if ${lt_cv_prog_compiler_pic+:} false; then :
  7310. $as_echo_n "(cached) " >&6
  7311. else
  7312. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7315. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7316. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7317. #
  7318. # Check to make sure the PIC flag actually works.
  7319. #
  7320. if test -n "$lt_prog_compiler_pic"; then
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7322. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7323. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. lt_cv_prog_compiler_pic_works=no
  7327. ac_outfile=conftest.$ac_objext
  7328. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7329. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7330. # Insert the option either (1) after the last *FLAGS variable, or
  7331. # (2) before a word containing "conftest.", or (3) at the end.
  7332. # Note that $ac_compile itself does not contain backslashes and begins
  7333. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7334. # The option is referenced via a variable to avoid confusing sed.
  7335. lt_compile=`echo "$ac_compile" | $SED \
  7336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7338. -e 's:$: $lt_compiler_flag:'`
  7339. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7340. (eval "$lt_compile" 2>conftest.err)
  7341. ac_status=$?
  7342. cat conftest.err >&5
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. if (exit $ac_status) && test -s "$ac_outfile"; then
  7345. # The compiler can only warn and ignore the option if not recognized
  7346. # So say no if there are warnings other than the usual output.
  7347. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7348. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7349. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7350. lt_cv_prog_compiler_pic_works=yes
  7351. fi
  7352. fi
  7353. $RM conftest*
  7354. fi
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7356. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7357. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7358. case $lt_prog_compiler_pic in
  7359. "" | " "*) ;;
  7360. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7361. esac
  7362. else
  7363. lt_prog_compiler_pic=
  7364. lt_prog_compiler_can_build_shared=no
  7365. fi
  7366. fi
  7367. #
  7368. # Check to make sure the static flag actually works.
  7369. #
  7370. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7372. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7373. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7374. $as_echo_n "(cached) " >&6
  7375. else
  7376. lt_cv_prog_compiler_static_works=no
  7377. save_LDFLAGS="$LDFLAGS"
  7378. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7379. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7380. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7381. # The linker can only warn and ignore the option if not recognized
  7382. # So say no if there are warnings
  7383. if test -s conftest.err; then
  7384. # Append any errors to the config.log.
  7385. cat conftest.err 1>&5
  7386. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7387. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7388. if diff conftest.exp conftest.er2 >/dev/null; then
  7389. lt_cv_prog_compiler_static_works=yes
  7390. fi
  7391. else
  7392. lt_cv_prog_compiler_static_works=yes
  7393. fi
  7394. fi
  7395. $RM -r conftest*
  7396. LDFLAGS="$save_LDFLAGS"
  7397. fi
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7399. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7400. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7401. :
  7402. else
  7403. lt_prog_compiler_static=
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7406. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7407. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7408. $as_echo_n "(cached) " >&6
  7409. else
  7410. lt_cv_prog_compiler_c_o=no
  7411. $RM -r conftest 2>/dev/null
  7412. mkdir conftest
  7413. cd conftest
  7414. mkdir out
  7415. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7416. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7417. # Insert the option either (1) after the last *FLAGS variable, or
  7418. # (2) before a word containing "conftest.", or (3) at the end.
  7419. # Note that $ac_compile itself does not contain backslashes and begins
  7420. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7421. lt_compile=`echo "$ac_compile" | $SED \
  7422. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7423. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7424. -e 's:$: $lt_compiler_flag:'`
  7425. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7426. (eval "$lt_compile" 2>out/conftest.err)
  7427. ac_status=$?
  7428. cat out/conftest.err >&5
  7429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7430. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7431. then
  7432. # The compiler can only warn and ignore the option if not recognized
  7433. # So say no if there are warnings
  7434. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7435. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7436. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7437. lt_cv_prog_compiler_c_o=yes
  7438. fi
  7439. fi
  7440. chmod u+w . 2>&5
  7441. $RM conftest*
  7442. # SGI C++ compiler will create directory out/ii_files/ for
  7443. # template instantiation
  7444. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7445. $RM out/* && rmdir out
  7446. cd ..
  7447. $RM -r conftest
  7448. $RM conftest*
  7449. fi
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7451. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7453. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7454. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7455. $as_echo_n "(cached) " >&6
  7456. else
  7457. lt_cv_prog_compiler_c_o=no
  7458. $RM -r conftest 2>/dev/null
  7459. mkdir conftest
  7460. cd conftest
  7461. mkdir out
  7462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7463. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7464. # Insert the option either (1) after the last *FLAGS variable, or
  7465. # (2) before a word containing "conftest.", or (3) at the end.
  7466. # Note that $ac_compile itself does not contain backslashes and begins
  7467. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7468. lt_compile=`echo "$ac_compile" | $SED \
  7469. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7470. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7471. -e 's:$: $lt_compiler_flag:'`
  7472. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7473. (eval "$lt_compile" 2>out/conftest.err)
  7474. ac_status=$?
  7475. cat out/conftest.err >&5
  7476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7477. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7478. then
  7479. # The compiler can only warn and ignore the option if not recognized
  7480. # So say no if there are warnings
  7481. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7482. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7483. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7484. lt_cv_prog_compiler_c_o=yes
  7485. fi
  7486. fi
  7487. chmod u+w . 2>&5
  7488. $RM conftest*
  7489. # SGI C++ compiler will create directory out/ii_files/ for
  7490. # template instantiation
  7491. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7492. $RM out/* && rmdir out
  7493. cd ..
  7494. $RM -r conftest
  7495. $RM conftest*
  7496. fi
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7498. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7499. hard_links="nottested"
  7500. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7501. # do not overwrite the value of need_locks provided by the user
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7503. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7504. hard_links=yes
  7505. $RM conftest*
  7506. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7507. touch conftest.a
  7508. ln conftest.a conftest.b 2>&5 || hard_links=no
  7509. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7511. $as_echo "$hard_links" >&6; }
  7512. if test "$hard_links" = no; then
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7514. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7515. need_locks=warn
  7516. fi
  7517. else
  7518. need_locks=no
  7519. fi
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7521. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7522. runpath_var=
  7523. allow_undefined_flag=
  7524. always_export_symbols=no
  7525. archive_cmds=
  7526. archive_expsym_cmds=
  7527. compiler_needs_object=no
  7528. enable_shared_with_static_runtimes=no
  7529. export_dynamic_flag_spec=
  7530. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7531. hardcode_automatic=no
  7532. hardcode_direct=no
  7533. hardcode_direct_absolute=no
  7534. hardcode_libdir_flag_spec=
  7535. hardcode_libdir_separator=
  7536. hardcode_minus_L=no
  7537. hardcode_shlibpath_var=unsupported
  7538. inherit_rpath=no
  7539. link_all_deplibs=unknown
  7540. module_cmds=
  7541. module_expsym_cmds=
  7542. old_archive_from_new_cmds=
  7543. old_archive_from_expsyms_cmds=
  7544. thread_safe_flag_spec=
  7545. whole_archive_flag_spec=
  7546. # include_expsyms should be a list of space-separated symbols to be *always*
  7547. # included in the symbol list
  7548. include_expsyms=
  7549. # exclude_expsyms can be an extended regexp of symbols to exclude
  7550. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7551. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7552. # as well as any symbol that contains `d'.
  7553. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7554. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7555. # platforms (ab)use it in PIC code, but their linkers get confused if
  7556. # the symbol is explicitly referenced. Since portable code cannot
  7557. # rely on this symbol name, it's probably fine to never include it in
  7558. # preloaded symbol tables.
  7559. # Exclude shared library initialization/finalization symbols.
  7560. extract_expsyms_cmds=
  7561. case $host_os in
  7562. cygwin* | mingw* | pw32* | cegcc*)
  7563. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7564. # When not using gcc, we currently assume that we are using
  7565. # Microsoft Visual C++.
  7566. if test "$GCC" != yes; then
  7567. with_gnu_ld=no
  7568. fi
  7569. ;;
  7570. interix*)
  7571. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7572. with_gnu_ld=yes
  7573. ;;
  7574. openbsd*)
  7575. with_gnu_ld=no
  7576. ;;
  7577. esac
  7578. ld_shlibs=yes
  7579. # On some targets, GNU ld is compatible enough with the native linker
  7580. # that we're better off using the native interface for both.
  7581. lt_use_gnu_ld_interface=no
  7582. if test "$with_gnu_ld" = yes; then
  7583. case $host_os in
  7584. aix*)
  7585. # The AIX port of GNU ld has always aspired to compatibility
  7586. # with the native linker. However, as the warning in the GNU ld
  7587. # block says, versions before 2.19.5* couldn't really create working
  7588. # shared libraries, regardless of the interface used.
  7589. case `$LD -v 2>&1` in
  7590. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7591. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7592. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7593. *)
  7594. lt_use_gnu_ld_interface=yes
  7595. ;;
  7596. esac
  7597. ;;
  7598. *)
  7599. lt_use_gnu_ld_interface=yes
  7600. ;;
  7601. esac
  7602. fi
  7603. if test "$lt_use_gnu_ld_interface" = yes; then
  7604. # If archive_cmds runs LD, not CC, wlarc should be empty
  7605. wlarc='${wl}'
  7606. # Set some defaults for GNU ld with shared library support. These
  7607. # are reset later if shared libraries are not supported. Putting them
  7608. # here allows them to be overridden if necessary.
  7609. runpath_var=LD_RUN_PATH
  7610. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7611. export_dynamic_flag_spec='${wl}--export-dynamic'
  7612. # ancient GNU ld didn't support --whole-archive et. al.
  7613. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7614. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7615. else
  7616. whole_archive_flag_spec=
  7617. fi
  7618. supports_anon_versioning=no
  7619. case `$LD -v 2>&1` in
  7620. *GNU\ gold*) supports_anon_versioning=yes ;;
  7621. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7622. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7623. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7624. *\ 2.11.*) ;; # other 2.11 versions
  7625. *) supports_anon_versioning=yes ;;
  7626. esac
  7627. # See if GNU ld supports shared libraries.
  7628. case $host_os in
  7629. aix[3-9]*)
  7630. # On AIX/PPC, the GNU linker is very broken
  7631. if test "$host_cpu" != ia64; then
  7632. ld_shlibs=no
  7633. cat <<_LT_EOF 1>&2
  7634. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7635. *** to be unable to reliably create shared libraries on AIX.
  7636. *** Therefore, libtool is disabling shared libraries support. If you
  7637. *** really care for shared libraries, you may want to install binutils
  7638. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7639. *** You will then need to restart the configuration process.
  7640. _LT_EOF
  7641. fi
  7642. ;;
  7643. amigaos*)
  7644. case $host_cpu in
  7645. powerpc)
  7646. # see comment about AmigaOS4 .so support
  7647. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7648. archive_expsym_cmds=''
  7649. ;;
  7650. m68k)
  7651. 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)'
  7652. hardcode_libdir_flag_spec='-L$libdir'
  7653. hardcode_minus_L=yes
  7654. ;;
  7655. esac
  7656. ;;
  7657. beos*)
  7658. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7659. allow_undefined_flag=unsupported
  7660. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7661. # support --undefined. This deserves some investigation. FIXME
  7662. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7663. else
  7664. ld_shlibs=no
  7665. fi
  7666. ;;
  7667. cygwin* | mingw* | pw32* | cegcc*)
  7668. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7669. # as there is no search path for DLLs.
  7670. hardcode_libdir_flag_spec='-L$libdir'
  7671. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7672. allow_undefined_flag=unsupported
  7673. always_export_symbols=no
  7674. enable_shared_with_static_runtimes=yes
  7675. 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'
  7676. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7677. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7678. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7679. # If the export-symbols file already is a .def file (1st line
  7680. # is EXPORTS), use it as is; otherwise, prepend...
  7681. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7682. cp $export_symbols $output_objdir/$soname.def;
  7683. else
  7684. echo EXPORTS > $output_objdir/$soname.def;
  7685. cat $export_symbols >> $output_objdir/$soname.def;
  7686. fi~
  7687. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7688. else
  7689. ld_shlibs=no
  7690. fi
  7691. ;;
  7692. haiku*)
  7693. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7694. link_all_deplibs=yes
  7695. ;;
  7696. interix[3-9]*)
  7697. hardcode_direct=no
  7698. hardcode_shlibpath_var=no
  7699. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7700. export_dynamic_flag_spec='${wl}-E'
  7701. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7702. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7703. # default) and relocated if they conflict, which is a slow very memory
  7704. # consuming and fragmenting process. To avoid this, we pick a random,
  7705. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7706. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7707. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7708. 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'
  7709. ;;
  7710. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7711. tmp_diet=no
  7712. if test "$host_os" = linux-dietlibc; then
  7713. case $cc_basename in
  7714. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7715. esac
  7716. fi
  7717. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7718. && test "$tmp_diet" = no
  7719. then
  7720. tmp_addflag=' $pic_flag'
  7721. tmp_sharedflag='-shared'
  7722. case $cc_basename,$host_cpu in
  7723. pgcc*) # Portland Group C compiler
  7724. 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'
  7725. tmp_addflag=' $pic_flag'
  7726. ;;
  7727. pgf77* | pgf90* | pgf95* | pgfortran*)
  7728. # Portland Group f77 and f90 compilers
  7729. 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'
  7730. tmp_addflag=' $pic_flag -Mnomain' ;;
  7731. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7732. tmp_addflag=' -i_dynamic' ;;
  7733. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7734. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7735. ifc* | ifort*) # Intel Fortran compiler
  7736. tmp_addflag=' -nofor_main' ;;
  7737. lf95*) # Lahey Fortran 8.1
  7738. whole_archive_flag_spec=
  7739. tmp_sharedflag='--shared' ;;
  7740. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7741. tmp_sharedflag='-qmkshrobj'
  7742. tmp_addflag= ;;
  7743. nvcc*) # Cuda Compiler Driver 2.2
  7744. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7745. compiler_needs_object=yes
  7746. ;;
  7747. esac
  7748. case `$CC -V 2>&1 | sed 5q` in
  7749. *Sun\ C*) # Sun C 5.9
  7750. 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'
  7751. compiler_needs_object=yes
  7752. tmp_sharedflag='-G' ;;
  7753. *Sun\ F*) # Sun Fortran 8.3
  7754. tmp_sharedflag='-G' ;;
  7755. esac
  7756. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7757. if test "x$supports_anon_versioning" = xyes; then
  7758. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7759. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7760. echo "local: *; };" >> $output_objdir/$libname.ver~
  7761. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7762. fi
  7763. case $cc_basename in
  7764. xlf* | bgf* | bgxlf* | mpixlf*)
  7765. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7766. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7767. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7768. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7769. if test "x$supports_anon_versioning" = xyes; then
  7770. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7771. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7772. echo "local: *; };" >> $output_objdir/$libname.ver~
  7773. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7774. fi
  7775. ;;
  7776. esac
  7777. else
  7778. ld_shlibs=no
  7779. fi
  7780. ;;
  7781. netbsd*)
  7782. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7783. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7784. wlarc=
  7785. else
  7786. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7787. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7788. fi
  7789. ;;
  7790. solaris*)
  7791. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7792. ld_shlibs=no
  7793. cat <<_LT_EOF 1>&2
  7794. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7795. *** create shared libraries on Solaris systems. Therefore, libtool
  7796. *** is disabling shared libraries support. We urge you to upgrade GNU
  7797. *** binutils to release 2.9.1 or newer. Another option is to modify
  7798. *** your PATH or compiler configuration so that the native linker is
  7799. *** used, and then restart.
  7800. _LT_EOF
  7801. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7802. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7803. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7804. else
  7805. ld_shlibs=no
  7806. fi
  7807. ;;
  7808. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7809. case `$LD -v 2>&1` in
  7810. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7811. ld_shlibs=no
  7812. cat <<_LT_EOF 1>&2
  7813. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7814. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7815. *** is disabling shared libraries support. We urge you to upgrade GNU
  7816. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7817. *** your PATH or compiler configuration so that the native linker is
  7818. *** used, and then restart.
  7819. _LT_EOF
  7820. ;;
  7821. *)
  7822. # For security reasons, it is highly recommended that you always
  7823. # use absolute paths for naming shared libraries, and exclude the
  7824. # DT_RUNPATH tag from executables and libraries. But doing so
  7825. # requires that you compile everything twice, which is a pain.
  7826. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7827. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7828. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7829. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7830. else
  7831. ld_shlibs=no
  7832. fi
  7833. ;;
  7834. esac
  7835. ;;
  7836. sunos4*)
  7837. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7838. wlarc=
  7839. hardcode_direct=yes
  7840. hardcode_shlibpath_var=no
  7841. ;;
  7842. *)
  7843. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7844. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7845. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7846. else
  7847. ld_shlibs=no
  7848. fi
  7849. ;;
  7850. esac
  7851. if test "$ld_shlibs" = no; then
  7852. runpath_var=
  7853. hardcode_libdir_flag_spec=
  7854. export_dynamic_flag_spec=
  7855. whole_archive_flag_spec=
  7856. fi
  7857. else
  7858. # PORTME fill in a description of your system's linker (not GNU ld)
  7859. case $host_os in
  7860. aix3*)
  7861. allow_undefined_flag=unsupported
  7862. always_export_symbols=yes
  7863. 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'
  7864. # Note: this linker hardcodes the directories in LIBPATH if there
  7865. # are no directories specified by -L.
  7866. hardcode_minus_L=yes
  7867. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7868. # Neither direct hardcoding nor static linking is supported with a
  7869. # broken collect2.
  7870. hardcode_direct=unsupported
  7871. fi
  7872. ;;
  7873. aix[4-9]*)
  7874. if test "$host_cpu" = ia64; then
  7875. # On IA64, the linker does run time linking by default, so we don't
  7876. # have to do anything special.
  7877. aix_use_runtimelinking=no
  7878. exp_sym_flag='-Bexport'
  7879. no_entry_flag=""
  7880. else
  7881. # If we're using GNU nm, then we don't want the "-C" option.
  7882. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7883. # Also, AIX nm treats weak defined symbols like other global
  7884. # defined symbols, whereas GNU nm marks them as "W".
  7885. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7886. 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'
  7887. else
  7888. 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'
  7889. fi
  7890. aix_use_runtimelinking=no
  7891. # Test if we are trying to use run time linking or normal
  7892. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7893. # need to do runtime linking.
  7894. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7895. for ld_flag in $LDFLAGS; do
  7896. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7897. aix_use_runtimelinking=yes
  7898. break
  7899. fi
  7900. done
  7901. ;;
  7902. esac
  7903. exp_sym_flag='-bexport'
  7904. no_entry_flag='-bnoentry'
  7905. fi
  7906. # When large executables or shared objects are built, AIX ld can
  7907. # have problems creating the table of contents. If linking a library
  7908. # or program results in "error TOC overflow" add -mminimal-toc to
  7909. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7910. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7911. archive_cmds=''
  7912. hardcode_direct=yes
  7913. hardcode_direct_absolute=yes
  7914. hardcode_libdir_separator=':'
  7915. link_all_deplibs=yes
  7916. file_list_spec='${wl}-f,'
  7917. if test "$GCC" = yes; then
  7918. case $host_os in aix4.[012]|aix4.[012].*)
  7919. # We only want to do this on AIX 4.2 and lower, the check
  7920. # below for broken collect2 doesn't work under 4.3+
  7921. collect2name=`${CC} -print-prog-name=collect2`
  7922. if test -f "$collect2name" &&
  7923. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7924. then
  7925. # We have reworked collect2
  7926. :
  7927. else
  7928. # We have old collect2
  7929. hardcode_direct=unsupported
  7930. # It fails to find uninstalled libraries when the uninstalled
  7931. # path is not listed in the libpath. Setting hardcode_minus_L
  7932. # to unsupported forces relinking
  7933. hardcode_minus_L=yes
  7934. hardcode_libdir_flag_spec='-L$libdir'
  7935. hardcode_libdir_separator=
  7936. fi
  7937. ;;
  7938. esac
  7939. shared_flag='-shared'
  7940. if test "$aix_use_runtimelinking" = yes; then
  7941. shared_flag="$shared_flag "'${wl}-G'
  7942. fi
  7943. else
  7944. # not using gcc
  7945. if test "$host_cpu" = ia64; then
  7946. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7947. # chokes on -Wl,-G. The following line is correct:
  7948. shared_flag='-G'
  7949. else
  7950. if test "$aix_use_runtimelinking" = yes; then
  7951. shared_flag='${wl}-G'
  7952. else
  7953. shared_flag='${wl}-bM:SRE'
  7954. fi
  7955. fi
  7956. fi
  7957. export_dynamic_flag_spec='${wl}-bexpall'
  7958. # It seems that -bexpall does not export symbols beginning with
  7959. # underscore (_), so it is better to generate a list of symbols to export.
  7960. always_export_symbols=yes
  7961. if test "$aix_use_runtimelinking" = yes; then
  7962. # Warning - without using the other runtime loading flags (-brtl),
  7963. # -berok will link without error, but may produce a broken library.
  7964. allow_undefined_flag='-berok'
  7965. # Determine the default libpath from the value encoded in an
  7966. # empty executable.
  7967. if test "${lt_cv_aix_libpath+set}" = set; then
  7968. aix_libpath=$lt_cv_aix_libpath
  7969. else
  7970. if ${lt_cv_aix_libpath_+:} false; then :
  7971. $as_echo_n "(cached) " >&6
  7972. else
  7973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7974. /* end confdefs.h. */
  7975. int
  7976. main ()
  7977. {
  7978. ;
  7979. return 0;
  7980. }
  7981. _ACEOF
  7982. if ac_fn_c_try_link "$LINENO"; then :
  7983. lt_aix_libpath_sed='
  7984. /Import File Strings/,/^$/ {
  7985. /^0/ {
  7986. s/^0 *\([^ ]*\) *$/\1/
  7987. p
  7988. }
  7989. }'
  7990. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7991. # Check for a 64-bit object if we didn't find anything.
  7992. if test -z "$lt_cv_aix_libpath_"; then
  7993. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7994. fi
  7995. fi
  7996. rm -f core conftest.err conftest.$ac_objext \
  7997. conftest$ac_exeext conftest.$ac_ext
  7998. if test -z "$lt_cv_aix_libpath_"; then
  7999. lt_cv_aix_libpath_="/usr/lib:/lib"
  8000. fi
  8001. fi
  8002. aix_libpath=$lt_cv_aix_libpath_
  8003. fi
  8004. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8005. 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"
  8006. else
  8007. if test "$host_cpu" = ia64; then
  8008. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8009. allow_undefined_flag="-z nodefs"
  8010. 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"
  8011. else
  8012. # Determine the default libpath from the value encoded in an
  8013. # empty executable.
  8014. if test "${lt_cv_aix_libpath+set}" = set; then
  8015. aix_libpath=$lt_cv_aix_libpath
  8016. else
  8017. if ${lt_cv_aix_libpath_+:} false; then :
  8018. $as_echo_n "(cached) " >&6
  8019. else
  8020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8021. /* end confdefs.h. */
  8022. int
  8023. main ()
  8024. {
  8025. ;
  8026. return 0;
  8027. }
  8028. _ACEOF
  8029. if ac_fn_c_try_link "$LINENO"; then :
  8030. lt_aix_libpath_sed='
  8031. /Import File Strings/,/^$/ {
  8032. /^0/ {
  8033. s/^0 *\([^ ]*\) *$/\1/
  8034. p
  8035. }
  8036. }'
  8037. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8038. # Check for a 64-bit object if we didn't find anything.
  8039. if test -z "$lt_cv_aix_libpath_"; then
  8040. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8041. fi
  8042. fi
  8043. rm -f core conftest.err conftest.$ac_objext \
  8044. conftest$ac_exeext conftest.$ac_ext
  8045. if test -z "$lt_cv_aix_libpath_"; then
  8046. lt_cv_aix_libpath_="/usr/lib:/lib"
  8047. fi
  8048. fi
  8049. aix_libpath=$lt_cv_aix_libpath_
  8050. fi
  8051. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8052. # Warning - without using the other run time loading flags,
  8053. # -berok will link without error, but may produce a broken library.
  8054. no_undefined_flag=' ${wl}-bernotok'
  8055. allow_undefined_flag=' ${wl}-berok'
  8056. if test "$with_gnu_ld" = yes; then
  8057. # We only use this code for GNU lds that support --whole-archive.
  8058. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8059. else
  8060. # Exported symbols can be pulled into shared objects from archives
  8061. whole_archive_flag_spec='$convenience'
  8062. fi
  8063. archive_cmds_need_lc=yes
  8064. # This is similar to how AIX traditionally builds its shared libraries.
  8065. 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'
  8066. fi
  8067. fi
  8068. ;;
  8069. amigaos*)
  8070. case $host_cpu in
  8071. powerpc)
  8072. # see comment about AmigaOS4 .so support
  8073. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8074. archive_expsym_cmds=''
  8075. ;;
  8076. m68k)
  8077. 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)'
  8078. hardcode_libdir_flag_spec='-L$libdir'
  8079. hardcode_minus_L=yes
  8080. ;;
  8081. esac
  8082. ;;
  8083. bsdi[45]*)
  8084. export_dynamic_flag_spec=-rdynamic
  8085. ;;
  8086. cygwin* | mingw* | pw32* | cegcc*)
  8087. # When not using gcc, we currently assume that we are using
  8088. # Microsoft Visual C++.
  8089. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8090. # no search path for DLLs.
  8091. case $cc_basename in
  8092. cl*)
  8093. # Native MSVC
  8094. hardcode_libdir_flag_spec=' '
  8095. allow_undefined_flag=unsupported
  8096. always_export_symbols=yes
  8097. file_list_spec='@'
  8098. # Tell ltmain to make .lib files, not .a files.
  8099. libext=lib
  8100. # Tell ltmain to make .dll files, not .so files.
  8101. shrext_cmds=".dll"
  8102. # FIXME: Setting linknames here is a bad hack.
  8103. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8104. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8105. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8106. else
  8107. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8108. fi~
  8109. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8110. linknames='
  8111. # The linker will not automatically build a static lib if we build a DLL.
  8112. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8113. enable_shared_with_static_runtimes=yes
  8114. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8115. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8116. # Don't use ranlib
  8117. old_postinstall_cmds='chmod 644 $oldlib'
  8118. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8119. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8120. case $lt_outputfile in
  8121. *.exe|*.EXE) ;;
  8122. *)
  8123. lt_outputfile="$lt_outputfile.exe"
  8124. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8125. ;;
  8126. esac~
  8127. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8128. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8129. $RM "$lt_outputfile.manifest";
  8130. fi'
  8131. ;;
  8132. *)
  8133. # Assume MSVC wrapper
  8134. hardcode_libdir_flag_spec=' '
  8135. allow_undefined_flag=unsupported
  8136. # Tell ltmain to make .lib files, not .a files.
  8137. libext=lib
  8138. # Tell ltmain to make .dll files, not .so files.
  8139. shrext_cmds=".dll"
  8140. # FIXME: Setting linknames here is a bad hack.
  8141. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8142. # The linker will automatically build a .lib file if we build a DLL.
  8143. old_archive_from_new_cmds='true'
  8144. # FIXME: Should let the user specify the lib program.
  8145. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8146. enable_shared_with_static_runtimes=yes
  8147. ;;
  8148. esac
  8149. ;;
  8150. darwin* | rhapsody*)
  8151. archive_cmds_need_lc=no
  8152. hardcode_direct=no
  8153. hardcode_automatic=yes
  8154. hardcode_shlibpath_var=unsupported
  8155. if test "$lt_cv_ld_force_load" = "yes"; then
  8156. 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\"`'
  8157. else
  8158. whole_archive_flag_spec=''
  8159. fi
  8160. link_all_deplibs=yes
  8161. allow_undefined_flag="$_lt_dar_allow_undefined"
  8162. case $cc_basename in
  8163. ifort*) _lt_dar_can_shared=yes ;;
  8164. *) _lt_dar_can_shared=$GCC ;;
  8165. esac
  8166. if test "$_lt_dar_can_shared" = "yes"; then
  8167. output_verbose_link_cmd=func_echo_all
  8168. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8169. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8170. 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}"
  8171. 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}"
  8172. else
  8173. ld_shlibs=no
  8174. fi
  8175. ;;
  8176. dgux*)
  8177. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8178. hardcode_libdir_flag_spec='-L$libdir'
  8179. hardcode_shlibpath_var=no
  8180. ;;
  8181. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8182. # support. Future versions do this automatically, but an explicit c++rt0.o
  8183. # does not break anything, and helps significantly (at the cost of a little
  8184. # extra space).
  8185. freebsd2.2*)
  8186. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8187. hardcode_libdir_flag_spec='-R$libdir'
  8188. hardcode_direct=yes
  8189. hardcode_shlibpath_var=no
  8190. ;;
  8191. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8192. freebsd2.*)
  8193. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8194. hardcode_direct=yes
  8195. hardcode_minus_L=yes
  8196. hardcode_shlibpath_var=no
  8197. ;;
  8198. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8199. freebsd* | dragonfly*)
  8200. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8201. hardcode_libdir_flag_spec='-R$libdir'
  8202. hardcode_direct=yes
  8203. hardcode_shlibpath_var=no
  8204. ;;
  8205. hpux9*)
  8206. if test "$GCC" = yes; then
  8207. 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'
  8208. else
  8209. 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'
  8210. fi
  8211. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8212. hardcode_libdir_separator=:
  8213. hardcode_direct=yes
  8214. # hardcode_minus_L: Not really in the search PATH,
  8215. # but as the default location of the library.
  8216. hardcode_minus_L=yes
  8217. export_dynamic_flag_spec='${wl}-E'
  8218. ;;
  8219. hpux10*)
  8220. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8221. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8222. else
  8223. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8224. fi
  8225. if test "$with_gnu_ld" = no; then
  8226. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8227. hardcode_libdir_separator=:
  8228. hardcode_direct=yes
  8229. hardcode_direct_absolute=yes
  8230. export_dynamic_flag_spec='${wl}-E'
  8231. # hardcode_minus_L: Not really in the search PATH,
  8232. # but as the default location of the library.
  8233. hardcode_minus_L=yes
  8234. fi
  8235. ;;
  8236. hpux11*)
  8237. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8238. case $host_cpu in
  8239. hppa*64*)
  8240. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8241. ;;
  8242. ia64*)
  8243. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8244. ;;
  8245. *)
  8246. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8247. ;;
  8248. esac
  8249. else
  8250. case $host_cpu in
  8251. hppa*64*)
  8252. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. ia64*)
  8255. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8256. ;;
  8257. *)
  8258. # Older versions of the 11.00 compiler do not understand -b yet
  8259. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8261. $as_echo_n "checking if $CC understands -b... " >&6; }
  8262. if ${lt_cv_prog_compiler__b+:} false; then :
  8263. $as_echo_n "(cached) " >&6
  8264. else
  8265. lt_cv_prog_compiler__b=no
  8266. save_LDFLAGS="$LDFLAGS"
  8267. LDFLAGS="$LDFLAGS -b"
  8268. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8269. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8270. # The linker can only warn and ignore the option if not recognized
  8271. # So say no if there are warnings
  8272. if test -s conftest.err; then
  8273. # Append any errors to the config.log.
  8274. cat conftest.err 1>&5
  8275. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8276. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8277. if diff conftest.exp conftest.er2 >/dev/null; then
  8278. lt_cv_prog_compiler__b=yes
  8279. fi
  8280. else
  8281. lt_cv_prog_compiler__b=yes
  8282. fi
  8283. fi
  8284. $RM -r conftest*
  8285. LDFLAGS="$save_LDFLAGS"
  8286. fi
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8288. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8289. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8290. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8291. else
  8292. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8293. fi
  8294. ;;
  8295. esac
  8296. fi
  8297. if test "$with_gnu_ld" = no; then
  8298. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8299. hardcode_libdir_separator=:
  8300. case $host_cpu in
  8301. hppa*64*|ia64*)
  8302. hardcode_direct=no
  8303. hardcode_shlibpath_var=no
  8304. ;;
  8305. *)
  8306. hardcode_direct=yes
  8307. hardcode_direct_absolute=yes
  8308. export_dynamic_flag_spec='${wl}-E'
  8309. # hardcode_minus_L: Not really in the search PATH,
  8310. # but as the default location of the library.
  8311. hardcode_minus_L=yes
  8312. ;;
  8313. esac
  8314. fi
  8315. ;;
  8316. irix5* | irix6* | nonstopux*)
  8317. if test "$GCC" = yes; then
  8318. 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'
  8319. # Try to use the -exported_symbol ld option, if it does not
  8320. # work, assume that -exports_file does not work either and
  8321. # implicitly export all symbols.
  8322. # This should be the same for all languages, so no per-tag cache variable.
  8323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8324. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8325. if ${lt_cv_irix_exported_symbol+:} false; then :
  8326. $as_echo_n "(cached) " >&6
  8327. else
  8328. save_LDFLAGS="$LDFLAGS"
  8329. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8331. /* end confdefs.h. */
  8332. int foo (void) { return 0; }
  8333. _ACEOF
  8334. if ac_fn_c_try_link "$LINENO"; then :
  8335. lt_cv_irix_exported_symbol=yes
  8336. else
  8337. lt_cv_irix_exported_symbol=no
  8338. fi
  8339. rm -f core conftest.err conftest.$ac_objext \
  8340. conftest$ac_exeext conftest.$ac_ext
  8341. LDFLAGS="$save_LDFLAGS"
  8342. fi
  8343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8344. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8345. if test "$lt_cv_irix_exported_symbol" = yes; then
  8346. 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'
  8347. fi
  8348. else
  8349. 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'
  8350. 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'
  8351. fi
  8352. archive_cmds_need_lc='no'
  8353. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8354. hardcode_libdir_separator=:
  8355. inherit_rpath=yes
  8356. link_all_deplibs=yes
  8357. ;;
  8358. netbsd*)
  8359. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8360. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8361. else
  8362. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8363. fi
  8364. hardcode_libdir_flag_spec='-R$libdir'
  8365. hardcode_direct=yes
  8366. hardcode_shlibpath_var=no
  8367. ;;
  8368. newsos6)
  8369. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8370. hardcode_direct=yes
  8371. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8372. hardcode_libdir_separator=:
  8373. hardcode_shlibpath_var=no
  8374. ;;
  8375. *nto* | *qnx*)
  8376. ;;
  8377. openbsd*)
  8378. if test -f /usr/libexec/ld.so; then
  8379. hardcode_direct=yes
  8380. hardcode_shlibpath_var=no
  8381. hardcode_direct_absolute=yes
  8382. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8383. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8384. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8385. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8386. export_dynamic_flag_spec='${wl}-E'
  8387. else
  8388. case $host_os in
  8389. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8390. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8391. hardcode_libdir_flag_spec='-R$libdir'
  8392. ;;
  8393. *)
  8394. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8395. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8396. ;;
  8397. esac
  8398. fi
  8399. else
  8400. ld_shlibs=no
  8401. fi
  8402. ;;
  8403. os2*)
  8404. hardcode_libdir_flag_spec='-L$libdir'
  8405. hardcode_minus_L=yes
  8406. allow_undefined_flag=unsupported
  8407. 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'
  8408. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8409. ;;
  8410. osf3*)
  8411. if test "$GCC" = yes; then
  8412. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8413. 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'
  8414. else
  8415. allow_undefined_flag=' -expect_unresolved \*'
  8416. 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'
  8417. fi
  8418. archive_cmds_need_lc='no'
  8419. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8420. hardcode_libdir_separator=:
  8421. ;;
  8422. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8423. if test "$GCC" = yes; then
  8424. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8425. 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'
  8426. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8427. else
  8428. allow_undefined_flag=' -expect_unresolved \*'
  8429. 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'
  8430. 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~
  8431. $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'
  8432. # Both c and cxx compiler support -rpath directly
  8433. hardcode_libdir_flag_spec='-rpath $libdir'
  8434. fi
  8435. archive_cmds_need_lc='no'
  8436. hardcode_libdir_separator=:
  8437. ;;
  8438. solaris*)
  8439. no_undefined_flag=' -z defs'
  8440. if test "$GCC" = yes; then
  8441. wlarc='${wl}'
  8442. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8444. $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'
  8445. else
  8446. case `$CC -V 2>&1` in
  8447. *"Compilers 5.0"*)
  8448. wlarc=''
  8449. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8450. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8451. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8452. ;;
  8453. *)
  8454. wlarc='${wl}'
  8455. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8456. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8457. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8458. ;;
  8459. esac
  8460. fi
  8461. hardcode_libdir_flag_spec='-R$libdir'
  8462. hardcode_shlibpath_var=no
  8463. case $host_os in
  8464. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8465. *)
  8466. # The compiler driver will combine and reorder linker options,
  8467. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8468. # but is careful enough not to reorder.
  8469. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8470. if test "$GCC" = yes; then
  8471. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8472. else
  8473. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8474. fi
  8475. ;;
  8476. esac
  8477. link_all_deplibs=yes
  8478. ;;
  8479. sunos4*)
  8480. if test "x$host_vendor" = xsequent; then
  8481. # Use $CC to link under sequent, because it throws in some extra .o
  8482. # files that make .init and .fini sections work.
  8483. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8484. else
  8485. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8486. fi
  8487. hardcode_libdir_flag_spec='-L$libdir'
  8488. hardcode_direct=yes
  8489. hardcode_minus_L=yes
  8490. hardcode_shlibpath_var=no
  8491. ;;
  8492. sysv4)
  8493. case $host_vendor in
  8494. sni)
  8495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8496. hardcode_direct=yes # is this really true???
  8497. ;;
  8498. siemens)
  8499. ## LD is ld it makes a PLAMLIB
  8500. ## CC just makes a GrossModule.
  8501. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8502. reload_cmds='$CC -r -o $output$reload_objs'
  8503. hardcode_direct=no
  8504. ;;
  8505. motorola)
  8506. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8507. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8508. ;;
  8509. esac
  8510. runpath_var='LD_RUN_PATH'
  8511. hardcode_shlibpath_var=no
  8512. ;;
  8513. sysv4.3*)
  8514. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8515. hardcode_shlibpath_var=no
  8516. export_dynamic_flag_spec='-Bexport'
  8517. ;;
  8518. sysv4*MP*)
  8519. if test -d /usr/nec; then
  8520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8521. hardcode_shlibpath_var=no
  8522. runpath_var=LD_RUN_PATH
  8523. hardcode_runpath_var=yes
  8524. ld_shlibs=yes
  8525. fi
  8526. ;;
  8527. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8528. no_undefined_flag='${wl}-z,text'
  8529. archive_cmds_need_lc=no
  8530. hardcode_shlibpath_var=no
  8531. runpath_var='LD_RUN_PATH'
  8532. if test "$GCC" = yes; then
  8533. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8534. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8535. else
  8536. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. fi
  8539. ;;
  8540. sysv5* | sco3.2v5* | sco5v6*)
  8541. # Note: We can NOT use -z defs as we might desire, because we do not
  8542. # link with -lc, and that would cause any symbols used from libc to
  8543. # always be unresolved, which means just about no library would
  8544. # ever link correctly. If we're not using GNU ld we use -z text
  8545. # though, which does catch some bad symbols but isn't as heavy-handed
  8546. # as -z defs.
  8547. no_undefined_flag='${wl}-z,text'
  8548. allow_undefined_flag='${wl}-z,nodefs'
  8549. archive_cmds_need_lc=no
  8550. hardcode_shlibpath_var=no
  8551. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8552. hardcode_libdir_separator=':'
  8553. link_all_deplibs=yes
  8554. export_dynamic_flag_spec='${wl}-Bexport'
  8555. runpath_var='LD_RUN_PATH'
  8556. if test "$GCC" = yes; then
  8557. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8558. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8559. else
  8560. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8562. fi
  8563. ;;
  8564. uts4*)
  8565. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8566. hardcode_libdir_flag_spec='-L$libdir'
  8567. hardcode_shlibpath_var=no
  8568. ;;
  8569. *)
  8570. ld_shlibs=no
  8571. ;;
  8572. esac
  8573. if test x$host_vendor = xsni; then
  8574. case $host in
  8575. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8576. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8577. ;;
  8578. esac
  8579. fi
  8580. fi
  8581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8582. $as_echo "$ld_shlibs" >&6; }
  8583. test "$ld_shlibs" = no && can_build_shared=no
  8584. with_gnu_ld=$with_gnu_ld
  8585. #
  8586. # Do we need to explicitly link libc?
  8587. #
  8588. case "x$archive_cmds_need_lc" in
  8589. x|xyes)
  8590. # Assume -lc should be added
  8591. archive_cmds_need_lc=yes
  8592. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8593. case $archive_cmds in
  8594. *'~'*)
  8595. # FIXME: we may have to deal with multi-command sequences.
  8596. ;;
  8597. '$CC '*)
  8598. # Test whether the compiler implicitly links with -lc since on some
  8599. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8600. # to ld, don't add -lc before -lgcc.
  8601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8602. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8603. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8604. $as_echo_n "(cached) " >&6
  8605. else
  8606. $RM conftest*
  8607. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8609. (eval $ac_compile) 2>&5
  8610. ac_status=$?
  8611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8612. test $ac_status = 0; } 2>conftest.err; then
  8613. soname=conftest
  8614. lib=conftest
  8615. libobjs=conftest.$ac_objext
  8616. deplibs=
  8617. wl=$lt_prog_compiler_wl
  8618. pic_flag=$lt_prog_compiler_pic
  8619. compiler_flags=-v
  8620. linker_flags=-v
  8621. verstring=
  8622. output_objdir=.
  8623. libname=conftest
  8624. lt_save_allow_undefined_flag=$allow_undefined_flag
  8625. allow_undefined_flag=
  8626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8627. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8628. ac_status=$?
  8629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8630. test $ac_status = 0; }
  8631. then
  8632. lt_cv_archive_cmds_need_lc=no
  8633. else
  8634. lt_cv_archive_cmds_need_lc=yes
  8635. fi
  8636. allow_undefined_flag=$lt_save_allow_undefined_flag
  8637. else
  8638. cat conftest.err 1>&5
  8639. fi
  8640. $RM conftest*
  8641. fi
  8642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8643. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8644. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8645. ;;
  8646. esac
  8647. fi
  8648. ;;
  8649. esac
  8650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8651. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8652. if test "$GCC" = yes; then
  8653. case $host_os in
  8654. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8655. *) lt_awk_arg="/^libraries:/" ;;
  8656. esac
  8657. case $host_os in
  8658. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8659. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8660. esac
  8661. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8662. case $lt_search_path_spec in
  8663. *\;*)
  8664. # if the path contains ";" then we assume it to be the separator
  8665. # otherwise default to the standard path separator (i.e. ":") - it is
  8666. # assumed that no part of a normal pathname contains ";" but that should
  8667. # okay in the real world where ";" in dirpaths is itself problematic.
  8668. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8669. ;;
  8670. *)
  8671. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8672. ;;
  8673. esac
  8674. # Ok, now we have the path, separated by spaces, we can step through it
  8675. # and add multilib dir if necessary...
  8676. lt_tmp_lt_search_path_spec=
  8677. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8678. # ...but if some path already ends with the multilib dir we assume
  8679. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8680. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8681. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8682. lt_multi_os_dir=
  8683. ;;
  8684. esac
  8685. for lt_sys_path in $lt_search_path_spec; do
  8686. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8687. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8688. elif test -n "$lt_multi_os_dir"; then
  8689. test -d "$lt_sys_path" && \
  8690. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8691. fi
  8692. done
  8693. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8694. BEGIN {RS=" "; FS="/|\n";} {
  8695. lt_foo="";
  8696. lt_count=0;
  8697. for (lt_i = NF; lt_i > 0; lt_i--) {
  8698. if ($lt_i != "" && $lt_i != ".") {
  8699. if ($lt_i == "..") {
  8700. lt_count++;
  8701. } else {
  8702. if (lt_count == 0) {
  8703. lt_foo="/" $lt_i lt_foo;
  8704. } else {
  8705. lt_count--;
  8706. }
  8707. }
  8708. }
  8709. }
  8710. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8711. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8712. }'`
  8713. # AWK program above erroneously prepends '/' to C:/dos/paths
  8714. # for these hosts.
  8715. case $host_os in
  8716. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8717. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8718. esac
  8719. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8720. else
  8721. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8722. fi
  8723. library_names_spec=
  8724. libname_spec='lib$name'
  8725. soname_spec=
  8726. shrext_cmds=".so"
  8727. postinstall_cmds=
  8728. postuninstall_cmds=
  8729. finish_cmds=
  8730. finish_eval=
  8731. shlibpath_var=
  8732. shlibpath_overrides_runpath=unknown
  8733. version_type=none
  8734. dynamic_linker="$host_os ld.so"
  8735. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8736. need_lib_prefix=unknown
  8737. hardcode_into_libs=no
  8738. # when you set need_version to no, make sure it does not cause -set_version
  8739. # flags to be left without arguments
  8740. need_version=unknown
  8741. case $host_os in
  8742. aix3*)
  8743. version_type=linux # correct to gnu/linux during the next big refactor
  8744. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8745. shlibpath_var=LIBPATH
  8746. # AIX 3 has no versioning support, so we append a major version to the name.
  8747. soname_spec='${libname}${release}${shared_ext}$major'
  8748. ;;
  8749. aix[4-9]*)
  8750. version_type=linux # correct to gnu/linux during the next big refactor
  8751. need_lib_prefix=no
  8752. need_version=no
  8753. hardcode_into_libs=yes
  8754. if test "$host_cpu" = ia64; then
  8755. # AIX 5 supports IA64
  8756. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8757. shlibpath_var=LD_LIBRARY_PATH
  8758. else
  8759. # With GCC up to 2.95.x, collect2 would create an import file
  8760. # for dependence libraries. The import file would start with
  8761. # the line `#! .'. This would cause the generated library to
  8762. # depend on `.', always an invalid library. This was fixed in
  8763. # development snapshots of GCC prior to 3.0.
  8764. case $host_os in
  8765. aix4 | aix4.[01] | aix4.[01].*)
  8766. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8767. echo ' yes '
  8768. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8769. :
  8770. else
  8771. can_build_shared=no
  8772. fi
  8773. ;;
  8774. esac
  8775. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8776. # soname into executable. Probably we can add versioning support to
  8777. # collect2, so additional links can be useful in future.
  8778. if test "$aix_use_runtimelinking" = yes; then
  8779. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8780. # instead of lib<name>.a to let people know that these are not
  8781. # typical AIX shared libraries.
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. else
  8784. # We preserve .a as extension for shared libraries through AIX4.2
  8785. # and later when we are not doing run time linking.
  8786. library_names_spec='${libname}${release}.a $libname.a'
  8787. soname_spec='${libname}${release}${shared_ext}$major'
  8788. fi
  8789. shlibpath_var=LIBPATH
  8790. fi
  8791. ;;
  8792. amigaos*)
  8793. case $host_cpu in
  8794. powerpc)
  8795. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8796. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8798. ;;
  8799. m68k)
  8800. library_names_spec='$libname.ixlibrary $libname.a'
  8801. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8802. 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'
  8803. ;;
  8804. esac
  8805. ;;
  8806. beos*)
  8807. library_names_spec='${libname}${shared_ext}'
  8808. dynamic_linker="$host_os ld.so"
  8809. shlibpath_var=LIBRARY_PATH
  8810. ;;
  8811. bsdi[45]*)
  8812. version_type=linux # correct to gnu/linux during the next big refactor
  8813. need_version=no
  8814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8815. soname_spec='${libname}${release}${shared_ext}$major'
  8816. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8817. shlibpath_var=LD_LIBRARY_PATH
  8818. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8819. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8820. # the default ld.so.conf also contains /usr/contrib/lib and
  8821. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8822. # libtool to hard-code these into programs
  8823. ;;
  8824. cygwin* | mingw* | pw32* | cegcc*)
  8825. version_type=windows
  8826. shrext_cmds=".dll"
  8827. need_version=no
  8828. need_lib_prefix=no
  8829. case $GCC,$cc_basename in
  8830. yes,*)
  8831. # gcc
  8832. library_names_spec='$libname.dll.a'
  8833. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8834. postinstall_cmds='base_file=`basename \${file}`~
  8835. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8836. dldir=$destdir/`dirname \$dlpath`~
  8837. test -d \$dldir || mkdir -p \$dldir~
  8838. $install_prog $dir/$dlname \$dldir/$dlname~
  8839. chmod a+x \$dldir/$dlname~
  8840. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8841. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8842. fi'
  8843. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8844. dlpath=$dir/\$dldll~
  8845. $RM \$dlpath'
  8846. shlibpath_overrides_runpath=yes
  8847. case $host_os in
  8848. cygwin*)
  8849. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8850. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8851. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8852. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8853. ;;
  8854. mingw* | cegcc*)
  8855. # MinGW DLLs use traditional 'lib' prefix
  8856. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8857. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8858. ;;
  8859. pw32*)
  8860. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8861. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8862. ;;
  8863. esac
  8864. dynamic_linker='Win32 ld.exe'
  8865. ;;
  8866. *,cl*)
  8867. # Native MSVC
  8868. libname_spec='$name'
  8869. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8870. library_names_spec='${libname}.dll.lib'
  8871. case $build_os in
  8872. mingw*)
  8873. sys_lib_search_path_spec=
  8874. lt_save_ifs=$IFS
  8875. IFS=';'
  8876. for lt_path in $LIB
  8877. do
  8878. IFS=$lt_save_ifs
  8879. # Let DOS variable expansion print the short 8.3 style file name.
  8880. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8881. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8882. done
  8883. IFS=$lt_save_ifs
  8884. # Convert to MSYS style.
  8885. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8886. ;;
  8887. cygwin*)
  8888. # Convert to unix form, then to dos form, then back to unix form
  8889. # but this time dos style (no spaces!) so that the unix form looks
  8890. # like /cygdrive/c/PROGRA~1:/cygdr...
  8891. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8892. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8893. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8894. ;;
  8895. *)
  8896. sys_lib_search_path_spec="$LIB"
  8897. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8898. # It is most probably a Windows format PATH.
  8899. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8900. else
  8901. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8902. fi
  8903. # FIXME: find the short name or the path components, as spaces are
  8904. # common. (e.g. "Program Files" -> "PROGRA~1")
  8905. ;;
  8906. esac
  8907. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8908. postinstall_cmds='base_file=`basename \${file}`~
  8909. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8910. dldir=$destdir/`dirname \$dlpath`~
  8911. test -d \$dldir || mkdir -p \$dldir~
  8912. $install_prog $dir/$dlname \$dldir/$dlname'
  8913. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8914. dlpath=$dir/\$dldll~
  8915. $RM \$dlpath'
  8916. shlibpath_overrides_runpath=yes
  8917. dynamic_linker='Win32 link.exe'
  8918. ;;
  8919. *)
  8920. # Assume MSVC wrapper
  8921. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8922. dynamic_linker='Win32 ld.exe'
  8923. ;;
  8924. esac
  8925. # FIXME: first we should search . and the directory the executable is in
  8926. shlibpath_var=PATH
  8927. ;;
  8928. darwin* | rhapsody*)
  8929. dynamic_linker="$host_os dyld"
  8930. version_type=darwin
  8931. need_lib_prefix=no
  8932. need_version=no
  8933. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8934. soname_spec='${libname}${release}${major}$shared_ext'
  8935. shlibpath_overrides_runpath=yes
  8936. shlibpath_var=DYLD_LIBRARY_PATH
  8937. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8938. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8939. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8940. ;;
  8941. dgux*)
  8942. version_type=linux # correct to gnu/linux during the next big refactor
  8943. need_lib_prefix=no
  8944. need_version=no
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8946. soname_spec='${libname}${release}${shared_ext}$major'
  8947. shlibpath_var=LD_LIBRARY_PATH
  8948. ;;
  8949. freebsd* | dragonfly*)
  8950. # DragonFly does not have aout. When/if they implement a new
  8951. # versioning mechanism, adjust this.
  8952. if test -x /usr/bin/objformat; then
  8953. objformat=`/usr/bin/objformat`
  8954. else
  8955. case $host_os in
  8956. freebsd[23].*) objformat=aout ;;
  8957. *) objformat=elf ;;
  8958. esac
  8959. fi
  8960. version_type=freebsd-$objformat
  8961. case $version_type in
  8962. freebsd-elf*)
  8963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8964. need_version=no
  8965. need_lib_prefix=no
  8966. ;;
  8967. freebsd-*)
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8969. need_version=yes
  8970. ;;
  8971. esac
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. case $host_os in
  8974. freebsd2.*)
  8975. shlibpath_overrides_runpath=yes
  8976. ;;
  8977. freebsd3.[01]* | freebsdelf3.[01]*)
  8978. shlibpath_overrides_runpath=yes
  8979. hardcode_into_libs=yes
  8980. ;;
  8981. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8982. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8983. shlibpath_overrides_runpath=no
  8984. hardcode_into_libs=yes
  8985. ;;
  8986. *) # from 4.6 on, and DragonFly
  8987. shlibpath_overrides_runpath=yes
  8988. hardcode_into_libs=yes
  8989. ;;
  8990. esac
  8991. ;;
  8992. gnu*)
  8993. version_type=linux # correct to gnu/linux during the next big refactor
  8994. need_lib_prefix=no
  8995. need_version=no
  8996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8997. soname_spec='${libname}${release}${shared_ext}$major'
  8998. shlibpath_var=LD_LIBRARY_PATH
  8999. shlibpath_overrides_runpath=no
  9000. hardcode_into_libs=yes
  9001. ;;
  9002. haiku*)
  9003. version_type=linux # correct to gnu/linux during the next big refactor
  9004. need_lib_prefix=no
  9005. need_version=no
  9006. dynamic_linker="$host_os runtime_loader"
  9007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9008. soname_spec='${libname}${release}${shared_ext}$major'
  9009. shlibpath_var=LIBRARY_PATH
  9010. shlibpath_overrides_runpath=yes
  9011. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9012. hardcode_into_libs=yes
  9013. ;;
  9014. hpux9* | hpux10* | hpux11*)
  9015. # Give a soname corresponding to the major version so that dld.sl refuses to
  9016. # link against other versions.
  9017. version_type=sunos
  9018. need_lib_prefix=no
  9019. need_version=no
  9020. case $host_cpu in
  9021. ia64*)
  9022. shrext_cmds='.so'
  9023. hardcode_into_libs=yes
  9024. dynamic_linker="$host_os dld.so"
  9025. shlibpath_var=LD_LIBRARY_PATH
  9026. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9028. soname_spec='${libname}${release}${shared_ext}$major'
  9029. if test "X$HPUX_IA64_MODE" = X32; then
  9030. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9031. else
  9032. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9033. fi
  9034. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9035. ;;
  9036. hppa*64*)
  9037. shrext_cmds='.sl'
  9038. hardcode_into_libs=yes
  9039. dynamic_linker="$host_os dld.sl"
  9040. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9041. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9043. soname_spec='${libname}${release}${shared_ext}$major'
  9044. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9045. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9046. ;;
  9047. *)
  9048. shrext_cmds='.sl'
  9049. dynamic_linker="$host_os dld.sl"
  9050. shlibpath_var=SHLIB_PATH
  9051. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9053. soname_spec='${libname}${release}${shared_ext}$major'
  9054. ;;
  9055. esac
  9056. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9057. postinstall_cmds='chmod 555 $lib'
  9058. # or fails outright, so override atomically:
  9059. install_override_mode=555
  9060. ;;
  9061. interix[3-9]*)
  9062. version_type=linux # correct to gnu/linux during the next big refactor
  9063. need_lib_prefix=no
  9064. need_version=no
  9065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9066. soname_spec='${libname}${release}${shared_ext}$major'
  9067. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9068. shlibpath_var=LD_LIBRARY_PATH
  9069. shlibpath_overrides_runpath=no
  9070. hardcode_into_libs=yes
  9071. ;;
  9072. irix5* | irix6* | nonstopux*)
  9073. case $host_os in
  9074. nonstopux*) version_type=nonstopux ;;
  9075. *)
  9076. if test "$lt_cv_prog_gnu_ld" = yes; then
  9077. version_type=linux # correct to gnu/linux during the next big refactor
  9078. else
  9079. version_type=irix
  9080. fi ;;
  9081. esac
  9082. need_lib_prefix=no
  9083. need_version=no
  9084. soname_spec='${libname}${release}${shared_ext}$major'
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9086. case $host_os in
  9087. irix5* | nonstopux*)
  9088. libsuff= shlibsuff=
  9089. ;;
  9090. *)
  9091. case $LD in # libtool.m4 will add one of these switches to LD
  9092. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9093. libsuff= shlibsuff= libmagic=32-bit;;
  9094. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9095. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9096. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9097. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9098. *) libsuff= shlibsuff= libmagic=never-match;;
  9099. esac
  9100. ;;
  9101. esac
  9102. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9103. shlibpath_overrides_runpath=no
  9104. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9105. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9106. hardcode_into_libs=yes
  9107. ;;
  9108. # No shared lib support for Linux oldld, aout, or coff.
  9109. linux*oldld* | linux*aout* | linux*coff*)
  9110. dynamic_linker=no
  9111. ;;
  9112. # This must be glibc/ELF.
  9113. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9114. version_type=linux # correct to gnu/linux during the next big refactor
  9115. need_lib_prefix=no
  9116. need_version=no
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9118. soname_spec='${libname}${release}${shared_ext}$major'
  9119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9120. shlibpath_var=LD_LIBRARY_PATH
  9121. shlibpath_overrides_runpath=no
  9122. # Some binutils ld are patched to set DT_RUNPATH
  9123. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9124. $as_echo_n "(cached) " >&6
  9125. else
  9126. lt_cv_shlibpath_overrides_runpath=no
  9127. save_LDFLAGS=$LDFLAGS
  9128. save_libdir=$libdir
  9129. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9130. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. int
  9134. main ()
  9135. {
  9136. ;
  9137. return 0;
  9138. }
  9139. _ACEOF
  9140. if ac_fn_c_try_link "$LINENO"; then :
  9141. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9142. lt_cv_shlibpath_overrides_runpath=yes
  9143. fi
  9144. fi
  9145. rm -f core conftest.err conftest.$ac_objext \
  9146. conftest$ac_exeext conftest.$ac_ext
  9147. LDFLAGS=$save_LDFLAGS
  9148. libdir=$save_libdir
  9149. fi
  9150. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9151. # This implies no fast_install, which is unacceptable.
  9152. # Some rework will be needed to allow for fast_install
  9153. # before this can be enabled.
  9154. hardcode_into_libs=yes
  9155. # Append ld.so.conf contents to the search path
  9156. if test -f /etc/ld.so.conf; then
  9157. 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' ' '`
  9158. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9159. fi
  9160. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9161. # powerpc, because MkLinux only supported shared libraries with the
  9162. # GNU dynamic linker. Since this was broken with cross compilers,
  9163. # most powerpc-linux boxes support dynamic linking these days and
  9164. # people can always --disable-shared, the test was removed, and we
  9165. # assume the GNU/Linux dynamic linker is in use.
  9166. dynamic_linker='GNU/Linux ld.so'
  9167. ;;
  9168. netbsd*)
  9169. version_type=sunos
  9170. need_lib_prefix=no
  9171. need_version=no
  9172. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9174. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9175. dynamic_linker='NetBSD (a.out) ld.so'
  9176. else
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9178. soname_spec='${libname}${release}${shared_ext}$major'
  9179. dynamic_linker='NetBSD ld.elf_so'
  9180. fi
  9181. shlibpath_var=LD_LIBRARY_PATH
  9182. shlibpath_overrides_runpath=yes
  9183. hardcode_into_libs=yes
  9184. ;;
  9185. newsos6)
  9186. version_type=linux # correct to gnu/linux during the next big refactor
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. shlibpath_overrides_runpath=yes
  9190. ;;
  9191. *nto* | *qnx*)
  9192. version_type=qnx
  9193. need_lib_prefix=no
  9194. need_version=no
  9195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9196. soname_spec='${libname}${release}${shared_ext}$major'
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. shlibpath_overrides_runpath=no
  9199. hardcode_into_libs=yes
  9200. dynamic_linker='ldqnx.so'
  9201. ;;
  9202. openbsd*)
  9203. version_type=sunos
  9204. sys_lib_dlsearch_path_spec="/usr/lib"
  9205. need_lib_prefix=no
  9206. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9207. case $host_os in
  9208. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9209. *) need_version=no ;;
  9210. esac
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9212. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9215. case $host_os in
  9216. openbsd2.[89] | openbsd2.[89].*)
  9217. shlibpath_overrides_runpath=no
  9218. ;;
  9219. *)
  9220. shlibpath_overrides_runpath=yes
  9221. ;;
  9222. esac
  9223. else
  9224. shlibpath_overrides_runpath=yes
  9225. fi
  9226. ;;
  9227. os2*)
  9228. libname_spec='$name'
  9229. shrext_cmds=".dll"
  9230. need_lib_prefix=no
  9231. library_names_spec='$libname${shared_ext} $libname.a'
  9232. dynamic_linker='OS/2 ld.exe'
  9233. shlibpath_var=LIBPATH
  9234. ;;
  9235. osf3* | osf4* | osf5*)
  9236. version_type=osf
  9237. need_lib_prefix=no
  9238. need_version=no
  9239. soname_spec='${libname}${release}${shared_ext}$major'
  9240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9241. shlibpath_var=LD_LIBRARY_PATH
  9242. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9243. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9244. ;;
  9245. rdos*)
  9246. dynamic_linker=no
  9247. ;;
  9248. solaris*)
  9249. version_type=linux # correct to gnu/linux during the next big refactor
  9250. need_lib_prefix=no
  9251. need_version=no
  9252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9253. soname_spec='${libname}${release}${shared_ext}$major'
  9254. shlibpath_var=LD_LIBRARY_PATH
  9255. shlibpath_overrides_runpath=yes
  9256. hardcode_into_libs=yes
  9257. # ldd complains unless libraries are executable
  9258. postinstall_cmds='chmod +x $lib'
  9259. ;;
  9260. sunos4*)
  9261. version_type=sunos
  9262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9263. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9264. shlibpath_var=LD_LIBRARY_PATH
  9265. shlibpath_overrides_runpath=yes
  9266. if test "$with_gnu_ld" = yes; then
  9267. need_lib_prefix=no
  9268. fi
  9269. need_version=yes
  9270. ;;
  9271. sysv4 | sysv4.3*)
  9272. version_type=linux # correct to gnu/linux during the next big refactor
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9274. soname_spec='${libname}${release}${shared_ext}$major'
  9275. shlibpath_var=LD_LIBRARY_PATH
  9276. case $host_vendor in
  9277. sni)
  9278. shlibpath_overrides_runpath=no
  9279. need_lib_prefix=no
  9280. runpath_var=LD_RUN_PATH
  9281. ;;
  9282. siemens)
  9283. need_lib_prefix=no
  9284. ;;
  9285. motorola)
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. shlibpath_overrides_runpath=no
  9289. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9290. ;;
  9291. esac
  9292. ;;
  9293. sysv4*MP*)
  9294. if test -d /usr/nec ;then
  9295. version_type=linux # correct to gnu/linux during the next big refactor
  9296. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9297. soname_spec='$libname${shared_ext}.$major'
  9298. shlibpath_var=LD_LIBRARY_PATH
  9299. fi
  9300. ;;
  9301. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9302. version_type=freebsd-elf
  9303. need_lib_prefix=no
  9304. need_version=no
  9305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9306. soname_spec='${libname}${release}${shared_ext}$major'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. shlibpath_overrides_runpath=yes
  9309. hardcode_into_libs=yes
  9310. if test "$with_gnu_ld" = yes; then
  9311. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9312. else
  9313. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9314. case $host_os in
  9315. sco3.2v5*)
  9316. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9317. ;;
  9318. esac
  9319. fi
  9320. sys_lib_dlsearch_path_spec='/usr/lib'
  9321. ;;
  9322. tpf*)
  9323. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9324. version_type=linux # correct to gnu/linux during the next big refactor
  9325. need_lib_prefix=no
  9326. need_version=no
  9327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9328. shlibpath_var=LD_LIBRARY_PATH
  9329. shlibpath_overrides_runpath=no
  9330. hardcode_into_libs=yes
  9331. ;;
  9332. uts4*)
  9333. version_type=linux # correct to gnu/linux during the next big refactor
  9334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9335. soname_spec='${libname}${release}${shared_ext}$major'
  9336. shlibpath_var=LD_LIBRARY_PATH
  9337. ;;
  9338. *)
  9339. dynamic_linker=no
  9340. ;;
  9341. esac
  9342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9343. $as_echo "$dynamic_linker" >&6; }
  9344. test "$dynamic_linker" = no && can_build_shared=no
  9345. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9346. if test "$GCC" = yes; then
  9347. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9348. fi
  9349. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9350. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9351. fi
  9352. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9353. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9354. fi
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9356. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9357. hardcode_action=
  9358. if test -n "$hardcode_libdir_flag_spec" ||
  9359. test -n "$runpath_var" ||
  9360. test "X$hardcode_automatic" = "Xyes" ; then
  9361. # We can hardcode non-existent directories.
  9362. if test "$hardcode_direct" != no &&
  9363. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9364. # have to relink, otherwise we might link with an installed library
  9365. # when we should be linking with a yet-to-be-installed one
  9366. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9367. test "$hardcode_minus_L" != no; then
  9368. # Linking always hardcodes the temporary library directory.
  9369. hardcode_action=relink
  9370. else
  9371. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9372. hardcode_action=immediate
  9373. fi
  9374. else
  9375. # We cannot hardcode anything, or else we can only hardcode existing
  9376. # directories.
  9377. hardcode_action=unsupported
  9378. fi
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9380. $as_echo "$hardcode_action" >&6; }
  9381. if test "$hardcode_action" = relink ||
  9382. test "$inherit_rpath" = yes; then
  9383. # Fast installation is not supported
  9384. enable_fast_install=no
  9385. elif test "$shlibpath_overrides_runpath" = yes ||
  9386. test "$enable_shared" = no; then
  9387. # Fast installation is not necessary
  9388. enable_fast_install=needless
  9389. fi
  9390. if test "x$enable_dlopen" != xyes; then
  9391. enable_dlopen=unknown
  9392. enable_dlopen_self=unknown
  9393. enable_dlopen_self_static=unknown
  9394. else
  9395. lt_cv_dlopen=no
  9396. lt_cv_dlopen_libs=
  9397. case $host_os in
  9398. beos*)
  9399. lt_cv_dlopen="load_add_on"
  9400. lt_cv_dlopen_libs=
  9401. lt_cv_dlopen_self=yes
  9402. ;;
  9403. mingw* | pw32* | cegcc*)
  9404. lt_cv_dlopen="LoadLibrary"
  9405. lt_cv_dlopen_libs=
  9406. ;;
  9407. cygwin*)
  9408. lt_cv_dlopen="dlopen"
  9409. lt_cv_dlopen_libs=
  9410. ;;
  9411. darwin*)
  9412. # if libdl is installed we need to link against it
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9414. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9415. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9416. $as_echo_n "(cached) " >&6
  9417. else
  9418. ac_check_lib_save_LIBS=$LIBS
  9419. LIBS="-ldl $LIBS"
  9420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9421. /* end confdefs.h. */
  9422. /* Override any GCC internal prototype to avoid an error.
  9423. Use char because int might match the return type of a GCC
  9424. builtin and then its argument prototype would still apply. */
  9425. #ifdef __cplusplus
  9426. extern "C"
  9427. #endif
  9428. char dlopen ();
  9429. int
  9430. main ()
  9431. {
  9432. return dlopen ();
  9433. ;
  9434. return 0;
  9435. }
  9436. _ACEOF
  9437. if ac_fn_c_try_link "$LINENO"; then :
  9438. ac_cv_lib_dl_dlopen=yes
  9439. else
  9440. ac_cv_lib_dl_dlopen=no
  9441. fi
  9442. rm -f core conftest.err conftest.$ac_objext \
  9443. conftest$ac_exeext conftest.$ac_ext
  9444. LIBS=$ac_check_lib_save_LIBS
  9445. fi
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9447. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9448. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9449. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9450. else
  9451. lt_cv_dlopen="dyld"
  9452. lt_cv_dlopen_libs=
  9453. lt_cv_dlopen_self=yes
  9454. fi
  9455. ;;
  9456. *)
  9457. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9458. if test "x$ac_cv_func_shl_load" = xyes; then :
  9459. lt_cv_dlopen="shl_load"
  9460. else
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9462. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9463. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9464. $as_echo_n "(cached) " >&6
  9465. else
  9466. ac_check_lib_save_LIBS=$LIBS
  9467. LIBS="-ldld $LIBS"
  9468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9469. /* end confdefs.h. */
  9470. /* Override any GCC internal prototype to avoid an error.
  9471. Use char because int might match the return type of a GCC
  9472. builtin and then its argument prototype would still apply. */
  9473. #ifdef __cplusplus
  9474. extern "C"
  9475. #endif
  9476. char shl_load ();
  9477. int
  9478. main ()
  9479. {
  9480. return shl_load ();
  9481. ;
  9482. return 0;
  9483. }
  9484. _ACEOF
  9485. if ac_fn_c_try_link "$LINENO"; then :
  9486. ac_cv_lib_dld_shl_load=yes
  9487. else
  9488. ac_cv_lib_dld_shl_load=no
  9489. fi
  9490. rm -f core conftest.err conftest.$ac_objext \
  9491. conftest$ac_exeext conftest.$ac_ext
  9492. LIBS=$ac_check_lib_save_LIBS
  9493. fi
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9495. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9496. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9497. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9498. else
  9499. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9500. if test "x$ac_cv_func_dlopen" = xyes; then :
  9501. lt_cv_dlopen="dlopen"
  9502. else
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9504. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9505. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9506. $as_echo_n "(cached) " >&6
  9507. else
  9508. ac_check_lib_save_LIBS=$LIBS
  9509. LIBS="-ldl $LIBS"
  9510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9511. /* end confdefs.h. */
  9512. /* Override any GCC internal prototype to avoid an error.
  9513. Use char because int might match the return type of a GCC
  9514. builtin and then its argument prototype would still apply. */
  9515. #ifdef __cplusplus
  9516. extern "C"
  9517. #endif
  9518. char dlopen ();
  9519. int
  9520. main ()
  9521. {
  9522. return dlopen ();
  9523. ;
  9524. return 0;
  9525. }
  9526. _ACEOF
  9527. if ac_fn_c_try_link "$LINENO"; then :
  9528. ac_cv_lib_dl_dlopen=yes
  9529. else
  9530. ac_cv_lib_dl_dlopen=no
  9531. fi
  9532. rm -f core conftest.err conftest.$ac_objext \
  9533. conftest$ac_exeext conftest.$ac_ext
  9534. LIBS=$ac_check_lib_save_LIBS
  9535. fi
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9537. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9538. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9539. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9540. else
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9542. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9543. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9544. $as_echo_n "(cached) " >&6
  9545. else
  9546. ac_check_lib_save_LIBS=$LIBS
  9547. LIBS="-lsvld $LIBS"
  9548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9549. /* end confdefs.h. */
  9550. /* Override any GCC internal prototype to avoid an error.
  9551. Use char because int might match the return type of a GCC
  9552. builtin and then its argument prototype would still apply. */
  9553. #ifdef __cplusplus
  9554. extern "C"
  9555. #endif
  9556. char dlopen ();
  9557. int
  9558. main ()
  9559. {
  9560. return dlopen ();
  9561. ;
  9562. return 0;
  9563. }
  9564. _ACEOF
  9565. if ac_fn_c_try_link "$LINENO"; then :
  9566. ac_cv_lib_svld_dlopen=yes
  9567. else
  9568. ac_cv_lib_svld_dlopen=no
  9569. fi
  9570. rm -f core conftest.err conftest.$ac_objext \
  9571. conftest$ac_exeext conftest.$ac_ext
  9572. LIBS=$ac_check_lib_save_LIBS
  9573. fi
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9575. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9576. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9577. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9578. else
  9579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9580. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9581. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9582. $as_echo_n "(cached) " >&6
  9583. else
  9584. ac_check_lib_save_LIBS=$LIBS
  9585. LIBS="-ldld $LIBS"
  9586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9587. /* end confdefs.h. */
  9588. /* Override any GCC internal prototype to avoid an error.
  9589. Use char because int might match the return type of a GCC
  9590. builtin and then its argument prototype would still apply. */
  9591. #ifdef __cplusplus
  9592. extern "C"
  9593. #endif
  9594. char dld_link ();
  9595. int
  9596. main ()
  9597. {
  9598. return dld_link ();
  9599. ;
  9600. return 0;
  9601. }
  9602. _ACEOF
  9603. if ac_fn_c_try_link "$LINENO"; then :
  9604. ac_cv_lib_dld_dld_link=yes
  9605. else
  9606. ac_cv_lib_dld_dld_link=no
  9607. fi
  9608. rm -f core conftest.err conftest.$ac_objext \
  9609. conftest$ac_exeext conftest.$ac_ext
  9610. LIBS=$ac_check_lib_save_LIBS
  9611. fi
  9612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9613. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9614. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9615. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9616. fi
  9617. fi
  9618. fi
  9619. fi
  9620. fi
  9621. fi
  9622. ;;
  9623. esac
  9624. if test "x$lt_cv_dlopen" != xno; then
  9625. enable_dlopen=yes
  9626. else
  9627. enable_dlopen=no
  9628. fi
  9629. case $lt_cv_dlopen in
  9630. dlopen)
  9631. save_CPPFLAGS="$CPPFLAGS"
  9632. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9633. save_LDFLAGS="$LDFLAGS"
  9634. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9635. save_LIBS="$LIBS"
  9636. LIBS="$lt_cv_dlopen_libs $LIBS"
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9638. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9639. if ${lt_cv_dlopen_self+:} false; then :
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. if test "$cross_compiling" = yes; then :
  9643. lt_cv_dlopen_self=cross
  9644. else
  9645. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9646. lt_status=$lt_dlunknown
  9647. cat > conftest.$ac_ext <<_LT_EOF
  9648. #line $LINENO "configure"
  9649. #include "confdefs.h"
  9650. #if HAVE_DLFCN_H
  9651. #include <dlfcn.h>
  9652. #endif
  9653. #include <stdio.h>
  9654. #ifdef RTLD_GLOBAL
  9655. # define LT_DLGLOBAL RTLD_GLOBAL
  9656. #else
  9657. # ifdef DL_GLOBAL
  9658. # define LT_DLGLOBAL DL_GLOBAL
  9659. # else
  9660. # define LT_DLGLOBAL 0
  9661. # endif
  9662. #endif
  9663. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9664. find out it does not work in some platform. */
  9665. #ifndef LT_DLLAZY_OR_NOW
  9666. # ifdef RTLD_LAZY
  9667. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9668. # else
  9669. # ifdef DL_LAZY
  9670. # define LT_DLLAZY_OR_NOW DL_LAZY
  9671. # else
  9672. # ifdef RTLD_NOW
  9673. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9674. # else
  9675. # ifdef DL_NOW
  9676. # define LT_DLLAZY_OR_NOW DL_NOW
  9677. # else
  9678. # define LT_DLLAZY_OR_NOW 0
  9679. # endif
  9680. # endif
  9681. # endif
  9682. # endif
  9683. #endif
  9684. /* When -fvisbility=hidden is used, assume the code has been annotated
  9685. correspondingly for the symbols needed. */
  9686. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9687. int fnord () __attribute__((visibility("default")));
  9688. #endif
  9689. int fnord () { return 42; }
  9690. int main ()
  9691. {
  9692. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9693. int status = $lt_dlunknown;
  9694. if (self)
  9695. {
  9696. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9697. else
  9698. {
  9699. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9700. else puts (dlerror ());
  9701. }
  9702. /* dlclose (self); */
  9703. }
  9704. else
  9705. puts (dlerror ());
  9706. return status;
  9707. }
  9708. _LT_EOF
  9709. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9710. (eval $ac_link) 2>&5
  9711. ac_status=$?
  9712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9713. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9714. (./conftest; exit; ) >&5 2>/dev/null
  9715. lt_status=$?
  9716. case x$lt_status in
  9717. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9718. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9719. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9720. esac
  9721. else :
  9722. # compilation failed
  9723. lt_cv_dlopen_self=no
  9724. fi
  9725. fi
  9726. rm -fr conftest*
  9727. fi
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9729. $as_echo "$lt_cv_dlopen_self" >&6; }
  9730. if test "x$lt_cv_dlopen_self" = xyes; then
  9731. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9733. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9734. if ${lt_cv_dlopen_self_static+:} false; then :
  9735. $as_echo_n "(cached) " >&6
  9736. else
  9737. if test "$cross_compiling" = yes; then :
  9738. lt_cv_dlopen_self_static=cross
  9739. else
  9740. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9741. lt_status=$lt_dlunknown
  9742. cat > conftest.$ac_ext <<_LT_EOF
  9743. #line $LINENO "configure"
  9744. #include "confdefs.h"
  9745. #if HAVE_DLFCN_H
  9746. #include <dlfcn.h>
  9747. #endif
  9748. #include <stdio.h>
  9749. #ifdef RTLD_GLOBAL
  9750. # define LT_DLGLOBAL RTLD_GLOBAL
  9751. #else
  9752. # ifdef DL_GLOBAL
  9753. # define LT_DLGLOBAL DL_GLOBAL
  9754. # else
  9755. # define LT_DLGLOBAL 0
  9756. # endif
  9757. #endif
  9758. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9759. find out it does not work in some platform. */
  9760. #ifndef LT_DLLAZY_OR_NOW
  9761. # ifdef RTLD_LAZY
  9762. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9763. # else
  9764. # ifdef DL_LAZY
  9765. # define LT_DLLAZY_OR_NOW DL_LAZY
  9766. # else
  9767. # ifdef RTLD_NOW
  9768. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9769. # else
  9770. # ifdef DL_NOW
  9771. # define LT_DLLAZY_OR_NOW DL_NOW
  9772. # else
  9773. # define LT_DLLAZY_OR_NOW 0
  9774. # endif
  9775. # endif
  9776. # endif
  9777. # endif
  9778. #endif
  9779. /* When -fvisbility=hidden is used, assume the code has been annotated
  9780. correspondingly for the symbols needed. */
  9781. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9782. int fnord () __attribute__((visibility("default")));
  9783. #endif
  9784. int fnord () { return 42; }
  9785. int main ()
  9786. {
  9787. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9788. int status = $lt_dlunknown;
  9789. if (self)
  9790. {
  9791. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9792. else
  9793. {
  9794. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9795. else puts (dlerror ());
  9796. }
  9797. /* dlclose (self); */
  9798. }
  9799. else
  9800. puts (dlerror ());
  9801. return status;
  9802. }
  9803. _LT_EOF
  9804. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9805. (eval $ac_link) 2>&5
  9806. ac_status=$?
  9807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9808. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9809. (./conftest; exit; ) >&5 2>/dev/null
  9810. lt_status=$?
  9811. case x$lt_status in
  9812. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9813. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9814. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9815. esac
  9816. else :
  9817. # compilation failed
  9818. lt_cv_dlopen_self_static=no
  9819. fi
  9820. fi
  9821. rm -fr conftest*
  9822. fi
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9824. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9825. fi
  9826. CPPFLAGS="$save_CPPFLAGS"
  9827. LDFLAGS="$save_LDFLAGS"
  9828. LIBS="$save_LIBS"
  9829. ;;
  9830. esac
  9831. case $lt_cv_dlopen_self in
  9832. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9833. *) enable_dlopen_self=unknown ;;
  9834. esac
  9835. case $lt_cv_dlopen_self_static in
  9836. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9837. *) enable_dlopen_self_static=unknown ;;
  9838. esac
  9839. fi
  9840. striplib=
  9841. old_striplib=
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9843. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9844. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9845. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9846. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9848. $as_echo "yes" >&6; }
  9849. else
  9850. # FIXME - insert some real tests, host_os isn't really good enough
  9851. case $host_os in
  9852. darwin*)
  9853. if test -n "$STRIP" ; then
  9854. striplib="$STRIP -x"
  9855. old_striplib="$STRIP -S"
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9857. $as_echo "yes" >&6; }
  9858. else
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9860. $as_echo "no" >&6; }
  9861. fi
  9862. ;;
  9863. *)
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9865. $as_echo "no" >&6; }
  9866. ;;
  9867. esac
  9868. fi
  9869. # Report which library types will actually be built
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9871. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9873. $as_echo "$can_build_shared" >&6; }
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9875. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9876. test "$can_build_shared" = "no" && enable_shared=no
  9877. # On AIX, shared libraries and static libraries use the same namespace, and
  9878. # are all built from PIC.
  9879. case $host_os in
  9880. aix3*)
  9881. test "$enable_shared" = yes && enable_static=no
  9882. if test -n "$RANLIB"; then
  9883. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9884. postinstall_cmds='$RANLIB $lib'
  9885. fi
  9886. ;;
  9887. aix[4-9]*)
  9888. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9889. test "$enable_shared" = yes && enable_static=no
  9890. fi
  9891. ;;
  9892. esac
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9894. $as_echo "$enable_shared" >&6; }
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9896. $as_echo_n "checking whether to build static libraries... " >&6; }
  9897. # Make sure either enable_shared or enable_static is yes.
  9898. test "$enable_shared" = yes || enable_static=yes
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9900. $as_echo "$enable_static" >&6; }
  9901. fi
  9902. ac_ext=c
  9903. ac_cpp='$CPP $CPPFLAGS'
  9904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9907. CC="$lt_save_CC"
  9908. ac_config_commands="$ac_config_commands libtool"
  9909. # Only expand once:
  9910. if test -n "$ac_tool_prefix"; then
  9911. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9912. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9914. $as_echo_n "checking for $ac_word... " >&6; }
  9915. if ${ac_cv_prog_RC+:} false; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. if test -n "$RC"; then
  9919. ac_cv_prog_RC="$RC" # Let the user override the test.
  9920. else
  9921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9922. for as_dir in $PATH
  9923. do
  9924. IFS=$as_save_IFS
  9925. test -z "$as_dir" && as_dir=.
  9926. for ac_exec_ext in '' $ac_executable_extensions; do
  9927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9928. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9930. break 2
  9931. fi
  9932. done
  9933. done
  9934. IFS=$as_save_IFS
  9935. fi
  9936. fi
  9937. RC=$ac_cv_prog_RC
  9938. if test -n "$RC"; then
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9940. $as_echo "$RC" >&6; }
  9941. else
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9943. $as_echo "no" >&6; }
  9944. fi
  9945. fi
  9946. if test -z "$ac_cv_prog_RC"; then
  9947. ac_ct_RC=$RC
  9948. # Extract the first word of "windres", so it can be a program name with args.
  9949. set dummy windres; ac_word=$2
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9951. $as_echo_n "checking for $ac_word... " >&6; }
  9952. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9953. $as_echo_n "(cached) " >&6
  9954. else
  9955. if test -n "$ac_ct_RC"; then
  9956. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9957. else
  9958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9959. for as_dir in $PATH
  9960. do
  9961. IFS=$as_save_IFS
  9962. test -z "$as_dir" && as_dir=.
  9963. for ac_exec_ext in '' $ac_executable_extensions; do
  9964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9965. ac_cv_prog_ac_ct_RC="windres"
  9966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9967. break 2
  9968. fi
  9969. done
  9970. done
  9971. IFS=$as_save_IFS
  9972. fi
  9973. fi
  9974. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9975. if test -n "$ac_ct_RC"; then
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9977. $as_echo "$ac_ct_RC" >&6; }
  9978. else
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9980. $as_echo "no" >&6; }
  9981. fi
  9982. if test "x$ac_ct_RC" = x; then
  9983. RC=""
  9984. else
  9985. case $cross_compiling:$ac_tool_warned in
  9986. yes:)
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9988. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9989. ac_tool_warned=yes ;;
  9990. esac
  9991. RC=$ac_ct_RC
  9992. fi
  9993. else
  9994. RC="$ac_cv_prog_RC"
  9995. fi
  9996. # Source file extension for RC test sources.
  9997. ac_ext=rc
  9998. # Object file extension for compiled RC test sources.
  9999. objext=o
  10000. objext_RC=$objext
  10001. # Code to be used in simple compile tests
  10002. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10003. # Code to be used in simple link tests
  10004. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10005. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10006. # If no C compiler was specified, use CC.
  10007. LTCC=${LTCC-"$CC"}
  10008. # If no C compiler flags were specified, use CFLAGS.
  10009. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10010. # Allow CC to be a program name with arguments.
  10011. compiler=$CC
  10012. # save warnings/boilerplate of simple test code
  10013. ac_outfile=conftest.$ac_objext
  10014. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10015. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10016. _lt_compiler_boilerplate=`cat conftest.err`
  10017. $RM conftest*
  10018. ac_outfile=conftest.$ac_objext
  10019. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10020. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10021. _lt_linker_boilerplate=`cat conftest.err`
  10022. $RM -r conftest*
  10023. # Allow CC to be a program name with arguments.
  10024. lt_save_CC="$CC"
  10025. lt_save_CFLAGS=$CFLAGS
  10026. lt_save_GCC=$GCC
  10027. GCC=
  10028. CC=${RC-"windres"}
  10029. CFLAGS=
  10030. compiler=$CC
  10031. compiler_RC=$CC
  10032. for cc_temp in $compiler""; do
  10033. case $cc_temp in
  10034. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10035. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10036. \-*) ;;
  10037. *) break;;
  10038. esac
  10039. done
  10040. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10041. lt_cv_prog_compiler_c_o_RC=yes
  10042. if test -n "$compiler"; then
  10043. :
  10044. fi
  10045. GCC=$lt_save_GCC
  10046. ac_ext=c
  10047. ac_cpp='$CPP $CPPFLAGS'
  10048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10051. CC=$lt_save_CC
  10052. CFLAGS=$lt_save_CFLAGS
  10053. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10054. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10055. LT_REVISION=$SDL_INTERFACE_AGE
  10056. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10057. ac_ext=c
  10058. ac_cpp='$CPP $CPPFLAGS'
  10059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10062. if test -n "$ac_tool_prefix"; then
  10063. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10064. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10066. $as_echo_n "checking for $ac_word... " >&6; }
  10067. if ${ac_cv_prog_CC+:} false; then :
  10068. $as_echo_n "(cached) " >&6
  10069. else
  10070. if test -n "$CC"; then
  10071. ac_cv_prog_CC="$CC" # Let the user override the test.
  10072. else
  10073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10074. for as_dir in $PATH
  10075. do
  10076. IFS=$as_save_IFS
  10077. test -z "$as_dir" && as_dir=.
  10078. for ac_exec_ext in '' $ac_executable_extensions; do
  10079. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10080. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10082. break 2
  10083. fi
  10084. done
  10085. done
  10086. IFS=$as_save_IFS
  10087. fi
  10088. fi
  10089. CC=$ac_cv_prog_CC
  10090. if test -n "$CC"; then
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10092. $as_echo "$CC" >&6; }
  10093. else
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10095. $as_echo "no" >&6; }
  10096. fi
  10097. fi
  10098. if test -z "$ac_cv_prog_CC"; then
  10099. ac_ct_CC=$CC
  10100. # Extract the first word of "gcc", so it can be a program name with args.
  10101. set dummy gcc; ac_word=$2
  10102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10103. $as_echo_n "checking for $ac_word... " >&6; }
  10104. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10105. $as_echo_n "(cached) " >&6
  10106. else
  10107. if test -n "$ac_ct_CC"; then
  10108. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10109. else
  10110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10111. for as_dir in $PATH
  10112. do
  10113. IFS=$as_save_IFS
  10114. test -z "$as_dir" && as_dir=.
  10115. for ac_exec_ext in '' $ac_executable_extensions; do
  10116. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10117. ac_cv_prog_ac_ct_CC="gcc"
  10118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10119. break 2
  10120. fi
  10121. done
  10122. done
  10123. IFS=$as_save_IFS
  10124. fi
  10125. fi
  10126. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10127. if test -n "$ac_ct_CC"; then
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10129. $as_echo "$ac_ct_CC" >&6; }
  10130. else
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10132. $as_echo "no" >&6; }
  10133. fi
  10134. if test "x$ac_ct_CC" = x; then
  10135. CC=""
  10136. else
  10137. case $cross_compiling:$ac_tool_warned in
  10138. yes:)
  10139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10140. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10141. ac_tool_warned=yes ;;
  10142. esac
  10143. CC=$ac_ct_CC
  10144. fi
  10145. else
  10146. CC="$ac_cv_prog_CC"
  10147. fi
  10148. if test -z "$CC"; then
  10149. if test -n "$ac_tool_prefix"; then
  10150. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10151. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10153. $as_echo_n "checking for $ac_word... " >&6; }
  10154. if ${ac_cv_prog_CC+:} false; then :
  10155. $as_echo_n "(cached) " >&6
  10156. else
  10157. if test -n "$CC"; then
  10158. ac_cv_prog_CC="$CC" # Let the user override the test.
  10159. else
  10160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10161. for as_dir in $PATH
  10162. do
  10163. IFS=$as_save_IFS
  10164. test -z "$as_dir" && as_dir=.
  10165. for ac_exec_ext in '' $ac_executable_extensions; do
  10166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10167. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10169. break 2
  10170. fi
  10171. done
  10172. done
  10173. IFS=$as_save_IFS
  10174. fi
  10175. fi
  10176. CC=$ac_cv_prog_CC
  10177. if test -n "$CC"; then
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10179. $as_echo "$CC" >&6; }
  10180. else
  10181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10182. $as_echo "no" >&6; }
  10183. fi
  10184. fi
  10185. fi
  10186. if test -z "$CC"; then
  10187. # Extract the first word of "cc", so it can be a program name with args.
  10188. set dummy cc; ac_word=$2
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10190. $as_echo_n "checking for $ac_word... " >&6; }
  10191. if ${ac_cv_prog_CC+:} false; then :
  10192. $as_echo_n "(cached) " >&6
  10193. else
  10194. if test -n "$CC"; then
  10195. ac_cv_prog_CC="$CC" # Let the user override the test.
  10196. else
  10197. ac_prog_rejected=no
  10198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10199. for as_dir in $PATH
  10200. do
  10201. IFS=$as_save_IFS
  10202. test -z "$as_dir" && as_dir=.
  10203. for ac_exec_ext in '' $ac_executable_extensions; do
  10204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10205. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10206. ac_prog_rejected=yes
  10207. continue
  10208. fi
  10209. ac_cv_prog_CC="cc"
  10210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10211. break 2
  10212. fi
  10213. done
  10214. done
  10215. IFS=$as_save_IFS
  10216. if test $ac_prog_rejected = yes; then
  10217. # We found a bogon in the path, so make sure we never use it.
  10218. set dummy $ac_cv_prog_CC
  10219. shift
  10220. if test $# != 0; then
  10221. # We chose a different compiler from the bogus one.
  10222. # However, it has the same basename, so the bogon will be chosen
  10223. # first if we set CC to just the basename; use the full file name.
  10224. shift
  10225. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10226. fi
  10227. fi
  10228. fi
  10229. fi
  10230. CC=$ac_cv_prog_CC
  10231. if test -n "$CC"; then
  10232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10233. $as_echo "$CC" >&6; }
  10234. else
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10236. $as_echo "no" >&6; }
  10237. fi
  10238. fi
  10239. if test -z "$CC"; then
  10240. if test -n "$ac_tool_prefix"; then
  10241. for ac_prog in cl.exe
  10242. do
  10243. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10244. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10246. $as_echo_n "checking for $ac_word... " >&6; }
  10247. if ${ac_cv_prog_CC+:} false; then :
  10248. $as_echo_n "(cached) " >&6
  10249. else
  10250. if test -n "$CC"; then
  10251. ac_cv_prog_CC="$CC" # Let the user override the test.
  10252. else
  10253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10254. for as_dir in $PATH
  10255. do
  10256. IFS=$as_save_IFS
  10257. test -z "$as_dir" && as_dir=.
  10258. for ac_exec_ext in '' $ac_executable_extensions; do
  10259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10260. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10262. break 2
  10263. fi
  10264. done
  10265. done
  10266. IFS=$as_save_IFS
  10267. fi
  10268. fi
  10269. CC=$ac_cv_prog_CC
  10270. if test -n "$CC"; then
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10272. $as_echo "$CC" >&6; }
  10273. else
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10275. $as_echo "no" >&6; }
  10276. fi
  10277. test -n "$CC" && break
  10278. done
  10279. fi
  10280. if test -z "$CC"; then
  10281. ac_ct_CC=$CC
  10282. for ac_prog in cl.exe
  10283. do
  10284. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10285. set dummy $ac_prog; ac_word=$2
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10287. $as_echo_n "checking for $ac_word... " >&6; }
  10288. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10289. $as_echo_n "(cached) " >&6
  10290. else
  10291. if test -n "$ac_ct_CC"; then
  10292. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10293. else
  10294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10295. for as_dir in $PATH
  10296. do
  10297. IFS=$as_save_IFS
  10298. test -z "$as_dir" && as_dir=.
  10299. for ac_exec_ext in '' $ac_executable_extensions; do
  10300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10301. ac_cv_prog_ac_ct_CC="$ac_prog"
  10302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10303. break 2
  10304. fi
  10305. done
  10306. done
  10307. IFS=$as_save_IFS
  10308. fi
  10309. fi
  10310. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10311. if test -n "$ac_ct_CC"; then
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10313. $as_echo "$ac_ct_CC" >&6; }
  10314. else
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10316. $as_echo "no" >&6; }
  10317. fi
  10318. test -n "$ac_ct_CC" && break
  10319. done
  10320. if test "x$ac_ct_CC" = x; then
  10321. CC=""
  10322. else
  10323. case $cross_compiling:$ac_tool_warned in
  10324. yes:)
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10327. ac_tool_warned=yes ;;
  10328. esac
  10329. CC=$ac_ct_CC
  10330. fi
  10331. fi
  10332. fi
  10333. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10335. as_fn_error $? "no acceptable C compiler found in \$PATH
  10336. See \`config.log' for more details" "$LINENO" 5; }
  10337. # Provide some information about the compiler.
  10338. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10339. set X $ac_compile
  10340. ac_compiler=$2
  10341. for ac_option in --version -v -V -qversion; do
  10342. { { ac_try="$ac_compiler $ac_option >&5"
  10343. case "(($ac_try" in
  10344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10345. *) ac_try_echo=$ac_try;;
  10346. esac
  10347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10348. $as_echo "$ac_try_echo"; } >&5
  10349. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10350. ac_status=$?
  10351. if test -s conftest.err; then
  10352. sed '10a\
  10353. ... rest of stderr output deleted ...
  10354. 10q' conftest.err >conftest.er1
  10355. cat conftest.er1 >&5
  10356. fi
  10357. rm -f conftest.er1 conftest.err
  10358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10359. test $ac_status = 0; }
  10360. done
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10362. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10363. if ${ac_cv_c_compiler_gnu+:} false; then :
  10364. $as_echo_n "(cached) " >&6
  10365. else
  10366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10367. /* end confdefs.h. */
  10368. int
  10369. main ()
  10370. {
  10371. #ifndef __GNUC__
  10372. choke me
  10373. #endif
  10374. ;
  10375. return 0;
  10376. }
  10377. _ACEOF
  10378. if ac_fn_c_try_compile "$LINENO"; then :
  10379. ac_compiler_gnu=yes
  10380. else
  10381. ac_compiler_gnu=no
  10382. fi
  10383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10384. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10385. fi
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10387. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10388. if test $ac_compiler_gnu = yes; then
  10389. GCC=yes
  10390. else
  10391. GCC=
  10392. fi
  10393. ac_test_CFLAGS=${CFLAGS+set}
  10394. ac_save_CFLAGS=$CFLAGS
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10396. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10397. if ${ac_cv_prog_cc_g+:} false; then :
  10398. $as_echo_n "(cached) " >&6
  10399. else
  10400. ac_save_c_werror_flag=$ac_c_werror_flag
  10401. ac_c_werror_flag=yes
  10402. ac_cv_prog_cc_g=no
  10403. CFLAGS="-g"
  10404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10405. /* end confdefs.h. */
  10406. int
  10407. main ()
  10408. {
  10409. ;
  10410. return 0;
  10411. }
  10412. _ACEOF
  10413. if ac_fn_c_try_compile "$LINENO"; then :
  10414. ac_cv_prog_cc_g=yes
  10415. else
  10416. CFLAGS=""
  10417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10418. /* end confdefs.h. */
  10419. int
  10420. main ()
  10421. {
  10422. ;
  10423. return 0;
  10424. }
  10425. _ACEOF
  10426. if ac_fn_c_try_compile "$LINENO"; then :
  10427. else
  10428. ac_c_werror_flag=$ac_save_c_werror_flag
  10429. CFLAGS="-g"
  10430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10431. /* end confdefs.h. */
  10432. int
  10433. main ()
  10434. {
  10435. ;
  10436. return 0;
  10437. }
  10438. _ACEOF
  10439. if ac_fn_c_try_compile "$LINENO"; then :
  10440. ac_cv_prog_cc_g=yes
  10441. fi
  10442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10443. fi
  10444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10445. fi
  10446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10447. ac_c_werror_flag=$ac_save_c_werror_flag
  10448. fi
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10450. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10451. if test "$ac_test_CFLAGS" = set; then
  10452. CFLAGS=$ac_save_CFLAGS
  10453. elif test $ac_cv_prog_cc_g = yes; then
  10454. if test "$GCC" = yes; then
  10455. CFLAGS="-g -O2"
  10456. else
  10457. CFLAGS="-g"
  10458. fi
  10459. else
  10460. if test "$GCC" = yes; then
  10461. CFLAGS="-O2"
  10462. else
  10463. CFLAGS=
  10464. fi
  10465. fi
  10466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10467. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10468. if ${ac_cv_prog_cc_c89+:} false; then :
  10469. $as_echo_n "(cached) " >&6
  10470. else
  10471. ac_cv_prog_cc_c89=no
  10472. ac_save_CC=$CC
  10473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10474. /* end confdefs.h. */
  10475. #include <stdarg.h>
  10476. #include <stdio.h>
  10477. struct stat;
  10478. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10479. struct buf { int x; };
  10480. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10481. static char *e (p, i)
  10482. char **p;
  10483. int i;
  10484. {
  10485. return p[i];
  10486. }
  10487. static char *f (char * (*g) (char **, int), char **p, ...)
  10488. {
  10489. char *s;
  10490. va_list v;
  10491. va_start (v,p);
  10492. s = g (p, va_arg (v,int));
  10493. va_end (v);
  10494. return s;
  10495. }
  10496. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10497. function prototypes and stuff, but not '\xHH' hex character constants.
  10498. These don't provoke an error unfortunately, instead are silently treated
  10499. as 'x'. The following induces an error, until -std is added to get
  10500. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10501. array size at least. It's necessary to write '\x00'==0 to get something
  10502. that's true only with -std. */
  10503. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10504. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10505. inside strings and character constants. */
  10506. #define FOO(x) 'x'
  10507. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10508. int test (int i, double x);
  10509. struct s1 {int (*f) (int a);};
  10510. struct s2 {int (*f) (double a);};
  10511. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10512. int argc;
  10513. char **argv;
  10514. int
  10515. main ()
  10516. {
  10517. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10518. ;
  10519. return 0;
  10520. }
  10521. _ACEOF
  10522. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10523. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10524. do
  10525. CC="$ac_save_CC $ac_arg"
  10526. if ac_fn_c_try_compile "$LINENO"; then :
  10527. ac_cv_prog_cc_c89=$ac_arg
  10528. fi
  10529. rm -f core conftest.err conftest.$ac_objext
  10530. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10531. done
  10532. rm -f conftest.$ac_ext
  10533. CC=$ac_save_CC
  10534. fi
  10535. # AC_CACHE_VAL
  10536. case "x$ac_cv_prog_cc_c89" in
  10537. x)
  10538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10539. $as_echo "none needed" >&6; } ;;
  10540. xno)
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10542. $as_echo "unsupported" >&6; } ;;
  10543. *)
  10544. CC="$CC $ac_cv_prog_cc_c89"
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10546. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10547. esac
  10548. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10549. fi
  10550. ac_ext=c
  10551. ac_cpp='$CPP $CPPFLAGS'
  10552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10555. ac_ext=cpp
  10556. ac_cpp='$CXXCPP $CPPFLAGS'
  10557. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10558. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10559. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10560. if test -z "$CXX"; then
  10561. if test -n "$CCC"; then
  10562. CXX=$CCC
  10563. else
  10564. if test -n "$ac_tool_prefix"; then
  10565. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10566. do
  10567. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10568. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10570. $as_echo_n "checking for $ac_word... " >&6; }
  10571. if ${ac_cv_prog_CXX+:} false; then :
  10572. $as_echo_n "(cached) " >&6
  10573. else
  10574. if test -n "$CXX"; then
  10575. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10576. else
  10577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10578. for as_dir in $PATH
  10579. do
  10580. IFS=$as_save_IFS
  10581. test -z "$as_dir" && as_dir=.
  10582. for ac_exec_ext in '' $ac_executable_extensions; do
  10583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10584. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10586. break 2
  10587. fi
  10588. done
  10589. done
  10590. IFS=$as_save_IFS
  10591. fi
  10592. fi
  10593. CXX=$ac_cv_prog_CXX
  10594. if test -n "$CXX"; then
  10595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10596. $as_echo "$CXX" >&6; }
  10597. else
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10599. $as_echo "no" >&6; }
  10600. fi
  10601. test -n "$CXX" && break
  10602. done
  10603. fi
  10604. if test -z "$CXX"; then
  10605. ac_ct_CXX=$CXX
  10606. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10607. do
  10608. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10609. set dummy $ac_prog; ac_word=$2
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10611. $as_echo_n "checking for $ac_word... " >&6; }
  10612. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10613. $as_echo_n "(cached) " >&6
  10614. else
  10615. if test -n "$ac_ct_CXX"; then
  10616. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10617. else
  10618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10619. for as_dir in $PATH
  10620. do
  10621. IFS=$as_save_IFS
  10622. test -z "$as_dir" && as_dir=.
  10623. for ac_exec_ext in '' $ac_executable_extensions; do
  10624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10625. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10627. break 2
  10628. fi
  10629. done
  10630. done
  10631. IFS=$as_save_IFS
  10632. fi
  10633. fi
  10634. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10635. if test -n "$ac_ct_CXX"; then
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10637. $as_echo "$ac_ct_CXX" >&6; }
  10638. else
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10640. $as_echo "no" >&6; }
  10641. fi
  10642. test -n "$ac_ct_CXX" && break
  10643. done
  10644. if test "x$ac_ct_CXX" = x; then
  10645. CXX="g++"
  10646. else
  10647. case $cross_compiling:$ac_tool_warned in
  10648. yes:)
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10650. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10651. ac_tool_warned=yes ;;
  10652. esac
  10653. CXX=$ac_ct_CXX
  10654. fi
  10655. fi
  10656. fi
  10657. fi
  10658. # Provide some information about the compiler.
  10659. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10660. set X $ac_compile
  10661. ac_compiler=$2
  10662. for ac_option in --version -v -V -qversion; do
  10663. { { ac_try="$ac_compiler $ac_option >&5"
  10664. case "(($ac_try" in
  10665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10666. *) ac_try_echo=$ac_try;;
  10667. esac
  10668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10669. $as_echo "$ac_try_echo"; } >&5
  10670. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10671. ac_status=$?
  10672. if test -s conftest.err; then
  10673. sed '10a\
  10674. ... rest of stderr output deleted ...
  10675. 10q' conftest.err >conftest.er1
  10676. cat conftest.er1 >&5
  10677. fi
  10678. rm -f conftest.er1 conftest.err
  10679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10680. test $ac_status = 0; }
  10681. done
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10683. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10684. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10685. $as_echo_n "(cached) " >&6
  10686. else
  10687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10688. /* end confdefs.h. */
  10689. int
  10690. main ()
  10691. {
  10692. #ifndef __GNUC__
  10693. choke me
  10694. #endif
  10695. ;
  10696. return 0;
  10697. }
  10698. _ACEOF
  10699. if ac_fn_cxx_try_compile "$LINENO"; then :
  10700. ac_compiler_gnu=yes
  10701. else
  10702. ac_compiler_gnu=no
  10703. fi
  10704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10705. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10706. fi
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10708. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10709. if test $ac_compiler_gnu = yes; then
  10710. GXX=yes
  10711. else
  10712. GXX=
  10713. fi
  10714. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10715. ac_save_CXXFLAGS=$CXXFLAGS
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10717. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10718. if ${ac_cv_prog_cxx_g+:} false; then :
  10719. $as_echo_n "(cached) " >&6
  10720. else
  10721. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10722. ac_cxx_werror_flag=yes
  10723. ac_cv_prog_cxx_g=no
  10724. CXXFLAGS="-g"
  10725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10726. /* end confdefs.h. */
  10727. int
  10728. main ()
  10729. {
  10730. ;
  10731. return 0;
  10732. }
  10733. _ACEOF
  10734. if ac_fn_cxx_try_compile "$LINENO"; then :
  10735. ac_cv_prog_cxx_g=yes
  10736. else
  10737. CXXFLAGS=""
  10738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10739. /* end confdefs.h. */
  10740. int
  10741. main ()
  10742. {
  10743. ;
  10744. return 0;
  10745. }
  10746. _ACEOF
  10747. if ac_fn_cxx_try_compile "$LINENO"; then :
  10748. else
  10749. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10750. CXXFLAGS="-g"
  10751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10752. /* end confdefs.h. */
  10753. int
  10754. main ()
  10755. {
  10756. ;
  10757. return 0;
  10758. }
  10759. _ACEOF
  10760. if ac_fn_cxx_try_compile "$LINENO"; then :
  10761. ac_cv_prog_cxx_g=yes
  10762. fi
  10763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10764. fi
  10765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10766. fi
  10767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10768. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10769. fi
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10771. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10772. if test "$ac_test_CXXFLAGS" = set; then
  10773. CXXFLAGS=$ac_save_CXXFLAGS
  10774. elif test $ac_cv_prog_cxx_g = yes; then
  10775. if test "$GXX" = yes; then
  10776. CXXFLAGS="-g -O2"
  10777. else
  10778. CXXFLAGS="-g"
  10779. fi
  10780. else
  10781. if test "$GXX" = yes; then
  10782. CXXFLAGS="-O2"
  10783. else
  10784. CXXFLAGS=
  10785. fi
  10786. fi
  10787. ac_ext=c
  10788. ac_cpp='$CPP $CPPFLAGS'
  10789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10792. func_stripname_cnf ()
  10793. {
  10794. case ${2} in
  10795. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10796. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10797. esac
  10798. } # func_stripname_cnf
  10799. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10800. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10801. (test "X$CXX" != "Xg++"))) ; then
  10802. ac_ext=cpp
  10803. ac_cpp='$CXXCPP $CPPFLAGS'
  10804. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10805. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10806. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10808. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10809. if test -z "$CXXCPP"; then
  10810. if ${ac_cv_prog_CXXCPP+:} false; then :
  10811. $as_echo_n "(cached) " >&6
  10812. else
  10813. # Double quotes because CXXCPP needs to be expanded
  10814. for CXXCPP in "$CXX -E" "/lib/cpp"
  10815. do
  10816. ac_preproc_ok=false
  10817. for ac_cxx_preproc_warn_flag in '' yes
  10818. do
  10819. # Use a header file that comes with gcc, so configuring glibc
  10820. # with a fresh cross-compiler works.
  10821. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10822. # <limits.h> exists even on freestanding compilers.
  10823. # On the NeXT, cc -E runs the code through the compiler's parser,
  10824. # not just through cpp. "Syntax error" is here to catch this case.
  10825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10826. /* end confdefs.h. */
  10827. #ifdef __STDC__
  10828. # include <limits.h>
  10829. #else
  10830. # include <assert.h>
  10831. #endif
  10832. Syntax error
  10833. _ACEOF
  10834. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10835. else
  10836. # Broken: fails on valid input.
  10837. continue
  10838. fi
  10839. rm -f conftest.err conftest.i conftest.$ac_ext
  10840. # OK, works on sane cases. Now check whether nonexistent headers
  10841. # can be detected and how.
  10842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10843. /* end confdefs.h. */
  10844. #include <ac_nonexistent.h>
  10845. _ACEOF
  10846. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10847. # Broken: success on invalid input.
  10848. continue
  10849. else
  10850. # Passes both tests.
  10851. ac_preproc_ok=:
  10852. break
  10853. fi
  10854. rm -f conftest.err conftest.i conftest.$ac_ext
  10855. done
  10856. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10857. rm -f conftest.i conftest.err conftest.$ac_ext
  10858. if $ac_preproc_ok; then :
  10859. break
  10860. fi
  10861. done
  10862. ac_cv_prog_CXXCPP=$CXXCPP
  10863. fi
  10864. CXXCPP=$ac_cv_prog_CXXCPP
  10865. else
  10866. ac_cv_prog_CXXCPP=$CXXCPP
  10867. fi
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10869. $as_echo "$CXXCPP" >&6; }
  10870. ac_preproc_ok=false
  10871. for ac_cxx_preproc_warn_flag in '' yes
  10872. do
  10873. # Use a header file that comes with gcc, so configuring glibc
  10874. # with a fresh cross-compiler works.
  10875. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10876. # <limits.h> exists even on freestanding compilers.
  10877. # On the NeXT, cc -E runs the code through the compiler's parser,
  10878. # not just through cpp. "Syntax error" is here to catch this case.
  10879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10880. /* end confdefs.h. */
  10881. #ifdef __STDC__
  10882. # include <limits.h>
  10883. #else
  10884. # include <assert.h>
  10885. #endif
  10886. Syntax error
  10887. _ACEOF
  10888. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10889. else
  10890. # Broken: fails on valid input.
  10891. continue
  10892. fi
  10893. rm -f conftest.err conftest.i conftest.$ac_ext
  10894. # OK, works on sane cases. Now check whether nonexistent headers
  10895. # can be detected and how.
  10896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10897. /* end confdefs.h. */
  10898. #include <ac_nonexistent.h>
  10899. _ACEOF
  10900. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10901. # Broken: success on invalid input.
  10902. continue
  10903. else
  10904. # Passes both tests.
  10905. ac_preproc_ok=:
  10906. break
  10907. fi
  10908. rm -f conftest.err conftest.i conftest.$ac_ext
  10909. done
  10910. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10911. rm -f conftest.i conftest.err conftest.$ac_ext
  10912. if $ac_preproc_ok; then :
  10913. else
  10914. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10915. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10916. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10917. See \`config.log' for more details" "$LINENO" 5; }
  10918. fi
  10919. ac_ext=c
  10920. ac_cpp='$CPP $CPPFLAGS'
  10921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10924. else
  10925. _lt_caught_CXX_error=yes
  10926. fi
  10927. ac_ext=cpp
  10928. ac_cpp='$CXXCPP $CPPFLAGS'
  10929. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10930. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10931. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10932. archive_cmds_need_lc_CXX=no
  10933. allow_undefined_flag_CXX=
  10934. always_export_symbols_CXX=no
  10935. archive_expsym_cmds_CXX=
  10936. compiler_needs_object_CXX=no
  10937. export_dynamic_flag_spec_CXX=
  10938. hardcode_direct_CXX=no
  10939. hardcode_direct_absolute_CXX=no
  10940. hardcode_libdir_flag_spec_CXX=
  10941. hardcode_libdir_separator_CXX=
  10942. hardcode_minus_L_CXX=no
  10943. hardcode_shlibpath_var_CXX=unsupported
  10944. hardcode_automatic_CXX=no
  10945. inherit_rpath_CXX=no
  10946. module_cmds_CXX=
  10947. module_expsym_cmds_CXX=
  10948. link_all_deplibs_CXX=unknown
  10949. old_archive_cmds_CXX=$old_archive_cmds
  10950. reload_flag_CXX=$reload_flag
  10951. reload_cmds_CXX=$reload_cmds
  10952. no_undefined_flag_CXX=
  10953. whole_archive_flag_spec_CXX=
  10954. enable_shared_with_static_runtimes_CXX=no
  10955. # Source file extension for C++ test sources.
  10956. ac_ext=cpp
  10957. # Object file extension for compiled C++ test sources.
  10958. objext=o
  10959. objext_CXX=$objext
  10960. # No sense in running all these tests if we already determined that
  10961. # the CXX compiler isn't working. Some variables (like enable_shared)
  10962. # are currently assumed to apply to all compilers on this platform,
  10963. # and will be corrupted by setting them based on a non-working compiler.
  10964. if test "$_lt_caught_CXX_error" != yes; then
  10965. # Code to be used in simple compile tests
  10966. lt_simple_compile_test_code="int some_variable = 0;"
  10967. # Code to be used in simple link tests
  10968. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10969. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10970. # If no C compiler was specified, use CC.
  10971. LTCC=${LTCC-"$CC"}
  10972. # If no C compiler flags were specified, use CFLAGS.
  10973. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10974. # Allow CC to be a program name with arguments.
  10975. compiler=$CC
  10976. # save warnings/boilerplate of simple test code
  10977. ac_outfile=conftest.$ac_objext
  10978. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10979. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10980. _lt_compiler_boilerplate=`cat conftest.err`
  10981. $RM conftest*
  10982. ac_outfile=conftest.$ac_objext
  10983. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10984. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10985. _lt_linker_boilerplate=`cat conftest.err`
  10986. $RM -r conftest*
  10987. # Allow CC to be a program name with arguments.
  10988. lt_save_CC=$CC
  10989. lt_save_CFLAGS=$CFLAGS
  10990. lt_save_LD=$LD
  10991. lt_save_GCC=$GCC
  10992. GCC=$GXX
  10993. lt_save_with_gnu_ld=$with_gnu_ld
  10994. lt_save_path_LD=$lt_cv_path_LD
  10995. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10996. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10997. else
  10998. $as_unset lt_cv_prog_gnu_ld
  10999. fi
  11000. if test -n "${lt_cv_path_LDCXX+set}"; then
  11001. lt_cv_path_LD=$lt_cv_path_LDCXX
  11002. else
  11003. $as_unset lt_cv_path_LD
  11004. fi
  11005. test -z "${LDCXX+set}" || LD=$LDCXX
  11006. CC=${CXX-"c++"}
  11007. CFLAGS=$CXXFLAGS
  11008. compiler=$CC
  11009. compiler_CXX=$CC
  11010. for cc_temp in $compiler""; do
  11011. case $cc_temp in
  11012. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11013. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11014. \-*) ;;
  11015. *) break;;
  11016. esac
  11017. done
  11018. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11019. if test -n "$compiler"; then
  11020. # We don't want -fno-exception when compiling C++ code, so set the
  11021. # no_builtin_flag separately
  11022. if test "$GXX" = yes; then
  11023. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11024. else
  11025. lt_prog_compiler_no_builtin_flag_CXX=
  11026. fi
  11027. if test "$GXX" = yes; then
  11028. # Set up default GNU C++ configuration
  11029. # Check whether --with-gnu-ld was given.
  11030. if test "${with_gnu_ld+set}" = set; then :
  11031. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11032. else
  11033. with_gnu_ld=no
  11034. fi
  11035. ac_prog=ld
  11036. if test "$GCC" = yes; then
  11037. # Check if gcc -print-prog-name=ld gives a path.
  11038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11039. $as_echo_n "checking for ld used by $CC... " >&6; }
  11040. case $host in
  11041. *-*-mingw*)
  11042. # gcc leaves a trailing carriage return which upsets mingw
  11043. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11044. *)
  11045. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11046. esac
  11047. case $ac_prog in
  11048. # Accept absolute paths.
  11049. [\\/]* | ?:[\\/]*)
  11050. re_direlt='/[^/][^/]*/\.\./'
  11051. # Canonicalize the pathname of ld
  11052. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11053. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11054. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11055. done
  11056. test -z "$LD" && LD="$ac_prog"
  11057. ;;
  11058. "")
  11059. # If it fails, then pretend we aren't using GCC.
  11060. ac_prog=ld
  11061. ;;
  11062. *)
  11063. # If it is relative, then search for the first ld in PATH.
  11064. with_gnu_ld=unknown
  11065. ;;
  11066. esac
  11067. elif test "$with_gnu_ld" = yes; then
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11069. $as_echo_n "checking for GNU ld... " >&6; }
  11070. else
  11071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11072. $as_echo_n "checking for non-GNU ld... " >&6; }
  11073. fi
  11074. if ${lt_cv_path_LD+:} false; then :
  11075. $as_echo_n "(cached) " >&6
  11076. else
  11077. if test -z "$LD"; then
  11078. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11079. for ac_dir in $PATH; do
  11080. IFS="$lt_save_ifs"
  11081. test -z "$ac_dir" && ac_dir=.
  11082. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11083. lt_cv_path_LD="$ac_dir/$ac_prog"
  11084. # Check to see if the program is GNU ld. I'd rather use --version,
  11085. # but apparently some variants of GNU ld only accept -v.
  11086. # Break only if it was the GNU/non-GNU ld that we prefer.
  11087. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11088. *GNU* | *'with BFD'*)
  11089. test "$with_gnu_ld" != no && break
  11090. ;;
  11091. *)
  11092. test "$with_gnu_ld" != yes && break
  11093. ;;
  11094. esac
  11095. fi
  11096. done
  11097. IFS="$lt_save_ifs"
  11098. else
  11099. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11100. fi
  11101. fi
  11102. LD="$lt_cv_path_LD"
  11103. if test -n "$LD"; then
  11104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11105. $as_echo "$LD" >&6; }
  11106. else
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11108. $as_echo "no" >&6; }
  11109. fi
  11110. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11112. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11113. if ${lt_cv_prog_gnu_ld+:} false; then :
  11114. $as_echo_n "(cached) " >&6
  11115. else
  11116. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11117. case `$LD -v 2>&1 </dev/null` in
  11118. *GNU* | *'with BFD'*)
  11119. lt_cv_prog_gnu_ld=yes
  11120. ;;
  11121. *)
  11122. lt_cv_prog_gnu_ld=no
  11123. ;;
  11124. esac
  11125. fi
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11127. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11128. with_gnu_ld=$lt_cv_prog_gnu_ld
  11129. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11130. # archiving commands below assume that GNU ld is being used.
  11131. if test "$with_gnu_ld" = yes; then
  11132. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11133. 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'
  11134. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11135. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11136. # If archive_cmds runs LD, not CC, wlarc should be empty
  11137. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11138. # investigate it a little bit more. (MM)
  11139. wlarc='${wl}'
  11140. # ancient GNU ld didn't support --whole-archive et. al.
  11141. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11142. $GREP 'no-whole-archive' > /dev/null; then
  11143. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11144. else
  11145. whole_archive_flag_spec_CXX=
  11146. fi
  11147. else
  11148. with_gnu_ld=no
  11149. wlarc=
  11150. # A generic and very simple default shared library creation
  11151. # command for GNU C++ for the case where it uses the native
  11152. # linker, instead of GNU ld. If possible, this setting should
  11153. # overridden to take advantage of the native linker features on
  11154. # the platform it is being used on.
  11155. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11156. fi
  11157. # Commands to make compiler produce verbose output that lists
  11158. # what "hidden" libraries, object files and flags are used when
  11159. # linking a shared library.
  11160. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11161. else
  11162. GXX=no
  11163. with_gnu_ld=no
  11164. wlarc=
  11165. fi
  11166. # PORTME: fill in a description of your system's C++ link characteristics
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11168. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11169. ld_shlibs_CXX=yes
  11170. case $host_os in
  11171. aix3*)
  11172. # FIXME: insert proper C++ library support
  11173. ld_shlibs_CXX=no
  11174. ;;
  11175. aix[4-9]*)
  11176. if test "$host_cpu" = ia64; then
  11177. # On IA64, the linker does run time linking by default, so we don't
  11178. # have to do anything special.
  11179. aix_use_runtimelinking=no
  11180. exp_sym_flag='-Bexport'
  11181. no_entry_flag=""
  11182. else
  11183. aix_use_runtimelinking=no
  11184. # Test if we are trying to use run time linking or normal
  11185. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11186. # need to do runtime linking.
  11187. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11188. for ld_flag in $LDFLAGS; do
  11189. case $ld_flag in
  11190. *-brtl*)
  11191. aix_use_runtimelinking=yes
  11192. break
  11193. ;;
  11194. esac
  11195. done
  11196. ;;
  11197. esac
  11198. exp_sym_flag='-bexport'
  11199. no_entry_flag='-bnoentry'
  11200. fi
  11201. # When large executables or shared objects are built, AIX ld can
  11202. # have problems creating the table of contents. If linking a library
  11203. # or program results in "error TOC overflow" add -mminimal-toc to
  11204. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11205. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11206. archive_cmds_CXX=''
  11207. hardcode_direct_CXX=yes
  11208. hardcode_direct_absolute_CXX=yes
  11209. hardcode_libdir_separator_CXX=':'
  11210. link_all_deplibs_CXX=yes
  11211. file_list_spec_CXX='${wl}-f,'
  11212. if test "$GXX" = yes; then
  11213. case $host_os in aix4.[012]|aix4.[012].*)
  11214. # We only want to do this on AIX 4.2 and lower, the check
  11215. # below for broken collect2 doesn't work under 4.3+
  11216. collect2name=`${CC} -print-prog-name=collect2`
  11217. if test -f "$collect2name" &&
  11218. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11219. then
  11220. # We have reworked collect2
  11221. :
  11222. else
  11223. # We have old collect2
  11224. hardcode_direct_CXX=unsupported
  11225. # It fails to find uninstalled libraries when the uninstalled
  11226. # path is not listed in the libpath. Setting hardcode_minus_L
  11227. # to unsupported forces relinking
  11228. hardcode_minus_L_CXX=yes
  11229. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11230. hardcode_libdir_separator_CXX=
  11231. fi
  11232. esac
  11233. shared_flag='-shared'
  11234. if test "$aix_use_runtimelinking" = yes; then
  11235. shared_flag="$shared_flag "'${wl}-G'
  11236. fi
  11237. else
  11238. # not using gcc
  11239. if test "$host_cpu" = ia64; then
  11240. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11241. # chokes on -Wl,-G. The following line is correct:
  11242. shared_flag='-G'
  11243. else
  11244. if test "$aix_use_runtimelinking" = yes; then
  11245. shared_flag='${wl}-G'
  11246. else
  11247. shared_flag='${wl}-bM:SRE'
  11248. fi
  11249. fi
  11250. fi
  11251. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11252. # It seems that -bexpall does not export symbols beginning with
  11253. # underscore (_), so it is better to generate a list of symbols to
  11254. # export.
  11255. always_export_symbols_CXX=yes
  11256. if test "$aix_use_runtimelinking" = yes; then
  11257. # Warning - without using the other runtime loading flags (-brtl),
  11258. # -berok will link without error, but may produce a broken library.
  11259. allow_undefined_flag_CXX='-berok'
  11260. # Determine the default libpath from the value encoded in an empty
  11261. # executable.
  11262. if test "${lt_cv_aix_libpath+set}" = set; then
  11263. aix_libpath=$lt_cv_aix_libpath
  11264. else
  11265. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11266. $as_echo_n "(cached) " >&6
  11267. else
  11268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11269. /* end confdefs.h. */
  11270. int
  11271. main ()
  11272. {
  11273. ;
  11274. return 0;
  11275. }
  11276. _ACEOF
  11277. if ac_fn_cxx_try_link "$LINENO"; then :
  11278. lt_aix_libpath_sed='
  11279. /Import File Strings/,/^$/ {
  11280. /^0/ {
  11281. s/^0 *\([^ ]*\) *$/\1/
  11282. p
  11283. }
  11284. }'
  11285. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11286. # Check for a 64-bit object if we didn't find anything.
  11287. if test -z "$lt_cv_aix_libpath__CXX"; then
  11288. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11289. fi
  11290. fi
  11291. rm -f core conftest.err conftest.$ac_objext \
  11292. conftest$ac_exeext conftest.$ac_ext
  11293. if test -z "$lt_cv_aix_libpath__CXX"; then
  11294. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11295. fi
  11296. fi
  11297. aix_libpath=$lt_cv_aix_libpath__CXX
  11298. fi
  11299. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11300. 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"
  11301. else
  11302. if test "$host_cpu" = ia64; then
  11303. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11304. allow_undefined_flag_CXX="-z nodefs"
  11305. 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"
  11306. else
  11307. # Determine the default libpath from the value encoded in an
  11308. # empty executable.
  11309. if test "${lt_cv_aix_libpath+set}" = set; then
  11310. aix_libpath=$lt_cv_aix_libpath
  11311. else
  11312. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11313. $as_echo_n "(cached) " >&6
  11314. else
  11315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11316. /* end confdefs.h. */
  11317. int
  11318. main ()
  11319. {
  11320. ;
  11321. return 0;
  11322. }
  11323. _ACEOF
  11324. if ac_fn_cxx_try_link "$LINENO"; then :
  11325. lt_aix_libpath_sed='
  11326. /Import File Strings/,/^$/ {
  11327. /^0/ {
  11328. s/^0 *\([^ ]*\) *$/\1/
  11329. p
  11330. }
  11331. }'
  11332. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11333. # Check for a 64-bit object if we didn't find anything.
  11334. if test -z "$lt_cv_aix_libpath__CXX"; then
  11335. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11336. fi
  11337. fi
  11338. rm -f core conftest.err conftest.$ac_objext \
  11339. conftest$ac_exeext conftest.$ac_ext
  11340. if test -z "$lt_cv_aix_libpath__CXX"; then
  11341. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11342. fi
  11343. fi
  11344. aix_libpath=$lt_cv_aix_libpath__CXX
  11345. fi
  11346. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11347. # Warning - without using the other run time loading flags,
  11348. # -berok will link without error, but may produce a broken library.
  11349. no_undefined_flag_CXX=' ${wl}-bernotok'
  11350. allow_undefined_flag_CXX=' ${wl}-berok'
  11351. if test "$with_gnu_ld" = yes; then
  11352. # We only use this code for GNU lds that support --whole-archive.
  11353. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11354. else
  11355. # Exported symbols can be pulled into shared objects from archives
  11356. whole_archive_flag_spec_CXX='$convenience'
  11357. fi
  11358. archive_cmds_need_lc_CXX=yes
  11359. # This is similar to how AIX traditionally builds its shared
  11360. # libraries.
  11361. 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'
  11362. fi
  11363. fi
  11364. ;;
  11365. beos*)
  11366. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11367. allow_undefined_flag_CXX=unsupported
  11368. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11369. # support --undefined. This deserves some investigation. FIXME
  11370. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11371. else
  11372. ld_shlibs_CXX=no
  11373. fi
  11374. ;;
  11375. chorus*)
  11376. case $cc_basename in
  11377. *)
  11378. # FIXME: insert proper C++ library support
  11379. ld_shlibs_CXX=no
  11380. ;;
  11381. esac
  11382. ;;
  11383. cygwin* | mingw* | pw32* | cegcc*)
  11384. case $GXX,$cc_basename in
  11385. ,cl* | no,cl*)
  11386. # Native MSVC
  11387. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11388. # no search path for DLLs.
  11389. hardcode_libdir_flag_spec_CXX=' '
  11390. allow_undefined_flag_CXX=unsupported
  11391. always_export_symbols_CXX=yes
  11392. file_list_spec_CXX='@'
  11393. # Tell ltmain to make .lib files, not .a files.
  11394. libext=lib
  11395. # Tell ltmain to make .dll files, not .so files.
  11396. shrext_cmds=".dll"
  11397. # FIXME: Setting linknames here is a bad hack.
  11398. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11399. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11400. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11401. else
  11402. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11403. fi~
  11404. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11405. linknames='
  11406. # The linker will not automatically build a static lib if we build a DLL.
  11407. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11408. enable_shared_with_static_runtimes_CXX=yes
  11409. # Don't use ranlib
  11410. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11411. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11412. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11413. case $lt_outputfile in
  11414. *.exe|*.EXE) ;;
  11415. *)
  11416. lt_outputfile="$lt_outputfile.exe"
  11417. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11418. ;;
  11419. esac~
  11420. func_to_tool_file "$lt_outputfile"~
  11421. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11422. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11423. $RM "$lt_outputfile.manifest";
  11424. fi'
  11425. ;;
  11426. *)
  11427. # g++
  11428. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11429. # as there is no search path for DLLs.
  11430. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11431. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11432. allow_undefined_flag_CXX=unsupported
  11433. always_export_symbols_CXX=no
  11434. enable_shared_with_static_runtimes_CXX=yes
  11435. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11436. 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'
  11437. # If the export-symbols file already is a .def file (1st line
  11438. # is EXPORTS), use it as is; otherwise, prepend...
  11439. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11440. cp $export_symbols $output_objdir/$soname.def;
  11441. else
  11442. echo EXPORTS > $output_objdir/$soname.def;
  11443. cat $export_symbols >> $output_objdir/$soname.def;
  11444. fi~
  11445. $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'
  11446. else
  11447. ld_shlibs_CXX=no
  11448. fi
  11449. ;;
  11450. esac
  11451. ;;
  11452. darwin* | rhapsody*)
  11453. archive_cmds_need_lc_CXX=no
  11454. hardcode_direct_CXX=no
  11455. hardcode_automatic_CXX=yes
  11456. hardcode_shlibpath_var_CXX=unsupported
  11457. if test "$lt_cv_ld_force_load" = "yes"; then
  11458. 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\"`'
  11459. else
  11460. whole_archive_flag_spec_CXX=''
  11461. fi
  11462. link_all_deplibs_CXX=yes
  11463. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11464. case $cc_basename in
  11465. ifort*) _lt_dar_can_shared=yes ;;
  11466. *) _lt_dar_can_shared=$GCC ;;
  11467. esac
  11468. if test "$_lt_dar_can_shared" = "yes"; then
  11469. output_verbose_link_cmd=func_echo_all
  11470. 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}"
  11471. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11472. 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}"
  11473. 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}"
  11474. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11475. 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}"
  11476. 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}"
  11477. fi
  11478. else
  11479. ld_shlibs_CXX=no
  11480. fi
  11481. ;;
  11482. dgux*)
  11483. case $cc_basename in
  11484. ec++*)
  11485. # FIXME: insert proper C++ library support
  11486. ld_shlibs_CXX=no
  11487. ;;
  11488. ghcx*)
  11489. # Green Hills C++ Compiler
  11490. # FIXME: insert proper C++ library support
  11491. ld_shlibs_CXX=no
  11492. ;;
  11493. *)
  11494. # FIXME: insert proper C++ library support
  11495. ld_shlibs_CXX=no
  11496. ;;
  11497. esac
  11498. ;;
  11499. freebsd2.*)
  11500. # C++ shared libraries reported to be fairly broken before
  11501. # switch to ELF
  11502. ld_shlibs_CXX=no
  11503. ;;
  11504. freebsd-elf*)
  11505. archive_cmds_need_lc_CXX=no
  11506. ;;
  11507. freebsd* | dragonfly*)
  11508. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11509. # conventions
  11510. ld_shlibs_CXX=yes
  11511. ;;
  11512. gnu*)
  11513. ;;
  11514. haiku*)
  11515. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11516. link_all_deplibs_CXX=yes
  11517. ;;
  11518. hpux9*)
  11519. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11520. hardcode_libdir_separator_CXX=:
  11521. export_dynamic_flag_spec_CXX='${wl}-E'
  11522. hardcode_direct_CXX=yes
  11523. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11524. # but as the default
  11525. # location of the library.
  11526. case $cc_basename in
  11527. CC*)
  11528. # FIXME: insert proper C++ library support
  11529. ld_shlibs_CXX=no
  11530. ;;
  11531. aCC*)
  11532. 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'
  11533. # Commands to make compiler produce verbose output that lists
  11534. # what "hidden" libraries, object files and flags are used when
  11535. # linking a shared library.
  11536. #
  11537. # There doesn't appear to be a way to prevent this compiler from
  11538. # explicitly linking system object files so we need to strip them
  11539. # from the output so that they don't get included in the library
  11540. # dependencies.
  11541. 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"'
  11542. ;;
  11543. *)
  11544. if test "$GXX" = yes; then
  11545. 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'
  11546. else
  11547. # FIXME: insert proper C++ library support
  11548. ld_shlibs_CXX=no
  11549. fi
  11550. ;;
  11551. esac
  11552. ;;
  11553. hpux10*|hpux11*)
  11554. if test $with_gnu_ld = no; then
  11555. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11556. hardcode_libdir_separator_CXX=:
  11557. case $host_cpu in
  11558. hppa*64*|ia64*)
  11559. ;;
  11560. *)
  11561. export_dynamic_flag_spec_CXX='${wl}-E'
  11562. ;;
  11563. esac
  11564. fi
  11565. case $host_cpu in
  11566. hppa*64*|ia64*)
  11567. hardcode_direct_CXX=no
  11568. hardcode_shlibpath_var_CXX=no
  11569. ;;
  11570. *)
  11571. hardcode_direct_CXX=yes
  11572. hardcode_direct_absolute_CXX=yes
  11573. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11574. # but as the default
  11575. # location of the library.
  11576. ;;
  11577. esac
  11578. case $cc_basename in
  11579. CC*)
  11580. # FIXME: insert proper C++ library support
  11581. ld_shlibs_CXX=no
  11582. ;;
  11583. aCC*)
  11584. case $host_cpu in
  11585. hppa*64*)
  11586. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11587. ;;
  11588. ia64*)
  11589. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11590. ;;
  11591. *)
  11592. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11593. ;;
  11594. esac
  11595. # Commands to make compiler produce verbose output that lists
  11596. # what "hidden" libraries, object files and flags are used when
  11597. # linking a shared library.
  11598. #
  11599. # There doesn't appear to be a way to prevent this compiler from
  11600. # explicitly linking system object files so we need to strip them
  11601. # from the output so that they don't get included in the library
  11602. # dependencies.
  11603. 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"'
  11604. ;;
  11605. *)
  11606. if test "$GXX" = yes; then
  11607. if test $with_gnu_ld = no; then
  11608. case $host_cpu in
  11609. hppa*64*)
  11610. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11611. ;;
  11612. ia64*)
  11613. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11614. ;;
  11615. *)
  11616. 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'
  11617. ;;
  11618. esac
  11619. fi
  11620. else
  11621. # FIXME: insert proper C++ library support
  11622. ld_shlibs_CXX=no
  11623. fi
  11624. ;;
  11625. esac
  11626. ;;
  11627. interix[3-9]*)
  11628. hardcode_direct_CXX=no
  11629. hardcode_shlibpath_var_CXX=no
  11630. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11631. export_dynamic_flag_spec_CXX='${wl}-E'
  11632. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11633. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11634. # default) and relocated if they conflict, which is a slow very memory
  11635. # consuming and fragmenting process. To avoid this, we pick a random,
  11636. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11637. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11638. 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'
  11639. 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'
  11640. ;;
  11641. irix5* | irix6*)
  11642. case $cc_basename in
  11643. CC*)
  11644. # SGI C++
  11645. 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'
  11646. # Archives containing C++ object files must be created using
  11647. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11648. # necessary to make sure instantiated templates are included
  11649. # in the archive.
  11650. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11651. ;;
  11652. *)
  11653. if test "$GXX" = yes; then
  11654. if test "$with_gnu_ld" = no; then
  11655. 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'
  11656. else
  11657. 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'
  11658. fi
  11659. fi
  11660. link_all_deplibs_CXX=yes
  11661. ;;
  11662. esac
  11663. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11664. hardcode_libdir_separator_CXX=:
  11665. inherit_rpath_CXX=yes
  11666. ;;
  11667. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11668. case $cc_basename in
  11669. KCC*)
  11670. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11671. # KCC will only create a shared library if the output file
  11672. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11673. # to its proper name (with version) after linking.
  11674. 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'
  11675. 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'
  11676. # Commands to make compiler produce verbose output that lists
  11677. # what "hidden" libraries, object files and flags are used when
  11678. # linking a shared library.
  11679. #
  11680. # There doesn't appear to be a way to prevent this compiler from
  11681. # explicitly linking system object files so we need to strip them
  11682. # from the output so that they don't get included in the library
  11683. # dependencies.
  11684. 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"'
  11685. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11686. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11687. # Archives containing C++ object files must be created using
  11688. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11689. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11690. ;;
  11691. icpc* | ecpc* )
  11692. # Intel C++
  11693. with_gnu_ld=yes
  11694. # version 8.0 and above of icpc choke on multiply defined symbols
  11695. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11696. # earlier do not add the objects themselves.
  11697. case `$CC -V 2>&1` in
  11698. *"Version 7."*)
  11699. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11700. 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'
  11701. ;;
  11702. *) # Version 8.0 or newer
  11703. tmp_idyn=
  11704. case $host_cpu in
  11705. ia64*) tmp_idyn=' -i_dynamic';;
  11706. esac
  11707. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11708. 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'
  11709. ;;
  11710. esac
  11711. archive_cmds_need_lc_CXX=no
  11712. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11713. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11714. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11715. ;;
  11716. pgCC* | pgcpp*)
  11717. # Portland Group C++ compiler
  11718. case `$CC -V` in
  11719. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11720. prelink_cmds_CXX='tpldir=Template.dir~
  11721. rm -rf $tpldir~
  11722. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11723. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11724. old_archive_cmds_CXX='tpldir=Template.dir~
  11725. rm -rf $tpldir~
  11726. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11727. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11728. $RANLIB $oldlib'
  11729. archive_cmds_CXX='tpldir=Template.dir~
  11730. rm -rf $tpldir~
  11731. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11732. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11733. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11734. rm -rf $tpldir~
  11735. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11736. $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'
  11737. ;;
  11738. *) # Version 6 and above use weak symbols
  11739. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11740. 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'
  11741. ;;
  11742. esac
  11743. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11744. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11745. 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'
  11746. ;;
  11747. cxx*)
  11748. # Compaq C++
  11749. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11750. 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'
  11751. runpath_var=LD_RUN_PATH
  11752. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11753. hardcode_libdir_separator_CXX=:
  11754. # Commands to make compiler produce verbose output that lists
  11755. # what "hidden" libraries, object files and flags are used when
  11756. # linking a shared library.
  11757. #
  11758. # There doesn't appear to be a way to prevent this compiler from
  11759. # explicitly linking system object files so we need to strip them
  11760. # from the output so that they don't get included in the library
  11761. # dependencies.
  11762. 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'
  11763. ;;
  11764. xl* | mpixl* | bgxl*)
  11765. # IBM XL 8.0 on PPC, with GNU ld
  11766. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11767. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11768. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11769. if test "x$supports_anon_versioning" = xyes; then
  11770. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11771. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11772. echo "local: *; };" >> $output_objdir/$libname.ver~
  11773. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11774. fi
  11775. ;;
  11776. *)
  11777. case `$CC -V 2>&1 | sed 5q` in
  11778. *Sun\ C*)
  11779. # Sun C++ 5.9
  11780. no_undefined_flag_CXX=' -zdefs'
  11781. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11782. 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'
  11783. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11784. 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'
  11785. compiler_needs_object_CXX=yes
  11786. # Not sure whether something based on
  11787. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11788. # would be better.
  11789. output_verbose_link_cmd='func_echo_all'
  11790. # Archives containing C++ object files must be created using
  11791. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11792. # necessary to make sure instantiated templates are included
  11793. # in the archive.
  11794. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11795. ;;
  11796. esac
  11797. ;;
  11798. esac
  11799. ;;
  11800. lynxos*)
  11801. # FIXME: insert proper C++ library support
  11802. ld_shlibs_CXX=no
  11803. ;;
  11804. m88k*)
  11805. # FIXME: insert proper C++ library support
  11806. ld_shlibs_CXX=no
  11807. ;;
  11808. mvs*)
  11809. case $cc_basename in
  11810. cxx*)
  11811. # FIXME: insert proper C++ library support
  11812. ld_shlibs_CXX=no
  11813. ;;
  11814. *)
  11815. # FIXME: insert proper C++ library support
  11816. ld_shlibs_CXX=no
  11817. ;;
  11818. esac
  11819. ;;
  11820. netbsd*)
  11821. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11822. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11823. wlarc=
  11824. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11825. hardcode_direct_CXX=yes
  11826. hardcode_shlibpath_var_CXX=no
  11827. fi
  11828. # Workaround some broken pre-1.5 toolchains
  11829. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11830. ;;
  11831. *nto* | *qnx*)
  11832. ld_shlibs_CXX=yes
  11833. ;;
  11834. openbsd2*)
  11835. # C++ shared libraries are fairly broken
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. openbsd*)
  11839. if test -f /usr/libexec/ld.so; then
  11840. hardcode_direct_CXX=yes
  11841. hardcode_shlibpath_var_CXX=no
  11842. hardcode_direct_absolute_CXX=yes
  11843. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11844. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11845. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11846. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11847. export_dynamic_flag_spec_CXX='${wl}-E'
  11848. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11849. fi
  11850. output_verbose_link_cmd=func_echo_all
  11851. else
  11852. ld_shlibs_CXX=no
  11853. fi
  11854. ;;
  11855. osf3* | osf4* | osf5*)
  11856. case $cc_basename in
  11857. KCC*)
  11858. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11859. # KCC will only create a shared library if the output file
  11860. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11861. # to its proper name (with version) after linking.
  11862. 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'
  11863. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11864. hardcode_libdir_separator_CXX=:
  11865. # Archives containing C++ object files must be created using
  11866. # the KAI C++ compiler.
  11867. case $host in
  11868. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11869. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11870. esac
  11871. ;;
  11872. RCC*)
  11873. # Rational C++ 2.4.1
  11874. # FIXME: insert proper C++ library support
  11875. ld_shlibs_CXX=no
  11876. ;;
  11877. cxx*)
  11878. case $host in
  11879. osf3*)
  11880. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11881. 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'
  11882. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11883. ;;
  11884. *)
  11885. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11886. 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'
  11887. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11888. echo "-hidden">> $lib.exp~
  11889. $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~
  11890. $RM $lib.exp'
  11891. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11892. ;;
  11893. esac
  11894. hardcode_libdir_separator_CXX=:
  11895. # Commands to make compiler produce verbose output that lists
  11896. # what "hidden" libraries, object files and flags are used when
  11897. # linking a shared library.
  11898. #
  11899. # There doesn't appear to be a way to prevent this compiler from
  11900. # explicitly linking system object files so we need to strip them
  11901. # from the output so that they don't get included in the library
  11902. # dependencies.
  11903. 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"'
  11904. ;;
  11905. *)
  11906. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11907. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11908. case $host in
  11909. osf3*)
  11910. 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'
  11911. ;;
  11912. *)
  11913. 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'
  11914. ;;
  11915. esac
  11916. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11917. hardcode_libdir_separator_CXX=:
  11918. # Commands to make compiler produce verbose output that lists
  11919. # what "hidden" libraries, object files and flags are used when
  11920. # linking a shared library.
  11921. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11922. else
  11923. # FIXME: insert proper C++ library support
  11924. ld_shlibs_CXX=no
  11925. fi
  11926. ;;
  11927. esac
  11928. ;;
  11929. psos*)
  11930. # FIXME: insert proper C++ library support
  11931. ld_shlibs_CXX=no
  11932. ;;
  11933. sunos4*)
  11934. case $cc_basename in
  11935. CC*)
  11936. # Sun C++ 4.x
  11937. # FIXME: insert proper C++ library support
  11938. ld_shlibs_CXX=no
  11939. ;;
  11940. lcc*)
  11941. # Lucid
  11942. # FIXME: insert proper C++ library support
  11943. ld_shlibs_CXX=no
  11944. ;;
  11945. *)
  11946. # FIXME: insert proper C++ library support
  11947. ld_shlibs_CXX=no
  11948. ;;
  11949. esac
  11950. ;;
  11951. solaris*)
  11952. case $cc_basename in
  11953. CC* | sunCC*)
  11954. # Sun C++ 4.2, 5.x and Centerline C++
  11955. archive_cmds_need_lc_CXX=yes
  11956. no_undefined_flag_CXX=' -zdefs'
  11957. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11958. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11959. $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'
  11960. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11961. hardcode_shlibpath_var_CXX=no
  11962. case $host_os in
  11963. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11964. *)
  11965. # The compiler driver will combine and reorder linker options,
  11966. # but understands `-z linker_flag'.
  11967. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11968. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11969. ;;
  11970. esac
  11971. link_all_deplibs_CXX=yes
  11972. output_verbose_link_cmd='func_echo_all'
  11973. # Archives containing C++ object files must be created using
  11974. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11975. # necessary to make sure instantiated templates are included
  11976. # in the archive.
  11977. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11978. ;;
  11979. gcx*)
  11980. # Green Hills C++ Compiler
  11981. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11982. # The C++ compiler must be used to create the archive.
  11983. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11984. ;;
  11985. *)
  11986. # GNU C++ compiler with Solaris linker
  11987. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11988. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11989. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11990. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11991. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11992. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11993. # Commands to make compiler produce verbose output that lists
  11994. # what "hidden" libraries, object files and flags are used when
  11995. # linking a shared library.
  11996. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11997. else
  11998. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11999. # platform.
  12000. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12001. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12002. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12003. # Commands to make compiler produce verbose output that lists
  12004. # what "hidden" libraries, object files and flags are used when
  12005. # linking a shared library.
  12006. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12007. fi
  12008. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12009. case $host_os in
  12010. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12011. *)
  12012. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12013. ;;
  12014. esac
  12015. fi
  12016. ;;
  12017. esac
  12018. ;;
  12019. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12020. no_undefined_flag_CXX='${wl}-z,text'
  12021. archive_cmds_need_lc_CXX=no
  12022. hardcode_shlibpath_var_CXX=no
  12023. runpath_var='LD_RUN_PATH'
  12024. case $cc_basename in
  12025. CC*)
  12026. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12027. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12028. ;;
  12029. *)
  12030. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12031. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12032. ;;
  12033. esac
  12034. ;;
  12035. sysv5* | sco3.2v5* | sco5v6*)
  12036. # Note: We can NOT use -z defs as we might desire, because we do not
  12037. # link with -lc, and that would cause any symbols used from libc to
  12038. # always be unresolved, which means just about no library would
  12039. # ever link correctly. If we're not using GNU ld we use -z text
  12040. # though, which does catch some bad symbols but isn't as heavy-handed
  12041. # as -z defs.
  12042. no_undefined_flag_CXX='${wl}-z,text'
  12043. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12044. archive_cmds_need_lc_CXX=no
  12045. hardcode_shlibpath_var_CXX=no
  12046. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12047. hardcode_libdir_separator_CXX=':'
  12048. link_all_deplibs_CXX=yes
  12049. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12050. runpath_var='LD_RUN_PATH'
  12051. case $cc_basename in
  12052. CC*)
  12053. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12054. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12055. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12056. '"$old_archive_cmds_CXX"
  12057. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12058. '"$reload_cmds_CXX"
  12059. ;;
  12060. *)
  12061. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12062. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12063. ;;
  12064. esac
  12065. ;;
  12066. tandem*)
  12067. case $cc_basename in
  12068. NCC*)
  12069. # NonStop-UX NCC 3.20
  12070. # FIXME: insert proper C++ library support
  12071. ld_shlibs_CXX=no
  12072. ;;
  12073. *)
  12074. # FIXME: insert proper C++ library support
  12075. ld_shlibs_CXX=no
  12076. ;;
  12077. esac
  12078. ;;
  12079. vxworks*)
  12080. # FIXME: insert proper C++ library support
  12081. ld_shlibs_CXX=no
  12082. ;;
  12083. *)
  12084. # FIXME: insert proper C++ library support
  12085. ld_shlibs_CXX=no
  12086. ;;
  12087. esac
  12088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12089. $as_echo "$ld_shlibs_CXX" >&6; }
  12090. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12091. GCC_CXX="$GXX"
  12092. LD_CXX="$LD"
  12093. ## CAVEAT EMPTOR:
  12094. ## There is no encapsulation within the following macros, do not change
  12095. ## the running order or otherwise move them around unless you know exactly
  12096. ## what you are doing...
  12097. # Dependencies to place before and after the object being linked:
  12098. predep_objects_CXX=
  12099. postdep_objects_CXX=
  12100. predeps_CXX=
  12101. postdeps_CXX=
  12102. compiler_lib_search_path_CXX=
  12103. cat > conftest.$ac_ext <<_LT_EOF
  12104. class Foo
  12105. {
  12106. public:
  12107. Foo (void) { a = 0; }
  12108. private:
  12109. int a;
  12110. };
  12111. _LT_EOF
  12112. _lt_libdeps_save_CFLAGS=$CFLAGS
  12113. case "$CC $CFLAGS " in #(
  12114. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12115. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12116. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12117. esac
  12118. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12119. (eval $ac_compile) 2>&5
  12120. ac_status=$?
  12121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12122. test $ac_status = 0; }; then
  12123. # Parse the compiler output and extract the necessary
  12124. # objects, libraries and library flags.
  12125. # Sentinel used to keep track of whether or not we are before
  12126. # the conftest object file.
  12127. pre_test_object_deps_done=no
  12128. for p in `eval "$output_verbose_link_cmd"`; do
  12129. case ${prev}${p} in
  12130. -L* | -R* | -l*)
  12131. # Some compilers place space between "-{L,R}" and the path.
  12132. # Remove the space.
  12133. if test $p = "-L" ||
  12134. test $p = "-R"; then
  12135. prev=$p
  12136. continue
  12137. fi
  12138. # Expand the sysroot to ease extracting the directories later.
  12139. if test -z "$prev"; then
  12140. case $p in
  12141. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12142. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12143. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12144. esac
  12145. fi
  12146. case $p in
  12147. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12148. esac
  12149. if test "$pre_test_object_deps_done" = no; then
  12150. case ${prev} in
  12151. -L | -R)
  12152. # Internal compiler library paths should come after those
  12153. # provided the user. The postdeps already come after the
  12154. # user supplied libs so there is no need to process them.
  12155. if test -z "$compiler_lib_search_path_CXX"; then
  12156. compiler_lib_search_path_CXX="${prev}${p}"
  12157. else
  12158. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12159. fi
  12160. ;;
  12161. # The "-l" case would never come before the object being
  12162. # linked, so don't bother handling this case.
  12163. esac
  12164. else
  12165. if test -z "$postdeps_CXX"; then
  12166. postdeps_CXX="${prev}${p}"
  12167. else
  12168. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12169. fi
  12170. fi
  12171. prev=
  12172. ;;
  12173. *.lto.$objext) ;; # Ignore GCC LTO objects
  12174. *.$objext)
  12175. # This assumes that the test object file only shows up
  12176. # once in the compiler output.
  12177. if test "$p" = "conftest.$objext"; then
  12178. pre_test_object_deps_done=yes
  12179. continue
  12180. fi
  12181. if test "$pre_test_object_deps_done" = no; then
  12182. if test -z "$predep_objects_CXX"; then
  12183. predep_objects_CXX="$p"
  12184. else
  12185. predep_objects_CXX="$predep_objects_CXX $p"
  12186. fi
  12187. else
  12188. if test -z "$postdep_objects_CXX"; then
  12189. postdep_objects_CXX="$p"
  12190. else
  12191. postdep_objects_CXX="$postdep_objects_CXX $p"
  12192. fi
  12193. fi
  12194. ;;
  12195. *) ;; # Ignore the rest.
  12196. esac
  12197. done
  12198. # Clean up.
  12199. rm -f a.out a.exe
  12200. else
  12201. echo "libtool.m4: error: problem compiling CXX test program"
  12202. fi
  12203. $RM -f confest.$objext
  12204. CFLAGS=$_lt_libdeps_save_CFLAGS
  12205. # PORTME: override above test on systems where it is broken
  12206. case $host_os in
  12207. interix[3-9]*)
  12208. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12209. # hack all around it, let's just trust "g++" to DTRT.
  12210. predep_objects_CXX=
  12211. postdep_objects_CXX=
  12212. postdeps_CXX=
  12213. ;;
  12214. linux*)
  12215. case `$CC -V 2>&1 | sed 5q` in
  12216. *Sun\ C*)
  12217. # Sun C++ 5.9
  12218. # The more standards-conforming stlport4 library is
  12219. # incompatible with the Cstd library. Avoid specifying
  12220. # it if it's in CXXFLAGS. Ignore libCrun as
  12221. # -library=stlport4 depends on it.
  12222. case " $CXX $CXXFLAGS " in
  12223. *" -library=stlport4 "*)
  12224. solaris_use_stlport4=yes
  12225. ;;
  12226. esac
  12227. if test "$solaris_use_stlport4" != yes; then
  12228. postdeps_CXX='-library=Cstd -library=Crun'
  12229. fi
  12230. ;;
  12231. esac
  12232. ;;
  12233. solaris*)
  12234. case $cc_basename in
  12235. CC* | sunCC*)
  12236. # The more standards-conforming stlport4 library is
  12237. # incompatible with the Cstd library. Avoid specifying
  12238. # it if it's in CXXFLAGS. Ignore libCrun as
  12239. # -library=stlport4 depends on it.
  12240. case " $CXX $CXXFLAGS " in
  12241. *" -library=stlport4 "*)
  12242. solaris_use_stlport4=yes
  12243. ;;
  12244. esac
  12245. # Adding this requires a known-good setup of shared libraries for
  12246. # Sun compiler versions before 5.6, else PIC objects from an old
  12247. # archive will be linked into the output, leading to subtle bugs.
  12248. if test "$solaris_use_stlport4" != yes; then
  12249. postdeps_CXX='-library=Cstd -library=Crun'
  12250. fi
  12251. ;;
  12252. esac
  12253. ;;
  12254. esac
  12255. case " $postdeps_CXX " in
  12256. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12257. esac
  12258. compiler_lib_search_dirs_CXX=
  12259. if test -n "${compiler_lib_search_path_CXX}"; then
  12260. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12261. fi
  12262. lt_prog_compiler_wl_CXX=
  12263. lt_prog_compiler_pic_CXX=
  12264. lt_prog_compiler_static_CXX=
  12265. # C++ specific cases for pic, static, wl, etc.
  12266. if test "$GXX" = yes; then
  12267. lt_prog_compiler_wl_CXX='-Wl,'
  12268. lt_prog_compiler_static_CXX='-static'
  12269. case $host_os in
  12270. aix*)
  12271. # All AIX code is PIC.
  12272. if test "$host_cpu" = ia64; then
  12273. # AIX 5 now supports IA64 processor
  12274. lt_prog_compiler_static_CXX='-Bstatic'
  12275. fi
  12276. ;;
  12277. amigaos*)
  12278. case $host_cpu in
  12279. powerpc)
  12280. # see comment about AmigaOS4 .so support
  12281. lt_prog_compiler_pic_CXX='-fPIC'
  12282. ;;
  12283. m68k)
  12284. # FIXME: we need at least 68020 code to build shared libraries, but
  12285. # adding the `-m68020' flag to GCC prevents building anything better,
  12286. # like `-m68040'.
  12287. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12288. ;;
  12289. esac
  12290. ;;
  12291. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12292. # PIC is the default for these OSes.
  12293. ;;
  12294. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12295. # This hack is so that the source file can tell whether it is being
  12296. # built for inclusion in a dll (and should export symbols for example).
  12297. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12298. # (--disable-auto-import) libraries
  12299. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12300. ;;
  12301. darwin* | rhapsody*)
  12302. # PIC is the default on this platform
  12303. # Common symbols not allowed in MH_DYLIB files
  12304. lt_prog_compiler_pic_CXX='-fno-common'
  12305. ;;
  12306. *djgpp*)
  12307. # DJGPP does not support shared libraries at all
  12308. lt_prog_compiler_pic_CXX=
  12309. ;;
  12310. haiku*)
  12311. # PIC is the default for Haiku.
  12312. # The "-static" flag exists, but is broken.
  12313. lt_prog_compiler_static_CXX=
  12314. ;;
  12315. interix[3-9]*)
  12316. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12317. # Instead, we relocate shared libraries at runtime.
  12318. ;;
  12319. sysv4*MP*)
  12320. if test -d /usr/nec; then
  12321. lt_prog_compiler_pic_CXX=-Kconform_pic
  12322. fi
  12323. ;;
  12324. hpux*)
  12325. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12326. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12327. # sets the default TLS model and affects inlining.
  12328. case $host_cpu in
  12329. hppa*64*)
  12330. ;;
  12331. *)
  12332. lt_prog_compiler_pic_CXX='-fPIC'
  12333. ;;
  12334. esac
  12335. ;;
  12336. *qnx* | *nto*)
  12337. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12338. # it will coredump.
  12339. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12340. ;;
  12341. *)
  12342. lt_prog_compiler_pic_CXX='-fPIC'
  12343. ;;
  12344. esac
  12345. else
  12346. case $host_os in
  12347. aix[4-9]*)
  12348. # All AIX code is PIC.
  12349. if test "$host_cpu" = ia64; then
  12350. # AIX 5 now supports IA64 processor
  12351. lt_prog_compiler_static_CXX='-Bstatic'
  12352. else
  12353. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12354. fi
  12355. ;;
  12356. chorus*)
  12357. case $cc_basename in
  12358. cxch68*)
  12359. # Green Hills C++ Compiler
  12360. # _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"
  12361. ;;
  12362. esac
  12363. ;;
  12364. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12365. # This hack is so that the source file can tell whether it is being
  12366. # built for inclusion in a dll (and should export symbols for example).
  12367. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12368. ;;
  12369. dgux*)
  12370. case $cc_basename in
  12371. ec++*)
  12372. lt_prog_compiler_pic_CXX='-KPIC'
  12373. ;;
  12374. ghcx*)
  12375. # Green Hills C++ Compiler
  12376. lt_prog_compiler_pic_CXX='-pic'
  12377. ;;
  12378. *)
  12379. ;;
  12380. esac
  12381. ;;
  12382. freebsd* | dragonfly*)
  12383. # FreeBSD uses GNU C++
  12384. ;;
  12385. hpux9* | hpux10* | hpux11*)
  12386. case $cc_basename in
  12387. CC*)
  12388. lt_prog_compiler_wl_CXX='-Wl,'
  12389. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12390. if test "$host_cpu" != ia64; then
  12391. lt_prog_compiler_pic_CXX='+Z'
  12392. fi
  12393. ;;
  12394. aCC*)
  12395. lt_prog_compiler_wl_CXX='-Wl,'
  12396. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12397. case $host_cpu in
  12398. hppa*64*|ia64*)
  12399. # +Z the default
  12400. ;;
  12401. *)
  12402. lt_prog_compiler_pic_CXX='+Z'
  12403. ;;
  12404. esac
  12405. ;;
  12406. *)
  12407. ;;
  12408. esac
  12409. ;;
  12410. interix*)
  12411. # This is c89, which is MS Visual C++ (no shared libs)
  12412. # Anyone wants to do a port?
  12413. ;;
  12414. irix5* | irix6* | nonstopux*)
  12415. case $cc_basename in
  12416. CC*)
  12417. lt_prog_compiler_wl_CXX='-Wl,'
  12418. lt_prog_compiler_static_CXX='-non_shared'
  12419. # CC pic flag -KPIC is the default.
  12420. ;;
  12421. *)
  12422. ;;
  12423. esac
  12424. ;;
  12425. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12426. case $cc_basename in
  12427. KCC*)
  12428. # KAI C++ Compiler
  12429. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12430. lt_prog_compiler_pic_CXX='-fPIC'
  12431. ;;
  12432. ecpc* )
  12433. # old Intel C++ for x86_64 which still supported -KPIC.
  12434. lt_prog_compiler_wl_CXX='-Wl,'
  12435. lt_prog_compiler_pic_CXX='-KPIC'
  12436. lt_prog_compiler_static_CXX='-static'
  12437. ;;
  12438. icpc* )
  12439. # Intel C++, used to be incompatible with GCC.
  12440. # ICC 10 doesn't accept -KPIC any more.
  12441. lt_prog_compiler_wl_CXX='-Wl,'
  12442. lt_prog_compiler_pic_CXX='-fPIC'
  12443. lt_prog_compiler_static_CXX='-static'
  12444. ;;
  12445. pgCC* | pgcpp*)
  12446. # Portland Group C++ compiler
  12447. lt_prog_compiler_wl_CXX='-Wl,'
  12448. lt_prog_compiler_pic_CXX='-fpic'
  12449. lt_prog_compiler_static_CXX='-Bstatic'
  12450. ;;
  12451. cxx*)
  12452. # Compaq C++
  12453. # Make sure the PIC flag is empty. It appears that all Alpha
  12454. # Linux and Compaq Tru64 Unix objects are PIC.
  12455. lt_prog_compiler_pic_CXX=
  12456. lt_prog_compiler_static_CXX='-non_shared'
  12457. ;;
  12458. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12459. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12460. lt_prog_compiler_wl_CXX='-Wl,'
  12461. lt_prog_compiler_pic_CXX='-qpic'
  12462. lt_prog_compiler_static_CXX='-qstaticlink'
  12463. ;;
  12464. *)
  12465. case `$CC -V 2>&1 | sed 5q` in
  12466. *Sun\ C*)
  12467. # Sun C++ 5.9
  12468. lt_prog_compiler_pic_CXX='-KPIC'
  12469. lt_prog_compiler_static_CXX='-Bstatic'
  12470. lt_prog_compiler_wl_CXX='-Qoption ld '
  12471. ;;
  12472. esac
  12473. ;;
  12474. esac
  12475. ;;
  12476. lynxos*)
  12477. ;;
  12478. m88k*)
  12479. ;;
  12480. mvs*)
  12481. case $cc_basename in
  12482. cxx*)
  12483. lt_prog_compiler_pic_CXX='-W c,exportall'
  12484. ;;
  12485. *)
  12486. ;;
  12487. esac
  12488. ;;
  12489. netbsd*)
  12490. ;;
  12491. *qnx* | *nto*)
  12492. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12493. # it will coredump.
  12494. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12495. ;;
  12496. osf3* | osf4* | osf5*)
  12497. case $cc_basename in
  12498. KCC*)
  12499. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12500. ;;
  12501. RCC*)
  12502. # Rational C++ 2.4.1
  12503. lt_prog_compiler_pic_CXX='-pic'
  12504. ;;
  12505. cxx*)
  12506. # Digital/Compaq C++
  12507. lt_prog_compiler_wl_CXX='-Wl,'
  12508. # Make sure the PIC flag is empty. It appears that all Alpha
  12509. # Linux and Compaq Tru64 Unix objects are PIC.
  12510. lt_prog_compiler_pic_CXX=
  12511. lt_prog_compiler_static_CXX='-non_shared'
  12512. ;;
  12513. *)
  12514. ;;
  12515. esac
  12516. ;;
  12517. psos*)
  12518. ;;
  12519. solaris*)
  12520. case $cc_basename in
  12521. CC* | sunCC*)
  12522. # Sun C++ 4.2, 5.x and Centerline C++
  12523. lt_prog_compiler_pic_CXX='-KPIC'
  12524. lt_prog_compiler_static_CXX='-Bstatic'
  12525. lt_prog_compiler_wl_CXX='-Qoption ld '
  12526. ;;
  12527. gcx*)
  12528. # Green Hills C++ Compiler
  12529. lt_prog_compiler_pic_CXX='-PIC'
  12530. ;;
  12531. *)
  12532. ;;
  12533. esac
  12534. ;;
  12535. sunos4*)
  12536. case $cc_basename in
  12537. CC*)
  12538. # Sun C++ 4.x
  12539. lt_prog_compiler_pic_CXX='-pic'
  12540. lt_prog_compiler_static_CXX='-Bstatic'
  12541. ;;
  12542. lcc*)
  12543. # Lucid
  12544. lt_prog_compiler_pic_CXX='-pic'
  12545. ;;
  12546. *)
  12547. ;;
  12548. esac
  12549. ;;
  12550. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12551. case $cc_basename in
  12552. CC*)
  12553. lt_prog_compiler_wl_CXX='-Wl,'
  12554. lt_prog_compiler_pic_CXX='-KPIC'
  12555. lt_prog_compiler_static_CXX='-Bstatic'
  12556. ;;
  12557. esac
  12558. ;;
  12559. tandem*)
  12560. case $cc_basename in
  12561. NCC*)
  12562. # NonStop-UX NCC 3.20
  12563. lt_prog_compiler_pic_CXX='-KPIC'
  12564. ;;
  12565. *)
  12566. ;;
  12567. esac
  12568. ;;
  12569. vxworks*)
  12570. ;;
  12571. *)
  12572. lt_prog_compiler_can_build_shared_CXX=no
  12573. ;;
  12574. esac
  12575. fi
  12576. case $host_os in
  12577. # For platforms which do not support PIC, -DPIC is meaningless:
  12578. *djgpp*)
  12579. lt_prog_compiler_pic_CXX=
  12580. ;;
  12581. *)
  12582. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12583. ;;
  12584. esac
  12585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12586. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12587. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12588. $as_echo_n "(cached) " >&6
  12589. else
  12590. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12591. fi
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12593. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12594. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12595. #
  12596. # Check to make sure the PIC flag actually works.
  12597. #
  12598. if test -n "$lt_prog_compiler_pic_CXX"; then
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12600. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12601. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12602. $as_echo_n "(cached) " >&6
  12603. else
  12604. lt_cv_prog_compiler_pic_works_CXX=no
  12605. ac_outfile=conftest.$ac_objext
  12606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12607. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12608. # Insert the option either (1) after the last *FLAGS variable, or
  12609. # (2) before a word containing "conftest.", or (3) at the end.
  12610. # Note that $ac_compile itself does not contain backslashes and begins
  12611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12612. # The option is referenced via a variable to avoid confusing sed.
  12613. lt_compile=`echo "$ac_compile" | $SED \
  12614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12616. -e 's:$: $lt_compiler_flag:'`
  12617. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12618. (eval "$lt_compile" 2>conftest.err)
  12619. ac_status=$?
  12620. cat conftest.err >&5
  12621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12622. if (exit $ac_status) && test -s "$ac_outfile"; then
  12623. # The compiler can only warn and ignore the option if not recognized
  12624. # So say no if there are warnings other than the usual output.
  12625. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12626. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12627. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12628. lt_cv_prog_compiler_pic_works_CXX=yes
  12629. fi
  12630. fi
  12631. $RM conftest*
  12632. fi
  12633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12634. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12635. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12636. case $lt_prog_compiler_pic_CXX in
  12637. "" | " "*) ;;
  12638. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12639. esac
  12640. else
  12641. lt_prog_compiler_pic_CXX=
  12642. lt_prog_compiler_can_build_shared_CXX=no
  12643. fi
  12644. fi
  12645. #
  12646. # Check to make sure the static flag actually works.
  12647. #
  12648. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12650. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12651. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12652. $as_echo_n "(cached) " >&6
  12653. else
  12654. lt_cv_prog_compiler_static_works_CXX=no
  12655. save_LDFLAGS="$LDFLAGS"
  12656. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12657. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12658. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12659. # The linker can only warn and ignore the option if not recognized
  12660. # So say no if there are warnings
  12661. if test -s conftest.err; then
  12662. # Append any errors to the config.log.
  12663. cat conftest.err 1>&5
  12664. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12665. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12666. if diff conftest.exp conftest.er2 >/dev/null; then
  12667. lt_cv_prog_compiler_static_works_CXX=yes
  12668. fi
  12669. else
  12670. lt_cv_prog_compiler_static_works_CXX=yes
  12671. fi
  12672. fi
  12673. $RM -r conftest*
  12674. LDFLAGS="$save_LDFLAGS"
  12675. fi
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12677. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12678. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12679. :
  12680. else
  12681. lt_prog_compiler_static_CXX=
  12682. fi
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12684. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12685. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12686. $as_echo_n "(cached) " >&6
  12687. else
  12688. lt_cv_prog_compiler_c_o_CXX=no
  12689. $RM -r conftest 2>/dev/null
  12690. mkdir conftest
  12691. cd conftest
  12692. mkdir out
  12693. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12694. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12695. # Insert the option either (1) after the last *FLAGS variable, or
  12696. # (2) before a word containing "conftest.", or (3) at the end.
  12697. # Note that $ac_compile itself does not contain backslashes and begins
  12698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12699. lt_compile=`echo "$ac_compile" | $SED \
  12700. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12701. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12702. -e 's:$: $lt_compiler_flag:'`
  12703. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12704. (eval "$lt_compile" 2>out/conftest.err)
  12705. ac_status=$?
  12706. cat out/conftest.err >&5
  12707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12708. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12709. then
  12710. # The compiler can only warn and ignore the option if not recognized
  12711. # So say no if there are warnings
  12712. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12713. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12714. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12715. lt_cv_prog_compiler_c_o_CXX=yes
  12716. fi
  12717. fi
  12718. chmod u+w . 2>&5
  12719. $RM conftest*
  12720. # SGI C++ compiler will create directory out/ii_files/ for
  12721. # template instantiation
  12722. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12723. $RM out/* && rmdir out
  12724. cd ..
  12725. $RM -r conftest
  12726. $RM conftest*
  12727. fi
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12729. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12731. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12732. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12733. $as_echo_n "(cached) " >&6
  12734. else
  12735. lt_cv_prog_compiler_c_o_CXX=no
  12736. $RM -r conftest 2>/dev/null
  12737. mkdir conftest
  12738. cd conftest
  12739. mkdir out
  12740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12741. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12742. # Insert the option either (1) after the last *FLAGS variable, or
  12743. # (2) before a word containing "conftest.", or (3) at the end.
  12744. # Note that $ac_compile itself does not contain backslashes and begins
  12745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12746. lt_compile=`echo "$ac_compile" | $SED \
  12747. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12748. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12749. -e 's:$: $lt_compiler_flag:'`
  12750. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12751. (eval "$lt_compile" 2>out/conftest.err)
  12752. ac_status=$?
  12753. cat out/conftest.err >&5
  12754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12755. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12756. then
  12757. # The compiler can only warn and ignore the option if not recognized
  12758. # So say no if there are warnings
  12759. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12760. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12761. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12762. lt_cv_prog_compiler_c_o_CXX=yes
  12763. fi
  12764. fi
  12765. chmod u+w . 2>&5
  12766. $RM conftest*
  12767. # SGI C++ compiler will create directory out/ii_files/ for
  12768. # template instantiation
  12769. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12770. $RM out/* && rmdir out
  12771. cd ..
  12772. $RM -r conftest
  12773. $RM conftest*
  12774. fi
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12776. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12777. hard_links="nottested"
  12778. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12779. # do not overwrite the value of need_locks provided by the user
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12781. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12782. hard_links=yes
  12783. $RM conftest*
  12784. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12785. touch conftest.a
  12786. ln conftest.a conftest.b 2>&5 || hard_links=no
  12787. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12789. $as_echo "$hard_links" >&6; }
  12790. if test "$hard_links" = no; then
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12792. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12793. need_locks=warn
  12794. fi
  12795. else
  12796. need_locks=no
  12797. fi
  12798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12799. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12800. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12801. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12802. case $host_os in
  12803. aix[4-9]*)
  12804. # If we're using GNU nm, then we don't want the "-C" option.
  12805. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12806. # Also, AIX nm treats weak defined symbols like other global defined
  12807. # symbols, whereas GNU nm marks them as "W".
  12808. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12809. 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'
  12810. else
  12811. 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'
  12812. fi
  12813. ;;
  12814. pw32*)
  12815. export_symbols_cmds_CXX="$ltdll_cmds"
  12816. ;;
  12817. cygwin* | mingw* | cegcc*)
  12818. case $cc_basename in
  12819. cl*)
  12820. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12821. ;;
  12822. *)
  12823. 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'
  12824. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12825. ;;
  12826. esac
  12827. ;;
  12828. *)
  12829. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12830. ;;
  12831. esac
  12832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12833. $as_echo "$ld_shlibs_CXX" >&6; }
  12834. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12835. with_gnu_ld_CXX=$with_gnu_ld
  12836. #
  12837. # Do we need to explicitly link libc?
  12838. #
  12839. case "x$archive_cmds_need_lc_CXX" in
  12840. x|xyes)
  12841. # Assume -lc should be added
  12842. archive_cmds_need_lc_CXX=yes
  12843. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12844. case $archive_cmds_CXX in
  12845. *'~'*)
  12846. # FIXME: we may have to deal with multi-command sequences.
  12847. ;;
  12848. '$CC '*)
  12849. # Test whether the compiler implicitly links with -lc since on some
  12850. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12851. # to ld, don't add -lc before -lgcc.
  12852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12853. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12854. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12855. $as_echo_n "(cached) " >&6
  12856. else
  12857. $RM conftest*
  12858. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12859. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12860. (eval $ac_compile) 2>&5
  12861. ac_status=$?
  12862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12863. test $ac_status = 0; } 2>conftest.err; then
  12864. soname=conftest
  12865. lib=conftest
  12866. libobjs=conftest.$ac_objext
  12867. deplibs=
  12868. wl=$lt_prog_compiler_wl_CXX
  12869. pic_flag=$lt_prog_compiler_pic_CXX
  12870. compiler_flags=-v
  12871. linker_flags=-v
  12872. verstring=
  12873. output_objdir=.
  12874. libname=conftest
  12875. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12876. allow_undefined_flag_CXX=
  12877. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12878. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12879. ac_status=$?
  12880. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12881. test $ac_status = 0; }
  12882. then
  12883. lt_cv_archive_cmds_need_lc_CXX=no
  12884. else
  12885. lt_cv_archive_cmds_need_lc_CXX=yes
  12886. fi
  12887. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12888. else
  12889. cat conftest.err 1>&5
  12890. fi
  12891. $RM conftest*
  12892. fi
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12894. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12895. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12896. ;;
  12897. esac
  12898. fi
  12899. ;;
  12900. esac
  12901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12902. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12903. library_names_spec=
  12904. libname_spec='lib$name'
  12905. soname_spec=
  12906. shrext_cmds=".so"
  12907. postinstall_cmds=
  12908. postuninstall_cmds=
  12909. finish_cmds=
  12910. finish_eval=
  12911. shlibpath_var=
  12912. shlibpath_overrides_runpath=unknown
  12913. version_type=none
  12914. dynamic_linker="$host_os ld.so"
  12915. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12916. need_lib_prefix=unknown
  12917. hardcode_into_libs=no
  12918. # when you set need_version to no, make sure it does not cause -set_version
  12919. # flags to be left without arguments
  12920. need_version=unknown
  12921. case $host_os in
  12922. aix3*)
  12923. version_type=linux # correct to gnu/linux during the next big refactor
  12924. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12925. shlibpath_var=LIBPATH
  12926. # AIX 3 has no versioning support, so we append a major version to the name.
  12927. soname_spec='${libname}${release}${shared_ext}$major'
  12928. ;;
  12929. aix[4-9]*)
  12930. version_type=linux # correct to gnu/linux during the next big refactor
  12931. need_lib_prefix=no
  12932. need_version=no
  12933. hardcode_into_libs=yes
  12934. if test "$host_cpu" = ia64; then
  12935. # AIX 5 supports IA64
  12936. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12937. shlibpath_var=LD_LIBRARY_PATH
  12938. else
  12939. # With GCC up to 2.95.x, collect2 would create an import file
  12940. # for dependence libraries. The import file would start with
  12941. # the line `#! .'. This would cause the generated library to
  12942. # depend on `.', always an invalid library. This was fixed in
  12943. # development snapshots of GCC prior to 3.0.
  12944. case $host_os in
  12945. aix4 | aix4.[01] | aix4.[01].*)
  12946. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12947. echo ' yes '
  12948. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12949. :
  12950. else
  12951. can_build_shared=no
  12952. fi
  12953. ;;
  12954. esac
  12955. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12956. # soname into executable. Probably we can add versioning support to
  12957. # collect2, so additional links can be useful in future.
  12958. if test "$aix_use_runtimelinking" = yes; then
  12959. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12960. # instead of lib<name>.a to let people know that these are not
  12961. # typical AIX shared libraries.
  12962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12963. else
  12964. # We preserve .a as extension for shared libraries through AIX4.2
  12965. # and later when we are not doing run time linking.
  12966. library_names_spec='${libname}${release}.a $libname.a'
  12967. soname_spec='${libname}${release}${shared_ext}$major'
  12968. fi
  12969. shlibpath_var=LIBPATH
  12970. fi
  12971. ;;
  12972. amigaos*)
  12973. case $host_cpu in
  12974. powerpc)
  12975. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12976. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12978. ;;
  12979. m68k)
  12980. library_names_spec='$libname.ixlibrary $libname.a'
  12981. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12982. 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'
  12983. ;;
  12984. esac
  12985. ;;
  12986. beos*)
  12987. library_names_spec='${libname}${shared_ext}'
  12988. dynamic_linker="$host_os ld.so"
  12989. shlibpath_var=LIBRARY_PATH
  12990. ;;
  12991. bsdi[45]*)
  12992. version_type=linux # correct to gnu/linux during the next big refactor
  12993. need_version=no
  12994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12995. soname_spec='${libname}${release}${shared_ext}$major'
  12996. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12997. shlibpath_var=LD_LIBRARY_PATH
  12998. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12999. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13000. # the default ld.so.conf also contains /usr/contrib/lib and
  13001. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13002. # libtool to hard-code these into programs
  13003. ;;
  13004. cygwin* | mingw* | pw32* | cegcc*)
  13005. version_type=windows
  13006. shrext_cmds=".dll"
  13007. need_version=no
  13008. need_lib_prefix=no
  13009. case $GCC,$cc_basename in
  13010. yes,*)
  13011. # gcc
  13012. library_names_spec='$libname.dll.a'
  13013. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13014. postinstall_cmds='base_file=`basename \${file}`~
  13015. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13016. dldir=$destdir/`dirname \$dlpath`~
  13017. test -d \$dldir || mkdir -p \$dldir~
  13018. $install_prog $dir/$dlname \$dldir/$dlname~
  13019. chmod a+x \$dldir/$dlname~
  13020. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13021. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13022. fi'
  13023. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13024. dlpath=$dir/\$dldll~
  13025. $RM \$dlpath'
  13026. shlibpath_overrides_runpath=yes
  13027. case $host_os in
  13028. cygwin*)
  13029. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13030. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13031. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13032. ;;
  13033. mingw* | cegcc*)
  13034. # MinGW DLLs use traditional 'lib' prefix
  13035. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13036. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13037. ;;
  13038. pw32*)
  13039. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13040. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13041. ;;
  13042. esac
  13043. dynamic_linker='Win32 ld.exe'
  13044. ;;
  13045. *,cl*)
  13046. # Native MSVC
  13047. libname_spec='$name'
  13048. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13049. library_names_spec='${libname}.dll.lib'
  13050. case $build_os in
  13051. mingw*)
  13052. sys_lib_search_path_spec=
  13053. lt_save_ifs=$IFS
  13054. IFS=';'
  13055. for lt_path in $LIB
  13056. do
  13057. IFS=$lt_save_ifs
  13058. # Let DOS variable expansion print the short 8.3 style file name.
  13059. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13060. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13061. done
  13062. IFS=$lt_save_ifs
  13063. # Convert to MSYS style.
  13064. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13065. ;;
  13066. cygwin*)
  13067. # Convert to unix form, then to dos form, then back to unix form
  13068. # but this time dos style (no spaces!) so that the unix form looks
  13069. # like /cygdrive/c/PROGRA~1:/cygdr...
  13070. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13071. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13072. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13073. ;;
  13074. *)
  13075. sys_lib_search_path_spec="$LIB"
  13076. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13077. # It is most probably a Windows format PATH.
  13078. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13079. else
  13080. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13081. fi
  13082. # FIXME: find the short name or the path components, as spaces are
  13083. # common. (e.g. "Program Files" -> "PROGRA~1")
  13084. ;;
  13085. esac
  13086. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13087. postinstall_cmds='base_file=`basename \${file}`~
  13088. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13089. dldir=$destdir/`dirname \$dlpath`~
  13090. test -d \$dldir || mkdir -p \$dldir~
  13091. $install_prog $dir/$dlname \$dldir/$dlname'
  13092. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13093. dlpath=$dir/\$dldll~
  13094. $RM \$dlpath'
  13095. shlibpath_overrides_runpath=yes
  13096. dynamic_linker='Win32 link.exe'
  13097. ;;
  13098. *)
  13099. # Assume MSVC wrapper
  13100. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13101. dynamic_linker='Win32 ld.exe'
  13102. ;;
  13103. esac
  13104. # FIXME: first we should search . and the directory the executable is in
  13105. shlibpath_var=PATH
  13106. ;;
  13107. darwin* | rhapsody*)
  13108. dynamic_linker="$host_os dyld"
  13109. version_type=darwin
  13110. need_lib_prefix=no
  13111. need_version=no
  13112. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13113. soname_spec='${libname}${release}${major}$shared_ext'
  13114. shlibpath_overrides_runpath=yes
  13115. shlibpath_var=DYLD_LIBRARY_PATH
  13116. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13117. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13118. ;;
  13119. dgux*)
  13120. version_type=linux # correct to gnu/linux during the next big refactor
  13121. need_lib_prefix=no
  13122. need_version=no
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13124. soname_spec='${libname}${release}${shared_ext}$major'
  13125. shlibpath_var=LD_LIBRARY_PATH
  13126. ;;
  13127. freebsd* | dragonfly*)
  13128. # DragonFly does not have aout. When/if they implement a new
  13129. # versioning mechanism, adjust this.
  13130. if test -x /usr/bin/objformat; then
  13131. objformat=`/usr/bin/objformat`
  13132. else
  13133. case $host_os in
  13134. freebsd[23].*) objformat=aout ;;
  13135. *) objformat=elf ;;
  13136. esac
  13137. fi
  13138. version_type=freebsd-$objformat
  13139. case $version_type in
  13140. freebsd-elf*)
  13141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13142. need_version=no
  13143. need_lib_prefix=no
  13144. ;;
  13145. freebsd-*)
  13146. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13147. need_version=yes
  13148. ;;
  13149. esac
  13150. shlibpath_var=LD_LIBRARY_PATH
  13151. case $host_os in
  13152. freebsd2.*)
  13153. shlibpath_overrides_runpath=yes
  13154. ;;
  13155. freebsd3.[01]* | freebsdelf3.[01]*)
  13156. shlibpath_overrides_runpath=yes
  13157. hardcode_into_libs=yes
  13158. ;;
  13159. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13160. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13161. shlibpath_overrides_runpath=no
  13162. hardcode_into_libs=yes
  13163. ;;
  13164. *) # from 4.6 on, and DragonFly
  13165. shlibpath_overrides_runpath=yes
  13166. hardcode_into_libs=yes
  13167. ;;
  13168. esac
  13169. ;;
  13170. gnu*)
  13171. version_type=linux # correct to gnu/linux during the next big refactor
  13172. need_lib_prefix=no
  13173. need_version=no
  13174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13175. soname_spec='${libname}${release}${shared_ext}$major'
  13176. shlibpath_var=LD_LIBRARY_PATH
  13177. shlibpath_overrides_runpath=no
  13178. hardcode_into_libs=yes
  13179. ;;
  13180. haiku*)
  13181. version_type=linux # correct to gnu/linux during the next big refactor
  13182. need_lib_prefix=no
  13183. need_version=no
  13184. dynamic_linker="$host_os runtime_loader"
  13185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13186. soname_spec='${libname}${release}${shared_ext}$major'
  13187. shlibpath_var=LIBRARY_PATH
  13188. shlibpath_overrides_runpath=yes
  13189. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13190. hardcode_into_libs=yes
  13191. ;;
  13192. hpux9* | hpux10* | hpux11*)
  13193. # Give a soname corresponding to the major version so that dld.sl refuses to
  13194. # link against other versions.
  13195. version_type=sunos
  13196. need_lib_prefix=no
  13197. need_version=no
  13198. case $host_cpu in
  13199. ia64*)
  13200. shrext_cmds='.so'
  13201. hardcode_into_libs=yes
  13202. dynamic_linker="$host_os dld.so"
  13203. shlibpath_var=LD_LIBRARY_PATH
  13204. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13206. soname_spec='${libname}${release}${shared_ext}$major'
  13207. if test "X$HPUX_IA64_MODE" = X32; then
  13208. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13209. else
  13210. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13211. fi
  13212. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13213. ;;
  13214. hppa*64*)
  13215. shrext_cmds='.sl'
  13216. hardcode_into_libs=yes
  13217. dynamic_linker="$host_os dld.sl"
  13218. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13219. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13221. soname_spec='${libname}${release}${shared_ext}$major'
  13222. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13223. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13224. ;;
  13225. *)
  13226. shrext_cmds='.sl'
  13227. dynamic_linker="$host_os dld.sl"
  13228. shlibpath_var=SHLIB_PATH
  13229. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13231. soname_spec='${libname}${release}${shared_ext}$major'
  13232. ;;
  13233. esac
  13234. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13235. postinstall_cmds='chmod 555 $lib'
  13236. # or fails outright, so override atomically:
  13237. install_override_mode=555
  13238. ;;
  13239. interix[3-9]*)
  13240. version_type=linux # correct to gnu/linux during the next big refactor
  13241. need_lib_prefix=no
  13242. need_version=no
  13243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13244. soname_spec='${libname}${release}${shared_ext}$major'
  13245. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13246. shlibpath_var=LD_LIBRARY_PATH
  13247. shlibpath_overrides_runpath=no
  13248. hardcode_into_libs=yes
  13249. ;;
  13250. irix5* | irix6* | nonstopux*)
  13251. case $host_os in
  13252. nonstopux*) version_type=nonstopux ;;
  13253. *)
  13254. if test "$lt_cv_prog_gnu_ld" = yes; then
  13255. version_type=linux # correct to gnu/linux during the next big refactor
  13256. else
  13257. version_type=irix
  13258. fi ;;
  13259. esac
  13260. need_lib_prefix=no
  13261. need_version=no
  13262. soname_spec='${libname}${release}${shared_ext}$major'
  13263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13264. case $host_os in
  13265. irix5* | nonstopux*)
  13266. libsuff= shlibsuff=
  13267. ;;
  13268. *)
  13269. case $LD in # libtool.m4 will add one of these switches to LD
  13270. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13271. libsuff= shlibsuff= libmagic=32-bit;;
  13272. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13273. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13274. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13275. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13276. *) libsuff= shlibsuff= libmagic=never-match;;
  13277. esac
  13278. ;;
  13279. esac
  13280. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13281. shlibpath_overrides_runpath=no
  13282. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13283. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13284. hardcode_into_libs=yes
  13285. ;;
  13286. # No shared lib support for Linux oldld, aout, or coff.
  13287. linux*oldld* | linux*aout* | linux*coff*)
  13288. dynamic_linker=no
  13289. ;;
  13290. # This must be glibc/ELF.
  13291. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13292. version_type=linux # correct to gnu/linux during the next big refactor
  13293. need_lib_prefix=no
  13294. need_version=no
  13295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13296. soname_spec='${libname}${release}${shared_ext}$major'
  13297. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13298. shlibpath_var=LD_LIBRARY_PATH
  13299. shlibpath_overrides_runpath=no
  13300. # Some binutils ld are patched to set DT_RUNPATH
  13301. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13302. $as_echo_n "(cached) " >&6
  13303. else
  13304. lt_cv_shlibpath_overrides_runpath=no
  13305. save_LDFLAGS=$LDFLAGS
  13306. save_libdir=$libdir
  13307. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13308. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13310. /* end confdefs.h. */
  13311. int
  13312. main ()
  13313. {
  13314. ;
  13315. return 0;
  13316. }
  13317. _ACEOF
  13318. if ac_fn_cxx_try_link "$LINENO"; then :
  13319. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13320. lt_cv_shlibpath_overrides_runpath=yes
  13321. fi
  13322. fi
  13323. rm -f core conftest.err conftest.$ac_objext \
  13324. conftest$ac_exeext conftest.$ac_ext
  13325. LDFLAGS=$save_LDFLAGS
  13326. libdir=$save_libdir
  13327. fi
  13328. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13329. # This implies no fast_install, which is unacceptable.
  13330. # Some rework will be needed to allow for fast_install
  13331. # before this can be enabled.
  13332. hardcode_into_libs=yes
  13333. # Append ld.so.conf contents to the search path
  13334. if test -f /etc/ld.so.conf; then
  13335. 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' ' '`
  13336. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13337. fi
  13338. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13339. # powerpc, because MkLinux only supported shared libraries with the
  13340. # GNU dynamic linker. Since this was broken with cross compilers,
  13341. # most powerpc-linux boxes support dynamic linking these days and
  13342. # people can always --disable-shared, the test was removed, and we
  13343. # assume the GNU/Linux dynamic linker is in use.
  13344. dynamic_linker='GNU/Linux ld.so'
  13345. ;;
  13346. netbsd*)
  13347. version_type=sunos
  13348. need_lib_prefix=no
  13349. need_version=no
  13350. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13352. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13353. dynamic_linker='NetBSD (a.out) ld.so'
  13354. else
  13355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13356. soname_spec='${libname}${release}${shared_ext}$major'
  13357. dynamic_linker='NetBSD ld.elf_so'
  13358. fi
  13359. shlibpath_var=LD_LIBRARY_PATH
  13360. shlibpath_overrides_runpath=yes
  13361. hardcode_into_libs=yes
  13362. ;;
  13363. newsos6)
  13364. version_type=linux # correct to gnu/linux during the next big refactor
  13365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13366. shlibpath_var=LD_LIBRARY_PATH
  13367. shlibpath_overrides_runpath=yes
  13368. ;;
  13369. *nto* | *qnx*)
  13370. version_type=qnx
  13371. need_lib_prefix=no
  13372. need_version=no
  13373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13374. soname_spec='${libname}${release}${shared_ext}$major'
  13375. shlibpath_var=LD_LIBRARY_PATH
  13376. shlibpath_overrides_runpath=no
  13377. hardcode_into_libs=yes
  13378. dynamic_linker='ldqnx.so'
  13379. ;;
  13380. openbsd*)
  13381. version_type=sunos
  13382. sys_lib_dlsearch_path_spec="/usr/lib"
  13383. need_lib_prefix=no
  13384. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13385. case $host_os in
  13386. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13387. *) need_version=no ;;
  13388. esac
  13389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13390. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13391. shlibpath_var=LD_LIBRARY_PATH
  13392. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13393. case $host_os in
  13394. openbsd2.[89] | openbsd2.[89].*)
  13395. shlibpath_overrides_runpath=no
  13396. ;;
  13397. *)
  13398. shlibpath_overrides_runpath=yes
  13399. ;;
  13400. esac
  13401. else
  13402. shlibpath_overrides_runpath=yes
  13403. fi
  13404. ;;
  13405. os2*)
  13406. libname_spec='$name'
  13407. shrext_cmds=".dll"
  13408. need_lib_prefix=no
  13409. library_names_spec='$libname${shared_ext} $libname.a'
  13410. dynamic_linker='OS/2 ld.exe'
  13411. shlibpath_var=LIBPATH
  13412. ;;
  13413. osf3* | osf4* | osf5*)
  13414. version_type=osf
  13415. need_lib_prefix=no
  13416. need_version=no
  13417. soname_spec='${libname}${release}${shared_ext}$major'
  13418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13419. shlibpath_var=LD_LIBRARY_PATH
  13420. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13421. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13422. ;;
  13423. rdos*)
  13424. dynamic_linker=no
  13425. ;;
  13426. solaris*)
  13427. version_type=linux # correct to gnu/linux during the next big refactor
  13428. need_lib_prefix=no
  13429. need_version=no
  13430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13431. soname_spec='${libname}${release}${shared_ext}$major'
  13432. shlibpath_var=LD_LIBRARY_PATH
  13433. shlibpath_overrides_runpath=yes
  13434. hardcode_into_libs=yes
  13435. # ldd complains unless libraries are executable
  13436. postinstall_cmds='chmod +x $lib'
  13437. ;;
  13438. sunos4*)
  13439. version_type=sunos
  13440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13441. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13442. shlibpath_var=LD_LIBRARY_PATH
  13443. shlibpath_overrides_runpath=yes
  13444. if test "$with_gnu_ld" = yes; then
  13445. need_lib_prefix=no
  13446. fi
  13447. need_version=yes
  13448. ;;
  13449. sysv4 | sysv4.3*)
  13450. version_type=linux # correct to gnu/linux during the next big refactor
  13451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13452. soname_spec='${libname}${release}${shared_ext}$major'
  13453. shlibpath_var=LD_LIBRARY_PATH
  13454. case $host_vendor in
  13455. sni)
  13456. shlibpath_overrides_runpath=no
  13457. need_lib_prefix=no
  13458. runpath_var=LD_RUN_PATH
  13459. ;;
  13460. siemens)
  13461. need_lib_prefix=no
  13462. ;;
  13463. motorola)
  13464. need_lib_prefix=no
  13465. need_version=no
  13466. shlibpath_overrides_runpath=no
  13467. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13468. ;;
  13469. esac
  13470. ;;
  13471. sysv4*MP*)
  13472. if test -d /usr/nec ;then
  13473. version_type=linux # correct to gnu/linux during the next big refactor
  13474. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13475. soname_spec='$libname${shared_ext}.$major'
  13476. shlibpath_var=LD_LIBRARY_PATH
  13477. fi
  13478. ;;
  13479. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13480. version_type=freebsd-elf
  13481. need_lib_prefix=no
  13482. need_version=no
  13483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13484. soname_spec='${libname}${release}${shared_ext}$major'
  13485. shlibpath_var=LD_LIBRARY_PATH
  13486. shlibpath_overrides_runpath=yes
  13487. hardcode_into_libs=yes
  13488. if test "$with_gnu_ld" = yes; then
  13489. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13490. else
  13491. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13492. case $host_os in
  13493. sco3.2v5*)
  13494. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13495. ;;
  13496. esac
  13497. fi
  13498. sys_lib_dlsearch_path_spec='/usr/lib'
  13499. ;;
  13500. tpf*)
  13501. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13502. version_type=linux # correct to gnu/linux during the next big refactor
  13503. need_lib_prefix=no
  13504. need_version=no
  13505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13506. shlibpath_var=LD_LIBRARY_PATH
  13507. shlibpath_overrides_runpath=no
  13508. hardcode_into_libs=yes
  13509. ;;
  13510. uts4*)
  13511. version_type=linux # correct to gnu/linux during the next big refactor
  13512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13513. soname_spec='${libname}${release}${shared_ext}$major'
  13514. shlibpath_var=LD_LIBRARY_PATH
  13515. ;;
  13516. *)
  13517. dynamic_linker=no
  13518. ;;
  13519. esac
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13521. $as_echo "$dynamic_linker" >&6; }
  13522. test "$dynamic_linker" = no && can_build_shared=no
  13523. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13524. if test "$GCC" = yes; then
  13525. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13526. fi
  13527. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13528. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13529. fi
  13530. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13531. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13532. fi
  13533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13534. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13535. hardcode_action_CXX=
  13536. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13537. test -n "$runpath_var_CXX" ||
  13538. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13539. # We can hardcode non-existent directories.
  13540. if test "$hardcode_direct_CXX" != no &&
  13541. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13542. # have to relink, otherwise we might link with an installed library
  13543. # when we should be linking with a yet-to-be-installed one
  13544. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13545. test "$hardcode_minus_L_CXX" != no; then
  13546. # Linking always hardcodes the temporary library directory.
  13547. hardcode_action_CXX=relink
  13548. else
  13549. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13550. hardcode_action_CXX=immediate
  13551. fi
  13552. else
  13553. # We cannot hardcode anything, or else we can only hardcode existing
  13554. # directories.
  13555. hardcode_action_CXX=unsupported
  13556. fi
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13558. $as_echo "$hardcode_action_CXX" >&6; }
  13559. if test "$hardcode_action_CXX" = relink ||
  13560. test "$inherit_rpath_CXX" = yes; then
  13561. # Fast installation is not supported
  13562. enable_fast_install=no
  13563. elif test "$shlibpath_overrides_runpath" = yes ||
  13564. test "$enable_shared" = no; then
  13565. # Fast installation is not necessary
  13566. enable_fast_install=needless
  13567. fi
  13568. fi # test -n "$compiler"
  13569. CC=$lt_save_CC
  13570. CFLAGS=$lt_save_CFLAGS
  13571. LDCXX=$LD
  13572. LD=$lt_save_LD
  13573. GCC=$lt_save_GCC
  13574. with_gnu_ld=$lt_save_with_gnu_ld
  13575. lt_cv_path_LDCXX=$lt_cv_path_LD
  13576. lt_cv_path_LD=$lt_save_path_LD
  13577. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13578. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13579. fi # test "$_lt_caught_CXX_error" != yes
  13580. ac_ext=c
  13581. ac_cpp='$CPP $CPPFLAGS'
  13582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13585. # Find a good install program. We prefer a C program (faster),
  13586. # so one script is as good as another. But avoid the broken or
  13587. # incompatible versions:
  13588. # SysV /etc/install, /usr/sbin/install
  13589. # SunOS /usr/etc/install
  13590. # IRIX /sbin/install
  13591. # AIX /bin/install
  13592. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13593. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13594. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13595. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13596. # OS/2's system install, which has a completely different semantic
  13597. # ./install, which can be erroneously created by make from ./install.sh.
  13598. # Reject install programs that cannot install multiple files.
  13599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13600. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13601. if test -z "$INSTALL"; then
  13602. if ${ac_cv_path_install+:} false; then :
  13603. $as_echo_n "(cached) " >&6
  13604. else
  13605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13606. for as_dir in $PATH
  13607. do
  13608. IFS=$as_save_IFS
  13609. test -z "$as_dir" && as_dir=.
  13610. # Account for people who put trailing slashes in PATH elements.
  13611. case $as_dir/ in #((
  13612. ./ | .// | /[cC]/* | \
  13613. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13614. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13615. /usr/ucb/* ) ;;
  13616. *)
  13617. # OSF1 and SCO ODT 3.0 have their own names for install.
  13618. # Don't use installbsd from OSF since it installs stuff as root
  13619. # by default.
  13620. for ac_prog in ginstall scoinst install; do
  13621. for ac_exec_ext in '' $ac_executable_extensions; do
  13622. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13623. if test $ac_prog = install &&
  13624. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13625. # AIX install. It has an incompatible calling convention.
  13626. :
  13627. elif test $ac_prog = install &&
  13628. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13629. # program-specific install script used by HP pwplus--don't use.
  13630. :
  13631. else
  13632. rm -rf conftest.one conftest.two conftest.dir
  13633. echo one > conftest.one
  13634. echo two > conftest.two
  13635. mkdir conftest.dir
  13636. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13637. test -s conftest.one && test -s conftest.two &&
  13638. test -s conftest.dir/conftest.one &&
  13639. test -s conftest.dir/conftest.two
  13640. then
  13641. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13642. break 3
  13643. fi
  13644. fi
  13645. fi
  13646. done
  13647. done
  13648. ;;
  13649. esac
  13650. done
  13651. IFS=$as_save_IFS
  13652. rm -rf conftest.one conftest.two conftest.dir
  13653. fi
  13654. if test "${ac_cv_path_install+set}" = set; then
  13655. INSTALL=$ac_cv_path_install
  13656. else
  13657. # As a last resort, use the slow shell script. Don't cache a
  13658. # value for INSTALL within a source directory, because that will
  13659. # break other packages using the cache if that directory is
  13660. # removed, or if the value is a relative name.
  13661. INSTALL=$ac_install_sh
  13662. fi
  13663. fi
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13665. $as_echo "$INSTALL" >&6; }
  13666. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13667. # It thinks the first close brace ends the variable substitution.
  13668. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13669. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13670. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13672. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13673. set x ${MAKE-make}
  13674. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13675. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13676. $as_echo_n "(cached) " >&6
  13677. else
  13678. cat >conftest.make <<\_ACEOF
  13679. SHELL = /bin/sh
  13680. all:
  13681. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13682. _ACEOF
  13683. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13684. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13685. *@@@%%%=?*=@@@%%%*)
  13686. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13687. *)
  13688. eval ac_cv_prog_make_${ac_make}_set=no;;
  13689. esac
  13690. rm -f conftest.make
  13691. fi
  13692. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13694. $as_echo "yes" >&6; }
  13695. SET_MAKE=
  13696. else
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13698. $as_echo "no" >&6; }
  13699. SET_MAKE="MAKE=${MAKE-make}"
  13700. fi
  13701. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13702. if test -n "$ac_tool_prefix"; then
  13703. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13704. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13706. $as_echo_n "checking for $ac_word... " >&6; }
  13707. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13708. $as_echo_n "(cached) " >&6
  13709. else
  13710. case $PKG_CONFIG in
  13711. [\\/]* | ?:[\\/]*)
  13712. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13713. ;;
  13714. *)
  13715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13716. for as_dir in $PATH
  13717. do
  13718. IFS=$as_save_IFS
  13719. test -z "$as_dir" && as_dir=.
  13720. for ac_exec_ext in '' $ac_executable_extensions; do
  13721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13722. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13724. break 2
  13725. fi
  13726. done
  13727. done
  13728. IFS=$as_save_IFS
  13729. ;;
  13730. esac
  13731. fi
  13732. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13733. if test -n "$PKG_CONFIG"; then
  13734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13735. $as_echo "$PKG_CONFIG" >&6; }
  13736. else
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13738. $as_echo "no" >&6; }
  13739. fi
  13740. fi
  13741. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13742. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13743. # Extract the first word of "pkg-config", so it can be a program name with args.
  13744. set dummy pkg-config; ac_word=$2
  13745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13746. $as_echo_n "checking for $ac_word... " >&6; }
  13747. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13748. $as_echo_n "(cached) " >&6
  13749. else
  13750. case $ac_pt_PKG_CONFIG in
  13751. [\\/]* | ?:[\\/]*)
  13752. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13753. ;;
  13754. *)
  13755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13756. for as_dir in $PATH
  13757. do
  13758. IFS=$as_save_IFS
  13759. test -z "$as_dir" && as_dir=.
  13760. for ac_exec_ext in '' $ac_executable_extensions; do
  13761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13762. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13764. break 2
  13765. fi
  13766. done
  13767. done
  13768. IFS=$as_save_IFS
  13769. ;;
  13770. esac
  13771. fi
  13772. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13773. if test -n "$ac_pt_PKG_CONFIG"; then
  13774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13775. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13776. else
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13778. $as_echo "no" >&6; }
  13779. fi
  13780. if test "x$ac_pt_PKG_CONFIG" = x; then
  13781. PKG_CONFIG=""
  13782. else
  13783. case $cross_compiling:$ac_tool_warned in
  13784. yes:)
  13785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13787. ac_tool_warned=yes ;;
  13788. esac
  13789. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13790. fi
  13791. else
  13792. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13793. fi
  13794. fi
  13795. if test -n "$PKG_CONFIG"; then
  13796. _pkg_min_version=0.9.0
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13798. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13799. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13801. $as_echo "yes" >&6; }
  13802. else
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13804. $as_echo "no" >&6; }
  13805. PKG_CONFIG=""
  13806. fi
  13807. fi
  13808. case "$host" in
  13809. *-*-mingw32*)
  13810. # Except on msys, where make can't handle full pathnames (bug 1972)
  13811. ;;
  13812. *)
  13813. srcdir=`cd $srcdir && pwd`
  13814. ;;
  13815. esac
  13816. INCLUDE="-I$srcdir/include"
  13817. case "$host" in
  13818. *-*-nto-qnx*)
  13819. ;;
  13820. *)
  13821. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13822. ;;
  13823. esac
  13824. if test x$srcdir != x.; then
  13825. INCLUDE="-Iinclude $INCLUDE"
  13826. elif test -d .hg; then
  13827. as_fn_error $? "
  13828. *** When building from Mercurial you should configure and build in a
  13829. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13830. " "$LINENO" 5
  13831. fi
  13832. BASE_CFLAGS=""
  13833. BASE_LDFLAGS=""
  13834. case "$host" in
  13835. *-*-cygwin*)
  13836. # We build SDL on cygwin without the UNIX emulation layer
  13837. save_CFLAGS="$CFLAGS"
  13838. have_no_cygwin=no
  13839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13840. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13841. CFLAGS="$save_CFLAGS -mno-cygwin"
  13842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13843. /* end confdefs.h. */
  13844. int
  13845. main ()
  13846. {
  13847. ;
  13848. return 0;
  13849. }
  13850. _ACEOF
  13851. if ac_fn_c_try_compile "$LINENO"; then :
  13852. have_no_cygwin=yes
  13853. fi
  13854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13856. $as_echo "$have_no_cygwin" >&6; }
  13857. CFLAGS="$save_CFLAGS"
  13858. if test x$have_no_cygwin = xyes; then
  13859. BASE_CFLAGS="-mno-cygwin"
  13860. BASE_LDFLAGS="-mno-cygwin"
  13861. fi
  13862. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13863. ;;
  13864. esac
  13865. # Uncomment the following line if you want to force SDL and applications
  13866. # built with it to be compiled for a particular architecture.
  13867. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13868. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13869. # The default optimization for SDL is -O3 (Bug #31)
  13870. if test "x$orig_CFLAGS" = x; then
  13871. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13872. fi
  13873. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13874. BUILD_LDFLAGS="$LDFLAGS"
  13875. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13876. ## These are common directories to find software packages
  13877. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13878. # if test -d $path/include; then
  13879. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13880. # fi
  13881. # if test -d $path/lib; then
  13882. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13883. # fi
  13884. #done
  13885. SDL_CFLAGS="$BASE_CFLAGS"
  13886. SDL_LIBS="-lSDL2"
  13887. if test "x$BASE_LDFLAGS" != x; then
  13888. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13889. fi
  13890. if test "x$EXTRA_CFLAGS" != x; then
  13891. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13892. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13893. fi
  13894. if test "x$EXTRA_LDFLAGS" != x; then
  13895. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13896. fi
  13897. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13898. find_lib()
  13899. {
  13900. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13901. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13902. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13903. if test "$cross_compiling" = yes; then
  13904. host_lib_path=""
  13905. else
  13906. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13907. fi
  13908. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13909. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13910. if test x$lib != x; then
  13911. echo $lib
  13912. return
  13913. fi
  13914. done
  13915. # Try again, this time allowing more than one version digit after the .so
  13916. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13917. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13918. if test x$lib != x; then
  13919. echo $lib
  13920. return
  13921. fi
  13922. done
  13923. }
  13924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13925. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13926. if ${ac_cv_c_const+:} false; then :
  13927. $as_echo_n "(cached) " >&6
  13928. else
  13929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13930. /* end confdefs.h. */
  13931. int
  13932. main ()
  13933. {
  13934. #ifndef __cplusplus
  13935. /* Ultrix mips cc rejects this sort of thing. */
  13936. typedef int charset[2];
  13937. const charset cs = { 0, 0 };
  13938. /* SunOS 4.1.1 cc rejects this. */
  13939. char const *const *pcpcc;
  13940. char **ppc;
  13941. /* NEC SVR4.0.2 mips cc rejects this. */
  13942. struct point {int x, y;};
  13943. static struct point const zero = {0,0};
  13944. /* AIX XL C 1.02.0.0 rejects this.
  13945. It does not let you subtract one const X* pointer from another in
  13946. an arm of an if-expression whose if-part is not a constant
  13947. expression */
  13948. const char *g = "string";
  13949. pcpcc = &g + (g ? g-g : 0);
  13950. /* HPUX 7.0 cc rejects these. */
  13951. ++pcpcc;
  13952. ppc = (char**) pcpcc;
  13953. pcpcc = (char const *const *) ppc;
  13954. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13955. char tx;
  13956. char *t = &tx;
  13957. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13958. *t++ = 0;
  13959. if (s) return 0;
  13960. }
  13961. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13962. int x[] = {25, 17};
  13963. const int *foo = &x[0];
  13964. ++foo;
  13965. }
  13966. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13967. typedef const int *iptr;
  13968. iptr p = 0;
  13969. ++p;
  13970. }
  13971. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13972. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13973. struct s { int j; const int *ap[3]; } bx;
  13974. struct s *b = &bx; b->j = 5;
  13975. }
  13976. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13977. const int foo = 10;
  13978. if (!foo) return 0;
  13979. }
  13980. return !cs[0] && !zero.x;
  13981. #endif
  13982. ;
  13983. return 0;
  13984. }
  13985. _ACEOF
  13986. if ac_fn_c_try_compile "$LINENO"; then :
  13987. ac_cv_c_const=yes
  13988. else
  13989. ac_cv_c_const=no
  13990. fi
  13991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13994. $as_echo "$ac_cv_c_const" >&6; }
  13995. if test $ac_cv_c_const = no; then
  13996. $as_echo "#define const /**/" >>confdefs.h
  13997. fi
  13998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13999. $as_echo_n "checking for inline... " >&6; }
  14000. if ${ac_cv_c_inline+:} false; then :
  14001. $as_echo_n "(cached) " >&6
  14002. else
  14003. ac_cv_c_inline=no
  14004. for ac_kw in inline __inline__ __inline; do
  14005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14006. /* end confdefs.h. */
  14007. #ifndef __cplusplus
  14008. typedef int foo_t;
  14009. static $ac_kw foo_t static_foo () {return 0; }
  14010. $ac_kw foo_t foo () {return 0; }
  14011. #endif
  14012. _ACEOF
  14013. if ac_fn_c_try_compile "$LINENO"; then :
  14014. ac_cv_c_inline=$ac_kw
  14015. fi
  14016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14017. test "$ac_cv_c_inline" != no && break
  14018. done
  14019. fi
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14021. $as_echo "$ac_cv_c_inline" >&6; }
  14022. case $ac_cv_c_inline in
  14023. inline | yes) ;;
  14024. *)
  14025. case $ac_cv_c_inline in
  14026. no) ac_val=;;
  14027. *) ac_val=$ac_cv_c_inline;;
  14028. esac
  14029. cat >>confdefs.h <<_ACEOF
  14030. #ifndef __cplusplus
  14031. #define inline $ac_val
  14032. #endif
  14033. _ACEOF
  14034. ;;
  14035. esac
  14036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14037. $as_echo_n "checking for working volatile... " >&6; }
  14038. if ${ac_cv_c_volatile+:} false; then :
  14039. $as_echo_n "(cached) " >&6
  14040. else
  14041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14042. /* end confdefs.h. */
  14043. int
  14044. main ()
  14045. {
  14046. volatile int x;
  14047. int * volatile y = (int *) 0;
  14048. return !x && !y;
  14049. ;
  14050. return 0;
  14051. }
  14052. _ACEOF
  14053. if ac_fn_c_try_compile "$LINENO"; then :
  14054. ac_cv_c_volatile=yes
  14055. else
  14056. ac_cv_c_volatile=no
  14057. fi
  14058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14059. fi
  14060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14061. $as_echo "$ac_cv_c_volatile" >&6; }
  14062. if test $ac_cv_c_volatile = no; then
  14063. $as_echo "#define volatile /**/" >>confdefs.h
  14064. fi
  14065. # Check whether --enable-assertions was given.
  14066. if test "${enable_assertions+set}" = set; then :
  14067. enableval=$enable_assertions;
  14068. else
  14069. enable_assertions=auto
  14070. fi
  14071. case "$enable_assertions" in
  14072. auto) # Use optimization settings to determine assertion level
  14073. ;;
  14074. disabled)
  14075. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14076. ;;
  14077. release)
  14078. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14079. ;;
  14080. enabled)
  14081. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14082. ;;
  14083. paranoid)
  14084. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14085. ;;
  14086. *)
  14087. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14088. ;;
  14089. esac
  14090. # Check whether --enable-dependency-tracking was given.
  14091. if test "${enable_dependency_tracking+set}" = set; then :
  14092. enableval=$enable_dependency_tracking;
  14093. else
  14094. enable_dependency_tracking=yes
  14095. fi
  14096. if test x$enable_dependency_tracking = xyes; then
  14097. have_gcc_mmd_mt=no
  14098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14099. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14101. /* end confdefs.h. */
  14102. #if !defined(__GNUC__) || __GNUC__ < 3
  14103. #error Dependency tracking requires GCC 3.0 or newer
  14104. #endif
  14105. int
  14106. main ()
  14107. {
  14108. ;
  14109. return 0;
  14110. }
  14111. _ACEOF
  14112. if ac_fn_c_try_compile "$LINENO"; then :
  14113. have_gcc_mmd_mt=yes
  14114. fi
  14115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14117. $as_echo "$have_gcc_mmd_mt" >&6; }
  14118. if test x$have_gcc_mmd_mt = xyes; then
  14119. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14120. fi
  14121. fi
  14122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14123. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14124. have_no_undefined=no
  14125. case "$host" in
  14126. *-*-openbsd*)
  14127. ;;
  14128. *)
  14129. save_LDFLAGS="$LDFLAGS"
  14130. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14132. /* end confdefs.h. */
  14133. int
  14134. main ()
  14135. {
  14136. ;
  14137. return 0;
  14138. }
  14139. _ACEOF
  14140. if ac_fn_c_try_link "$LINENO"; then :
  14141. have_no_undefined=yes
  14142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14143. fi
  14144. rm -f core conftest.err conftest.$ac_objext \
  14145. conftest$ac_exeext conftest.$ac_ext
  14146. LDFLAGS="$save_LDFLAGS"
  14147. ;;
  14148. esac
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14150. $as_echo "$have_no_undefined" >&6; }
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14152. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14153. have_dynamicbase=no
  14154. case "$host" in
  14155. *)
  14156. save_LDFLAGS="$LDFLAGS"
  14157. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14159. /* end confdefs.h. */
  14160. int
  14161. main ()
  14162. {
  14163. ;
  14164. return 0;
  14165. }
  14166. _ACEOF
  14167. if ac_fn_c_try_link "$LINENO"; then :
  14168. have_dynamicbase=yes
  14169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14170. fi
  14171. rm -f core conftest.err conftest.$ac_objext \
  14172. conftest$ac_exeext conftest.$ac_ext
  14173. LDFLAGS="$save_LDFLAGS"
  14174. ;;
  14175. esac
  14176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14177. $as_echo "$have_dynamicbase" >&6; }
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14179. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14180. have_nxcompat=no
  14181. case "$host" in
  14182. *)
  14183. save_LDFLAGS="$LDFLAGS"
  14184. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14186. /* end confdefs.h. */
  14187. int
  14188. main ()
  14189. {
  14190. ;
  14191. return 0;
  14192. }
  14193. _ACEOF
  14194. if ac_fn_c_try_link "$LINENO"; then :
  14195. have_nxcompat=yes
  14196. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14197. fi
  14198. rm -f core conftest.err conftest.$ac_objext \
  14199. conftest$ac_exeext conftest.$ac_ext
  14200. LDFLAGS="$save_LDFLAGS"
  14201. ;;
  14202. esac
  14203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14204. $as_echo "$have_nxcompat" >&6; }
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14206. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14207. have_high_entropy_va=no
  14208. case "$host" in
  14209. *)
  14210. save_LDFLAGS="$LDFLAGS"
  14211. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14213. /* end confdefs.h. */
  14214. int
  14215. main ()
  14216. {
  14217. ;
  14218. return 0;
  14219. }
  14220. _ACEOF
  14221. if ac_fn_c_try_link "$LINENO"; then :
  14222. have_high_entropy_va=yes
  14223. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14224. fi
  14225. rm -f core conftest.err conftest.$ac_objext \
  14226. conftest$ac_exeext conftest.$ac_ext
  14227. LDFLAGS="$save_LDFLAGS"
  14228. ;;
  14229. esac
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14231. $as_echo "$have_high_entropy_va" >&6; }
  14232. # Check whether --enable-libc was given.
  14233. if test "${enable_libc+set}" = set; then :
  14234. enableval=$enable_libc;
  14235. else
  14236. enable_libc=yes
  14237. fi
  14238. if test x$enable_libc = xyes; then
  14239. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14241. $as_echo_n "checking for ANSI C header files... " >&6; }
  14242. if ${ac_cv_header_stdc+:} false; then :
  14243. $as_echo_n "(cached) " >&6
  14244. else
  14245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14246. /* end confdefs.h. */
  14247. #include <stdlib.h>
  14248. #include <stdarg.h>
  14249. #include <string.h>
  14250. #include <float.h>
  14251. int
  14252. main ()
  14253. {
  14254. ;
  14255. return 0;
  14256. }
  14257. _ACEOF
  14258. if ac_fn_c_try_compile "$LINENO"; then :
  14259. ac_cv_header_stdc=yes
  14260. else
  14261. ac_cv_header_stdc=no
  14262. fi
  14263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14264. if test $ac_cv_header_stdc = yes; then
  14265. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14267. /* end confdefs.h. */
  14268. #include <string.h>
  14269. _ACEOF
  14270. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14271. $EGREP "memchr" >/dev/null 2>&1; then :
  14272. else
  14273. ac_cv_header_stdc=no
  14274. fi
  14275. rm -f conftest*
  14276. fi
  14277. if test $ac_cv_header_stdc = yes; then
  14278. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14280. /* end confdefs.h. */
  14281. #include <stdlib.h>
  14282. _ACEOF
  14283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14284. $EGREP "free" >/dev/null 2>&1; then :
  14285. else
  14286. ac_cv_header_stdc=no
  14287. fi
  14288. rm -f conftest*
  14289. fi
  14290. if test $ac_cv_header_stdc = yes; then
  14291. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14292. if test "$cross_compiling" = yes; then :
  14293. :
  14294. else
  14295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14296. /* end confdefs.h. */
  14297. #include <ctype.h>
  14298. #include <stdlib.h>
  14299. #if ((' ' & 0x0FF) == 0x020)
  14300. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14301. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14302. #else
  14303. # define ISLOWER(c) \
  14304. (('a' <= (c) && (c) <= 'i') \
  14305. || ('j' <= (c) && (c) <= 'r') \
  14306. || ('s' <= (c) && (c) <= 'z'))
  14307. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14308. #endif
  14309. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14310. int
  14311. main ()
  14312. {
  14313. int i;
  14314. for (i = 0; i < 256; i++)
  14315. if (XOR (islower (i), ISLOWER (i))
  14316. || toupper (i) != TOUPPER (i))
  14317. return 2;
  14318. return 0;
  14319. }
  14320. _ACEOF
  14321. if ac_fn_c_try_run "$LINENO"; then :
  14322. else
  14323. ac_cv_header_stdc=no
  14324. fi
  14325. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14326. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14327. fi
  14328. fi
  14329. fi
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14331. $as_echo "$ac_cv_header_stdc" >&6; }
  14332. if test $ac_cv_header_stdc = yes; then
  14333. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14334. fi
  14335. 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
  14336. do :
  14337. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14338. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14339. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14340. cat >>confdefs.h <<_ACEOF
  14341. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14342. _ACEOF
  14343. fi
  14344. done
  14345. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14346. if test "x$ac_cv_type_size_t" = xyes; then :
  14347. else
  14348. cat >>confdefs.h <<_ACEOF
  14349. #define size_t unsigned int
  14350. _ACEOF
  14351. fi
  14352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14353. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14354. if ${ac_cv_define_M_PI+:} false; then :
  14355. $as_echo_n "(cached) " >&6
  14356. else
  14357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14358. /* end confdefs.h. */
  14359. #include <math.h>
  14360. #ifdef M_PI
  14361. YES_IS_DEFINED
  14362. #endif
  14363. _ACEOF
  14364. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14365. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14366. ac_cv_define_M_PI=yes
  14367. else
  14368. ac_cv_define_M_PI=no
  14369. fi
  14370. rm -f conftest*
  14371. fi
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14373. $as_echo "$ac_cv_define_M_PI" >&6; }
  14374. if test "$ac_cv_define_M_PI" = "yes" ; then
  14375. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14376. fi
  14377. case "$host" in
  14378. *-*-cygwin* | *-*-mingw32*)
  14379. ;;
  14380. *)
  14381. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14382. # for constant arguments. Useless!
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14384. $as_echo_n "checking for working alloca.h... " >&6; }
  14385. if ${ac_cv_working_alloca_h+:} false; then :
  14386. $as_echo_n "(cached) " >&6
  14387. else
  14388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14389. /* end confdefs.h. */
  14390. #include <alloca.h>
  14391. int
  14392. main ()
  14393. {
  14394. char *p = (char *) alloca (2 * sizeof (int));
  14395. if (p) return 0;
  14396. ;
  14397. return 0;
  14398. }
  14399. _ACEOF
  14400. if ac_fn_c_try_link "$LINENO"; then :
  14401. ac_cv_working_alloca_h=yes
  14402. else
  14403. ac_cv_working_alloca_h=no
  14404. fi
  14405. rm -f core conftest.err conftest.$ac_objext \
  14406. conftest$ac_exeext conftest.$ac_ext
  14407. fi
  14408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14409. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14410. if test $ac_cv_working_alloca_h = yes; then
  14411. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14412. fi
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14414. $as_echo_n "checking for alloca... " >&6; }
  14415. if ${ac_cv_func_alloca_works+:} false; then :
  14416. $as_echo_n "(cached) " >&6
  14417. else
  14418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14419. /* end confdefs.h. */
  14420. #ifdef __GNUC__
  14421. # define alloca __builtin_alloca
  14422. #else
  14423. # ifdef _MSC_VER
  14424. # include <malloc.h>
  14425. # define alloca _alloca
  14426. # else
  14427. # ifdef HAVE_ALLOCA_H
  14428. # include <alloca.h>
  14429. # else
  14430. # ifdef _AIX
  14431. #pragma alloca
  14432. # else
  14433. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14434. void *alloca (size_t);
  14435. # endif
  14436. # endif
  14437. # endif
  14438. # endif
  14439. #endif
  14440. int
  14441. main ()
  14442. {
  14443. char *p = (char *) alloca (1);
  14444. if (p) return 0;
  14445. ;
  14446. return 0;
  14447. }
  14448. _ACEOF
  14449. if ac_fn_c_try_link "$LINENO"; then :
  14450. ac_cv_func_alloca_works=yes
  14451. else
  14452. ac_cv_func_alloca_works=no
  14453. fi
  14454. rm -f core conftest.err conftest.$ac_objext \
  14455. conftest$ac_exeext conftest.$ac_ext
  14456. fi
  14457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14458. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14459. if test $ac_cv_func_alloca_works = yes; then
  14460. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14461. else
  14462. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14463. # that cause trouble. Some versions do not even contain alloca or
  14464. # contain a buggy version. If you still want to use their alloca,
  14465. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14466. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14467. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14469. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14470. if ${ac_cv_os_cray+:} false; then :
  14471. $as_echo_n "(cached) " >&6
  14472. else
  14473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14474. /* end confdefs.h. */
  14475. #if defined CRAY && ! defined CRAY2
  14476. webecray
  14477. #else
  14478. wenotbecray
  14479. #endif
  14480. _ACEOF
  14481. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14482. $EGREP "webecray" >/dev/null 2>&1; then :
  14483. ac_cv_os_cray=yes
  14484. else
  14485. ac_cv_os_cray=no
  14486. fi
  14487. rm -f conftest*
  14488. fi
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14490. $as_echo "$ac_cv_os_cray" >&6; }
  14491. if test $ac_cv_os_cray = yes; then
  14492. for ac_func in _getb67 GETB67 getb67; do
  14493. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14494. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14495. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14496. cat >>confdefs.h <<_ACEOF
  14497. #define CRAY_STACKSEG_END $ac_func
  14498. _ACEOF
  14499. break
  14500. fi
  14501. done
  14502. fi
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14504. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14505. if ${ac_cv_c_stack_direction+:} false; then :
  14506. $as_echo_n "(cached) " >&6
  14507. else
  14508. if test "$cross_compiling" = yes; then :
  14509. ac_cv_c_stack_direction=0
  14510. else
  14511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14512. /* end confdefs.h. */
  14513. $ac_includes_default
  14514. int
  14515. find_stack_direction (int *addr, int depth)
  14516. {
  14517. int dir, dummy = 0;
  14518. if (! addr)
  14519. addr = &dummy;
  14520. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14521. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14522. return dir + dummy;
  14523. }
  14524. int
  14525. main (int argc, char **argv)
  14526. {
  14527. return find_stack_direction (0, argc + !argv + 20) < 0;
  14528. }
  14529. _ACEOF
  14530. if ac_fn_c_try_run "$LINENO"; then :
  14531. ac_cv_c_stack_direction=1
  14532. else
  14533. ac_cv_c_stack_direction=-1
  14534. fi
  14535. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14536. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14537. fi
  14538. fi
  14539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14540. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14541. cat >>confdefs.h <<_ACEOF
  14542. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14543. _ACEOF
  14544. fi
  14545. ;;
  14546. esac
  14547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14548. $as_echo_n "checking for working memcmp... " >&6; }
  14549. if ${ac_cv_func_memcmp_working+:} false; then :
  14550. $as_echo_n "(cached) " >&6
  14551. else
  14552. if test "$cross_compiling" = yes; then :
  14553. ac_cv_func_memcmp_working=no
  14554. else
  14555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14556. /* end confdefs.h. */
  14557. $ac_includes_default
  14558. int
  14559. main ()
  14560. {
  14561. /* Some versions of memcmp are not 8-bit clean. */
  14562. char c0 = '\100', c1 = '\200', c2 = '\201';
  14563. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14564. return 1;
  14565. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14566. or more and with at least one buffer not starting on a 4-byte boundary.
  14567. William Lewis provided this test program. */
  14568. {
  14569. char foo[21];
  14570. char bar[21];
  14571. int i;
  14572. for (i = 0; i < 4; i++)
  14573. {
  14574. char *a = foo + i;
  14575. char *b = bar + i;
  14576. strcpy (a, "--------01111111");
  14577. strcpy (b, "--------10000000");
  14578. if (memcmp (a, b, 16) >= 0)
  14579. return 1;
  14580. }
  14581. return 0;
  14582. }
  14583. ;
  14584. return 0;
  14585. }
  14586. _ACEOF
  14587. if ac_fn_c_try_run "$LINENO"; then :
  14588. ac_cv_func_memcmp_working=yes
  14589. else
  14590. ac_cv_func_memcmp_working=no
  14591. fi
  14592. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14593. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14594. fi
  14595. fi
  14596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14597. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14598. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14599. *" memcmp.$ac_objext "* ) ;;
  14600. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14601. ;;
  14602. esac
  14603. if test x$ac_cv_func_memcmp_working = xyes; then
  14604. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14605. fi
  14606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14607. $as_echo_n "checking for working strtod... " >&6; }
  14608. if ${ac_cv_func_strtod+:} false; then :
  14609. $as_echo_n "(cached) " >&6
  14610. else
  14611. if test "$cross_compiling" = yes; then :
  14612. ac_cv_func_strtod=no
  14613. else
  14614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14615. /* end confdefs.h. */
  14616. $ac_includes_default
  14617. #ifndef strtod
  14618. double strtod ();
  14619. #endif
  14620. int
  14621. main()
  14622. {
  14623. {
  14624. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14625. char *string = " +69";
  14626. char *term;
  14627. double value;
  14628. value = strtod (string, &term);
  14629. if (value != 69 || term != (string + 4))
  14630. return 1;
  14631. }
  14632. {
  14633. /* Under Solaris 2.4, strtod returns the wrong value for the
  14634. terminating character under some conditions. */
  14635. char *string = "NaN";
  14636. char *term;
  14637. strtod (string, &term);
  14638. if (term != string && *(term - 1) == 0)
  14639. return 1;
  14640. }
  14641. return 0;
  14642. }
  14643. _ACEOF
  14644. if ac_fn_c_try_run "$LINENO"; then :
  14645. ac_cv_func_strtod=yes
  14646. else
  14647. ac_cv_func_strtod=no
  14648. fi
  14649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14650. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14651. fi
  14652. fi
  14653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14654. $as_echo "$ac_cv_func_strtod" >&6; }
  14655. if test $ac_cv_func_strtod = no; then
  14656. case " $LIBOBJS " in
  14657. *" strtod.$ac_objext "* ) ;;
  14658. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14659. ;;
  14660. esac
  14661. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14662. if test "x$ac_cv_func_pow" = xyes; then :
  14663. fi
  14664. if test $ac_cv_func_pow = no; then
  14665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14666. $as_echo_n "checking for pow in -lm... " >&6; }
  14667. if ${ac_cv_lib_m_pow+:} false; then :
  14668. $as_echo_n "(cached) " >&6
  14669. else
  14670. ac_check_lib_save_LIBS=$LIBS
  14671. LIBS="-lm $LIBS"
  14672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14673. /* end confdefs.h. */
  14674. /* Override any GCC internal prototype to avoid an error.
  14675. Use char because int might match the return type of a GCC
  14676. builtin and then its argument prototype would still apply. */
  14677. #ifdef __cplusplus
  14678. extern "C"
  14679. #endif
  14680. char pow ();
  14681. int
  14682. main ()
  14683. {
  14684. return pow ();
  14685. ;
  14686. return 0;
  14687. }
  14688. _ACEOF
  14689. if ac_fn_c_try_link "$LINENO"; then :
  14690. ac_cv_lib_m_pow=yes
  14691. else
  14692. ac_cv_lib_m_pow=no
  14693. fi
  14694. rm -f core conftest.err conftest.$ac_objext \
  14695. conftest$ac_exeext conftest.$ac_ext
  14696. LIBS=$ac_check_lib_save_LIBS
  14697. fi
  14698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14699. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14700. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14701. POW_LIB=-lm
  14702. else
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14704. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14705. fi
  14706. fi
  14707. fi
  14708. if test x$ac_cv_func_strtod = xyes; then
  14709. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14710. fi
  14711. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14712. if test "x$ac_cv_func_mprotect" = xyes; then :
  14713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14714. /* end confdefs.h. */
  14715. #include <sys/types.h>
  14716. #include <sys/mman.h>
  14717. int
  14718. main ()
  14719. {
  14720. ;
  14721. return 0;
  14722. }
  14723. _ACEOF
  14724. if ac_fn_c_try_compile "$LINENO"; then :
  14725. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14726. fi
  14727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14728. fi
  14729. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  14730. do :
  14731. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14732. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14733. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14734. cat >>confdefs.h <<_ACEOF
  14735. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14736. _ACEOF
  14737. fi
  14738. done
  14739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14740. $as_echo_n "checking for pow in -lm... " >&6; }
  14741. if ${ac_cv_lib_m_pow+:} false; then :
  14742. $as_echo_n "(cached) " >&6
  14743. else
  14744. ac_check_lib_save_LIBS=$LIBS
  14745. LIBS="-lm $LIBS"
  14746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14747. /* end confdefs.h. */
  14748. /* Override any GCC internal prototype to avoid an error.
  14749. Use char because int might match the return type of a GCC
  14750. builtin and then its argument prototype would still apply. */
  14751. #ifdef __cplusplus
  14752. extern "C"
  14753. #endif
  14754. char pow ();
  14755. int
  14756. main ()
  14757. {
  14758. return pow ();
  14759. ;
  14760. return 0;
  14761. }
  14762. _ACEOF
  14763. if ac_fn_c_try_link "$LINENO"; then :
  14764. ac_cv_lib_m_pow=yes
  14765. else
  14766. ac_cv_lib_m_pow=no
  14767. fi
  14768. rm -f core conftest.err conftest.$ac_objext \
  14769. conftest$ac_exeext conftest.$ac_ext
  14770. LIBS=$ac_check_lib_save_LIBS
  14771. fi
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14773. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14774. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14775. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14776. fi
  14777. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14778. do :
  14779. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14780. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14781. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14782. cat >>confdefs.h <<_ACEOF
  14783. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14784. _ACEOF
  14785. fi
  14786. done
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14788. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14789. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14790. $as_echo_n "(cached) " >&6
  14791. else
  14792. ac_check_lib_save_LIBS=$LIBS
  14793. LIBS="-liconv $LIBS"
  14794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14795. /* end confdefs.h. */
  14796. /* Override any GCC internal prototype to avoid an error.
  14797. Use char because int might match the return type of a GCC
  14798. builtin and then its argument prototype would still apply. */
  14799. #ifdef __cplusplus
  14800. extern "C"
  14801. #endif
  14802. char iconv_open ();
  14803. int
  14804. main ()
  14805. {
  14806. return iconv_open ();
  14807. ;
  14808. return 0;
  14809. }
  14810. _ACEOF
  14811. if ac_fn_c_try_link "$LINENO"; then :
  14812. ac_cv_lib_iconv_iconv_open=yes
  14813. else
  14814. ac_cv_lib_iconv_iconv_open=no
  14815. fi
  14816. rm -f core conftest.err conftest.$ac_objext \
  14817. conftest$ac_exeext conftest.$ac_ext
  14818. LIBS=$ac_check_lib_save_LIBS
  14819. fi
  14820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14821. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14822. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14823. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14824. fi
  14825. for ac_func in iconv
  14826. do :
  14827. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14828. if test "x$ac_cv_func_iconv" = xyes; then :
  14829. cat >>confdefs.h <<_ACEOF
  14830. #define HAVE_ICONV 1
  14831. _ACEOF
  14832. fi
  14833. done
  14834. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14835. "
  14836. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14837. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14838. fi
  14839. for ac_header in libunwind.h
  14840. do :
  14841. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14842. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14843. cat >>confdefs.h <<_ACEOF
  14844. #define HAVE_LIBUNWIND_H 1
  14845. _ACEOF
  14846. fi
  14847. done
  14848. fi
  14849. # Check whether --enable-gcc-atomics was given.
  14850. if test "${enable_gcc_atomics+set}" = set; then :
  14851. enableval=$enable_gcc_atomics;
  14852. else
  14853. enable_gcc_atomics=yes
  14854. fi
  14855. if test x$enable_gcc_atomics = xyes; then
  14856. have_gcc_atomics=no
  14857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14858. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14860. /* end confdefs.h. */
  14861. int
  14862. main ()
  14863. {
  14864. int a;
  14865. void *x, *y, *z;
  14866. __sync_lock_test_and_set(&a, 4);
  14867. __sync_lock_test_and_set(&x, y);
  14868. __sync_fetch_and_add(&a, 1);
  14869. __sync_bool_compare_and_swap(&a, 5, 10);
  14870. __sync_bool_compare_and_swap(&x, y, z);
  14871. ;
  14872. return 0;
  14873. }
  14874. _ACEOF
  14875. if ac_fn_c_try_link "$LINENO"; then :
  14876. have_gcc_atomics=yes
  14877. fi
  14878. rm -f core conftest.err conftest.$ac_objext \
  14879. conftest$ac_exeext conftest.$ac_ext
  14880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14881. $as_echo "$have_gcc_atomics" >&6; }
  14882. if test x$have_gcc_atomics = xyes; then
  14883. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14884. else
  14885. # See if we have the minimum operation needed for GCC atomics
  14886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14887. /* end confdefs.h. */
  14888. int
  14889. main ()
  14890. {
  14891. int a;
  14892. __sync_lock_test_and_set(&a, 1);
  14893. __sync_lock_release(&a);
  14894. ;
  14895. return 0;
  14896. }
  14897. _ACEOF
  14898. if ac_fn_c_try_link "$LINENO"; then :
  14899. have_gcc_sync_lock_test_and_set=yes
  14900. fi
  14901. rm -f core conftest.err conftest.$ac_objext \
  14902. conftest$ac_exeext conftest.$ac_ext
  14903. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14904. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14905. fi
  14906. fi
  14907. fi
  14908. # Standard C sources
  14909. SOURCES="$SOURCES $srcdir/src/*.c"
  14910. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14911. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14912. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14913. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14914. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14915. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14916. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14917. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14918. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14919. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14920. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14921. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14922. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14923. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14924. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14931. # Check whether --enable-atomic was given.
  14932. if test "${enable_atomic+set}" = set; then :
  14933. enableval=$enable_atomic;
  14934. else
  14935. enable_atomic=yes
  14936. fi
  14937. if test x$enable_atomic != xyes; then
  14938. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14939. else
  14940. SUMMARY_modules="${SUMMARY_modules} atomic"
  14941. fi
  14942. # Check whether --enable-audio was given.
  14943. if test "${enable_audio+set}" = set; then :
  14944. enableval=$enable_audio;
  14945. else
  14946. enable_audio=yes
  14947. fi
  14948. if test x$enable_audio != xyes; then
  14949. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14950. else
  14951. SUMMARY_modules="${SUMMARY_modules} audio"
  14952. fi
  14953. # Check whether --enable-video was given.
  14954. if test "${enable_video+set}" = set; then :
  14955. enableval=$enable_video;
  14956. else
  14957. enable_video=yes
  14958. fi
  14959. if test x$enable_video != xyes; then
  14960. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14961. else
  14962. SUMMARY_modules="${SUMMARY_modules} video"
  14963. fi
  14964. # Check whether --enable-render was given.
  14965. if test "${enable_render+set}" = set; then :
  14966. enableval=$enable_render;
  14967. else
  14968. enable_render=yes
  14969. fi
  14970. if test x$enable_render != xyes; then
  14971. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14972. else
  14973. SUMMARY_modules="${SUMMARY_modules} render"
  14974. fi
  14975. # Check whether --enable-events was given.
  14976. if test "${enable_events+set}" = set; then :
  14977. enableval=$enable_events;
  14978. else
  14979. enable_events=yes
  14980. fi
  14981. if test x$enable_events != xyes; then
  14982. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14983. else
  14984. SUMMARY_modules="${SUMMARY_modules} events"
  14985. fi
  14986. # Check whether --enable-joystick was given.
  14987. if test "${enable_joystick+set}" = set; then :
  14988. enableval=$enable_joystick;
  14989. else
  14990. enable_joystick=yes
  14991. fi
  14992. if test x$enable_joystick != xyes; then
  14993. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14994. else
  14995. SUMMARY_modules="${SUMMARY_modules} joystick"
  14996. fi
  14997. # Check whether --enable-haptic was given.
  14998. if test "${enable_haptic+set}" = set; then :
  14999. enableval=$enable_haptic;
  15000. else
  15001. enable_haptic=yes
  15002. fi
  15003. if test x$enable_haptic != xyes; then
  15004. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15005. else
  15006. SUMMARY_modules="${SUMMARY_modules} haptic"
  15007. fi
  15008. # Check whether --enable-sensor was given.
  15009. if test "${enable_sensor+set}" = set; then :
  15010. enableval=$enable_sensor;
  15011. else
  15012. enable_sensor=yes
  15013. fi
  15014. if test x$enable_sensor != xyes; then
  15015. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15016. else
  15017. SUMMARY_modules="${SUMMARY_modules} sensor"
  15018. fi
  15019. # Check whether --enable-power was given.
  15020. if test "${enable_power+set}" = set; then :
  15021. enableval=$enable_power;
  15022. else
  15023. enable_power=yes
  15024. fi
  15025. if test x$enable_power != xyes; then
  15026. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15027. else
  15028. SUMMARY_modules="${SUMMARY_modules} power"
  15029. fi
  15030. # Check whether --enable-filesystem was given.
  15031. if test "${enable_filesystem+set}" = set; then :
  15032. enableval=$enable_filesystem;
  15033. else
  15034. enable_filesystem=yes
  15035. fi
  15036. if test x$enable_filesystem != xyes; then
  15037. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15038. else
  15039. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15040. fi
  15041. # Check whether --enable-threads was given.
  15042. if test "${enable_threads+set}" = set; then :
  15043. enableval=$enable_threads;
  15044. else
  15045. enable_threads=yes
  15046. fi
  15047. if test x$enable_threads != xyes; then
  15048. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15049. else
  15050. SUMMARY_modules="${SUMMARY_modules} threads"
  15051. fi
  15052. # Check whether --enable-timers was given.
  15053. if test "${enable_timers+set}" = set; then :
  15054. enableval=$enable_timers;
  15055. else
  15056. enable_timers=yes
  15057. fi
  15058. if test x$enable_timers != xyes; then
  15059. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15060. else
  15061. SUMMARY_modules="${SUMMARY_modules} timers"
  15062. fi
  15063. # Check whether --enable-file was given.
  15064. if test "${enable_file+set}" = set; then :
  15065. enableval=$enable_file;
  15066. else
  15067. enable_file=yes
  15068. fi
  15069. if test x$enable_file != xyes; then
  15070. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15071. else
  15072. SUMMARY_modules="${SUMMARY_modules} file"
  15073. fi
  15074. # Check whether --enable-loadso was given.
  15075. if test "${enable_loadso+set}" = set; then :
  15076. enableval=$enable_loadso;
  15077. else
  15078. enable_loadso=yes
  15079. fi
  15080. if test x$enable_loadso != xyes; then
  15081. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15082. else
  15083. SUMMARY_modules="${SUMMARY_modules} loadso"
  15084. fi
  15085. # Check whether --enable-cpuinfo was given.
  15086. if test "${enable_cpuinfo+set}" = set; then :
  15087. enableval=$enable_cpuinfo;
  15088. else
  15089. enable_cpuinfo=yes
  15090. fi
  15091. if test x$enable_cpuinfo != xyes; then
  15092. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15093. else
  15094. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15095. fi
  15096. # Check whether --enable-assembly was given.
  15097. if test "${enable_assembly+set}" = set; then :
  15098. enableval=$enable_assembly;
  15099. else
  15100. enable_assembly=yes
  15101. fi
  15102. if test x$enable_assembly = xyes; then
  15103. SUMMARY_modules="${SUMMARY_modules} assembly"
  15104. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15105. # Make sure that we don't generate floating point code that would
  15106. # cause illegal instruction exceptions on older processors
  15107. case "$host" in
  15108. *-*-darwin*)
  15109. # Don't need to worry about Apple hardware, it's all SSE capable
  15110. default_ssemath=yes
  15111. ;;
  15112. *64-*-*)
  15113. # x86 64-bit architectures all have SSE instructions
  15114. default_ssemath=yes
  15115. ;;
  15116. *)
  15117. default_ssemath=no
  15118. ;;
  15119. esac
  15120. # Check whether --enable-ssemath was given.
  15121. if test "${enable_ssemath+set}" = set; then :
  15122. enableval=$enable_ssemath;
  15123. else
  15124. enable_ssemath=$default_ssemath
  15125. fi
  15126. if test x$enable_ssemath = xno; then
  15127. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15128. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15129. fi
  15130. fi
  15131. # Check whether --enable-mmx was given.
  15132. if test "${enable_mmx+set}" = set; then :
  15133. enableval=$enable_mmx;
  15134. else
  15135. enable_mmx=yes
  15136. fi
  15137. if test x$enable_mmx = xyes; then
  15138. save_CFLAGS="$CFLAGS"
  15139. have_gcc_mmx=no
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15141. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15142. mmx_CFLAGS="-mmmx"
  15143. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15145. /* end confdefs.h. */
  15146. #ifdef __MINGW32__
  15147. #include <_mingw.h>
  15148. #ifdef __MINGW64_VERSION_MAJOR
  15149. #include <intrin.h>
  15150. #else
  15151. #include <mmintrin.h>
  15152. #endif
  15153. #else
  15154. #include <mmintrin.h>
  15155. #endif
  15156. #ifndef __MMX__
  15157. #error Assembler CPP flag not enabled
  15158. #endif
  15159. int
  15160. main ()
  15161. {
  15162. ;
  15163. return 0;
  15164. }
  15165. _ACEOF
  15166. if ac_fn_c_try_compile "$LINENO"; then :
  15167. have_gcc_mmx=yes
  15168. fi
  15169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15171. $as_echo "$have_gcc_mmx" >&6; }
  15172. CFLAGS="$save_CFLAGS"
  15173. if test x$have_gcc_mmx = xyes; then
  15174. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15175. SUMMARY_math="${SUMMARY_math} mmx"
  15176. fi
  15177. fi
  15178. # Check whether --enable-3dnow was given.
  15179. if test "${enable_3dnow+set}" = set; then :
  15180. enableval=$enable_3dnow;
  15181. else
  15182. enable_3dnow=yes
  15183. fi
  15184. if test x$enable_3dnow = xyes; then
  15185. save_CFLAGS="$CFLAGS"
  15186. have_gcc_3dnow=no
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15188. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15189. amd3dnow_CFLAGS="-m3dnow"
  15190. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15192. /* end confdefs.h. */
  15193. #include <mm3dnow.h>
  15194. #ifndef __3dNOW__
  15195. #error Assembler CPP flag not enabled
  15196. #endif
  15197. int
  15198. main ()
  15199. {
  15200. void *p = 0;
  15201. _m_prefetch(p);
  15202. ;
  15203. return 0;
  15204. }
  15205. _ACEOF
  15206. if ac_fn_c_try_link "$LINENO"; then :
  15207. have_gcc_3dnow=yes
  15208. fi
  15209. rm -f core conftest.err conftest.$ac_objext \
  15210. conftest$ac_exeext conftest.$ac_ext
  15211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15212. $as_echo "$have_gcc_3dnow" >&6; }
  15213. CFLAGS="$save_CFLAGS"
  15214. if test x$have_gcc_3dnow = xyes; then
  15215. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15216. SUMMARY_math="${SUMMARY_math} 3dnow"
  15217. fi
  15218. fi
  15219. # Check whether --enable-sse was given.
  15220. if test "${enable_sse+set}" = set; then :
  15221. enableval=$enable_sse;
  15222. else
  15223. enable_sse=yes
  15224. fi
  15225. if test x$enable_sse = xyes; then
  15226. save_CFLAGS="$CFLAGS"
  15227. have_gcc_sse=no
  15228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15229. $as_echo_n "checking for GCC -msse option... " >&6; }
  15230. sse_CFLAGS="-msse"
  15231. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15233. /* end confdefs.h. */
  15234. #ifdef __MINGW32__
  15235. #include <_mingw.h>
  15236. #ifdef __MINGW64_VERSION_MAJOR
  15237. #include <intrin.h>
  15238. #else
  15239. #include <xmmintrin.h>
  15240. #endif
  15241. #else
  15242. #include <xmmintrin.h>
  15243. #endif
  15244. #ifndef __SSE__
  15245. #error Assembler CPP flag not enabled
  15246. #endif
  15247. int
  15248. main ()
  15249. {
  15250. ;
  15251. return 0;
  15252. }
  15253. _ACEOF
  15254. if ac_fn_c_try_compile "$LINENO"; then :
  15255. have_gcc_sse=yes
  15256. fi
  15257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15259. $as_echo "$have_gcc_sse" >&6; }
  15260. CFLAGS="$save_CFLAGS"
  15261. if test x$have_gcc_sse = xyes; then
  15262. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15263. SUMMARY_math="${SUMMARY_math} sse"
  15264. fi
  15265. fi
  15266. # Check whether --enable-sse2 was given.
  15267. if test "${enable_sse2+set}" = set; then :
  15268. enableval=$enable_sse2;
  15269. else
  15270. enable_sse2=$default_ssemath
  15271. fi
  15272. if test x$enable_sse2 = xyes; then
  15273. save_CFLAGS="$CFLAGS"
  15274. have_gcc_sse2=no
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15276. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15277. sse2_CFLAGS="-msse2"
  15278. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15280. /* end confdefs.h. */
  15281. #ifdef __MINGW32__
  15282. #include <_mingw.h>
  15283. #ifdef __MINGW64_VERSION_MAJOR
  15284. #include <intrin.h>
  15285. #else
  15286. #include <emmintrin.h>
  15287. #endif
  15288. #else
  15289. #include <emmintrin.h>
  15290. #endif
  15291. #ifndef __SSE2__
  15292. #error Assembler CPP flag not enabled
  15293. #endif
  15294. int
  15295. main ()
  15296. {
  15297. ;
  15298. return 0;
  15299. }
  15300. _ACEOF
  15301. if ac_fn_c_try_compile "$LINENO"; then :
  15302. have_gcc_sse2=yes
  15303. fi
  15304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15306. $as_echo "$have_gcc_sse2" >&6; }
  15307. CFLAGS="$save_CFLAGS"
  15308. if test x$have_gcc_sse2 = xyes; then
  15309. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15310. SUMMARY_math="${SUMMARY_math} sse2"
  15311. fi
  15312. fi
  15313. # Check whether --enable-sse3 was given.
  15314. if test "${enable_sse3+set}" = set; then :
  15315. enableval=$enable_sse3;
  15316. else
  15317. enable_sse3=$default_ssemath
  15318. fi
  15319. if test x$enable_sse3 = xyes; then
  15320. save_CFLAGS="$CFLAGS"
  15321. have_gcc_sse3=no
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15323. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15324. sse3_CFLAGS="-msse3"
  15325. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15327. /* end confdefs.h. */
  15328. #ifdef __MINGW32__
  15329. #include <_mingw.h>
  15330. #ifdef __MINGW64_VERSION_MAJOR
  15331. #include <intrin.h>
  15332. #else
  15333. #include <pmmintrin.h>
  15334. #endif
  15335. #else
  15336. #include <pmmintrin.h>
  15337. #endif
  15338. #ifndef __SSE2__
  15339. #error Assembler CPP flag not enabled
  15340. #endif
  15341. int
  15342. main ()
  15343. {
  15344. ;
  15345. return 0;
  15346. }
  15347. _ACEOF
  15348. if ac_fn_c_try_compile "$LINENO"; then :
  15349. have_gcc_sse3=yes
  15350. fi
  15351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15353. $as_echo "$have_gcc_sse3" >&6; }
  15354. CFLAGS="$save_CFLAGS"
  15355. if test x$have_gcc_sse3 = xyes; then
  15356. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15357. SUMMARY_math="${SUMMARY_math} sse3"
  15358. fi
  15359. fi
  15360. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15361. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15362. have_immintrin_h_hdr=yes
  15363. else
  15364. have_immintrin_h_hdr=no
  15365. fi
  15366. if test x$have_immintrin_h_hdr = xyes; then
  15367. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15368. fi
  15369. # Check whether --enable-altivec was given.
  15370. if test "${enable_altivec+set}" = set; then :
  15371. enableval=$enable_altivec;
  15372. else
  15373. enable_altivec=yes
  15374. fi
  15375. if test x$enable_altivec = xyes; then
  15376. save_CFLAGS="$CFLAGS"
  15377. have_gcc_altivec=no
  15378. have_altivec_h_hdr=no
  15379. altivec_CFLAGS="-maltivec"
  15380. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15382. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15384. /* end confdefs.h. */
  15385. #include <altivec.h>
  15386. vector unsigned int vzero() {
  15387. return vec_splat_u32(0);
  15388. }
  15389. int
  15390. main ()
  15391. {
  15392. ;
  15393. return 0;
  15394. }
  15395. _ACEOF
  15396. if ac_fn_c_try_compile "$LINENO"; then :
  15397. have_gcc_altivec=yes
  15398. have_altivec_h_hdr=yes
  15399. fi
  15400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15402. $as_echo "$have_gcc_altivec" >&6; }
  15403. if test x$have_gcc_altivec = xno; then
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15405. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15407. /* end confdefs.h. */
  15408. vector unsigned int vzero() {
  15409. return vec_splat_u32(0);
  15410. }
  15411. int
  15412. main ()
  15413. {
  15414. ;
  15415. return 0;
  15416. }
  15417. _ACEOF
  15418. if ac_fn_c_try_compile "$LINENO"; then :
  15419. have_gcc_altivec=yes
  15420. fi
  15421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15423. $as_echo "$have_gcc_altivec" >&6; }
  15424. fi
  15425. if test x$have_gcc_altivec = xno; then
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15427. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15428. altivec_CFLAGS="-faltivec"
  15429. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15431. /* end confdefs.h. */
  15432. #include <altivec.h>
  15433. vector unsigned int vzero() {
  15434. return vec_splat_u32(0);
  15435. }
  15436. int
  15437. main ()
  15438. {
  15439. ;
  15440. return 0;
  15441. }
  15442. _ACEOF
  15443. if ac_fn_c_try_compile "$LINENO"; then :
  15444. have_gcc_altivec=yes
  15445. have_altivec_h_hdr=yes
  15446. fi
  15447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15449. $as_echo "$have_gcc_altivec" >&6; }
  15450. fi
  15451. if test x$have_gcc_altivec = xno; then
  15452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15453. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15455. /* end confdefs.h. */
  15456. vector unsigned int vzero() {
  15457. return vec_splat_u32(0);
  15458. }
  15459. int
  15460. main ()
  15461. {
  15462. ;
  15463. return 0;
  15464. }
  15465. _ACEOF
  15466. if ac_fn_c_try_compile "$LINENO"; then :
  15467. have_gcc_altivec=yes
  15468. fi
  15469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15471. $as_echo "$have_gcc_altivec" >&6; }
  15472. fi
  15473. CFLAGS="$save_CFLAGS"
  15474. if test x$have_gcc_altivec = xyes; then
  15475. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15476. if test x$have_altivec_h_hdr = xyes; then
  15477. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15478. fi
  15479. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15480. SUMMARY_math="${SUMMARY_math} altivec"
  15481. fi
  15482. fi
  15483. fi
  15484. CheckOSS()
  15485. {
  15486. # Check whether --enable-oss was given.
  15487. if test "${enable_oss+set}" = set; then :
  15488. enableval=$enable_oss;
  15489. else
  15490. enable_oss=maybe
  15491. fi
  15492. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15493. # use sndio instead. So on there, we default to disabled. You can force
  15494. # it on if you really want, though.
  15495. if test x$enable_oss = xmaybe; then
  15496. enable_oss=yes
  15497. case "$host" in
  15498. *-*-openbsd*)
  15499. enable_oss=no;;
  15500. esac
  15501. fi
  15502. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15504. $as_echo_n "checking for OSS audio support... " >&6; }
  15505. have_oss=no
  15506. if test x$have_oss != xyes; then
  15507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15508. /* end confdefs.h. */
  15509. #include <sys/soundcard.h>
  15510. int
  15511. main ()
  15512. {
  15513. int arg = SNDCTL_DSP_SETFRAGMENT;
  15514. ;
  15515. return 0;
  15516. }
  15517. _ACEOF
  15518. if ac_fn_c_try_compile "$LINENO"; then :
  15519. have_oss=yes
  15520. fi
  15521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15522. fi
  15523. if test x$have_oss != xyes; then
  15524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15525. /* end confdefs.h. */
  15526. #include <soundcard.h>
  15527. int
  15528. main ()
  15529. {
  15530. int arg = SNDCTL_DSP_SETFRAGMENT;
  15531. ;
  15532. return 0;
  15533. }
  15534. _ACEOF
  15535. if ac_fn_c_try_compile "$LINENO"; then :
  15536. have_oss=yes
  15537. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15538. fi
  15539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15540. fi
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15542. $as_echo "$have_oss" >&6; }
  15543. if test x$have_oss = xyes; then
  15544. SUMMARY_audio="${SUMMARY_audio} oss"
  15545. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15546. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15547. have_audio=yes
  15548. # We may need to link with ossaudio emulation library
  15549. case "$host" in
  15550. *-*-openbsd*|*-*-netbsd*)
  15551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15552. esac
  15553. fi
  15554. fi
  15555. }
  15556. CheckALSA()
  15557. {
  15558. # Check whether --enable-alsa was given.
  15559. if test "${enable_alsa+set}" = set; then :
  15560. enableval=$enable_alsa;
  15561. else
  15562. enable_alsa=yes
  15563. fi
  15564. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15565. alsa_save_CFLAGS="$CFLAGS"
  15566. alsa_save_LDFLAGS="$LDFLAGS"
  15567. alsa_save_LIBS="$LIBS"
  15568. alsa_found=yes
  15569. # Check whether --with-alsa-prefix was given.
  15570. if test "${with_alsa_prefix+set}" = set; then :
  15571. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15572. else
  15573. alsa_prefix=""
  15574. fi
  15575. # Check whether --with-alsa-inc-prefix was given.
  15576. if test "${with_alsa_inc_prefix+set}" = set; then :
  15577. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15578. else
  15579. alsa_inc_prefix=""
  15580. fi
  15581. # Check whether --enable-alsatest was given.
  15582. if test "${enable_alsatest+set}" = set; then :
  15583. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15584. else
  15585. enable_alsatest=yes
  15586. fi
  15587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15588. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15589. if test "$alsa_inc_prefix" != "" ; then
  15590. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15591. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15592. fi
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15594. $as_echo "$ALSA_CFLAGS" >&6; }
  15595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15596. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15597. if test "$alsa_prefix" != "" ; then
  15598. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15599. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15600. fi
  15601. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15602. LIBS=`echo $LIBS | sed 's/-lm//'`
  15603. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15604. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15605. LIBS=`echo $LIBS | sed 's/ //'`
  15606. LIBS="$ALSA_LIBS $LIBS"
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15608. $as_echo "$ALSA_LIBS" >&6; }
  15609. min_alsa_version=1.0.11
  15610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15611. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15612. no_alsa=""
  15613. alsa_min_major_version=`echo $min_alsa_version | \
  15614. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15615. alsa_min_minor_version=`echo $min_alsa_version | \
  15616. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15617. alsa_min_micro_version=`echo $min_alsa_version | \
  15618. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15619. ac_ext=c
  15620. ac_cpp='$CPP $CPPFLAGS'
  15621. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15622. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15623. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15625. /* end confdefs.h. */
  15626. #include <alsa/asoundlib.h>
  15627. int
  15628. main ()
  15629. {
  15630. /* ensure backward compatibility */
  15631. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15632. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15633. #endif
  15634. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15635. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15636. #endif
  15637. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15638. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15639. #endif
  15640. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15641. exit(0);
  15642. # else
  15643. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15644. # error not present
  15645. # endif
  15646. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15647. exit(0);
  15648. # else
  15649. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15650. # error not present
  15651. # endif
  15652. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15653. # error not present
  15654. # endif
  15655. # endif
  15656. # endif
  15657. exit(0);
  15658. ;
  15659. return 0;
  15660. }
  15661. _ACEOF
  15662. if ac_fn_c_try_compile "$LINENO"; then :
  15663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15664. $as_echo "found." >&6; }
  15665. else
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15667. $as_echo "not present." >&6; }
  15668. alsa_found=no
  15669. fi
  15670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15671. ac_ext=c
  15672. ac_cpp='$CPP $CPPFLAGS'
  15673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15676. if test "x$enable_alsatest" = "xyes"; then
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15678. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15679. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15680. $as_echo_n "(cached) " >&6
  15681. else
  15682. ac_check_lib_save_LIBS=$LIBS
  15683. LIBS="-lasound $LIBS"
  15684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15685. /* end confdefs.h. */
  15686. /* Override any GCC internal prototype to avoid an error.
  15687. Use char because int might match the return type of a GCC
  15688. builtin and then its argument prototype would still apply. */
  15689. #ifdef __cplusplus
  15690. extern "C"
  15691. #endif
  15692. char snd_ctl_open ();
  15693. int
  15694. main ()
  15695. {
  15696. return snd_ctl_open ();
  15697. ;
  15698. return 0;
  15699. }
  15700. _ACEOF
  15701. if ac_fn_c_try_link "$LINENO"; then :
  15702. ac_cv_lib_asound_snd_ctl_open=yes
  15703. else
  15704. ac_cv_lib_asound_snd_ctl_open=no
  15705. fi
  15706. rm -f core conftest.err conftest.$ac_objext \
  15707. conftest$ac_exeext conftest.$ac_ext
  15708. LIBS=$ac_check_lib_save_LIBS
  15709. fi
  15710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15711. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15712. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15713. cat >>confdefs.h <<_ACEOF
  15714. #define HAVE_LIBASOUND 1
  15715. _ACEOF
  15716. LIBS="-lasound $LIBS"
  15717. else
  15718. alsa_found=no
  15719. fi
  15720. fi
  15721. if test "x$alsa_found" = "xyes" ; then
  15722. have_alsa=yes
  15723. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15724. LIBS=`echo $LIBS | sed 's/ //'`
  15725. LIBS="-lasound $LIBS"
  15726. fi
  15727. if test "x$alsa_found" = "xno" ; then
  15728. have_alsa=no
  15729. CFLAGS="$alsa_save_CFLAGS"
  15730. LDFLAGS="$alsa_save_LDFLAGS"
  15731. LIBS="$alsa_save_LIBS"
  15732. ALSA_CFLAGS=""
  15733. ALSA_LIBS=""
  15734. fi
  15735. # Restore all flags from before the ALSA detection runs
  15736. CFLAGS="$alsa_save_CFLAGS"
  15737. LDFLAGS="$alsa_save_LDFLAGS"
  15738. LIBS="$alsa_save_LIBS"
  15739. if test x$have_alsa = xyes; then
  15740. # Check whether --enable-alsa-shared was given.
  15741. if test "${enable_alsa_shared+set}" = set; then :
  15742. enableval=$enable_alsa_shared;
  15743. else
  15744. enable_alsa_shared=yes
  15745. fi
  15746. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15747. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15748. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15749. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15750. if test x$have_loadso != xyes && \
  15751. test x$enable_alsa_shared = xyes; then
  15752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15753. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15754. fi
  15755. if test x$have_loadso = xyes && \
  15756. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15757. echo "-- dynamic libasound -> $alsa_lib"
  15758. cat >>confdefs.h <<_ACEOF
  15759. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15760. _ACEOF
  15761. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15762. else
  15763. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15764. SUMMARY_audio="${SUMMARY_audio} alsa"
  15765. fi
  15766. have_audio=yes
  15767. fi
  15768. fi
  15769. }
  15770. CheckJACK()
  15771. {
  15772. # Check whether --enable-jack was given.
  15773. if test "${enable_jack+set}" = set; then :
  15774. enableval=$enable_jack;
  15775. else
  15776. enable_jack=yes
  15777. fi
  15778. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15779. pkg_failed=no
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15781. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15782. if test -n "$JACK_CFLAGS"; then
  15783. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15784. elif test -n "$PKG_CONFIG"; then
  15785. if test -n "$PKG_CONFIG" && \
  15786. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15787. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15788. ac_status=$?
  15789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15790. test $ac_status = 0; }; then
  15791. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15792. test "x$?" != "x0" && pkg_failed=yes
  15793. else
  15794. pkg_failed=yes
  15795. fi
  15796. else
  15797. pkg_failed=untried
  15798. fi
  15799. if test -n "$JACK_LIBS"; then
  15800. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15801. elif test -n "$PKG_CONFIG"; then
  15802. if test -n "$PKG_CONFIG" && \
  15803. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15804. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15805. ac_status=$?
  15806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15807. test $ac_status = 0; }; then
  15808. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15809. test "x$?" != "x0" && pkg_failed=yes
  15810. else
  15811. pkg_failed=yes
  15812. fi
  15813. else
  15814. pkg_failed=untried
  15815. fi
  15816. if test $pkg_failed = yes; then
  15817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15818. $as_echo "no" >&6; }
  15819. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15820. _pkg_short_errors_supported=yes
  15821. else
  15822. _pkg_short_errors_supported=no
  15823. fi
  15824. if test $_pkg_short_errors_supported = yes; then
  15825. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15826. else
  15827. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15828. fi
  15829. # Put the nasty error message in config.log where it belongs
  15830. echo "$JACK_PKG_ERRORS" >&5
  15831. audio_jack=no
  15832. elif test $pkg_failed = untried; then
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15834. $as_echo "no" >&6; }
  15835. audio_jack=no
  15836. else
  15837. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15838. JACK_LIBS=$pkg_cv_JACK_LIBS
  15839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15840. $as_echo "yes" >&6; }
  15841. audio_jack=yes
  15842. fi
  15843. if test x$audio_jack = xyes; then
  15844. # Check whether --enable-jack-shared was given.
  15845. if test "${enable_jack_shared+set}" = set; then :
  15846. enableval=$enable_jack_shared;
  15847. else
  15848. enable_jack_shared=yes
  15849. fi
  15850. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15851. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15852. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15853. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15854. if test x$have_loadso != xyes && \
  15855. test x$enable_jack_shared = xyes; then
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15857. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15858. fi
  15859. if test x$have_loadso = xyes && \
  15860. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15861. echo "-- dynamic libjack -> $jack_lib"
  15862. cat >>confdefs.h <<_ACEOF
  15863. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15864. _ACEOF
  15865. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15866. case "$host" in
  15867. # On Solaris, jack must be linked deferred explicitly
  15868. # to prevent undefined symbol failures.
  15869. *-*-solaris*)
  15870. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15872. esac
  15873. else
  15874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15875. SUMMARY_audio="${SUMMARY_audio} jack"
  15876. fi
  15877. have_audio=yes
  15878. fi
  15879. fi
  15880. }
  15881. CheckESD()
  15882. {
  15883. # Check whether --enable-esd was given.
  15884. if test "${enable_esd+set}" = set; then :
  15885. enableval=$enable_esd;
  15886. else
  15887. enable_esd=yes
  15888. fi
  15889. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15890. # Check whether --with-esd-prefix was given.
  15891. if test "${with_esd_prefix+set}" = set; then :
  15892. withval=$with_esd_prefix; esd_prefix="$withval"
  15893. else
  15894. esd_prefix=""
  15895. fi
  15896. # Check whether --with-esd-exec-prefix was given.
  15897. if test "${with_esd_exec_prefix+set}" = set; then :
  15898. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15899. else
  15900. esd_exec_prefix=""
  15901. fi
  15902. # Check whether --enable-esdtest was given.
  15903. if test "${enable_esdtest+set}" = set; then :
  15904. enableval=$enable_esdtest;
  15905. else
  15906. enable_esdtest=yes
  15907. fi
  15908. if test x$esd_exec_prefix != x ; then
  15909. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15910. if test x${ESD_CONFIG+set} != xset ; then
  15911. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15912. fi
  15913. fi
  15914. if test x$esd_prefix != x ; then
  15915. esd_args="$esd_args --prefix=$esd_prefix"
  15916. if test x${ESD_CONFIG+set} != xset ; then
  15917. ESD_CONFIG=$esd_prefix/bin/esd-config
  15918. fi
  15919. fi
  15920. # Extract the first word of "esd-config", so it can be a program name with args.
  15921. set dummy esd-config; ac_word=$2
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15923. $as_echo_n "checking for $ac_word... " >&6; }
  15924. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15925. $as_echo_n "(cached) " >&6
  15926. else
  15927. case $ESD_CONFIG in
  15928. [\\/]* | ?:[\\/]*)
  15929. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15930. ;;
  15931. *)
  15932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15933. for as_dir in $PATH
  15934. do
  15935. IFS=$as_save_IFS
  15936. test -z "$as_dir" && as_dir=.
  15937. for ac_exec_ext in '' $ac_executable_extensions; do
  15938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15939. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15941. break 2
  15942. fi
  15943. done
  15944. done
  15945. IFS=$as_save_IFS
  15946. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15947. ;;
  15948. esac
  15949. fi
  15950. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15951. if test -n "$ESD_CONFIG"; then
  15952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15953. $as_echo "$ESD_CONFIG" >&6; }
  15954. else
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15956. $as_echo "no" >&6; }
  15957. fi
  15958. min_esd_version=0.2.8
  15959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15960. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15961. no_esd=""
  15962. if test "$ESD_CONFIG" = "no" ; then
  15963. no_esd=yes
  15964. else
  15965. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15966. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15967. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15968. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15969. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15970. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15971. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15972. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15973. if test "x$enable_esdtest" = "xyes" ; then
  15974. ac_ext=c
  15975. ac_cpp='$CPP $CPPFLAGS'
  15976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15979. ac_save_CFLAGS="$CFLAGS"
  15980. ac_save_LIBS="$LIBS"
  15981. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15982. LIBS="$LIBS $ESD_LIBS"
  15983. rm -f conf.esdtest
  15984. if test "$cross_compiling" = yes; then :
  15985. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15986. else
  15987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15988. /* end confdefs.h. */
  15989. #include <stdio.h>
  15990. #include <stdlib.h>
  15991. #include <esd.h>
  15992. int main (void)
  15993. {
  15994. int major, minor, micro;
  15995. FILE *fp = fopen("conf.esdtest", "w");
  15996. if (fp) fclose(fp);
  15997. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  15998. printf("%s, bad version string\n", "$min_esd_version");
  15999. exit(1);
  16000. }
  16001. if (($esd_major_version > major) ||
  16002. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16003. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16004. {
  16005. return 0;
  16006. }
  16007. else
  16008. {
  16009. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16010. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16011. printf("*** best to upgrade to the required version.\n");
  16012. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16013. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16014. printf("*** config.cache before re-running configure\n");
  16015. return 1;
  16016. }
  16017. }
  16018. _ACEOF
  16019. if ac_fn_c_try_run "$LINENO"; then :
  16020. else
  16021. no_esd=yes
  16022. fi
  16023. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16024. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16025. fi
  16026. CFLAGS="$ac_save_CFLAGS"
  16027. LIBS="$ac_save_LIBS"
  16028. ac_ext=c
  16029. ac_cpp='$CPP $CPPFLAGS'
  16030. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16031. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16032. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16033. fi
  16034. fi
  16035. if test "x$no_esd" = x ; then
  16036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16037. $as_echo "yes" >&6; }
  16038. have_esd=yes
  16039. else
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16041. $as_echo "no" >&6; }
  16042. if test "$ESD_CONFIG" = "no" ; then
  16043. echo "*** The esd-config script installed by ESD could not be found"
  16044. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16045. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16046. echo "*** full path to esd-config."
  16047. else
  16048. if test -f conf.esdtest ; then
  16049. :
  16050. else
  16051. echo "*** Could not run ESD test program, checking why..."
  16052. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16053. LIBS="$LIBS $ESD_LIBS"
  16054. ac_ext=c
  16055. ac_cpp='$CPP $CPPFLAGS'
  16056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16060. /* end confdefs.h. */
  16061. #include <stdio.h>
  16062. #include <esd.h>
  16063. int
  16064. main ()
  16065. {
  16066. return 0;
  16067. ;
  16068. return 0;
  16069. }
  16070. _ACEOF
  16071. if ac_fn_c_try_link "$LINENO"; then :
  16072. echo "*** The test program compiled, but did not run. This usually means"
  16073. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16074. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16075. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16076. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16077. echo "*** is required on your system"
  16078. echo "***"
  16079. echo "*** If you have an old version installed, it is best to remove it, although"
  16080. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16081. else
  16082. echo "*** The test program failed to compile or link. See the file config.log for the"
  16083. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16084. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16085. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16086. fi
  16087. rm -f core conftest.err conftest.$ac_objext \
  16088. conftest$ac_exeext conftest.$ac_ext
  16089. CFLAGS="$ac_save_CFLAGS"
  16090. LIBS="$ac_save_LIBS"
  16091. ac_ext=c
  16092. ac_cpp='$CPP $CPPFLAGS'
  16093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16096. fi
  16097. fi
  16098. ESD_CFLAGS=""
  16099. ESD_LIBS=""
  16100. have_esd=no
  16101. fi
  16102. rm -f conf.esdtest
  16103. if test x$have_esd = xyes; then
  16104. # Check whether --enable-esd-shared was given.
  16105. if test "${enable_esd_shared+set}" = set; then :
  16106. enableval=$enable_esd_shared;
  16107. else
  16108. enable_esd_shared=yes
  16109. fi
  16110. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16111. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16112. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16113. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16114. if test x$have_loadso != xyes && \
  16115. test x$enable_esd_shared = xyes; then
  16116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16117. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16118. fi
  16119. if test x$have_loadso = xyes && \
  16120. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16121. echo "-- dynamic libesd -> $esd_lib"
  16122. cat >>confdefs.h <<_ACEOF
  16123. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16124. _ACEOF
  16125. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16126. else
  16127. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16128. SUMMARY_audio="${SUMMARY_audio} esd"
  16129. fi
  16130. have_audio=yes
  16131. fi
  16132. fi
  16133. }
  16134. CheckPulseAudio()
  16135. {
  16136. # Check whether --enable-pulseaudio was given.
  16137. if test "${enable_pulseaudio+set}" = set; then :
  16138. enableval=$enable_pulseaudio;
  16139. else
  16140. enable_pulseaudio=yes
  16141. fi
  16142. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16143. pkg_failed=no
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16145. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16146. if test -n "$PULSEAUDIO_CFLAGS"; then
  16147. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16148. elif test -n "$PKG_CONFIG"; then
  16149. if test -n "$PKG_CONFIG" && \
  16150. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16151. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16152. ac_status=$?
  16153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16154. test $ac_status = 0; }; then
  16155. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16156. test "x$?" != "x0" && pkg_failed=yes
  16157. else
  16158. pkg_failed=yes
  16159. fi
  16160. else
  16161. pkg_failed=untried
  16162. fi
  16163. if test -n "$PULSEAUDIO_LIBS"; then
  16164. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16165. elif test -n "$PKG_CONFIG"; then
  16166. if test -n "$PKG_CONFIG" && \
  16167. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16168. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16169. ac_status=$?
  16170. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16171. test $ac_status = 0; }; then
  16172. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16173. test "x$?" != "x0" && pkg_failed=yes
  16174. else
  16175. pkg_failed=yes
  16176. fi
  16177. else
  16178. pkg_failed=untried
  16179. fi
  16180. if test $pkg_failed = yes; then
  16181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16182. $as_echo "no" >&6; }
  16183. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16184. _pkg_short_errors_supported=yes
  16185. else
  16186. _pkg_short_errors_supported=no
  16187. fi
  16188. if test $_pkg_short_errors_supported = yes; then
  16189. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16190. else
  16191. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16192. fi
  16193. # Put the nasty error message in config.log where it belongs
  16194. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16195. audio_pulseaudio=no
  16196. elif test $pkg_failed = untried; then
  16197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16198. $as_echo "no" >&6; }
  16199. audio_pulseaudio=no
  16200. else
  16201. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16202. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16204. $as_echo "yes" >&6; }
  16205. audio_pulseaudio=yes
  16206. fi
  16207. if test x$audio_pulseaudio = xyes; then
  16208. # Check whether --enable-pulseaudio-shared was given.
  16209. if test "${enable_pulseaudio_shared+set}" = set; then :
  16210. enableval=$enable_pulseaudio_shared;
  16211. else
  16212. enable_pulseaudio_shared=yes
  16213. fi
  16214. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16215. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16216. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16217. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16218. if test x$have_loadso != xyes && \
  16219. test x$enable_pulseaudio_shared = xyes; then
  16220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16221. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16222. fi
  16223. if test x$have_loadso = xyes && \
  16224. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16225. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16226. cat >>confdefs.h <<_ACEOF
  16227. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16228. _ACEOF
  16229. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16230. case "$host" in
  16231. # On Solaris, pulseaudio must be linked deferred explicitly
  16232. # to prevent undefined symbol failures.
  16233. *-*-solaris*)
  16234. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16236. esac
  16237. else
  16238. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16239. SUMMARY_audio="${SUMMARY_audio} pulse"
  16240. fi
  16241. have_audio=yes
  16242. fi
  16243. fi
  16244. }
  16245. CheckARTSC()
  16246. {
  16247. # Check whether --enable-arts was given.
  16248. if test "${enable_arts+set}" = set; then :
  16249. enableval=$enable_arts;
  16250. else
  16251. enable_arts=yes
  16252. fi
  16253. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16254. # Extract the first word of "artsc-config", so it can be a program name with args.
  16255. set dummy artsc-config; ac_word=$2
  16256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16257. $as_echo_n "checking for $ac_word... " >&6; }
  16258. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16259. $as_echo_n "(cached) " >&6
  16260. else
  16261. case $ARTSCONFIG in
  16262. [\\/]* | ?:[\\/]*)
  16263. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16264. ;;
  16265. *)
  16266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16267. for as_dir in $PATH
  16268. do
  16269. IFS=$as_save_IFS
  16270. test -z "$as_dir" && as_dir=.
  16271. for ac_exec_ext in '' $ac_executable_extensions; do
  16272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16273. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16275. break 2
  16276. fi
  16277. done
  16278. done
  16279. IFS=$as_save_IFS
  16280. ;;
  16281. esac
  16282. fi
  16283. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16284. if test -n "$ARTSCONFIG"; then
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16286. $as_echo "$ARTSCONFIG" >&6; }
  16287. else
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16289. $as_echo "no" >&6; }
  16290. fi
  16291. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16292. : # arts isn't installed
  16293. else
  16294. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16295. ARTS_LIBS=`$ARTSCONFIG --libs`
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16297. $as_echo_n "checking for aRts development environment... " >&6; }
  16298. audio_arts=no
  16299. save_CFLAGS="$CFLAGS"
  16300. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16302. /* end confdefs.h. */
  16303. #include <artsc.h>
  16304. int
  16305. main ()
  16306. {
  16307. arts_stream_t stream;
  16308. ;
  16309. return 0;
  16310. }
  16311. _ACEOF
  16312. if ac_fn_c_try_compile "$LINENO"; then :
  16313. audio_arts=yes
  16314. fi
  16315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16316. CFLAGS="$save_CFLAGS"
  16317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16318. $as_echo "$audio_arts" >&6; }
  16319. if test x$audio_arts = xyes; then
  16320. # Check whether --enable-arts-shared was given.
  16321. if test "${enable_arts_shared+set}" = set; then :
  16322. enableval=$enable_arts_shared;
  16323. else
  16324. enable_arts_shared=yes
  16325. fi
  16326. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16327. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16328. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16329. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16330. if test x$have_loadso != xyes && \
  16331. test x$enable_arts_shared = xyes; then
  16332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16333. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16334. fi
  16335. if test x$have_loadso = xyes && \
  16336. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16337. echo "-- dynamic libartsc -> $arts_lib"
  16338. cat >>confdefs.h <<_ACEOF
  16339. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16340. _ACEOF
  16341. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16342. else
  16343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16344. SUMMARY_audio="${SUMMARY_audio} arts"
  16345. fi
  16346. have_audio=yes
  16347. fi
  16348. fi
  16349. fi
  16350. }
  16351. CheckNAS()
  16352. {
  16353. # Check whether --enable-nas was given.
  16354. if test "${enable_nas+set}" = set; then :
  16355. enableval=$enable_nas;
  16356. else
  16357. enable_nas=yes
  16358. fi
  16359. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16360. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16361. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16362. have_nas_hdr=yes
  16363. fi
  16364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16365. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16366. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16367. $as_echo_n "(cached) " >&6
  16368. else
  16369. ac_check_lib_save_LIBS=$LIBS
  16370. LIBS="-laudio $LIBS"
  16371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16372. /* end confdefs.h. */
  16373. /* Override any GCC internal prototype to avoid an error.
  16374. Use char because int might match the return type of a GCC
  16375. builtin and then its argument prototype would still apply. */
  16376. #ifdef __cplusplus
  16377. extern "C"
  16378. #endif
  16379. char AuOpenServer ();
  16380. int
  16381. main ()
  16382. {
  16383. return AuOpenServer ();
  16384. ;
  16385. return 0;
  16386. }
  16387. _ACEOF
  16388. if ac_fn_c_try_link "$LINENO"; then :
  16389. ac_cv_lib_audio_AuOpenServer=yes
  16390. else
  16391. ac_cv_lib_audio_AuOpenServer=no
  16392. fi
  16393. rm -f core conftest.err conftest.$ac_objext \
  16394. conftest$ac_exeext conftest.$ac_ext
  16395. LIBS=$ac_check_lib_save_LIBS
  16396. fi
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16398. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16399. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16400. have_nas_lib=yes
  16401. fi
  16402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16403. $as_echo_n "checking for NAS audio support... " >&6; }
  16404. have_nas=no
  16405. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16406. have_nas=yes
  16407. NAS_LIBS="-laudio"
  16408. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16409. have_nas=yes
  16410. NAS_CFLAGS="-I/usr/X11R6/include/"
  16411. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16412. fi
  16413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16414. $as_echo "$have_nas" >&6; }
  16415. if test x$have_nas = xyes; then
  16416. # Check whether --enable-nas-shared was given.
  16417. if test "${enable_nas_shared+set}" = set; then :
  16418. enableval=$enable_nas_shared;
  16419. else
  16420. enable_nas_shared=yes
  16421. fi
  16422. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16423. if test x$have_loadso != xyes && \
  16424. test x$enable_nas_shared = xyes; then
  16425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16426. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16427. fi
  16428. if test x$have_loadso = xyes && \
  16429. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16430. echo "-- dynamic libaudio -> $nas_lib"
  16431. cat >>confdefs.h <<_ACEOF
  16432. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16433. _ACEOF
  16434. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16435. else
  16436. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16437. SUMMARY_audio="${SUMMARY_audio} nas"
  16438. fi
  16439. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16440. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16441. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16442. have_audio=yes
  16443. fi
  16444. fi
  16445. }
  16446. CheckSNDIO()
  16447. {
  16448. # Check whether --enable-sndio was given.
  16449. if test "${enable_sndio+set}" = set; then :
  16450. enableval=$enable_sndio;
  16451. else
  16452. enable_sndio=yes
  16453. fi
  16454. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16455. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16456. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16457. have_sndio_hdr=yes
  16458. fi
  16459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16460. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16461. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16462. $as_echo_n "(cached) " >&6
  16463. else
  16464. ac_check_lib_save_LIBS=$LIBS
  16465. LIBS="-lsndio $LIBS"
  16466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16467. /* end confdefs.h. */
  16468. /* Override any GCC internal prototype to avoid an error.
  16469. Use char because int might match the return type of a GCC
  16470. builtin and then its argument prototype would still apply. */
  16471. #ifdef __cplusplus
  16472. extern "C"
  16473. #endif
  16474. char sio_open ();
  16475. int
  16476. main ()
  16477. {
  16478. return sio_open ();
  16479. ;
  16480. return 0;
  16481. }
  16482. _ACEOF
  16483. if ac_fn_c_try_link "$LINENO"; then :
  16484. ac_cv_lib_sndio_sio_open=yes
  16485. else
  16486. ac_cv_lib_sndio_sio_open=no
  16487. fi
  16488. rm -f core conftest.err conftest.$ac_objext \
  16489. conftest$ac_exeext conftest.$ac_ext
  16490. LIBS=$ac_check_lib_save_LIBS
  16491. fi
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16493. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16494. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16495. have_sndio_lib=yes
  16496. fi
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16498. $as_echo_n "checking for sndio audio support... " >&6; }
  16499. have_sndio=no
  16500. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16501. have_sndio=yes
  16502. SNDIO_LIBS="-lsndio"
  16503. fi
  16504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16505. $as_echo "$have_sndio" >&6; }
  16506. if test x$have_sndio = xyes; then
  16507. # Check whether --enable-sndio-shared was given.
  16508. if test "${enable_sndio_shared+set}" = set; then :
  16509. enableval=$enable_sndio_shared;
  16510. else
  16511. enable_sndio_shared=yes
  16512. fi
  16513. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16514. if test x$have_loadso != xyes && \
  16515. test x$enable_sndio_shared = xyes; then
  16516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16517. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16518. fi
  16519. if test x$have_loadso = xyes && \
  16520. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16521. echo "-- dynamic libsndio -> $sndio_lib"
  16522. cat >>confdefs.h <<_ACEOF
  16523. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16524. _ACEOF
  16525. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16526. else
  16527. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16528. SUMMARY_audio="${SUMMARY_audio} sndio"
  16529. fi
  16530. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16531. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16532. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16533. have_audio=yes
  16534. fi
  16535. fi
  16536. }
  16537. CheckFusionSound()
  16538. {
  16539. # Check whether --enable-fusionsound was given.
  16540. if test "${enable_fusionsound+set}" = set; then :
  16541. enableval=$enable_fusionsound;
  16542. else
  16543. enable_fusionsound=no
  16544. fi
  16545. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16546. pkg_failed=no
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16548. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16549. if test -n "$FUSIONSOUND_CFLAGS"; then
  16550. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16551. elif test -n "$PKG_CONFIG"; then
  16552. if test -n "$PKG_CONFIG" && \
  16553. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16554. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16555. ac_status=$?
  16556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16557. test $ac_status = 0; }; then
  16558. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16559. test "x$?" != "x0" && pkg_failed=yes
  16560. else
  16561. pkg_failed=yes
  16562. fi
  16563. else
  16564. pkg_failed=untried
  16565. fi
  16566. if test -n "$FUSIONSOUND_LIBS"; then
  16567. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16568. elif test -n "$PKG_CONFIG"; then
  16569. if test -n "$PKG_CONFIG" && \
  16570. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16571. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16572. ac_status=$?
  16573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16574. test $ac_status = 0; }; then
  16575. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16576. test "x$?" != "x0" && pkg_failed=yes
  16577. else
  16578. pkg_failed=yes
  16579. fi
  16580. else
  16581. pkg_failed=untried
  16582. fi
  16583. if test $pkg_failed = yes; then
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16585. $as_echo "no" >&6; }
  16586. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16587. _pkg_short_errors_supported=yes
  16588. else
  16589. _pkg_short_errors_supported=no
  16590. fi
  16591. if test $_pkg_short_errors_supported = yes; then
  16592. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16593. else
  16594. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16595. fi
  16596. # Put the nasty error message in config.log where it belongs
  16597. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16598. fusionsound=no
  16599. elif test $pkg_failed = untried; then
  16600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16601. $as_echo "no" >&6; }
  16602. fusionsound=no
  16603. else
  16604. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16605. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16607. $as_echo "yes" >&6; }
  16608. fusionsound=yes
  16609. fi
  16610. if test x$fusionsound = xyes; then
  16611. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16612. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16613. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16614. # Check whether --enable-fusionsound-shared was given.
  16615. if test "${enable_fusionsound_shared+set}" = set; then :
  16616. enableval=$enable_fusionsound_shared;
  16617. else
  16618. enable_fusionsound_shared=yes
  16619. fi
  16620. fusionsound_shared=no
  16621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16622. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16623. if test x$have_loadso != xyes && \
  16624. test x$enable_fusionsound_shared = xyes; then
  16625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16626. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16627. fi
  16628. if test x$have_loadso = xyes && \
  16629. test x$enable_fusionsound_shared = xyes; then
  16630. cat >>confdefs.h <<_ACEOF
  16631. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16632. _ACEOF
  16633. fusionsound_shared=yes
  16634. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16635. else
  16636. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16637. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16638. fi
  16639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16640. $as_echo "$fusionsound_shared" >&6; }
  16641. have_audio=yes
  16642. fi
  16643. fi
  16644. }
  16645. CheckDiskAudio()
  16646. {
  16647. # Check whether --enable-diskaudio was given.
  16648. if test "${enable_diskaudio+set}" = set; then :
  16649. enableval=$enable_diskaudio;
  16650. else
  16651. enable_diskaudio=yes
  16652. fi
  16653. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16654. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16655. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16656. SUMMARY_audio="${SUMMARY_audio} disk"
  16657. fi
  16658. }
  16659. CheckDummyAudio()
  16660. {
  16661. # Check whether --enable-dummyaudio was given.
  16662. if test "${enable_dummyaudio+set}" = set; then :
  16663. enableval=$enable_dummyaudio;
  16664. else
  16665. enable_dummyaudio=yes
  16666. fi
  16667. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16668. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16669. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16670. SUMMARY_audio="${SUMMARY_audio} dummy"
  16671. fi
  16672. }
  16673. CheckLibSampleRate()
  16674. {
  16675. # Check whether --enable-libsamplerate was given.
  16676. if test "${enable_libsamplerate+set}" = set; then :
  16677. enableval=$enable_libsamplerate;
  16678. else
  16679. enable_libsamplerate=yes
  16680. fi
  16681. if test x$enable_libsamplerate = xyes; then
  16682. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16683. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16684. have_samplerate_h_hdr=yes
  16685. else
  16686. have_samplerate_h_hdr=no
  16687. fi
  16688. if test x$have_samplerate_h_hdr = xyes; then
  16689. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16690. # Check whether --enable-libsamplerate-shared was given.
  16691. if test "${enable_libsamplerate_shared+set}" = set; then :
  16692. enableval=$enable_libsamplerate_shared;
  16693. else
  16694. enable_libsamplerate_shared=yes
  16695. fi
  16696. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16697. if test x$have_loadso != xyes && \
  16698. test x$enable_libsamplerate_shared = xyes; then
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16700. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16701. fi
  16702. if test x$have_loadso = xyes && \
  16703. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16704. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16705. cat >>confdefs.h <<_ACEOF
  16706. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16707. _ACEOF
  16708. else
  16709. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16710. fi
  16711. fi
  16712. fi
  16713. }
  16714. CheckARM()
  16715. {
  16716. # Check whether --enable-arm-simd was given.
  16717. if test "${enable_arm_simd+set}" = set; then :
  16718. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16719. else
  16720. enable_arm_simd=no
  16721. fi
  16722. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16723. save_CFLAGS="$CFLAGS"
  16724. have_arm_simd=no
  16725. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16727. $as_echo_n "checking for ARM SIMD... " >&6; }
  16728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16729. /* end confdefs.h. */
  16730. .text
  16731. .arch armv6
  16732. .object_arch armv4
  16733. .arm
  16734. .altmacro
  16735. #ifndef __ARM_EABI__
  16736. #error EABI is required (to be sure that calling conventions are compatible)
  16737. #endif
  16738. pld [r0]
  16739. uqadd8 r0, r0, r0
  16740. _ACEOF
  16741. if ac_fn_c_try_compile "$LINENO"; then :
  16742. have_arm_simd=yes
  16743. fi
  16744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16746. $as_echo "$have_arm_simd" >&6; }
  16747. CFLAGS="$save_CFLAGS"
  16748. if test x$have_arm_simd = xyes; then
  16749. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16750. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16751. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16752. fi
  16753. fi
  16754. }
  16755. CheckNEON()
  16756. {
  16757. # Check whether --enable-arm-neon was given.
  16758. if test "${enable_arm_neon+set}" = set; then :
  16759. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16760. else
  16761. enable_arm_neon=no
  16762. fi
  16763. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16764. save_CFLAGS="$CFLAGS"
  16765. have_arm_neon=no
  16766. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16768. $as_echo_n "checking for ARM NEON... " >&6; }
  16769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16770. /* end confdefs.h. */
  16771. .text
  16772. .fpu neon
  16773. .arch armv7a
  16774. .object_arch armv4
  16775. .eabi_attribute 10, 0
  16776. .arm
  16777. .altmacro
  16778. #ifndef __ARM_EABI__
  16779. #error EABI is required (to be sure that calling conventions are compatible)
  16780. #endif
  16781. pld [r0]
  16782. vmovn.u16 d0, q0
  16783. _ACEOF
  16784. if ac_fn_c_try_compile "$LINENO"; then :
  16785. have_arm_neon=yes
  16786. fi
  16787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16789. $as_echo "$have_arm_neon" >&6; }
  16790. CFLAGS="$save_CFLAGS"
  16791. if test x$have_arm_neon = xyes; then
  16792. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16793. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16794. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16795. fi
  16796. fi
  16797. }
  16798. CheckVisibilityHidden()
  16799. {
  16800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16801. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16802. have_gcc_fvisibility=no
  16803. visibility_CFLAGS="-fvisibility=hidden"
  16804. save_CFLAGS="$CFLAGS"
  16805. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16807. /* end confdefs.h. */
  16808. #if !defined(__GNUC__) || __GNUC__ < 4
  16809. #error SDL only uses visibility attributes in GCC 4 or newer
  16810. #endif
  16811. int
  16812. main ()
  16813. {
  16814. ;
  16815. return 0;
  16816. }
  16817. _ACEOF
  16818. if ac_fn_c_try_compile "$LINENO"; then :
  16819. have_gcc_fvisibility=yes
  16820. fi
  16821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16823. $as_echo "$have_gcc_fvisibility" >&6; }
  16824. CFLAGS="$save_CFLAGS"
  16825. if test x$have_gcc_fvisibility = xyes; then
  16826. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16827. fi
  16828. }
  16829. CheckNoStrictAliasing()
  16830. {
  16831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16832. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16833. have_gcc_no_strict_aliasing=no
  16834. save_CFLAGS="$CFLAGS"
  16835. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16837. /* end confdefs.h. */
  16838. int x = 0;
  16839. int
  16840. main ()
  16841. {
  16842. ;
  16843. return 0;
  16844. }
  16845. _ACEOF
  16846. if ac_fn_c_try_compile "$LINENO"; then :
  16847. have_gcc_no_strict_aliasing=yes
  16848. fi
  16849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16851. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16852. CFLAGS="$save_CFLAGS"
  16853. if test x$have_gcc_no_strict_aliasing = xyes; then
  16854. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16855. fi
  16856. }
  16857. CheckStackBoundary()
  16858. {
  16859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16860. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16861. have_gcc_preferred_stack_boundary=no
  16862. save_CFLAGS="$CFLAGS"
  16863. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16865. /* end confdefs.h. */
  16866. int x = 0;
  16867. int
  16868. main ()
  16869. {
  16870. ;
  16871. return 0;
  16872. }
  16873. _ACEOF
  16874. if ac_fn_c_try_compile "$LINENO"; then :
  16875. have_gcc_preferred_stack_boundary=yes
  16876. fi
  16877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16879. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16880. CFLAGS="$save_CFLAGS"
  16881. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16882. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16883. fi
  16884. }
  16885. CheckDeclarationAfterStatement()
  16886. {
  16887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16888. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16889. have_gcc_declaration_after_statement=no
  16890. save_CFLAGS="$CFLAGS"
  16891. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16893. /* end confdefs.h. */
  16894. int x = 0;
  16895. int
  16896. main ()
  16897. {
  16898. ;
  16899. return 0;
  16900. }
  16901. _ACEOF
  16902. if ac_fn_c_try_compile "$LINENO"; then :
  16903. have_gcc_declaration_after_statement=yes
  16904. fi
  16905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16907. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16908. CFLAGS="$save_CFLAGS"
  16909. if test x$have_gcc_declaration_after_statement = xyes; then
  16910. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16911. fi
  16912. }
  16913. CheckWarnAll()
  16914. {
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16916. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16917. have_gcc_Wall=no
  16918. save_CFLAGS="$CFLAGS"
  16919. CFLAGS="$save_CFLAGS -Wall"
  16920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16921. /* end confdefs.h. */
  16922. int x = 0;
  16923. int
  16924. main ()
  16925. {
  16926. ;
  16927. return 0;
  16928. }
  16929. _ACEOF
  16930. if ac_fn_c_try_compile "$LINENO"; then :
  16931. have_gcc_Wall=yes
  16932. fi
  16933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16935. $as_echo "$have_gcc_Wall" >&6; }
  16936. CFLAGS="$save_CFLAGS"
  16937. if test x$have_gcc_Wall = xyes; then
  16938. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16940. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16941. need_gcc_Wno_multichar=no
  16942. case "$host" in
  16943. *-*-haiku*)
  16944. need_gcc_Wno_multichar=yes
  16945. ;;
  16946. esac
  16947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16948. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16949. if test x$need_gcc_Wno_multichar = xyes; then
  16950. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16951. fi
  16952. fi
  16953. }
  16954. CheckWayland()
  16955. {
  16956. # Check whether --enable-video-wayland was given.
  16957. if test "${enable_video_wayland+set}" = set; then :
  16958. enableval=$enable_video_wayland;
  16959. else
  16960. enable_video_wayland=yes
  16961. fi
  16962. # Check whether --enable-video-wayland-qt-touch was given.
  16963. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16964. enableval=$enable_video_wayland_qt_touch;
  16965. else
  16966. enable_video_wayland_qt_touch=yes
  16967. fi
  16968. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16970. $as_echo_n "checking for Wayland support... " >&6; }
  16971. video_wayland=no
  16972. if test x$video_opengl_egl = xyes && \
  16973. test x$video_opengles_v2 = xyes; then
  16974. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16975. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16976. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16977. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16978. video_wayland=yes
  16979. fi
  16980. fi
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16982. $as_echo "$video_wayland" >&6; }
  16983. if test x$video_wayland = xyes; then
  16984. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16985. if test x$enable_video_wayland_qt_touch = xyes; then
  16986. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16987. fi
  16988. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16989. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16990. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16991. # Check whether --enable-wayland-shared was given.
  16992. if test "${enable_wayland_shared+set}" = set; then :
  16993. enableval=$enable_wayland_shared;
  16994. else
  16995. enable_wayland_shared=maybe
  16996. fi
  16997. case "$host" in
  16998. *)
  16999. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17000. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17001. if test x$wayland_egl_lib = x; then
  17002. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17003. fi
  17004. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17005. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17006. ;;
  17007. esac
  17008. if test x$enable_wayland_shared = xmaybe; then
  17009. enable_wayland_shared=yes
  17010. fi
  17011. if test x$have_loadso != xyes && \
  17012. test x$enable_wayland_shared = xyes; then
  17013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17014. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17015. enable_wayland_shared=no
  17016. fi
  17017. if test x$have_loadso = xyes && \
  17018. test x$enable_wayland_shared = xyes && \
  17019. test x$wayland_client_lib != x && \
  17020. test x$wayland_egl_lib != x && \
  17021. test x$wayland_cursor_lib != x && \
  17022. test x$xkbcommon_lib != x; then
  17023. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17024. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17025. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17026. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17027. cat >>confdefs.h <<_ACEOF
  17028. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17029. _ACEOF
  17030. cat >>confdefs.h <<_ACEOF
  17031. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17032. _ACEOF
  17033. cat >>confdefs.h <<_ACEOF
  17034. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17035. _ACEOF
  17036. cat >>confdefs.h <<_ACEOF
  17037. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17038. _ACEOF
  17039. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17040. else
  17041. enable_wayland_shared=no
  17042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17043. SUMMARY_video="${SUMMARY_video} wayland"
  17044. fi
  17045. have_video=yes
  17046. fi
  17047. fi
  17048. }
  17049. CheckNativeClient()
  17050. {
  17051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17052. /* end confdefs.h. */
  17053. #if !defined(__native_client__)
  17054. #error "NO NACL"
  17055. #endif
  17056. int
  17057. main ()
  17058. {
  17059. ;
  17060. return 0;
  17061. }
  17062. _ACEOF
  17063. if ac_fn_c_try_compile "$LINENO"; then :
  17064. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17065. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17066. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17067. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17068. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17069. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17070. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17071. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17072. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17073. SUMMARY_audio="${SUMMARY_audio} nacl"
  17074. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17075. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17076. fi
  17077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17078. }
  17079. CheckRPI()
  17080. {
  17081. # Check whether --enable-video-rpi was given.
  17082. if test "${enable_video_rpi+set}" = set; then :
  17083. enableval=$enable_video_rpi;
  17084. else
  17085. enable_video_rpi=yes
  17086. fi
  17087. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17088. pkg_failed=no
  17089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17090. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17091. if test -n "$RPI_CFLAGS"; then
  17092. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17093. elif test -n "$PKG_CONFIG"; then
  17094. if test -n "$PKG_CONFIG" && \
  17095. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17096. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17097. ac_status=$?
  17098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17099. test $ac_status = 0; }; then
  17100. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17101. test "x$?" != "x0" && pkg_failed=yes
  17102. else
  17103. pkg_failed=yes
  17104. fi
  17105. else
  17106. pkg_failed=untried
  17107. fi
  17108. if test -n "$RPI_LIBS"; then
  17109. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17110. elif test -n "$PKG_CONFIG"; then
  17111. if test -n "$PKG_CONFIG" && \
  17112. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17113. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17114. ac_status=$?
  17115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17116. test $ac_status = 0; }; then
  17117. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17118. test "x$?" != "x0" && pkg_failed=yes
  17119. else
  17120. pkg_failed=yes
  17121. fi
  17122. else
  17123. pkg_failed=untried
  17124. fi
  17125. if test $pkg_failed = yes; then
  17126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17127. $as_echo "no" >&6; }
  17128. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17129. _pkg_short_errors_supported=yes
  17130. else
  17131. _pkg_short_errors_supported=no
  17132. fi
  17133. if test $_pkg_short_errors_supported = yes; then
  17134. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17135. else
  17136. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17137. fi
  17138. # Put the nasty error message in config.log where it belongs
  17139. echo "$RPI_PKG_ERRORS" >&5
  17140. video_rpi=no
  17141. elif test $pkg_failed = untried; then
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17143. $as_echo "no" >&6; }
  17144. video_rpi=no
  17145. else
  17146. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17147. RPI_LIBS=$pkg_cv_RPI_LIBS
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17149. $as_echo "yes" >&6; }
  17150. video_rpi=yes
  17151. fi
  17152. if test x$video_rpi = xno; then
  17153. if test x$ARCH = xnetbsd; then
  17154. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17155. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17156. else
  17157. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17158. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17159. fi
  17160. fi
  17161. # Save the original compiler flags and libraries
  17162. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17163. # Add the Raspberry Pi compiler flags and libraries
  17164. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17166. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17167. have_video_rpi=no
  17168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17169. /* end confdefs.h. */
  17170. #include <bcm_host.h>
  17171. int
  17172. main ()
  17173. {
  17174. bcm_host_init();
  17175. ;
  17176. return 0;
  17177. }
  17178. _ACEOF
  17179. if ac_fn_c_try_link "$LINENO"; then :
  17180. have_video_rpi=yes
  17181. fi
  17182. rm -f core conftest.err conftest.$ac_objext \
  17183. conftest$ac_exeext conftest.$ac_ext
  17184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17185. $as_echo "$have_video_rpi" >&6; }
  17186. # Restore the compiler flags and libraries
  17187. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17188. if test x$have_video_rpi = xyes; then
  17189. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17190. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17191. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17192. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17193. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17194. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17195. SUMMARY_video="${SUMMARY_video} rpi"
  17196. fi
  17197. fi
  17198. }
  17199. CheckX11()
  17200. {
  17201. # Check whether --enable-video-x11 was given.
  17202. if test "${enable_video_x11+set}" = set; then :
  17203. enableval=$enable_video_x11;
  17204. else
  17205. enable_video_x11=yes
  17206. fi
  17207. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17208. case "$host" in
  17209. *-*-darwin*)
  17210. # This isn't necessary for X11, but fixes GLX detection
  17211. if test "x$x_includes" = xNONE && \
  17212. test "x$x_libraries" = xNONE && \
  17213. test -d /opt/X11/include && \
  17214. test -d /opt/X11/lib; then
  17215. x_includes="/opt/X11/include"
  17216. x_libraries="/opt/X11/lib"
  17217. fi
  17218. ;;
  17219. esac
  17220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17221. $as_echo_n "checking for X... " >&6; }
  17222. # Check whether --with-x was given.
  17223. if test "${with_x+set}" = set; then :
  17224. withval=$with_x;
  17225. fi
  17226. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17227. if test "x$with_x" = xno; then
  17228. # The user explicitly disabled X.
  17229. have_x=disabled
  17230. else
  17231. case $x_includes,$x_libraries in #(
  17232. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17233. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17234. $as_echo_n "(cached) " >&6
  17235. else
  17236. # One or both of the vars are not set, and there is no cached value.
  17237. ac_x_includes=no
  17238. ac_x_libraries=no
  17239. # Do we need to do anything special at all?
  17240. ac_save_LIBS=$LIBS
  17241. LIBS="-lX11 $LIBS"
  17242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17243. /* end confdefs.h. */
  17244. #include <X11/Xlib.h>
  17245. int
  17246. main ()
  17247. {
  17248. XrmInitialize ()
  17249. ;
  17250. return 0;
  17251. }
  17252. _ACEOF
  17253. if ac_fn_c_try_link "$LINENO"; then :
  17254. # We can compile and link X programs with no special options.
  17255. ac_x_includes=
  17256. ac_x_libraries=
  17257. fi
  17258. rm -f core conftest.err conftest.$ac_objext \
  17259. conftest$ac_exeext conftest.$ac_ext
  17260. LIBS="$ac_save_LIBS"
  17261. # If that didn't work, only try xmkmf and filesystem searches
  17262. # for native compilation.
  17263. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17264. rm -f -r conftest.dir
  17265. if mkdir conftest.dir; then
  17266. cd conftest.dir
  17267. cat >Imakefile <<'_ACEOF'
  17268. incroot:
  17269. @echo incroot='${INCROOT}'
  17270. usrlibdir:
  17271. @echo usrlibdir='${USRLIBDIR}'
  17272. libdir:
  17273. @echo libdir='${LIBDIR}'
  17274. _ACEOF
  17275. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17276. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17277. for ac_var in incroot usrlibdir libdir; do
  17278. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17279. done
  17280. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17281. for ac_extension in a so sl dylib la dll; do
  17282. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17283. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17284. ac_im_usrlibdir=$ac_im_libdir; break
  17285. fi
  17286. done
  17287. # Screen out bogus values from the imake configuration. They are
  17288. # bogus both because they are the default anyway, and because
  17289. # using them would break gcc on systems where it needs fixed includes.
  17290. case $ac_im_incroot in
  17291. /usr/include) ac_x_includes= ;;
  17292. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17293. esac
  17294. case $ac_im_usrlibdir in
  17295. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17296. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17297. esac
  17298. fi
  17299. cd ..
  17300. rm -f -r conftest.dir
  17301. fi
  17302. # Standard set of common directories for X headers.
  17303. # Check X11 before X11Rn because it is often a symlink to the current release.
  17304. ac_x_header_dirs='
  17305. /usr/X11/include
  17306. /usr/X11R7/include
  17307. /usr/X11R6/include
  17308. /usr/X11R5/include
  17309. /usr/X11R4/include
  17310. /usr/include/X11
  17311. /usr/include/X11R7
  17312. /usr/include/X11R6
  17313. /usr/include/X11R5
  17314. /usr/include/X11R4
  17315. /usr/local/X11/include
  17316. /usr/local/X11R7/include
  17317. /usr/local/X11R6/include
  17318. /usr/local/X11R5/include
  17319. /usr/local/X11R4/include
  17320. /usr/local/include/X11
  17321. /usr/local/include/X11R7
  17322. /usr/local/include/X11R6
  17323. /usr/local/include/X11R5
  17324. /usr/local/include/X11R4
  17325. /opt/X11/include
  17326. /usr/X386/include
  17327. /usr/x386/include
  17328. /usr/XFree86/include/X11
  17329. /usr/include
  17330. /usr/local/include
  17331. /usr/unsupported/include
  17332. /usr/athena/include
  17333. /usr/local/x11r5/include
  17334. /usr/lpp/Xamples/include
  17335. /usr/openwin/include
  17336. /usr/openwin/share/include'
  17337. if test "$ac_x_includes" = no; then
  17338. # Guess where to find include files, by looking for Xlib.h.
  17339. # First, try using that file with no special directory specified.
  17340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17341. /* end confdefs.h. */
  17342. #include <X11/Xlib.h>
  17343. _ACEOF
  17344. if ac_fn_c_try_cpp "$LINENO"; then :
  17345. # We can compile using X headers with no special include directory.
  17346. ac_x_includes=
  17347. else
  17348. for ac_dir in $ac_x_header_dirs; do
  17349. if test -r "$ac_dir/X11/Xlib.h"; then
  17350. ac_x_includes=$ac_dir
  17351. break
  17352. fi
  17353. done
  17354. fi
  17355. rm -f conftest.err conftest.i conftest.$ac_ext
  17356. fi # $ac_x_includes = no
  17357. if test "$ac_x_libraries" = no; then
  17358. # Check for the libraries.
  17359. # See if we find them without any special options.
  17360. # Don't add to $LIBS permanently.
  17361. ac_save_LIBS=$LIBS
  17362. LIBS="-lX11 $LIBS"
  17363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17364. /* end confdefs.h. */
  17365. #include <X11/Xlib.h>
  17366. int
  17367. main ()
  17368. {
  17369. XrmInitialize ()
  17370. ;
  17371. return 0;
  17372. }
  17373. _ACEOF
  17374. if ac_fn_c_try_link "$LINENO"; then :
  17375. LIBS=$ac_save_LIBS
  17376. # We can link X programs with no special library path.
  17377. ac_x_libraries=
  17378. else
  17379. LIBS=$ac_save_LIBS
  17380. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17381. do
  17382. # Don't even attempt the hair of trying to link an X program!
  17383. for ac_extension in a so sl dylib la dll; do
  17384. if test -r "$ac_dir/libX11.$ac_extension"; then
  17385. ac_x_libraries=$ac_dir
  17386. break 2
  17387. fi
  17388. done
  17389. done
  17390. fi
  17391. rm -f core conftest.err conftest.$ac_objext \
  17392. conftest$ac_exeext conftest.$ac_ext
  17393. fi # $ac_x_libraries = no
  17394. fi
  17395. # Record the results.
  17396. case $ac_x_includes,$ac_x_libraries in #(
  17397. no,* | *,no | *\'*) :
  17398. # Didn't find X, or a directory has "'" in its name.
  17399. ac_cv_have_x="have_x=no" ;; #(
  17400. *) :
  17401. # Record where we found X for the cache.
  17402. ac_cv_have_x="have_x=yes\
  17403. ac_x_includes='$ac_x_includes'\
  17404. ac_x_libraries='$ac_x_libraries'" ;;
  17405. esac
  17406. fi
  17407. ;; #(
  17408. *) have_x=yes;;
  17409. esac
  17410. eval "$ac_cv_have_x"
  17411. fi # $with_x != no
  17412. if test "$have_x" != yes; then
  17413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17414. $as_echo "$have_x" >&6; }
  17415. no_x=yes
  17416. else
  17417. # If each of the values was on the command line, it overrides each guess.
  17418. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17419. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17420. # Update the cache value to reflect the command line values.
  17421. ac_cv_have_x="have_x=yes\
  17422. ac_x_includes='$x_includes'\
  17423. ac_x_libraries='$x_libraries'"
  17424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17425. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17426. fi
  17427. if test "$no_x" = yes; then
  17428. # Not all programs may use this symbol, but it does not hurt to define it.
  17429. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17430. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17431. else
  17432. if test -n "$x_includes"; then
  17433. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17434. fi
  17435. # It would also be nice to do this for all -L options, not just this one.
  17436. if test -n "$x_libraries"; then
  17437. X_LIBS="$X_LIBS -L$x_libraries"
  17438. # For Solaris; some versions of Sun CC require a space after -R and
  17439. # others require no space. Words are not sufficient . . . .
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17441. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17442. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17443. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17444. ac_c_werror_flag=yes
  17445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17446. /* end confdefs.h. */
  17447. int
  17448. main ()
  17449. {
  17450. ;
  17451. return 0;
  17452. }
  17453. _ACEOF
  17454. if ac_fn_c_try_link "$LINENO"; then :
  17455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17456. $as_echo "no" >&6; }
  17457. X_LIBS="$X_LIBS -R$x_libraries"
  17458. else
  17459. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17461. /* end confdefs.h. */
  17462. int
  17463. main ()
  17464. {
  17465. ;
  17466. return 0;
  17467. }
  17468. _ACEOF
  17469. if ac_fn_c_try_link "$LINENO"; then :
  17470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17471. $as_echo "yes" >&6; }
  17472. X_LIBS="$X_LIBS -R $x_libraries"
  17473. else
  17474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17475. $as_echo "neither works" >&6; }
  17476. fi
  17477. rm -f core conftest.err conftest.$ac_objext \
  17478. conftest$ac_exeext conftest.$ac_ext
  17479. fi
  17480. rm -f core conftest.err conftest.$ac_objext \
  17481. conftest$ac_exeext conftest.$ac_ext
  17482. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17483. LIBS=$ac_xsave_LIBS
  17484. fi
  17485. # Check for system-dependent libraries X programs must link with.
  17486. # Do this before checking for the system-independent R6 libraries
  17487. # (-lICE), since we may need -lsocket or whatever for X linking.
  17488. if test "$ISC" = yes; then
  17489. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17490. else
  17491. # Martyn Johnson says this is needed for Ultrix, if the X
  17492. # libraries were built with DECnet support. And Karl Berry says
  17493. # the Alpha needs dnet_stub (dnet does not exist).
  17494. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17496. /* end confdefs.h. */
  17497. /* Override any GCC internal prototype to avoid an error.
  17498. Use char because int might match the return type of a GCC
  17499. builtin and then its argument prototype would still apply. */
  17500. #ifdef __cplusplus
  17501. extern "C"
  17502. #endif
  17503. char XOpenDisplay ();
  17504. int
  17505. main ()
  17506. {
  17507. return XOpenDisplay ();
  17508. ;
  17509. return 0;
  17510. }
  17511. _ACEOF
  17512. if ac_fn_c_try_link "$LINENO"; then :
  17513. else
  17514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17515. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17516. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17517. $as_echo_n "(cached) " >&6
  17518. else
  17519. ac_check_lib_save_LIBS=$LIBS
  17520. LIBS="-ldnet $LIBS"
  17521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17522. /* end confdefs.h. */
  17523. /* Override any GCC internal prototype to avoid an error.
  17524. Use char because int might match the return type of a GCC
  17525. builtin and then its argument prototype would still apply. */
  17526. #ifdef __cplusplus
  17527. extern "C"
  17528. #endif
  17529. char dnet_ntoa ();
  17530. int
  17531. main ()
  17532. {
  17533. return dnet_ntoa ();
  17534. ;
  17535. return 0;
  17536. }
  17537. _ACEOF
  17538. if ac_fn_c_try_link "$LINENO"; then :
  17539. ac_cv_lib_dnet_dnet_ntoa=yes
  17540. else
  17541. ac_cv_lib_dnet_dnet_ntoa=no
  17542. fi
  17543. rm -f core conftest.err conftest.$ac_objext \
  17544. conftest$ac_exeext conftest.$ac_ext
  17545. LIBS=$ac_check_lib_save_LIBS
  17546. fi
  17547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17548. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17549. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17550. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17551. fi
  17552. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17554. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17555. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17556. $as_echo_n "(cached) " >&6
  17557. else
  17558. ac_check_lib_save_LIBS=$LIBS
  17559. LIBS="-ldnet_stub $LIBS"
  17560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17561. /* end confdefs.h. */
  17562. /* Override any GCC internal prototype to avoid an error.
  17563. Use char because int might match the return type of a GCC
  17564. builtin and then its argument prototype would still apply. */
  17565. #ifdef __cplusplus
  17566. extern "C"
  17567. #endif
  17568. char dnet_ntoa ();
  17569. int
  17570. main ()
  17571. {
  17572. return dnet_ntoa ();
  17573. ;
  17574. return 0;
  17575. }
  17576. _ACEOF
  17577. if ac_fn_c_try_link "$LINENO"; then :
  17578. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17579. else
  17580. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17581. fi
  17582. rm -f core conftest.err conftest.$ac_objext \
  17583. conftest$ac_exeext conftest.$ac_ext
  17584. LIBS=$ac_check_lib_save_LIBS
  17585. fi
  17586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17587. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17588. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17589. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17590. fi
  17591. fi
  17592. fi
  17593. rm -f core conftest.err conftest.$ac_objext \
  17594. conftest$ac_exeext conftest.$ac_ext
  17595. LIBS="$ac_xsave_LIBS"
  17596. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17597. # to get the SysV transport functions.
  17598. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17599. # needs -lnsl.
  17600. # The nsl library prevents programs from opening the X display
  17601. # on Irix 5.2, according to T.E. Dickey.
  17602. # The functions gethostbyname, getservbyname, and inet_addr are
  17603. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17604. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17605. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17606. fi
  17607. if test $ac_cv_func_gethostbyname = no; then
  17608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17609. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17610. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17611. $as_echo_n "(cached) " >&6
  17612. else
  17613. ac_check_lib_save_LIBS=$LIBS
  17614. LIBS="-lnsl $LIBS"
  17615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17616. /* end confdefs.h. */
  17617. /* Override any GCC internal prototype to avoid an error.
  17618. Use char because int might match the return type of a GCC
  17619. builtin and then its argument prototype would still apply. */
  17620. #ifdef __cplusplus
  17621. extern "C"
  17622. #endif
  17623. char gethostbyname ();
  17624. int
  17625. main ()
  17626. {
  17627. return gethostbyname ();
  17628. ;
  17629. return 0;
  17630. }
  17631. _ACEOF
  17632. if ac_fn_c_try_link "$LINENO"; then :
  17633. ac_cv_lib_nsl_gethostbyname=yes
  17634. else
  17635. ac_cv_lib_nsl_gethostbyname=no
  17636. fi
  17637. rm -f core conftest.err conftest.$ac_objext \
  17638. conftest$ac_exeext conftest.$ac_ext
  17639. LIBS=$ac_check_lib_save_LIBS
  17640. fi
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17642. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17643. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17644. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17645. fi
  17646. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17648. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17649. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17650. $as_echo_n "(cached) " >&6
  17651. else
  17652. ac_check_lib_save_LIBS=$LIBS
  17653. LIBS="-lbsd $LIBS"
  17654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17655. /* end confdefs.h. */
  17656. /* Override any GCC internal prototype to avoid an error.
  17657. Use char because int might match the return type of a GCC
  17658. builtin and then its argument prototype would still apply. */
  17659. #ifdef __cplusplus
  17660. extern "C"
  17661. #endif
  17662. char gethostbyname ();
  17663. int
  17664. main ()
  17665. {
  17666. return gethostbyname ();
  17667. ;
  17668. return 0;
  17669. }
  17670. _ACEOF
  17671. if ac_fn_c_try_link "$LINENO"; then :
  17672. ac_cv_lib_bsd_gethostbyname=yes
  17673. else
  17674. ac_cv_lib_bsd_gethostbyname=no
  17675. fi
  17676. rm -f core conftest.err conftest.$ac_objext \
  17677. conftest$ac_exeext conftest.$ac_ext
  17678. LIBS=$ac_check_lib_save_LIBS
  17679. fi
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17681. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17682. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17683. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17684. fi
  17685. fi
  17686. fi
  17687. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17688. # socket/setsockopt and other routines are undefined under SCO ODT
  17689. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17690. # on later versions), says Simon Leinen: it contains gethostby*
  17691. # variants that don't use the name server (or something). -lsocket
  17692. # must be given before -lnsl if both are needed. We assume that
  17693. # if connect needs -lnsl, so does gethostbyname.
  17694. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17695. if test "x$ac_cv_func_connect" = xyes; then :
  17696. fi
  17697. if test $ac_cv_func_connect = no; then
  17698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17699. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17700. if ${ac_cv_lib_socket_connect+:} false; then :
  17701. $as_echo_n "(cached) " >&6
  17702. else
  17703. ac_check_lib_save_LIBS=$LIBS
  17704. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17706. /* end confdefs.h. */
  17707. /* Override any GCC internal prototype to avoid an error.
  17708. Use char because int might match the return type of a GCC
  17709. builtin and then its argument prototype would still apply. */
  17710. #ifdef __cplusplus
  17711. extern "C"
  17712. #endif
  17713. char connect ();
  17714. int
  17715. main ()
  17716. {
  17717. return connect ();
  17718. ;
  17719. return 0;
  17720. }
  17721. _ACEOF
  17722. if ac_fn_c_try_link "$LINENO"; then :
  17723. ac_cv_lib_socket_connect=yes
  17724. else
  17725. ac_cv_lib_socket_connect=no
  17726. fi
  17727. rm -f core conftest.err conftest.$ac_objext \
  17728. conftest$ac_exeext conftest.$ac_ext
  17729. LIBS=$ac_check_lib_save_LIBS
  17730. fi
  17731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17732. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17733. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17734. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17735. fi
  17736. fi
  17737. # Guillermo Gomez says -lposix is necessary on A/UX.
  17738. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17739. if test "x$ac_cv_func_remove" = xyes; then :
  17740. fi
  17741. if test $ac_cv_func_remove = no; then
  17742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17743. $as_echo_n "checking for remove in -lposix... " >&6; }
  17744. if ${ac_cv_lib_posix_remove+:} false; then :
  17745. $as_echo_n "(cached) " >&6
  17746. else
  17747. ac_check_lib_save_LIBS=$LIBS
  17748. LIBS="-lposix $LIBS"
  17749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17750. /* end confdefs.h. */
  17751. /* Override any GCC internal prototype to avoid an error.
  17752. Use char because int might match the return type of a GCC
  17753. builtin and then its argument prototype would still apply. */
  17754. #ifdef __cplusplus
  17755. extern "C"
  17756. #endif
  17757. char remove ();
  17758. int
  17759. main ()
  17760. {
  17761. return remove ();
  17762. ;
  17763. return 0;
  17764. }
  17765. _ACEOF
  17766. if ac_fn_c_try_link "$LINENO"; then :
  17767. ac_cv_lib_posix_remove=yes
  17768. else
  17769. ac_cv_lib_posix_remove=no
  17770. fi
  17771. rm -f core conftest.err conftest.$ac_objext \
  17772. conftest$ac_exeext conftest.$ac_ext
  17773. LIBS=$ac_check_lib_save_LIBS
  17774. fi
  17775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17776. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17777. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17778. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17779. fi
  17780. fi
  17781. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17782. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17783. if test "x$ac_cv_func_shmat" = xyes; then :
  17784. fi
  17785. if test $ac_cv_func_shmat = no; then
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17787. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17788. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17789. $as_echo_n "(cached) " >&6
  17790. else
  17791. ac_check_lib_save_LIBS=$LIBS
  17792. LIBS="-lipc $LIBS"
  17793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17794. /* end confdefs.h. */
  17795. /* Override any GCC internal prototype to avoid an error.
  17796. Use char because int might match the return type of a GCC
  17797. builtin and then its argument prototype would still apply. */
  17798. #ifdef __cplusplus
  17799. extern "C"
  17800. #endif
  17801. char shmat ();
  17802. int
  17803. main ()
  17804. {
  17805. return shmat ();
  17806. ;
  17807. return 0;
  17808. }
  17809. _ACEOF
  17810. if ac_fn_c_try_link "$LINENO"; then :
  17811. ac_cv_lib_ipc_shmat=yes
  17812. else
  17813. ac_cv_lib_ipc_shmat=no
  17814. fi
  17815. rm -f core conftest.err conftest.$ac_objext \
  17816. conftest$ac_exeext conftest.$ac_ext
  17817. LIBS=$ac_check_lib_save_LIBS
  17818. fi
  17819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17820. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17821. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17822. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17823. fi
  17824. fi
  17825. fi
  17826. # Check for libraries that X11R6 Xt/Xaw programs need.
  17827. ac_save_LDFLAGS=$LDFLAGS
  17828. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17829. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17830. # check for ICE first), but we must link in the order -lSM -lICE or
  17831. # we get undefined symbols. So assume we have SM if we have ICE.
  17832. # These have to be linked with before -lX11, unlike the other
  17833. # libraries we check for below, so use a different variable.
  17834. # John Interrante, Karl Berry
  17835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17836. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17837. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17838. $as_echo_n "(cached) " >&6
  17839. else
  17840. ac_check_lib_save_LIBS=$LIBS
  17841. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17843. /* end confdefs.h. */
  17844. /* Override any GCC internal prototype to avoid an error.
  17845. Use char because int might match the return type of a GCC
  17846. builtin and then its argument prototype would still apply. */
  17847. #ifdef __cplusplus
  17848. extern "C"
  17849. #endif
  17850. char IceConnectionNumber ();
  17851. int
  17852. main ()
  17853. {
  17854. return IceConnectionNumber ();
  17855. ;
  17856. return 0;
  17857. }
  17858. _ACEOF
  17859. if ac_fn_c_try_link "$LINENO"; then :
  17860. ac_cv_lib_ICE_IceConnectionNumber=yes
  17861. else
  17862. ac_cv_lib_ICE_IceConnectionNumber=no
  17863. fi
  17864. rm -f core conftest.err conftest.$ac_objext \
  17865. conftest$ac_exeext conftest.$ac_ext
  17866. LIBS=$ac_check_lib_save_LIBS
  17867. fi
  17868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17869. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17870. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17871. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17872. fi
  17873. LDFLAGS=$ac_save_LDFLAGS
  17874. fi
  17875. if test x$have_x = xyes; then
  17876. # Check whether --enable-x11-shared was given.
  17877. if test "${enable_x11_shared+set}" = set; then :
  17878. enableval=$enable_x11_shared;
  17879. else
  17880. enable_x11_shared=maybe
  17881. fi
  17882. case "$host" in
  17883. *-*-darwin*)
  17884. # Apple now puts this in /opt/X11
  17885. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17886. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17887. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17888. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17889. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17890. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17891. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17892. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17893. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17894. ;;
  17895. *-*-openbsd*)
  17896. x11_lib='libX11.so'
  17897. x11ext_lib='libXext.so'
  17898. xcursor_lib='libXcursor.so'
  17899. xinerama_lib='libXinerama.so'
  17900. xinput_lib='libXi.so'
  17901. xrandr_lib='libXrandr.so'
  17902. xrender_lib='libXrender.so'
  17903. xss_lib='libXss.so'
  17904. xvidmode_lib='libXxf86vm.so'
  17905. ;;
  17906. *)
  17907. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17908. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17909. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17910. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17911. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17912. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17913. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17914. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17915. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17916. ;;
  17917. esac
  17918. if test x$ac_cv_func_shmat != xyes; then
  17919. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17920. fi
  17921. CFLAGS="$CFLAGS $X_CFLAGS"
  17922. LDFLAGS="$LDFLAGS $X_LIBS"
  17923. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17924. #include <X11/Xproto.h>
  17925. "
  17926. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17927. have_xext_h_hdr=yes
  17928. else
  17929. have_xext_h_hdr=no
  17930. fi
  17931. if test x$have_xext_h_hdr != xyes; then
  17932. as_fn_error $? "
  17933. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17934. " "$LINENO" 5
  17935. fi
  17936. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17937. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17938. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17939. # Needed so SDL applications can include SDL_syswm.h
  17940. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17941. if test x$enable_x11_shared = xmaybe; then
  17942. enable_x11_shared=yes
  17943. fi
  17944. if test x$have_loadso != xyes && \
  17945. test x$enable_x11_shared = xyes; then
  17946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17947. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17948. enable_x11_shared=no
  17949. fi
  17950. if test x$have_loadso = xyes && \
  17951. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17952. echo "-- dynamic libX11 -> $x11_lib"
  17953. echo "-- dynamic libX11ext -> $x11ext_lib"
  17954. cat >>confdefs.h <<_ACEOF
  17955. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17956. _ACEOF
  17957. cat >>confdefs.h <<_ACEOF
  17958. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17959. _ACEOF
  17960. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17961. else
  17962. enable_x11_shared=no
  17963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17964. SUMMARY_video="${SUMMARY_video} x11"
  17965. fi
  17966. have_video=yes
  17967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17968. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17969. have_const_param_XextAddDisplay=no
  17970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17971. /* end confdefs.h. */
  17972. #include <X11/Xlib.h>
  17973. #include <X11/Xproto.h>
  17974. #include <X11/extensions/Xext.h>
  17975. #include <X11/extensions/extutil.h>
  17976. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17977. int
  17978. main ()
  17979. {
  17980. ;
  17981. return 0;
  17982. }
  17983. _ACEOF
  17984. if ac_fn_c_try_compile "$LINENO"; then :
  17985. have_const_param_XextAddDisplay=yes
  17986. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17987. fi
  17988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17990. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17992. $as_echo_n "checking for XGenericEvent... " >&6; }
  17993. have_XGenericEvent=no
  17994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17995. /* end confdefs.h. */
  17996. #include <X11/Xlib.h>
  17997. int
  17998. main ()
  17999. {
  18000. Display *display;
  18001. XEvent event;
  18002. XGenericEventCookie *cookie = &event.xcookie;
  18003. XNextEvent(display, &event);
  18004. XGetEventData(display, cookie);
  18005. XFreeEventData(display, cookie);
  18006. ;
  18007. return 0;
  18008. }
  18009. _ACEOF
  18010. if ac_fn_c_try_compile "$LINENO"; then :
  18011. have_XGenericEvent=yes
  18012. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18013. fi
  18014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18016. $as_echo "$have_XGenericEvent" >&6; }
  18017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18018. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18019. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18020. $as_echo_n "(cached) " >&6
  18021. else
  18022. ac_check_lib_save_LIBS=$LIBS
  18023. LIBS="-lX11 $LIBS"
  18024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18025. /* end confdefs.h. */
  18026. /* Override any GCC internal prototype to avoid an error.
  18027. Use char because int might match the return type of a GCC
  18028. builtin and then its argument prototype would still apply. */
  18029. #ifdef __cplusplus
  18030. extern "C"
  18031. #endif
  18032. char XkbKeycodeToKeysym ();
  18033. int
  18034. main ()
  18035. {
  18036. return XkbKeycodeToKeysym ();
  18037. ;
  18038. return 0;
  18039. }
  18040. _ACEOF
  18041. if ac_fn_c_try_link "$LINENO"; then :
  18042. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18043. else
  18044. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18045. fi
  18046. rm -f core conftest.err conftest.$ac_objext \
  18047. conftest$ac_exeext conftest.$ac_ext
  18048. LIBS=$ac_check_lib_save_LIBS
  18049. fi
  18050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18051. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18052. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18053. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18054. fi
  18055. # Check whether --enable-video-x11-xcursor was given.
  18056. if test "${enable_video_x11_xcursor+set}" = set; then :
  18057. enableval=$enable_video_x11_xcursor;
  18058. else
  18059. enable_video_x11_xcursor=yes
  18060. fi
  18061. if test x$enable_video_x11_xcursor = xyes; then
  18062. definitely_enable_video_x11_xcursor=no
  18063. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18064. "
  18065. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18066. have_xcursor_h_hdr=yes
  18067. else
  18068. have_xcursor_h_hdr=no
  18069. fi
  18070. if test x$have_xcursor_h_hdr = xyes; then
  18071. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18072. echo "-- dynamic libXcursor -> $xcursor_lib"
  18073. cat >>confdefs.h <<_ACEOF
  18074. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18075. _ACEOF
  18076. definitely_enable_video_x11_xcursor=yes
  18077. else
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18079. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18080. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18081. $as_echo_n "(cached) " >&6
  18082. else
  18083. ac_check_lib_save_LIBS=$LIBS
  18084. LIBS="-lXcursor $LIBS"
  18085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18086. /* end confdefs.h. */
  18087. /* Override any GCC internal prototype to avoid an error.
  18088. Use char because int might match the return type of a GCC
  18089. builtin and then its argument prototype would still apply. */
  18090. #ifdef __cplusplus
  18091. extern "C"
  18092. #endif
  18093. char XcursorImageCreate ();
  18094. int
  18095. main ()
  18096. {
  18097. return XcursorImageCreate ();
  18098. ;
  18099. return 0;
  18100. }
  18101. _ACEOF
  18102. if ac_fn_c_try_link "$LINENO"; then :
  18103. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18104. else
  18105. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18106. fi
  18107. rm -f core conftest.err conftest.$ac_objext \
  18108. conftest$ac_exeext conftest.$ac_ext
  18109. LIBS=$ac_check_lib_save_LIBS
  18110. fi
  18111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18112. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18113. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18114. have_xcursor_lib=yes
  18115. fi
  18116. if test x$have_xcursor_lib = xyes ; then
  18117. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18118. definitely_enable_video_x11_xcursor=yes
  18119. fi
  18120. fi
  18121. fi
  18122. fi
  18123. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18124. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18125. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18126. fi
  18127. # Check whether --enable-video-x11-xdbe was given.
  18128. if test "${enable_video_x11_xdbe+set}" = set; then :
  18129. enableval=$enable_video_x11_xdbe;
  18130. else
  18131. enable_video_x11_xdbe=yes
  18132. fi
  18133. if test x$enable_video_x11_xdbe = xyes; then
  18134. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18135. "
  18136. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18137. have_dbe_h_hdr=yes
  18138. else
  18139. have_dbe_h_hdr=no
  18140. fi
  18141. if test x$have_dbe_h_hdr = xyes; then
  18142. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18143. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18144. fi
  18145. fi
  18146. # Check whether --enable-video-x11-xinerama was given.
  18147. if test "${enable_video_x11_xinerama+set}" = set; then :
  18148. enableval=$enable_video_x11_xinerama;
  18149. else
  18150. enable_video_x11_xinerama=yes
  18151. fi
  18152. if test x$enable_video_x11_xinerama = xyes; then
  18153. definitely_enable_video_x11_xinerama=no
  18154. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18155. "
  18156. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18157. have_xinerama_h_hdr=yes
  18158. else
  18159. have_xinerama_h_hdr=no
  18160. fi
  18161. if test x$have_xinerama_h_hdr = xyes; then
  18162. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18163. echo "-- dynamic libXinerama -> $xinerama_lib"
  18164. cat >>confdefs.h <<_ACEOF
  18165. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18166. _ACEOF
  18167. definitely_enable_video_x11_xinerama=yes
  18168. else
  18169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18170. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18171. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18172. $as_echo_n "(cached) " >&6
  18173. else
  18174. ac_check_lib_save_LIBS=$LIBS
  18175. LIBS="-lXinerama $LIBS"
  18176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18177. /* end confdefs.h. */
  18178. /* Override any GCC internal prototype to avoid an error.
  18179. Use char because int might match the return type of a GCC
  18180. builtin and then its argument prototype would still apply. */
  18181. #ifdef __cplusplus
  18182. extern "C"
  18183. #endif
  18184. char XineramaQueryExtension ();
  18185. int
  18186. main ()
  18187. {
  18188. return XineramaQueryExtension ();
  18189. ;
  18190. return 0;
  18191. }
  18192. _ACEOF
  18193. if ac_fn_c_try_link "$LINENO"; then :
  18194. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18195. else
  18196. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18197. fi
  18198. rm -f core conftest.err conftest.$ac_objext \
  18199. conftest$ac_exeext conftest.$ac_ext
  18200. LIBS=$ac_check_lib_save_LIBS
  18201. fi
  18202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18203. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18204. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18205. have_xinerama_lib=yes
  18206. fi
  18207. if test x$have_xinerama_lib = xyes ; then
  18208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18209. definitely_enable_video_x11_xinerama=yes
  18210. fi
  18211. fi
  18212. fi
  18213. fi
  18214. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18215. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18216. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18217. fi
  18218. # Check whether --enable-video-x11-xinput was given.
  18219. if test "${enable_video_x11_xinput+set}" = set; then :
  18220. enableval=$enable_video_x11_xinput;
  18221. else
  18222. enable_video_x11_xinput=yes
  18223. fi
  18224. if test x$enable_video_x11_xinput = xyes; then
  18225. definitely_enable_video_x11_xinput=no
  18226. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18227. "
  18228. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18229. have_xinput_h_hdr=yes
  18230. else
  18231. have_xinput_h_hdr=no
  18232. fi
  18233. if test x$have_xinput_h_hdr = xyes; then
  18234. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18235. echo "-- dynamic libXi -> $xinput_lib"
  18236. cat >>confdefs.h <<_ACEOF
  18237. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18238. _ACEOF
  18239. definitely_enable_video_x11_xinput=yes
  18240. else
  18241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18242. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18243. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18244. $as_echo_n "(cached) " >&6
  18245. else
  18246. ac_check_lib_save_LIBS=$LIBS
  18247. LIBS="-lXi $LIBS"
  18248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18249. /* end confdefs.h. */
  18250. /* Override any GCC internal prototype to avoid an error.
  18251. Use char because int might match the return type of a GCC
  18252. builtin and then its argument prototype would still apply. */
  18253. #ifdef __cplusplus
  18254. extern "C"
  18255. #endif
  18256. char XOpenDevice ();
  18257. int
  18258. main ()
  18259. {
  18260. return XOpenDevice ();
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. if ac_fn_c_try_link "$LINENO"; then :
  18266. ac_cv_lib_Xi_XOpenDevice=yes
  18267. else
  18268. ac_cv_lib_Xi_XOpenDevice=no
  18269. fi
  18270. rm -f core conftest.err conftest.$ac_objext \
  18271. conftest$ac_exeext conftest.$ac_ext
  18272. LIBS=$ac_check_lib_save_LIBS
  18273. fi
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18275. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18276. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18277. have_xinput_lib=yes
  18278. fi
  18279. if test x$have_xinput_lib = xyes ; then
  18280. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18281. definitely_enable_video_x11_xinput=yes
  18282. fi
  18283. fi
  18284. fi
  18285. fi
  18286. if test x$definitely_enable_video_x11_xinput = xyes; then
  18287. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18288. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18290. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18291. have_xinput2_multitouch=no
  18292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18293. /* end confdefs.h. */
  18294. #include <X11/Xlib.h>
  18295. #include <X11/Xproto.h>
  18296. #include <X11/extensions/XInput2.h>
  18297. int
  18298. main ()
  18299. {
  18300. int event_type = XI_TouchBegin;
  18301. XITouchClassInfo *t;
  18302. ;
  18303. return 0;
  18304. }
  18305. _ACEOF
  18306. if ac_fn_c_try_compile "$LINENO"; then :
  18307. have_xinput2_multitouch=yes
  18308. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18309. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18310. fi
  18311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18313. $as_echo "$have_xinput2_multitouch" >&6; }
  18314. fi
  18315. # Check whether --enable-video-x11-xrandr was given.
  18316. if test "${enable_video_x11_xrandr+set}" = set; then :
  18317. enableval=$enable_video_x11_xrandr;
  18318. else
  18319. enable_video_x11_xrandr=yes
  18320. fi
  18321. if test x$enable_video_x11_xrandr = xyes; then
  18322. definitely_enable_video_x11_xrandr=no
  18323. have_xrandr_h_hdr=no
  18324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18325. /* end confdefs.h. */
  18326. #include <X11/Xlib.h>
  18327. #include <X11/extensions/Xrandr.h>
  18328. int
  18329. main ()
  18330. {
  18331. XRRScreenResources *res = NULL;
  18332. ;
  18333. return 0;
  18334. }
  18335. _ACEOF
  18336. if ac_fn_c_try_compile "$LINENO"; then :
  18337. have_xrandr_h_hdr=yes
  18338. fi
  18339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18340. if test x$have_xrandr_h_hdr = xyes; then
  18341. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18342. echo "-- dynamic libXrandr -> $xrandr_lib"
  18343. cat >>confdefs.h <<_ACEOF
  18344. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18345. _ACEOF
  18346. definitely_enable_video_x11_xrandr=yes
  18347. else
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18349. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18350. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18351. $as_echo_n "(cached) " >&6
  18352. else
  18353. ac_check_lib_save_LIBS=$LIBS
  18354. LIBS="-lXrandr $LIBS"
  18355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18356. /* end confdefs.h. */
  18357. /* Override any GCC internal prototype to avoid an error.
  18358. Use char because int might match the return type of a GCC
  18359. builtin and then its argument prototype would still apply. */
  18360. #ifdef __cplusplus
  18361. extern "C"
  18362. #endif
  18363. char XRRQueryExtension ();
  18364. int
  18365. main ()
  18366. {
  18367. return XRRQueryExtension ();
  18368. ;
  18369. return 0;
  18370. }
  18371. _ACEOF
  18372. if ac_fn_c_try_link "$LINENO"; then :
  18373. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18374. else
  18375. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18376. fi
  18377. rm -f core conftest.err conftest.$ac_objext \
  18378. conftest$ac_exeext conftest.$ac_ext
  18379. LIBS=$ac_check_lib_save_LIBS
  18380. fi
  18381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18382. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18383. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18384. have_xrandr_lib=yes
  18385. fi
  18386. if test x$have_xrandr_lib = xyes ; then
  18387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18388. definitely_enable_video_x11_xrandr=yes
  18389. fi
  18390. fi
  18391. fi
  18392. fi
  18393. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18394. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18395. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18396. fi
  18397. # Check whether --enable-video-x11-scrnsaver was given.
  18398. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18399. enableval=$enable_video_x11_scrnsaver;
  18400. else
  18401. enable_video_x11_scrnsaver=yes
  18402. fi
  18403. if test x$enable_video_x11_scrnsaver = xyes; then
  18404. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18405. "
  18406. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18407. have_scrnsaver_h_hdr=yes
  18408. else
  18409. have_scrnsaver_h_hdr=no
  18410. fi
  18411. if test x$have_scrnsaver_h_hdr = xyes; then
  18412. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18413. echo "-- dynamic libXss -> $xss_lib"
  18414. cat >>confdefs.h <<_ACEOF
  18415. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18416. _ACEOF
  18417. definitely_enable_video_x11_scrnsaver=yes
  18418. else
  18419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18420. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18421. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18422. $as_echo_n "(cached) " >&6
  18423. else
  18424. ac_check_lib_save_LIBS=$LIBS
  18425. LIBS="-lXss $LIBS"
  18426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18427. /* end confdefs.h. */
  18428. /* Override any GCC internal prototype to avoid an error.
  18429. Use char because int might match the return type of a GCC
  18430. builtin and then its argument prototype would still apply. */
  18431. #ifdef __cplusplus
  18432. extern "C"
  18433. #endif
  18434. char XScreenSaverSuspend ();
  18435. int
  18436. main ()
  18437. {
  18438. return XScreenSaverSuspend ();
  18439. ;
  18440. return 0;
  18441. }
  18442. _ACEOF
  18443. if ac_fn_c_try_link "$LINENO"; then :
  18444. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18445. else
  18446. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18447. fi
  18448. rm -f core conftest.err conftest.$ac_objext \
  18449. conftest$ac_exeext conftest.$ac_ext
  18450. LIBS=$ac_check_lib_save_LIBS
  18451. fi
  18452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18453. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18454. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18455. have_xss_lib=yes
  18456. fi
  18457. if test x$have_xss_lib = xyes ; then
  18458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18459. definitely_enable_video_x11_scrnsaver=yes
  18460. fi
  18461. fi
  18462. fi
  18463. fi
  18464. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18465. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18466. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18467. fi
  18468. # Check whether --enable-video-x11-xshape was given.
  18469. if test "${enable_video_x11_xshape+set}" = set; then :
  18470. enableval=$enable_video_x11_xshape;
  18471. else
  18472. enable_video_x11_xshape=yes
  18473. fi
  18474. if test x$enable_video_x11_xshape = xyes; then
  18475. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18476. "
  18477. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18478. have_shape_h_hdr=yes
  18479. else
  18480. have_shape_h_hdr=no
  18481. fi
  18482. if test x$have_shape_h_hdr = xyes; then
  18483. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18484. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18485. fi
  18486. fi
  18487. # Check whether --enable-video-x11-vm was given.
  18488. if test "${enable_video_x11_vm+set}" = set; then :
  18489. enableval=$enable_video_x11_vm;
  18490. else
  18491. enable_video_x11_vm=yes
  18492. fi
  18493. if test x$enable_video_x11_vm = xyes; then
  18494. definitely_enable_video_x11_vm=no
  18495. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18496. "
  18497. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18498. have_vm_h_hdr=yes
  18499. else
  18500. have_vm_h_hdr=no
  18501. fi
  18502. if test x$have_vm_h_hdr = xyes; then
  18503. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18504. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18505. cat >>confdefs.h <<_ACEOF
  18506. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18507. _ACEOF
  18508. definitely_enable_video_x11_vm=yes
  18509. else
  18510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18511. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18512. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18513. $as_echo_n "(cached) " >&6
  18514. else
  18515. ac_check_lib_save_LIBS=$LIBS
  18516. LIBS="-lXxf86vm $LIBS"
  18517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18518. /* end confdefs.h. */
  18519. /* Override any GCC internal prototype to avoid an error.
  18520. Use char because int might match the return type of a GCC
  18521. builtin and then its argument prototype would still apply. */
  18522. #ifdef __cplusplus
  18523. extern "C"
  18524. #endif
  18525. char XF86VidModeQueryVersion ();
  18526. int
  18527. main ()
  18528. {
  18529. return XF86VidModeQueryVersion ();
  18530. ;
  18531. return 0;
  18532. }
  18533. _ACEOF
  18534. if ac_fn_c_try_link "$LINENO"; then :
  18535. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18536. else
  18537. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18538. fi
  18539. rm -f core conftest.err conftest.$ac_objext \
  18540. conftest$ac_exeext conftest.$ac_ext
  18541. LIBS=$ac_check_lib_save_LIBS
  18542. fi
  18543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18544. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18545. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18546. have_vm_lib=yes
  18547. fi
  18548. if test x$have_vm_lib = xyes ; then
  18549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18550. definitely_enable_video_x11_vm=yes
  18551. fi
  18552. fi
  18553. fi
  18554. fi
  18555. if test x$definitely_enable_video_x11_vm = xyes; then
  18556. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18557. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18558. fi
  18559. fi
  18560. else
  18561. # Prevent Mesa from including X11 headers
  18562. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18563. fi
  18564. }
  18565. CheckVivanteVideo()
  18566. {
  18567. # Check whether --enable-video-vivante was given.
  18568. if test "${enable_video_vivante+set}" = set; then :
  18569. enableval=$enable_video_vivante;
  18570. else
  18571. enable_video_vivante=yes
  18572. fi
  18573. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18575. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18576. have_vivante_vdk=no
  18577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18578. /* end confdefs.h. */
  18579. #define LINUX
  18580. #define EGL_API_FB
  18581. #include <gc_vdk.h>
  18582. int
  18583. main ()
  18584. {
  18585. ;
  18586. return 0;
  18587. }
  18588. _ACEOF
  18589. if ac_fn_c_try_compile "$LINENO"; then :
  18590. have_vivante_vdk=yes
  18591. fi
  18592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18594. $as_echo "$have_vivante_vdk" >&6; }
  18595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18596. $as_echo_n "checking for Vivante FB API... " >&6; }
  18597. have_vivante_egl=no
  18598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18599. /* end confdefs.h. */
  18600. #define LINUX
  18601. #define EGL_API_FB
  18602. #include <EGL/eglvivante.h>
  18603. int
  18604. main ()
  18605. {
  18606. ;
  18607. return 0;
  18608. }
  18609. _ACEOF
  18610. if ac_fn_c_try_compile "$LINENO"; then :
  18611. have_vivante_egl=yes
  18612. fi
  18613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18615. $as_echo "$have_vivante_egl" >&6; }
  18616. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18617. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18618. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18619. if test x$have_vivante_vdk = xyes; then
  18620. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18621. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18622. fi
  18623. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18624. SUMMARY_video="${SUMMARY_video} vivante"
  18625. have_video=yes
  18626. fi
  18627. fi
  18628. }
  18629. CheckHaikuVideo()
  18630. {
  18631. if test x$enable_video = xyes; then
  18632. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18633. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18634. have_video=yes
  18635. SUMMARY_video="${SUMMARY_video} haiku"
  18636. fi
  18637. }
  18638. CheckCOCOA()
  18639. {
  18640. # Check whether --enable-video-cocoa was given.
  18641. if test "${enable_video_cocoa+set}" = set; then :
  18642. enableval=$enable_video_cocoa;
  18643. else
  18644. enable_video_cocoa=yes
  18645. fi
  18646. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18647. save_CFLAGS="$CFLAGS"
  18648. CFLAGS="$CFLAGS -x objective-c"
  18649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18650. $as_echo_n "checking for Cocoa framework... " >&6; }
  18651. have_cocoa=no
  18652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18653. /* end confdefs.h. */
  18654. #import <Cocoa/Cocoa.h>
  18655. int
  18656. main ()
  18657. {
  18658. ;
  18659. return 0;
  18660. }
  18661. _ACEOF
  18662. if ac_fn_c_try_compile "$LINENO"; then :
  18663. have_cocoa=yes
  18664. fi
  18665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18667. $as_echo "$have_cocoa" >&6; }
  18668. CFLAGS="$save_CFLAGS"
  18669. if test x$have_cocoa = xyes; then
  18670. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18671. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18672. SUMMARY_video="${SUMMARY_video} cocoa"
  18673. have_video=yes
  18674. fi
  18675. fi
  18676. }
  18677. CheckMETAL()
  18678. {
  18679. # Check whether --enable-video-metal was given.
  18680. if test "${enable_video_metal+set}" = set; then :
  18681. enableval=$enable_video_metal;
  18682. else
  18683. enable_video_metal=yes
  18684. fi
  18685. # Check whether --enable-render-metal was given.
  18686. if test "${enable_render_metal+set}" = set; then :
  18687. enableval=$enable_render_metal;
  18688. else
  18689. enable_render_metal=yes
  18690. fi
  18691. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18692. save_CFLAGS="$CFLAGS"
  18693. CFLAGS="$CFLAGS -x objective-c"
  18694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18695. $as_echo_n "checking for Metal framework... " >&6; }
  18696. have_metal=no
  18697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18698. /* end confdefs.h. */
  18699. #import <Cocoa/Cocoa.h>
  18700. #import <Metal/Metal.h>
  18701. #import <QuartzCore/CAMetalLayer.h>
  18702. #if TARGET_CPU_X86
  18703. #error Metal doesn't work on this configuration
  18704. #endif
  18705. int
  18706. main ()
  18707. {
  18708. ;
  18709. return 0;
  18710. }
  18711. _ACEOF
  18712. if ac_fn_c_try_compile "$LINENO"; then :
  18713. have_metal=yes
  18714. fi
  18715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18716. CFLAGS="$save_CFLAGS"
  18717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18718. $as_echo "$have_metal" >&6; }
  18719. if test x$have_metal = xyes; then
  18720. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18721. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18722. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18723. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18724. fi
  18725. SUMMARY_video="${SUMMARY_video} metal"
  18726. else
  18727. enable_video_metal=no
  18728. enable_render_metal=no
  18729. fi
  18730. fi
  18731. }
  18732. CheckDirectFB()
  18733. {
  18734. # Check whether --enable-video-directfb was given.
  18735. if test "${enable_video_directfb+set}" = set; then :
  18736. enableval=$enable_video_directfb;
  18737. else
  18738. enable_video_directfb=no
  18739. fi
  18740. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18741. pkg_failed=no
  18742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18743. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18744. if test -n "$DIRECTFB_CFLAGS"; then
  18745. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18746. elif test -n "$PKG_CONFIG"; then
  18747. if test -n "$PKG_CONFIG" && \
  18748. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18749. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18750. ac_status=$?
  18751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18752. test $ac_status = 0; }; then
  18753. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18754. test "x$?" != "x0" && pkg_failed=yes
  18755. else
  18756. pkg_failed=yes
  18757. fi
  18758. else
  18759. pkg_failed=untried
  18760. fi
  18761. if test -n "$DIRECTFB_LIBS"; then
  18762. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18763. elif test -n "$PKG_CONFIG"; then
  18764. if test -n "$PKG_CONFIG" && \
  18765. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18766. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18767. ac_status=$?
  18768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18769. test $ac_status = 0; }; then
  18770. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18771. test "x$?" != "x0" && pkg_failed=yes
  18772. else
  18773. pkg_failed=yes
  18774. fi
  18775. else
  18776. pkg_failed=untried
  18777. fi
  18778. if test $pkg_failed = yes; then
  18779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18780. $as_echo "no" >&6; }
  18781. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18782. _pkg_short_errors_supported=yes
  18783. else
  18784. _pkg_short_errors_supported=no
  18785. fi
  18786. if test $_pkg_short_errors_supported = yes; then
  18787. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18788. else
  18789. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18790. fi
  18791. # Put the nasty error message in config.log where it belongs
  18792. echo "$DIRECTFB_PKG_ERRORS" >&5
  18793. video_directfb=no
  18794. elif test $pkg_failed = untried; then
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18796. $as_echo "no" >&6; }
  18797. video_directfb=no
  18798. else
  18799. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18800. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18802. $as_echo "yes" >&6; }
  18803. video_directfb=yes
  18804. fi
  18805. if test x$video_directfb = xyes; then
  18806. # SuSE 11.1 installs directfb-config without directfb-devel
  18807. save_CPPFLAGS="$CPPFLAGS"
  18808. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18809. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18810. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18811. have_directfb_hdr=yes
  18812. else
  18813. have_directfb_hdr=no
  18814. fi
  18815. CPPFLAGS="$save_CPPFLAGS"
  18816. video_directfb=$have_directfb_hdr
  18817. fi
  18818. if test x$video_directfb = xyes; then
  18819. # Check whether --enable-directfb-shared was given.
  18820. if test "${enable_directfb_shared+set}" = set; then :
  18821. enableval=$enable_directfb_shared;
  18822. else
  18823. enable_directfb_shared=yes
  18824. fi
  18825. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18826. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18827. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18828. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18829. directfb_shared=no
  18830. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18831. if test x$have_loadso != xyes && \
  18832. test x$enable_directfb_shared = xyes; then
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18834. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18835. fi
  18836. if test x$have_loadso = xyes && \
  18837. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18838. directfb_shared=yes
  18839. echo "-- dynamic libdirectfb -> $directfb_lib"
  18840. cat >>confdefs.h <<_ACEOF
  18841. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18842. _ACEOF
  18843. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18844. else
  18845. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18846. SUMMARY_video="${SUMMARY_video} directfb"
  18847. fi
  18848. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18849. have_video=yes
  18850. fi
  18851. fi
  18852. }
  18853. CheckKMSDRM()
  18854. {
  18855. # Check whether --enable-video-kmsdrm was given.
  18856. if test "${enable_video_kmsdrm+set}" = set; then :
  18857. enableval=$enable_video_kmsdrm;
  18858. else
  18859. enable_video_kmsdrm=no
  18860. fi
  18861. if test x$enable_video = xyes && \
  18862. test x$enable_video_kmsdrm = xyes && \
  18863. test x$video_opengl_egl = xyes; then
  18864. video_kmsdrm=no
  18865. pkg_failed=no
  18866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  18867. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  18868. if test -n "$LIBDRM_CFLAGS"; then
  18869. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18870. elif test -n "$PKG_CONFIG"; then
  18871. if test -n "$PKG_CONFIG" && \
  18872. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18873. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18874. ac_status=$?
  18875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18876. test $ac_status = 0; }; then
  18877. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  18878. test "x$?" != "x0" && pkg_failed=yes
  18879. else
  18880. pkg_failed=yes
  18881. fi
  18882. else
  18883. pkg_failed=untried
  18884. fi
  18885. if test -n "$LIBDRM_LIBS"; then
  18886. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18887. elif test -n "$PKG_CONFIG"; then
  18888. if test -n "$PKG_CONFIG" && \
  18889. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18890. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18891. ac_status=$?
  18892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18893. test $ac_status = 0; }; then
  18894. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  18895. test "x$?" != "x0" && pkg_failed=yes
  18896. else
  18897. pkg_failed=yes
  18898. fi
  18899. else
  18900. pkg_failed=untried
  18901. fi
  18902. if test $pkg_failed = yes; then
  18903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18904. $as_echo "no" >&6; }
  18905. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18906. _pkg_short_errors_supported=yes
  18907. else
  18908. _pkg_short_errors_supported=no
  18909. fi
  18910. if test $_pkg_short_errors_supported = yes; then
  18911. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  18912. else
  18913. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  18914. fi
  18915. # Put the nasty error message in config.log where it belongs
  18916. echo "$LIBDRM_PKG_ERRORS" >&5
  18917. libdrm_avail=no
  18918. elif test $pkg_failed = untried; then
  18919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18920. $as_echo "no" >&6; }
  18921. libdrm_avail=no
  18922. else
  18923. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18924. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18926. $as_echo "yes" >&6; }
  18927. libdrm_avail=yes
  18928. fi
  18929. pkg_failed=no
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  18931. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  18932. if test -n "$LIBGBM_CFLAGS"; then
  18933. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18934. elif test -n "$PKG_CONFIG"; then
  18935. if test -n "$PKG_CONFIG" && \
  18936. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18937. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18938. ac_status=$?
  18939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18940. test $ac_status = 0; }; then
  18941. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  18942. test "x$?" != "x0" && pkg_failed=yes
  18943. else
  18944. pkg_failed=yes
  18945. fi
  18946. else
  18947. pkg_failed=untried
  18948. fi
  18949. if test -n "$LIBGBM_LIBS"; then
  18950. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18951. elif test -n "$PKG_CONFIG"; then
  18952. if test -n "$PKG_CONFIG" && \
  18953. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18954. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18955. ac_status=$?
  18956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18957. test $ac_status = 0; }; then
  18958. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  18959. test "x$?" != "x0" && pkg_failed=yes
  18960. else
  18961. pkg_failed=yes
  18962. fi
  18963. else
  18964. pkg_failed=untried
  18965. fi
  18966. if test $pkg_failed = yes; then
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18968. $as_echo "no" >&6; }
  18969. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18970. _pkg_short_errors_supported=yes
  18971. else
  18972. _pkg_short_errors_supported=no
  18973. fi
  18974. if test $_pkg_short_errors_supported = yes; then
  18975. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  18976. else
  18977. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  18978. fi
  18979. # Put the nasty error message in config.log where it belongs
  18980. echo "$LIBGBM_PKG_ERRORS" >&5
  18981. libgbm_avail=no
  18982. elif test $pkg_failed = untried; then
  18983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18984. $as_echo "no" >&6; }
  18985. libgbm_avail=no
  18986. else
  18987. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18988. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18990. $as_echo "yes" >&6; }
  18991. libgbm_avail=yes
  18992. fi
  18993. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18994. video_kmsdrm=yes
  18995. fi
  18996. if test x$video_kmsdrm = xyes; then
  18997. # Check whether --enable-kmsdrm-shared was given.
  18998. if test "${enable_kmsdrm_shared+set}" = set; then :
  18999. enableval=$enable_kmsdrm_shared;
  19000. else
  19001. enable_kmsdrm_shared=yes
  19002. fi
  19003. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19004. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19005. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19007. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19008. kmsdrm_shared=no
  19009. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  19010. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  19011. if test x$have_loadso != xyes && \
  19012. test x$enable_kmsdrm_shared = xyes; then
  19013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19014. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19015. fi
  19016. if test x$have_loadso = xyes && \
  19017. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19018. kmsdrm_shared=yes
  19019. cat >>confdefs.h <<_ACEOF
  19020. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19021. _ACEOF
  19022. cat >>confdefs.h <<_ACEOF
  19023. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19024. _ACEOF
  19025. cat >>confdefs.h <<_ACEOF
  19026. #define HAVE_KMSDRM_SHARED "TRUE"
  19027. _ACEOF
  19028. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19029. else
  19030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19031. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19032. fi
  19033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19034. $as_echo "$kmsdrm_shared" >&6; }
  19035. have_video=yes
  19036. fi
  19037. fi
  19038. }
  19039. CheckDummyVideo()
  19040. {
  19041. # Check whether --enable-video-dummy was given.
  19042. if test "${enable_video_dummy+set}" = set; then :
  19043. enableval=$enable_video_dummy;
  19044. else
  19045. enable_video_dummy=yes
  19046. fi
  19047. if test x$enable_video_dummy = xyes; then
  19048. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19049. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19050. have_video=yes
  19051. SUMMARY_video="${SUMMARY_video} dummy"
  19052. fi
  19053. }
  19054. CheckQNXVideo()
  19055. {
  19056. if test x$enable_video = xyes; then
  19057. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19058. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19059. have_video=yes
  19060. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19061. SUMMARY_video="${SUMMARY_video} qnx"
  19062. fi
  19063. }
  19064. CheckQNXAudio()
  19065. {
  19066. if test x$enable_audio = xyes; then
  19067. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19068. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19069. have_audio=yes
  19070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19071. SUMMARY_audio="${SUMMARY_audio} qsa"
  19072. fi
  19073. }
  19074. # Check whether --enable-video-opengl was given.
  19075. if test "${enable_video_opengl+set}" = set; then :
  19076. enableval=$enable_video_opengl;
  19077. else
  19078. enable_video_opengl=yes
  19079. fi
  19080. CheckOpenGLX11()
  19081. {
  19082. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19084. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19085. video_opengl=no
  19086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19087. /* end confdefs.h. */
  19088. #include <GL/gl.h>
  19089. #include <GL/glx.h>
  19090. int
  19091. main ()
  19092. {
  19093. ;
  19094. return 0;
  19095. }
  19096. _ACEOF
  19097. if ac_fn_c_try_compile "$LINENO"; then :
  19098. video_opengl=yes
  19099. fi
  19100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19102. $as_echo "$video_opengl" >&6; }
  19103. if test x$video_opengl = xyes; then
  19104. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19105. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19106. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19107. SUMMARY_video="${SUMMARY_video} opengl"
  19108. fi
  19109. fi
  19110. }
  19111. # Check whether --enable-video-opengles was given.
  19112. if test "${enable_video_opengles+set}" = set; then :
  19113. enableval=$enable_video_opengles;
  19114. else
  19115. enable_video_opengles=yes
  19116. fi
  19117. # Check whether --enable-video-opengles1 was given.
  19118. if test "${enable_video_opengles1+set}" = set; then :
  19119. enableval=$enable_video_opengles1;
  19120. else
  19121. enable_video_opengles1=yes
  19122. fi
  19123. # Check whether --enable-video-opengles2 was given.
  19124. if test "${enable_video_opengles2+set}" = set; then :
  19125. enableval=$enable_video_opengles2;
  19126. else
  19127. enable_video_opengles2=yes
  19128. fi
  19129. CheckOpenGLESX11()
  19130. {
  19131. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19133. $as_echo_n "checking for EGL support... " >&6; }
  19134. video_opengl_egl=no
  19135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19136. /* end confdefs.h. */
  19137. #define LINUX
  19138. #define EGL_API_FB
  19139. #define MESA_EGL_NO_X11_HEADERS
  19140. #define EGL_NO_X11
  19141. #include <EGL/egl.h>
  19142. #include <EGL/eglext.h>
  19143. int
  19144. main ()
  19145. {
  19146. ;
  19147. return 0;
  19148. }
  19149. _ACEOF
  19150. if ac_fn_c_try_compile "$LINENO"; then :
  19151. video_opengl_egl=yes
  19152. fi
  19153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19155. $as_echo "$video_opengl_egl" >&6; }
  19156. if test x$video_opengl_egl = xyes; then
  19157. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19158. fi
  19159. if test x$enable_video_opengles1 = xyes; then
  19160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19161. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19162. video_opengles_v1=no
  19163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19164. /* end confdefs.h. */
  19165. #include <GLES/gl.h>
  19166. #include <GLES/glext.h>
  19167. int
  19168. main ()
  19169. {
  19170. ;
  19171. return 0;
  19172. }
  19173. _ACEOF
  19174. if ac_fn_c_try_compile "$LINENO"; then :
  19175. video_opengles_v1=yes
  19176. fi
  19177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19179. $as_echo "$video_opengles_v1" >&6; }
  19180. if test x$video_opengles_v1 = xyes; then
  19181. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19182. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19183. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19184. fi
  19185. fi
  19186. if test x$enable_video_opengles2 = xyes; then
  19187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19188. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19189. video_opengles_v2=no
  19190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19191. /* end confdefs.h. */
  19192. #include <GLES2/gl2.h>
  19193. #include <GLES2/gl2ext.h>
  19194. int
  19195. main ()
  19196. {
  19197. ;
  19198. return 0;
  19199. }
  19200. _ACEOF
  19201. if ac_fn_c_try_compile "$LINENO"; then :
  19202. video_opengles_v2=yes
  19203. fi
  19204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19206. $as_echo "$video_opengles_v2" >&6; }
  19207. if test x$video_opengles_v2 = xyes; then
  19208. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19209. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19210. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19211. fi
  19212. fi
  19213. fi
  19214. }
  19215. CheckEGLKMSDRM()
  19216. {
  19217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19218. $as_echo_n "checking for EGL support... " >&6; }
  19219. video_opengl_egl=no
  19220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19221. /* end confdefs.h. */
  19222. #define LINUX
  19223. #define EGL_API_FB
  19224. #define MESA_EGL_NO_X11_HEADERS
  19225. #define EGL_NO_X11
  19226. #include <EGL/egl.h>
  19227. #include <EGL/eglext.h>
  19228. int
  19229. main ()
  19230. {
  19231. ;
  19232. return 0;
  19233. }
  19234. _ACEOF
  19235. if ac_fn_c_try_compile "$LINENO"; then :
  19236. video_opengl_egl=yes
  19237. fi
  19238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19240. $as_echo "$video_opengl_egl" >&6; }
  19241. if test x$video_opengl_egl = xyes; then
  19242. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19243. fi
  19244. }
  19245. CheckWINDOWSGL()
  19246. {
  19247. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19248. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19249. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19250. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19251. SUMMARY_video="${SUMMARY_video} opengl"
  19252. fi
  19253. }
  19254. CheckWINDOWSGLES()
  19255. {
  19256. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19258. $as_echo_n "checking for EGL support... " >&6; }
  19259. video_opengl_egl=no
  19260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19261. /* end confdefs.h. */
  19262. #include <EGL/egl.h>
  19263. int
  19264. main ()
  19265. {
  19266. ;
  19267. return 0;
  19268. }
  19269. _ACEOF
  19270. if ac_fn_c_try_compile "$LINENO"; then :
  19271. video_opengl_egl=yes
  19272. fi
  19273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19275. $as_echo "$video_opengl_egl" >&6; }
  19276. if test x$video_opengl_egl = xyes; then
  19277. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19278. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19279. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19280. fi
  19281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19282. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19283. video_opengles_v2=no
  19284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19285. /* end confdefs.h. */
  19286. #include <GLES2/gl2.h>
  19287. #include <GLES2/gl2ext.h>
  19288. int
  19289. main ()
  19290. {
  19291. ;
  19292. return 0;
  19293. }
  19294. _ACEOF
  19295. if ac_fn_c_try_compile "$LINENO"; then :
  19296. video_opengles_v2=yes
  19297. fi
  19298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19300. $as_echo "$video_opengles_v2" >&6; }
  19301. if test x$video_opengles_v2 = xyes; then
  19302. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19303. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19304. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19305. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19306. fi
  19307. fi
  19308. }
  19309. CheckHaikuGL()
  19310. {
  19311. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19312. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19313. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19314. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19315. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19316. SUMMARY_video="${SUMMARY_video} opengl"
  19317. fi
  19318. }
  19319. CheckMacGL()
  19320. {
  19321. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19322. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19323. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19324. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19325. SUMMARY_video="${SUMMARY_video} opengl"
  19326. fi
  19327. }
  19328. CheckMacGLES()
  19329. {
  19330. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19331. video_opengl_egl=yes
  19332. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19333. video_opengles_v2=yes
  19334. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19335. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19336. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19337. fi
  19338. }
  19339. CheckEmscriptenGLES()
  19340. {
  19341. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19343. $as_echo_n "checking for EGL support... " >&6; }
  19344. video_opengl_egl=no
  19345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19346. /* end confdefs.h. */
  19347. #include <EGL/egl.h>
  19348. int
  19349. main ()
  19350. {
  19351. ;
  19352. return 0;
  19353. }
  19354. _ACEOF
  19355. if ac_fn_c_try_compile "$LINENO"; then :
  19356. video_opengl_egl=yes
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19360. $as_echo "$video_opengl_egl" >&6; }
  19361. if test x$video_opengl_egl = xyes; then
  19362. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19363. fi
  19364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19365. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19366. video_opengles_v2=no
  19367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19368. /* end confdefs.h. */
  19369. #include <GLES2/gl2.h>
  19370. #include <GLES2/gl2ext.h>
  19371. int
  19372. main ()
  19373. {
  19374. ;
  19375. return 0;
  19376. }
  19377. _ACEOF
  19378. if ac_fn_c_try_compile "$LINENO"; then :
  19379. video_opengles_v2=yes
  19380. fi
  19381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19383. $as_echo "$video_opengles_v2" >&6; }
  19384. if test x$video_opengles_v2 = xyes; then
  19385. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19386. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19387. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19388. fi
  19389. fi
  19390. }
  19391. # Check whether --enable-video-vulkan was given.
  19392. if test "${enable_video_vulkan+set}" = set; then :
  19393. enableval=$enable_video_vulkan;
  19394. else
  19395. enable_video_vulkan=yes
  19396. fi
  19397. CheckVulkan()
  19398. {
  19399. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19400. case "$host" in
  19401. *-*-android*)
  19402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19403. /* end confdefs.h. */
  19404. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19405. #error Vulkan doesn't work on this configuration
  19406. #endif
  19407. int
  19408. main ()
  19409. {
  19410. ;
  19411. return 0;
  19412. }
  19413. _ACEOF
  19414. if ac_fn_c_try_compile "$LINENO"; then :
  19415. else
  19416. enable_video_vulkan=no
  19417. fi
  19418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19419. ;;
  19420. *-*-darwin*)
  19421. save_CFLAGS="$CFLAGS"
  19422. CFLAGS="$CFLAGS -x objective-c"
  19423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19424. /* end confdefs.h. */
  19425. #include <Cocoa/Cocoa.h>
  19426. #include <Metal/Metal.h>
  19427. #include <QuartzCore/CAMetalLayer.h>
  19428. #if TARGET_CPU_X86
  19429. #error Vulkan doesn't work on this configuration
  19430. #endif
  19431. int
  19432. main ()
  19433. {
  19434. ;
  19435. return 0;
  19436. }
  19437. _ACEOF
  19438. if ac_fn_c_try_compile "$LINENO"; then :
  19439. else
  19440. enable_video_vulkan=no
  19441. fi
  19442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19443. CFLAGS="$save_CFLAGS"
  19444. ;;
  19445. *)
  19446. ;;
  19447. esac
  19448. if test x$enable_video_vulkan = xno; then
  19449. # For reasons I am totally unable to see, I get an undefined macro error if
  19450. # I put this in the AC_TRY_COMPILE.
  19451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19452. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19453. fi
  19454. fi
  19455. if test x$enable_video_vulkan = xyes; then
  19456. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19457. SUMMARY_video="${SUMMARY_video} vulkan"
  19458. fi
  19459. }
  19460. CheckInputEvents()
  19461. {
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19463. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19464. use_input_events=no
  19465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19466. /* end confdefs.h. */
  19467. #include <linux/input.h>
  19468. int
  19469. main ()
  19470. {
  19471. #ifndef EVIOCGNAME
  19472. #error EVIOCGNAME() ioctl not available
  19473. #endif
  19474. ;
  19475. return 0;
  19476. }
  19477. _ACEOF
  19478. if ac_fn_c_try_compile "$LINENO"; then :
  19479. use_input_events=yes
  19480. fi
  19481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19483. $as_echo "$use_input_events" >&6; }
  19484. if test x$use_input_events = xyes; then
  19485. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19486. SUMMARY_input="${SUMMARY_input} linuxev"
  19487. fi
  19488. }
  19489. CheckInputKD()
  19490. {
  19491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19492. $as_echo_n "checking for Linux kd.h... " >&6; }
  19493. use_input_kd=no
  19494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19495. /* end confdefs.h. */
  19496. #include <linux/kd.h>
  19497. #include <linux/keyboard.h>
  19498. int
  19499. main ()
  19500. {
  19501. struct kbentry kbe;
  19502. kbe.kb_table = KG_CTRL;
  19503. ioctl(0, KDGKBENT, &kbe);
  19504. ;
  19505. return 0;
  19506. }
  19507. _ACEOF
  19508. if ac_fn_c_try_compile "$LINENO"; then :
  19509. use_input_kd=yes
  19510. fi
  19511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19513. $as_echo "$use_input_kd" >&6; }
  19514. if test x$use_input_kd = xyes; then
  19515. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19516. SUMMARY_input="${SUMMARY_input} linuxkd"
  19517. fi
  19518. }
  19519. CheckInputKBIO()
  19520. {
  19521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19522. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19523. use_input_kbio=no
  19524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19525. /* end confdefs.h. */
  19526. #include <sys/kbio.h>
  19527. #include <sys/ioctl.h>
  19528. int
  19529. main ()
  19530. {
  19531. accentmap_t accTable;
  19532. ioctl(0, KDENABIO, 1);
  19533. ;
  19534. return 0;
  19535. }
  19536. _ACEOF
  19537. if ac_fn_c_try_compile "$LINENO"; then :
  19538. use_input_kbio=yes
  19539. fi
  19540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19542. $as_echo "$use_input_kbio" >&6; }
  19543. if test x$use_input_kbio = xyes; then
  19544. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19545. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19546. fi
  19547. }
  19548. CheckLibUDev()
  19549. {
  19550. # Check whether --enable-libudev was given.
  19551. if test "${enable_libudev+set}" = set; then :
  19552. enableval=$enable_libudev;
  19553. else
  19554. enable_libudev=yes
  19555. fi
  19556. if test x$enable_libudev = xyes; then
  19557. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19558. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19559. have_libudev_h_hdr=yes
  19560. else
  19561. have_libudev_h_hdr=no
  19562. fi
  19563. if test x$have_libudev_h_hdr = xyes; then
  19564. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19565. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19566. if test x$udev_lib != x; then
  19567. echo "-- dynamic udev -> $udev_lib"
  19568. cat >>confdefs.h <<_ACEOF
  19569. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19570. _ACEOF
  19571. fi
  19572. fi
  19573. fi
  19574. }
  19575. CheckDBus()
  19576. {
  19577. # Check whether --enable-dbus was given.
  19578. if test "${enable_dbus+set}" = set; then :
  19579. enableval=$enable_dbus;
  19580. else
  19581. enable_dbus=yes
  19582. fi
  19583. if test x$enable_dbus = xyes; then
  19584. pkg_failed=no
  19585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19586. $as_echo_n "checking for dbus-1... " >&6; }
  19587. if test -n "$DBUS_CFLAGS"; then
  19588. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19589. elif test -n "$PKG_CONFIG"; then
  19590. if test -n "$PKG_CONFIG" && \
  19591. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19592. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19593. ac_status=$?
  19594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19595. test $ac_status = 0; }; then
  19596. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19597. test "x$?" != "x0" && pkg_failed=yes
  19598. else
  19599. pkg_failed=yes
  19600. fi
  19601. else
  19602. pkg_failed=untried
  19603. fi
  19604. if test -n "$DBUS_LIBS"; then
  19605. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19606. elif test -n "$PKG_CONFIG"; then
  19607. if test -n "$PKG_CONFIG" && \
  19608. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19609. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19610. ac_status=$?
  19611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19612. test $ac_status = 0; }; then
  19613. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19614. test "x$?" != "x0" && pkg_failed=yes
  19615. else
  19616. pkg_failed=yes
  19617. fi
  19618. else
  19619. pkg_failed=untried
  19620. fi
  19621. if test $pkg_failed = yes; then
  19622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19623. $as_echo "no" >&6; }
  19624. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19625. _pkg_short_errors_supported=yes
  19626. else
  19627. _pkg_short_errors_supported=no
  19628. fi
  19629. if test $_pkg_short_errors_supported = yes; then
  19630. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19631. else
  19632. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19633. fi
  19634. # Put the nasty error message in config.log where it belongs
  19635. echo "$DBUS_PKG_ERRORS" >&5
  19636. have_dbus=no
  19637. elif test $pkg_failed = untried; then
  19638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19639. $as_echo "no" >&6; }
  19640. have_dbus=no
  19641. else
  19642. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19643. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19645. $as_echo "yes" >&6; }
  19646. have_dbus=yes
  19647. fi
  19648. save_CPPFLAGS="$CPPFLAGS"
  19649. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19650. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19651. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19652. have_dbus_dbus_h_hdr=yes
  19653. else
  19654. have_dbus_dbus_h_hdr=no
  19655. fi
  19656. CPPFLAGS="$save_CPPFLAGS"
  19657. if test x$have_dbus_dbus_h_hdr = xyes; then
  19658. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19659. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19660. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19661. fi
  19662. fi
  19663. }
  19664. CheckIME()
  19665. {
  19666. # Check whether --enable-ime was given.
  19667. if test "${enable_ime+set}" = set; then :
  19668. enableval=$enable_ime;
  19669. else
  19670. enable_ime=yes
  19671. fi
  19672. if test x$enable_ime = xyes; then
  19673. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19674. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19675. fi
  19676. }
  19677. CheckInotify()
  19678. {
  19679. save_LIBS="$LIBS"
  19680. case "$host" in
  19681. *-*-freebsd*) LIBS="$LIBS -linotify"
  19682. ;;
  19683. esac
  19684. for ac_header in sys/inotify.h
  19685. do :
  19686. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19687. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19688. cat >>confdefs.h <<_ACEOF
  19689. #define HAVE_SYS_INOTIFY_H 1
  19690. _ACEOF
  19691. have_inotify_inotify_h_hdr=yes
  19692. fi
  19693. done
  19694. for ac_func in inotify_init
  19695. do :
  19696. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19697. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19698. cat >>confdefs.h <<_ACEOF
  19699. #define HAVE_INOTIFY_INIT 1
  19700. _ACEOF
  19701. have_inotify=yes
  19702. fi
  19703. done
  19704. for ac_func in inotify_init1
  19705. do :
  19706. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19707. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19708. cat >>confdefs.h <<_ACEOF
  19709. #define HAVE_INOTIFY_INIT1 1
  19710. _ACEOF
  19711. fi
  19712. done
  19713. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19714. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19715. case "$host" in
  19716. *-*-freebsd*)
  19717. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19718. ;;
  19719. esac
  19720. fi
  19721. LIBS="$save_LIBS"
  19722. }
  19723. CheckIBus()
  19724. {
  19725. # Check whether --enable-ibus was given.
  19726. if test "${enable_ibus+set}" = set; then :
  19727. enableval=$enable_ibus;
  19728. else
  19729. enable_ibus=yes
  19730. fi
  19731. if test x$enable_ibus = xyes; then
  19732. pkg_failed=no
  19733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19734. $as_echo_n "checking for ibus-1.0... " >&6; }
  19735. if test -n "$IBUS_CFLAGS"; then
  19736. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19737. elif test -n "$PKG_CONFIG"; then
  19738. if test -n "$PKG_CONFIG" && \
  19739. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19740. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19741. ac_status=$?
  19742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19743. test $ac_status = 0; }; then
  19744. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19745. test "x$?" != "x0" && pkg_failed=yes
  19746. else
  19747. pkg_failed=yes
  19748. fi
  19749. else
  19750. pkg_failed=untried
  19751. fi
  19752. if test -n "$IBUS_LIBS"; then
  19753. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19754. elif test -n "$PKG_CONFIG"; then
  19755. if test -n "$PKG_CONFIG" && \
  19756. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19757. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19758. ac_status=$?
  19759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19760. test $ac_status = 0; }; then
  19761. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19762. test "x$?" != "x0" && pkg_failed=yes
  19763. else
  19764. pkg_failed=yes
  19765. fi
  19766. else
  19767. pkg_failed=untried
  19768. fi
  19769. if test $pkg_failed = yes; then
  19770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19771. $as_echo "no" >&6; }
  19772. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19773. _pkg_short_errors_supported=yes
  19774. else
  19775. _pkg_short_errors_supported=no
  19776. fi
  19777. if test $_pkg_short_errors_supported = yes; then
  19778. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19779. else
  19780. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19781. fi
  19782. # Put the nasty error message in config.log where it belongs
  19783. echo "$IBUS_PKG_ERRORS" >&5
  19784. have_ibus=no
  19785. elif test $pkg_failed = untried; then
  19786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19787. $as_echo "no" >&6; }
  19788. have_ibus=no
  19789. else
  19790. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19791. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19793. $as_echo "yes" >&6; }
  19794. have_ibus=yes
  19795. fi
  19796. save_CPPFLAGS="$CPPFLAGS"
  19797. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  19798. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19799. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19800. have_ibus_ibus_h_hdr=yes
  19801. else
  19802. have_ibus_ibus_h_hdr=no
  19803. fi
  19804. CPPFLAGS="$save_CPPFLAGS"
  19805. if test x$have_ibus_ibus_h_hdr = xyes; then
  19806. if test x$enable_ime != xyes; then
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19808. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19809. have_ibus_ibus_h_hdr=no
  19810. elif test x$enable_dbus != xyes; then
  19811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19812. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19813. have_ibus_ibus_h_hdr=no
  19814. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19816. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19817. have_ibus_ibus_h_hdr=no
  19818. else
  19819. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19820. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19821. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19822. fi
  19823. fi
  19824. fi
  19825. }
  19826. CheckFcitx()
  19827. {
  19828. # Check whether --enable-fcitx was given.
  19829. if test "${enable_fcitx+set}" = set; then :
  19830. enableval=$enable_fcitx;
  19831. else
  19832. enable_fcitx=yes
  19833. fi
  19834. if test x$enable_fcitx = xyes; then
  19835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19836. $as_echo_n "checking for fcitx support... " >&6; }
  19837. have_fcitx=no
  19838. if test x$enable_ime != xyes; then
  19839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19840. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19841. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19843. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19844. else
  19845. have_fcitx=yes
  19846. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  19847. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19848. fi
  19849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  19850. $as_echo "$have_fcitx" >&6; }
  19851. fi
  19852. }
  19853. CheckJoystickMFI()
  19854. {
  19855. # Check whether --enable-joystick-mfi was given.
  19856. if test "${enable_joystick_mfi+set}" = set; then :
  19857. enableval=$enable_joystick_mfi;
  19858. else
  19859. enable_joystick_mfi=yes
  19860. fi
  19861. if test x$enable_joystick_mfi = xyes; then
  19862. save_CFLAGS="$CFLAGS"
  19863. save_LDFLAGS="$LDFLAGS"
  19864. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  19865. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  19866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  19867. $as_echo_n "checking for GameController framework... " >&6; }
  19868. enable_joystick_mfi=no
  19869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19870. /* end confdefs.h. */
  19871. #include <AvailabilityMacros.h>
  19872. #include <TargetConditionals.h>
  19873. #import <GameController/GameController.h>
  19874. int
  19875. main ()
  19876. {
  19877. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  19878. #error GameController framework doesn't work on this configuration
  19879. #endif
  19880. #if TARGET_CPU_X86
  19881. #error GameController framework doesn't work on this configuration
  19882. #endif
  19883. ;
  19884. return 0;
  19885. }
  19886. _ACEOF
  19887. if ac_fn_c_try_link "$LINENO"; then :
  19888. enable_joystick_mfi=yes
  19889. fi
  19890. rm -f core conftest.err conftest.$ac_objext \
  19891. conftest$ac_exeext conftest.$ac_ext
  19892. CFLAGS="$save_CFLAGS"
  19893. LDFLAGS="$save_LDFLAGS"
  19894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  19895. $as_echo "$enable_joystick_mfi" >&6; }
  19896. if test x$enable_joystick_mfi = xyes; then
  19897. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  19898. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  19899. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  19900. fi
  19901. fi
  19902. }
  19903. CheckPTHREAD()
  19904. {
  19905. # Check whether --enable-pthreads was given.
  19906. if test "${enable_pthreads+set}" = set; then :
  19907. enableval=$enable_pthreads;
  19908. else
  19909. enable_pthreads=yes
  19910. fi
  19911. # Check whether --enable-pthread-sem was given.
  19912. if test "${enable_pthread_sem+set}" = set; then :
  19913. enableval=$enable_pthread_sem;
  19914. else
  19915. enable_pthread_sem=yes
  19916. fi
  19917. case "$host" in
  19918. *-*-android*)
  19919. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19920. pthread_lib=""
  19921. ;;
  19922. *-*-linux*|*-*-uclinux*)
  19923. pthread_cflags="-D_REENTRANT"
  19924. pthread_lib="-lpthread"
  19925. ;;
  19926. *-*-bsdi*)
  19927. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19928. pthread_lib=""
  19929. ;;
  19930. *-*-darwin*)
  19931. pthread_cflags="-D_THREAD_SAFE"
  19932. # causes Carbon.p complaints?
  19933. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19934. ;;
  19935. *-*-freebsd*|*-*-dragonfly*)
  19936. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19937. pthread_lib="-pthread"
  19938. ;;
  19939. *-*-netbsd*)
  19940. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19941. pthread_lib="-lpthread"
  19942. ;;
  19943. *-*-openbsd*)
  19944. pthread_cflags="-D_REENTRANT"
  19945. pthread_lib="-pthread"
  19946. ;;
  19947. *-*-solaris2.9)
  19948. # From Solaris 9+, posix4's preferred name is rt.
  19949. pthread_cflags="-D_REENTRANT"
  19950. pthread_lib="-lpthread -lrt"
  19951. ;;
  19952. *-*-solaris2.10)
  19953. # Solaris 10+ merged pthread into libc.
  19954. pthread_cflags="-D_REENTRANT"
  19955. pthread_lib="-lrt"
  19956. ;;
  19957. *-*-solaris*)
  19958. # Solaris 11+ merged rt into libc.
  19959. pthread_cflags="-D_REENTRANT"
  19960. pthread_lib=""
  19961. ;;
  19962. *-*-sysv5*)
  19963. pthread_cflags="-D_REENTRANT -Kthread"
  19964. pthread_lib=""
  19965. ;;
  19966. *-*-aix*)
  19967. pthread_cflags="-D_REENTRANT -mthreads"
  19968. pthread_lib="-lpthread"
  19969. ;;
  19970. *-*-hpux11*)
  19971. pthread_cflags="-D_REENTRANT"
  19972. pthread_lib="-L/usr/lib -lpthread"
  19973. ;;
  19974. *-*-haiku*)
  19975. pthread_cflags="-D_REENTRANT"
  19976. pthread_lib=""
  19977. ;;
  19978. *-*-nto*)
  19979. pthread_cflags="-D_REENTRANT"
  19980. pthread_lib=""
  19981. ;;
  19982. *)
  19983. pthread_cflags="-D_REENTRANT"
  19984. pthread_lib="-lpthread"
  19985. ;;
  19986. esac
  19987. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19988. # Save the original compiler flags and libraries
  19989. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19990. # Add the pthread compiler flags and libraries
  19991. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19992. # Check to see if we have pthread support on this system
  19993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19994. $as_echo_n "checking for pthreads... " >&6; }
  19995. use_pthreads=no
  19996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19997. /* end confdefs.h. */
  19998. #include <pthread.h>
  19999. int
  20000. main ()
  20001. {
  20002. pthread_attr_t type;
  20003. pthread_attr_init(&type);
  20004. ;
  20005. return 0;
  20006. }
  20007. _ACEOF
  20008. if ac_fn_c_try_link "$LINENO"; then :
  20009. use_pthreads=yes
  20010. fi
  20011. rm -f core conftest.err conftest.$ac_objext \
  20012. conftest$ac_exeext conftest.$ac_ext
  20013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20014. $as_echo "$use_pthreads" >&6; }
  20015. # Restore the compiler flags and libraries
  20016. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20017. # Do futher testing if we have pthread support...
  20018. if test x$use_pthreads = xyes; then
  20019. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20020. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20021. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20022. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20023. # Save the original compiler flags and libraries
  20024. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20025. # Add the pthread compiler flags and libraries
  20026. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20027. # Check to see if recursive mutexes are available
  20028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20029. $as_echo_n "checking for recursive mutexes... " >&6; }
  20030. has_recursive_mutexes=no
  20031. if test x$has_recursive_mutexes = xno; then
  20032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20033. /* end confdefs.h. */
  20034. #define _GNU_SOURCE 1
  20035. #include <pthread.h>
  20036. int
  20037. main ()
  20038. {
  20039. pthread_mutexattr_t attr;
  20040. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20041. ;
  20042. return 0;
  20043. }
  20044. _ACEOF
  20045. if ac_fn_c_try_link "$LINENO"; then :
  20046. has_recursive_mutexes=yes
  20047. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20048. fi
  20049. rm -f core conftest.err conftest.$ac_objext \
  20050. conftest$ac_exeext conftest.$ac_ext
  20051. fi
  20052. if test x$has_recursive_mutexes = xno; then
  20053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20054. /* end confdefs.h. */
  20055. #define _GNU_SOURCE 1
  20056. #include <pthread.h>
  20057. int
  20058. main ()
  20059. {
  20060. pthread_mutexattr_t attr;
  20061. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20062. ;
  20063. return 0;
  20064. }
  20065. _ACEOF
  20066. if ac_fn_c_try_link "$LINENO"; then :
  20067. has_recursive_mutexes=yes
  20068. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20069. fi
  20070. rm -f core conftest.err conftest.$ac_objext \
  20071. conftest$ac_exeext conftest.$ac_ext
  20072. fi
  20073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20074. $as_echo "$has_recursive_mutexes" >&6; }
  20075. # Check to see if pthread semaphore support is missing
  20076. if test x$enable_pthread_sem = xyes; then
  20077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20078. $as_echo_n "checking for pthread semaphores... " >&6; }
  20079. have_pthread_sem=no
  20080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20081. /* end confdefs.h. */
  20082. #include <pthread.h>
  20083. #include <semaphore.h>
  20084. int
  20085. main ()
  20086. {
  20087. ;
  20088. return 0;
  20089. }
  20090. _ACEOF
  20091. if ac_fn_c_try_compile "$LINENO"; then :
  20092. have_pthread_sem=yes
  20093. fi
  20094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20096. $as_echo "$have_pthread_sem" >&6; }
  20097. fi
  20098. if test x$have_pthread_sem = xyes; then
  20099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20100. $as_echo_n "checking for sem_timedwait... " >&6; }
  20101. have_sem_timedwait=no
  20102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20103. /* end confdefs.h. */
  20104. #include <pthread.h>
  20105. #include <semaphore.h>
  20106. int
  20107. main ()
  20108. {
  20109. sem_timedwait(NULL, NULL);
  20110. ;
  20111. return 0;
  20112. }
  20113. _ACEOF
  20114. if ac_fn_c_try_link "$LINENO"; then :
  20115. have_sem_timedwait=yes
  20116. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20117. fi
  20118. rm -f core conftest.err conftest.$ac_objext \
  20119. conftest$ac_exeext conftest.$ac_ext
  20120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20121. $as_echo "$have_sem_timedwait" >&6; }
  20122. fi
  20123. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20124. "
  20125. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20126. have_pthread_np_h=yes
  20127. else
  20128. have_pthread_np_h=no
  20129. fi
  20130. if test x$have_pthread_np_h = xyes; then
  20131. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20132. fi
  20133. # Check to see if pthread naming is available
  20134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20135. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20137. /* end confdefs.h. */
  20138. /* Override any GCC internal prototype to avoid an error.
  20139. Use char because int might match the return type of a GCC
  20140. builtin and then its argument prototype would still apply. */
  20141. #ifdef __cplusplus
  20142. extern "C"
  20143. #endif
  20144. char pthread_setname_np ();
  20145. int
  20146. main ()
  20147. {
  20148. return pthread_setname_np ();
  20149. ;
  20150. return 0;
  20151. }
  20152. _ACEOF
  20153. if ac_fn_c_try_link "$LINENO"; then :
  20154. has_pthread_setname_np=yes
  20155. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20156. else
  20157. has_pthread_setname_np=no
  20158. fi
  20159. rm -f core conftest.err conftest.$ac_objext \
  20160. conftest$ac_exeext conftest.$ac_ext
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20162. $as_echo "$has_pthread_setname_np" >&6; }
  20163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20164. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20166. /* end confdefs.h. */
  20167. /* Override any GCC internal prototype to avoid an error.
  20168. Use char because int might match the return type of a GCC
  20169. builtin and then its argument prototype would still apply. */
  20170. #ifdef __cplusplus
  20171. extern "C"
  20172. #endif
  20173. char pthread_set_name_np ();
  20174. int
  20175. main ()
  20176. {
  20177. return pthread_set_name_np ();
  20178. ;
  20179. return 0;
  20180. }
  20181. _ACEOF
  20182. if ac_fn_c_try_link "$LINENO"; then :
  20183. has_pthread_set_name_np=yes
  20184. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20185. else
  20186. has_pthread_set_name_np=no
  20187. fi
  20188. rm -f core conftest.err conftest.$ac_objext \
  20189. conftest$ac_exeext conftest.$ac_ext
  20190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20191. $as_echo "$has_pthread_set_name_np" >&6; }
  20192. # Restore the compiler flags and libraries
  20193. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20194. # Basic thread creation functions
  20195. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20196. # Semaphores
  20197. # We can fake these with mutexes and condition variables if necessary
  20198. if test x$have_pthread_sem = xyes; then
  20199. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20200. else
  20201. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20202. fi
  20203. # Mutexes
  20204. # We can fake these with semaphores if necessary
  20205. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20206. # Condition variables
  20207. # We can fake these with semaphores and mutexes if necessary
  20208. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20209. # Thread local storage
  20210. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20211. have_threads=yes
  20212. fi
  20213. fi
  20214. }
  20215. CheckWINDOWS()
  20216. {
  20217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20218. $as_echo_n "checking Windows compiler... " >&6; }
  20219. have_win32_gcc=no
  20220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20221. /* end confdefs.h. */
  20222. #include <windows.h>
  20223. int
  20224. main ()
  20225. {
  20226. ;
  20227. return 0;
  20228. }
  20229. _ACEOF
  20230. if ac_fn_c_try_compile "$LINENO"; then :
  20231. have_win32_gcc=yes
  20232. fi
  20233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20235. $as_echo "$have_win32_gcc" >&6; }
  20236. if test x$have_win32_gcc != xyes; then
  20237. as_fn_error $? "
  20238. *** Your compiler ($CC) does not produce Windows executables!
  20239. " "$LINENO" 5
  20240. fi
  20241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20242. $as_echo_n "checking Windows CE... " >&6; }
  20243. have_wince=no
  20244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20245. /* end confdefs.h. */
  20246. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20247. #error This is not Windows CE
  20248. #endif
  20249. int
  20250. main ()
  20251. {
  20252. ;
  20253. return 0;
  20254. }
  20255. _ACEOF
  20256. if ac_fn_c_try_compile "$LINENO"; then :
  20257. have_wince=yes
  20258. as_fn_error $? "
  20259. *** Sorry, Windows CE is no longer supported.
  20260. " "$LINENO" 5
  20261. fi
  20262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20264. $as_echo "$have_wince" >&6; }
  20265. # This fixes Windows stack alignment with newer GCC
  20266. CheckStackBoundary
  20267. }
  20268. CheckDIRECTX()
  20269. {
  20270. # Check whether --enable-directx was given.
  20271. if test "${enable_directx+set}" = set; then :
  20272. enableval=$enable_directx;
  20273. else
  20274. enable_directx=yes
  20275. fi
  20276. if test x$enable_directx = xyes; then
  20277. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20278. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20279. have_d3d=yes
  20280. fi
  20281. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20282. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20283. have_d3d11=yes
  20284. fi
  20285. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20286. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20287. have_ddraw=yes
  20288. fi
  20289. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20290. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20291. have_dsound=yes
  20292. fi
  20293. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20294. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20295. have_dinput=yes
  20296. fi
  20297. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20298. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20299. have_dxgi=yes
  20300. fi
  20301. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20302. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20303. have_xinput=yes
  20304. fi
  20305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20306. /* end confdefs.h. */
  20307. #include <windows.h>
  20308. #include <xinput.h>
  20309. XINPUT_GAMEPAD_EX x1;
  20310. int
  20311. main ()
  20312. {
  20313. ;
  20314. return 0;
  20315. }
  20316. _ACEOF
  20317. if ac_fn_c_try_compile "$LINENO"; then :
  20318. have_xinput_gamepadex=yes
  20319. fi
  20320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20322. /* end confdefs.h. */
  20323. #include <windows.h>
  20324. #include <xinput.h>
  20325. XINPUT_STATE_EX s1;
  20326. int
  20327. main ()
  20328. {
  20329. ;
  20330. return 0;
  20331. }
  20332. _ACEOF
  20333. if ac_fn_c_try_compile "$LINENO"; then :
  20334. have_xinput_stateex=yes
  20335. fi
  20336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20337. if test x$have_ddraw = xyes; then
  20338. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20339. fi
  20340. if test x$have_dinput = xyes; then
  20341. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20342. fi
  20343. if test x$have_dsound = xyes; then
  20344. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20345. fi
  20346. if test x$have_dxgi = xyes; then
  20347. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20348. fi
  20349. if test x$have_xinput = xyes; then
  20350. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20351. fi
  20352. if test x$have_xinput_gamepadex = xyes; then
  20353. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20354. fi
  20355. if test x$have_xinput_stateex = xyes; then
  20356. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20357. fi
  20358. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20359. # FIXME: ...so force it off for now.
  20360. case "$host" in
  20361. *-*-cygwin*)
  20362. have_dinput=false
  20363. ;;
  20364. esac
  20365. fi
  20366. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20367. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20368. have_wasapi=yes
  20369. fi
  20370. if test x$have_wasapi = xyes; then
  20371. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20372. fi
  20373. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20374. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20375. else
  20376. have_wasapi=no
  20377. fi
  20378. if test x$have_wasapi = xyes; then
  20379. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20380. fi
  20381. # Check whether --enable-wasapi was given.
  20382. if test "${enable_wasapi+set}" = set; then :
  20383. enableval=$enable_wasapi;
  20384. else
  20385. enable_wasapi=yes
  20386. fi
  20387. }
  20388. CheckDLOPEN()
  20389. {
  20390. # Check whether --enable-sdl-dlopen was given.
  20391. if test "${enable_sdl_dlopen+set}" = set; then :
  20392. enableval=$enable_sdl_dlopen;
  20393. else
  20394. enable_sdl_dlopen=yes
  20395. fi
  20396. if test x$enable_sdl_dlopen = xyes; then
  20397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20398. $as_echo_n "checking for dlopen... " >&6; }
  20399. have_dlopen=no
  20400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20401. /* end confdefs.h. */
  20402. #include <dlfcn.h>
  20403. int
  20404. main ()
  20405. {
  20406. void *handle = dlopen("", RTLD_NOW);
  20407. const char *loaderror = (char *) dlerror();
  20408. ;
  20409. return 0;
  20410. }
  20411. _ACEOF
  20412. if ac_fn_c_try_compile "$LINENO"; then :
  20413. have_dlopen=yes
  20414. fi
  20415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20417. $as_echo "$have_dlopen" >&6; }
  20418. if test x$have_dlopen = xyes; then
  20419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20420. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20421. if ${ac_cv_lib_c_dlopen+:} false; then :
  20422. $as_echo_n "(cached) " >&6
  20423. else
  20424. ac_check_lib_save_LIBS=$LIBS
  20425. LIBS="-lc $LIBS"
  20426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20427. /* end confdefs.h. */
  20428. /* Override any GCC internal prototype to avoid an error.
  20429. Use char because int might match the return type of a GCC
  20430. builtin and then its argument prototype would still apply. */
  20431. #ifdef __cplusplus
  20432. extern "C"
  20433. #endif
  20434. char dlopen ();
  20435. int
  20436. main ()
  20437. {
  20438. return dlopen ();
  20439. ;
  20440. return 0;
  20441. }
  20442. _ACEOF
  20443. if ac_fn_c_try_link "$LINENO"; then :
  20444. ac_cv_lib_c_dlopen=yes
  20445. else
  20446. ac_cv_lib_c_dlopen=no
  20447. fi
  20448. rm -f core conftest.err conftest.$ac_objext \
  20449. conftest$ac_exeext conftest.$ac_ext
  20450. LIBS=$ac_check_lib_save_LIBS
  20451. fi
  20452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20453. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20454. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20456. else
  20457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20458. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20459. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20460. $as_echo_n "(cached) " >&6
  20461. else
  20462. ac_check_lib_save_LIBS=$LIBS
  20463. LIBS="-ldl $LIBS"
  20464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20465. /* end confdefs.h. */
  20466. /* Override any GCC internal prototype to avoid an error.
  20467. Use char because int might match the return type of a GCC
  20468. builtin and then its argument prototype would still apply. */
  20469. #ifdef __cplusplus
  20470. extern "C"
  20471. #endif
  20472. char dlopen ();
  20473. int
  20474. main ()
  20475. {
  20476. return dlopen ();
  20477. ;
  20478. return 0;
  20479. }
  20480. _ACEOF
  20481. if ac_fn_c_try_link "$LINENO"; then :
  20482. ac_cv_lib_dl_dlopen=yes
  20483. else
  20484. ac_cv_lib_dl_dlopen=no
  20485. fi
  20486. rm -f core conftest.err conftest.$ac_objext \
  20487. conftest$ac_exeext conftest.$ac_ext
  20488. LIBS=$ac_check_lib_save_LIBS
  20489. fi
  20490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20491. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20492. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20493. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20494. else
  20495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20496. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20497. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20498. $as_echo_n "(cached) " >&6
  20499. else
  20500. ac_check_lib_save_LIBS=$LIBS
  20501. LIBS="-lltdl $LIBS"
  20502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20503. /* end confdefs.h. */
  20504. /* Override any GCC internal prototype to avoid an error.
  20505. Use char because int might match the return type of a GCC
  20506. builtin and then its argument prototype would still apply. */
  20507. #ifdef __cplusplus
  20508. extern "C"
  20509. #endif
  20510. char dlopen ();
  20511. int
  20512. main ()
  20513. {
  20514. return dlopen ();
  20515. ;
  20516. return 0;
  20517. }
  20518. _ACEOF
  20519. if ac_fn_c_try_link "$LINENO"; then :
  20520. ac_cv_lib_ltdl_dlopen=yes
  20521. else
  20522. ac_cv_lib_ltdl_dlopen=no
  20523. fi
  20524. rm -f core conftest.err conftest.$ac_objext \
  20525. conftest$ac_exeext conftest.$ac_ext
  20526. LIBS=$ac_check_lib_save_LIBS
  20527. fi
  20528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20529. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20530. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20532. fi
  20533. fi
  20534. fi
  20535. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20536. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20537. have_loadso=yes
  20538. fi
  20539. fi
  20540. }
  20541. CheckUSBHID()
  20542. {
  20543. case "$host" in
  20544. *-*-*bsd*|*-*-dragonfly*)
  20545. if test x$enable_joystick = xyes; then
  20546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20547. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20548. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20549. $as_echo_n "(cached) " >&6
  20550. else
  20551. ac_check_lib_save_LIBS=$LIBS
  20552. LIBS="-lusbhid $LIBS"
  20553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20554. /* end confdefs.h. */
  20555. /* Override any GCC internal prototype to avoid an error.
  20556. Use char because int might match the return type of a GCC
  20557. builtin and then its argument prototype would still apply. */
  20558. #ifdef __cplusplus
  20559. extern "C"
  20560. #endif
  20561. char hid_init ();
  20562. int
  20563. main ()
  20564. {
  20565. return hid_init ();
  20566. ;
  20567. return 0;
  20568. }
  20569. _ACEOF
  20570. if ac_fn_c_try_link "$LINENO"; then :
  20571. ac_cv_lib_usbhid_hid_init=yes
  20572. else
  20573. ac_cv_lib_usbhid_hid_init=no
  20574. fi
  20575. rm -f core conftest.err conftest.$ac_objext \
  20576. conftest$ac_exeext conftest.$ac_ext
  20577. LIBS=$ac_check_lib_save_LIBS
  20578. fi
  20579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20580. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20581. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20582. have_libusbhid=yes
  20583. fi
  20584. if test x$have_libusbhid = xyes; then
  20585. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20586. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20587. USB_CFLAGS="-DHAVE_USBHID_H"
  20588. fi
  20589. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20590. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20591. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20592. fi
  20593. USB_LIBS="$USB_LIBS -lusbhid"
  20594. else
  20595. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20596. if test "x$ac_cv_header_usb_h" = xyes; then :
  20597. USB_CFLAGS="-DHAVE_USB_H"
  20598. fi
  20599. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20600. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20601. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20602. fi
  20603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20604. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20605. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20606. $as_echo_n "(cached) " >&6
  20607. else
  20608. ac_check_lib_save_LIBS=$LIBS
  20609. LIBS="-lusb $LIBS"
  20610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20611. /* end confdefs.h. */
  20612. /* Override any GCC internal prototype to avoid an error.
  20613. Use char because int might match the return type of a GCC
  20614. builtin and then its argument prototype would still apply. */
  20615. #ifdef __cplusplus
  20616. extern "C"
  20617. #endif
  20618. char hid_init ();
  20619. int
  20620. main ()
  20621. {
  20622. return hid_init ();
  20623. ;
  20624. return 0;
  20625. }
  20626. _ACEOF
  20627. if ac_fn_c_try_link "$LINENO"; then :
  20628. ac_cv_lib_usb_hid_init=yes
  20629. else
  20630. ac_cv_lib_usb_hid_init=no
  20631. fi
  20632. rm -f core conftest.err conftest.$ac_objext \
  20633. conftest$ac_exeext conftest.$ac_ext
  20634. LIBS=$ac_check_lib_save_LIBS
  20635. fi
  20636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20637. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20638. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20639. USB_LIBS="$USB_LIBS -lusb"
  20640. fi
  20641. fi
  20642. save_CFLAGS="$CFLAGS"
  20643. CFLAGS="$CFLAGS $USB_CFLAGS"
  20644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20645. $as_echo_n "checking for usbhid... " >&6; }
  20646. have_usbhid=no
  20647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20648. /* end confdefs.h. */
  20649. #include <sys/types.h>
  20650. #if defined(HAVE_USB_H)
  20651. #include <usb.h>
  20652. #endif
  20653. #ifdef __DragonFly__
  20654. # include <bus/u4b/usb.h>
  20655. # include <bus/u4b/usbhid.h>
  20656. #else
  20657. # include <dev/usb/usb.h>
  20658. # include <dev/usb/usbhid.h>
  20659. #endif
  20660. #if defined(HAVE_USBHID_H)
  20661. #include <usbhid.h>
  20662. #elif defined(HAVE_LIBUSB_H)
  20663. #include <libusb.h>
  20664. #elif defined(HAVE_LIBUSBHID_H)
  20665. #include <libusbhid.h>
  20666. #endif
  20667. int
  20668. main ()
  20669. {
  20670. struct report_desc *repdesc;
  20671. struct usb_ctl_report *repbuf;
  20672. hid_kind_t hidkind;
  20673. ;
  20674. return 0;
  20675. }
  20676. _ACEOF
  20677. if ac_fn_c_try_compile "$LINENO"; then :
  20678. have_usbhid=yes
  20679. fi
  20680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20682. $as_echo "$have_usbhid" >&6; }
  20683. if test x$have_usbhid = xyes; then
  20684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20685. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20686. have_usbhid_ucr_data=no
  20687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20688. /* end confdefs.h. */
  20689. #include <sys/types.h>
  20690. #if defined(HAVE_USB_H)
  20691. #include <usb.h>
  20692. #endif
  20693. #ifdef __DragonFly__
  20694. # include <bus/u4b/usb.h>
  20695. # include <bus/u4b/usbhid.h>
  20696. #else
  20697. # include <dev/usb/usb.h>
  20698. # include <dev/usb/usbhid.h>
  20699. #endif
  20700. #if defined(HAVE_USBHID_H)
  20701. #include <usbhid.h>
  20702. #elif defined(HAVE_LIBUSB_H)
  20703. #include <libusb.h>
  20704. #elif defined(HAVE_LIBUSBHID_H)
  20705. #include <libusbhid.h>
  20706. #endif
  20707. int
  20708. main ()
  20709. {
  20710. struct usb_ctl_report buf;
  20711. if (buf.ucr_data) { }
  20712. ;
  20713. return 0;
  20714. }
  20715. _ACEOF
  20716. if ac_fn_c_try_compile "$LINENO"; then :
  20717. have_usbhid_ucr_data=yes
  20718. fi
  20719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20720. if test x$have_usbhid_ucr_data = xyes; then
  20721. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20722. fi
  20723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20724. $as_echo "$have_usbhid_ucr_data" >&6; }
  20725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20726. $as_echo_n "checking for new usbhid API... " >&6; }
  20727. have_usbhid_new=no
  20728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20729. /* end confdefs.h. */
  20730. #include <sys/types.h>
  20731. #if defined(HAVE_USB_H)
  20732. #include <usb.h>
  20733. #endif
  20734. #ifdef __DragonFly__
  20735. #include <bus/u4b/usb.h>
  20736. #include <bus/u4b/usbhid.h>
  20737. #else
  20738. #include <dev/usb/usb.h>
  20739. #include <dev/usb/usbhid.h>
  20740. #endif
  20741. #if defined(HAVE_USBHID_H)
  20742. #include <usbhid.h>
  20743. #elif defined(HAVE_LIBUSB_H)
  20744. #include <libusb.h>
  20745. #elif defined(HAVE_LIBUSBHID_H)
  20746. #include <libusbhid.h>
  20747. #endif
  20748. int
  20749. main ()
  20750. {
  20751. report_desc_t d;
  20752. hid_start_parse(d, 1, 1);
  20753. ;
  20754. return 0;
  20755. }
  20756. _ACEOF
  20757. if ac_fn_c_try_compile "$LINENO"; then :
  20758. have_usbhid_new=yes
  20759. fi
  20760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20761. if test x$have_usbhid_new = xyes; then
  20762. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20763. fi
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20765. $as_echo "$have_usbhid_new" >&6; }
  20766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20767. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20768. have_machine_joystick=no
  20769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20770. /* end confdefs.h. */
  20771. #include <machine/joystick.h>
  20772. int
  20773. main ()
  20774. {
  20775. struct joystick t;
  20776. ;
  20777. return 0;
  20778. }
  20779. _ACEOF
  20780. if ac_fn_c_try_compile "$LINENO"; then :
  20781. have_machine_joystick=yes
  20782. fi
  20783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20784. if test x$have_machine_joystick = xyes; then
  20785. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20786. fi
  20787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20788. $as_echo "$have_machine_joystick" >&6; }
  20789. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20790. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20791. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20792. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20793. have_joystick=yes
  20794. fi
  20795. CFLAGS="$save_CFLAGS"
  20796. fi
  20797. ;;
  20798. esac
  20799. }
  20800. CheckHIDAPI()
  20801. {
  20802. # Check whether --enable-hidapi was given.
  20803. if test "${enable_hidapi+set}" = set; then :
  20804. enableval=$enable_hidapi;
  20805. else
  20806. enable_hidapi=yes
  20807. fi
  20808. # Check whether --enable-hidapi-libusb was given.
  20809. if test "${enable_hidapi_libusb+set}" = set; then :
  20810. enableval=$enable_hidapi_libusb;
  20811. else
  20812. enable_hidapi_libusb=maybe
  20813. fi
  20814. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20815. case "$host" in
  20816. # libusb does not support iOS
  20817. *-ios-* )
  20818. enable_hidapi_libusb=no
  20819. ;;
  20820. # On the other hand, *BSD specifically uses libusb only
  20821. *-*-*bsd* )
  20822. enable_hidapi_libusb=yes
  20823. require_hidapi_libusb=yes
  20824. ;;
  20825. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20826. *-*-cygwin* | *-*-mingw32*)
  20827. enable_joystick_rawinput=yes
  20828. ;;
  20829. esac
  20830. hidapi_support=yes
  20831. if test x$enable_hidapi_libusb = xyes; then
  20832. pkg_failed=no
  20833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  20834. $as_echo_n "checking for libusb-1.0... " >&6; }
  20835. if test -n "$LIBUSB_CFLAGS"; then
  20836. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20837. elif test -n "$PKG_CONFIG"; then
  20838. if test -n "$PKG_CONFIG" && \
  20839. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20840. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20841. ac_status=$?
  20842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20843. test $ac_status = 0; }; then
  20844. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20845. test "x$?" != "x0" && pkg_failed=yes
  20846. else
  20847. pkg_failed=yes
  20848. fi
  20849. else
  20850. pkg_failed=untried
  20851. fi
  20852. if test -n "$LIBUSB_LIBS"; then
  20853. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20854. elif test -n "$PKG_CONFIG"; then
  20855. if test -n "$PKG_CONFIG" && \
  20856. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20857. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20858. ac_status=$?
  20859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20860. test $ac_status = 0; }; then
  20861. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20862. test "x$?" != "x0" && pkg_failed=yes
  20863. else
  20864. pkg_failed=yes
  20865. fi
  20866. else
  20867. pkg_failed=untried
  20868. fi
  20869. if test $pkg_failed = yes; then
  20870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20871. $as_echo "no" >&6; }
  20872. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20873. _pkg_short_errors_supported=yes
  20874. else
  20875. _pkg_short_errors_supported=no
  20876. fi
  20877. if test $_pkg_short_errors_supported = yes; then
  20878. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  20879. else
  20880. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  20881. fi
  20882. # Put the nasty error message in config.log where it belongs
  20883. echo "$LIBUSB_PKG_ERRORS" >&5
  20884. have_libusb=no
  20885. elif test $pkg_failed = untried; then
  20886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20887. $as_echo "no" >&6; }
  20888. have_libusb=no
  20889. else
  20890. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20891. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20893. $as_echo "yes" >&6; }
  20894. have_libusb=yes
  20895. fi
  20896. save_CFLAGS="$CFLAGS"
  20897. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20898. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20899. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20900. have_libusb_h=yes
  20901. fi
  20902. CFLAGS="$save_CFLAGS"
  20903. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  20904. hidapi_support=no
  20905. fi
  20906. fi
  20907. if test x$hidapi_support = xyes; then
  20908. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20909. if test x$enable_joystick_rawinput = xyes; then
  20910. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20911. fi
  20912. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20913. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20914. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20915. if test x$have_libusb_h = xyes; then
  20916. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20917. if test x$require_hidapi_libusb = xyes; then
  20918. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20919. else
  20920. if test x$have_loadso != xyes; then
  20921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20922. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20923. fi
  20924. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20925. libusb_lib=""
  20926. case "$host" in
  20927. *-*-darwin* )
  20928. libusb_lib="libusb-1.0.0.dylib"
  20929. ;;
  20930. *-*-cygwin* | *-*-mingw32* )
  20931. libusb_lib="libusb-1.0.dll"
  20932. ;;
  20933. esac
  20934. if test x$libusb_lib = x; then
  20935. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20936. fi
  20937. cat >>confdefs.h <<_ACEOF
  20938. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20939. _ACEOF
  20940. fi
  20941. fi
  20942. fi
  20943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20944. $as_echo_n "checking for hidapi support... " >&6; }
  20945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20946. $as_echo "$hidapi_support" >&6; }
  20947. fi
  20948. }
  20949. CheckClockGettime()
  20950. {
  20951. # Check whether --enable-clock_gettime was given.
  20952. if test "${enable_clock_gettime+set}" = set; then :
  20953. enableval=$enable_clock_gettime;
  20954. else
  20955. enable_clock_gettime=yes
  20956. fi
  20957. if test x$enable_clock_gettime = xyes; then
  20958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20959. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20960. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20961. $as_echo_n "(cached) " >&6
  20962. else
  20963. ac_check_lib_save_LIBS=$LIBS
  20964. LIBS="-lrt $LIBS"
  20965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20966. /* end confdefs.h. */
  20967. /* Override any GCC internal prototype to avoid an error.
  20968. Use char because int might match the return type of a GCC
  20969. builtin and then its argument prototype would still apply. */
  20970. #ifdef __cplusplus
  20971. extern "C"
  20972. #endif
  20973. char clock_gettime ();
  20974. int
  20975. main ()
  20976. {
  20977. return clock_gettime ();
  20978. ;
  20979. return 0;
  20980. }
  20981. _ACEOF
  20982. if ac_fn_c_try_link "$LINENO"; then :
  20983. ac_cv_lib_rt_clock_gettime=yes
  20984. else
  20985. ac_cv_lib_rt_clock_gettime=no
  20986. fi
  20987. rm -f core conftest.err conftest.$ac_objext \
  20988. conftest$ac_exeext conftest.$ac_ext
  20989. LIBS=$ac_check_lib_save_LIBS
  20990. fi
  20991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20992. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20993. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20994. have_clock_gettime=yes
  20995. fi
  20996. if test x$have_clock_gettime = xyes; then
  20997. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20999. else
  21000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21001. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21002. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21003. $as_echo_n "(cached) " >&6
  21004. else
  21005. ac_check_lib_save_LIBS=$LIBS
  21006. LIBS="-lc $LIBS"
  21007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21008. /* end confdefs.h. */
  21009. /* Override any GCC internal prototype to avoid an error.
  21010. Use char because int might match the return type of a GCC
  21011. builtin and then its argument prototype would still apply. */
  21012. #ifdef __cplusplus
  21013. extern "C"
  21014. #endif
  21015. char clock_gettime ();
  21016. int
  21017. main ()
  21018. {
  21019. return clock_gettime ();
  21020. ;
  21021. return 0;
  21022. }
  21023. _ACEOF
  21024. if ac_fn_c_try_link "$LINENO"; then :
  21025. ac_cv_lib_c_clock_gettime=yes
  21026. else
  21027. ac_cv_lib_c_clock_gettime=no
  21028. fi
  21029. rm -f core conftest.err conftest.$ac_objext \
  21030. conftest$ac_exeext conftest.$ac_ext
  21031. LIBS=$ac_check_lib_save_LIBS
  21032. fi
  21033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21034. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21035. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21036. have_clock_gettime=yes
  21037. fi
  21038. if test x$have_clock_gettime = xyes; then
  21039. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21041. fi
  21042. fi
  21043. fi
  21044. }
  21045. CheckLinuxVersion()
  21046. {
  21047. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21048. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21049. have_linux_version_h=yes
  21050. fi
  21051. if test x$have_linux_version_h = xyes; then
  21052. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21053. fi
  21054. }
  21055. CheckRPATH()
  21056. {
  21057. # Check whether --enable-rpath was given.
  21058. if test "${enable_rpath+set}" = set; then :
  21059. enableval=$enable_rpath;
  21060. else
  21061. enable_rpath=yes
  21062. fi
  21063. }
  21064. CheckEventSignals()
  21065. {
  21066. # Check whether --enable-backgrounding-signal was given.
  21067. if test "${enable_backgrounding_signal+set}" = set; then :
  21068. enableval=$enable_backgrounding_signal;
  21069. else
  21070. enable_backgrounding_signal=no
  21071. fi
  21072. if test x$enable_backgrounding_signal != xno; then
  21073. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21074. fi
  21075. # Check whether --enable-foregrounding-signal was given.
  21076. if test "${enable_foregrounding_signal+set}" = set; then :
  21077. enableval=$enable_foregrounding_signal;
  21078. else
  21079. enable_foregrounding_signal=no
  21080. fi
  21081. if test x$enable_foregrounding_signal != xno; then
  21082. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21083. fi
  21084. }
  21085. CheckVirtualJoystick()
  21086. {
  21087. # Check whether --enable-joystick-virtual was given.
  21088. if test "${enable_joystick_virtual+set}" = set; then :
  21089. enableval=$enable_joystick_virtual;
  21090. else
  21091. enable_joystick_virtual=yes
  21092. fi
  21093. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21094. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21095. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21096. have_joystick_virtual=yes
  21097. fi
  21098. }
  21099. CheckWarnAll
  21100. CheckNoStrictAliasing
  21101. CheckEventSignals
  21102. have_locale=no
  21103. case "$host" in
  21104. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21105. case "$host" in
  21106. *-*-android*)
  21107. # Android
  21108. ARCH=android
  21109. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21110. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21111. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21112. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21113. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21114. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21115. if test x$enable_video = xyes; then
  21116. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21117. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21118. SUMMARY_video="${SUMMARY_video} android"
  21119. fi
  21120. ;;
  21121. *-*-linux*) ARCH=linux ;;
  21122. *-*-uclinux*) ARCH=linux ;;
  21123. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21124. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21125. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21126. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21127. *-*-bsdi*) ARCH=bsdi ;;
  21128. *-*-freebsd*) ARCH=freebsd ;;
  21129. *-*-dragonfly*) ARCH=freebsd ;;
  21130. *-*-netbsd*) ARCH=netbsd ;;
  21131. *-*-openbsd*) ARCH=openbsd ;;
  21132. *-*-sysv5*) ARCH=sysv5 ;;
  21133. *-*-solaris*) ARCH=solaris ;;
  21134. *-*-hpux*) ARCH=hpux ;;
  21135. *-*-aix*) ARCH=aix ;;
  21136. *-*-minix*) ARCH=minix ;;
  21137. *-*-nto*) ARCH=nto
  21138. CheckQNXVideo
  21139. ;;
  21140. esac
  21141. CheckVisibilityHidden
  21142. CheckDeclarationAfterStatement
  21143. CheckDummyVideo
  21144. CheckDiskAudio
  21145. CheckDummyAudio
  21146. CheckDLOPEN
  21147. CheckARM
  21148. CheckNEON
  21149. CheckOSS
  21150. CheckALSA
  21151. CheckPulseAudio
  21152. CheckJACK
  21153. CheckARTSC
  21154. CheckESD
  21155. CheckNAS
  21156. CheckSNDIO
  21157. CheckFusionSound
  21158. CheckLibSampleRate
  21159. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21160. CheckRPI
  21161. CheckX11
  21162. CheckDirectFB
  21163. # Need to check for EGL first because KMSDRM depends on it.
  21164. CheckEGLKMSDRM
  21165. CheckKMSDRM
  21166. CheckOpenGLX11
  21167. CheckOpenGLESX11
  21168. CheckVulkan
  21169. CheckWayland
  21170. CheckInputEvents
  21171. CheckLibUDev
  21172. CheckDBus
  21173. CheckIME
  21174. CheckInotify
  21175. CheckIBus
  21176. CheckFcitx
  21177. case $ARCH in
  21178. linux)
  21179. CheckInputKD
  21180. ;;
  21181. freebsd)
  21182. CheckInputKBIO
  21183. ;;
  21184. esac
  21185. CheckUSBHID
  21186. CheckHIDAPI
  21187. CheckPTHREAD
  21188. CheckClockGettime
  21189. CheckLinuxVersion
  21190. CheckRPATH
  21191. CheckVivanteVideo
  21192. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21193. have_misc=yes
  21194. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21195. have_locale=yes
  21196. # Set up files for the audio library
  21197. if test x$enable_audio = xyes; then
  21198. case $ARCH in
  21199. sysv5|solaris|hpux)
  21200. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21201. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21202. SUMMARY_audio="${SUMMARY_audio} sun"
  21203. have_audio=yes
  21204. ;;
  21205. netbsd) # Don't use this on OpenBSD, it's busted.
  21206. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21207. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21208. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21209. have_audio=yes
  21210. ;;
  21211. aix)
  21212. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21213. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21214. SUMMARY_audio="${SUMMARY_audio} paudio"
  21215. have_audio=yes
  21216. ;;
  21217. android)
  21218. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21219. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21220. SUMMARY_audio="${SUMMARY_audio} android"
  21221. have_audio=yes
  21222. ;;
  21223. nto)
  21224. CheckQNXAudio
  21225. ;;
  21226. esac
  21227. fi
  21228. # Set up files for the joystick library
  21229. if test x$enable_joystick = xyes; then
  21230. case $ARCH in
  21231. linux)
  21232. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21233. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21234. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21235. have_joystick=yes
  21236. ;;
  21237. freebsd)
  21238. if test x$use_input_events = xyes; then
  21239. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21240. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21241. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21242. have_joystick=yes
  21243. fi
  21244. ;;
  21245. android)
  21246. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21247. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21248. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21249. have_joystick=yes
  21250. ;;
  21251. esac
  21252. fi
  21253. # Set up files for the haptic library
  21254. if test x$enable_haptic = xyes; then
  21255. case $ARCH in
  21256. linux|freebsd)
  21257. if test x$use_input_events = xyes; then
  21258. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21259. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21260. have_haptic=yes
  21261. fi
  21262. ;;
  21263. android)
  21264. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21265. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21266. have_haptic=yes
  21267. ;;
  21268. esac
  21269. fi
  21270. # Set up files for the sensor library
  21271. if test x$enable_sensor = xyes; then
  21272. case $ARCH in
  21273. android)
  21274. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21275. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21276. have_sensor=yes
  21277. ;;
  21278. esac
  21279. fi
  21280. # Set up files for the power library
  21281. if test x$enable_power = xyes; then
  21282. case $ARCH in
  21283. linux)
  21284. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21285. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21286. have_power=yes
  21287. ;;
  21288. android)
  21289. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21290. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21291. have_power=yes
  21292. ;;
  21293. esac
  21294. fi
  21295. # Set up files for the filesystem library
  21296. if test x$enable_filesystem = xyes; then
  21297. case $ARCH in
  21298. android)
  21299. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21300. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21301. have_filesystem=yes
  21302. ;;
  21303. *)
  21304. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21305. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21306. have_filesystem=yes
  21307. ;;
  21308. esac
  21309. fi
  21310. # Set up files for the timer library
  21311. if test x$enable_timers = xyes; then
  21312. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21313. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21314. have_timers=yes
  21315. fi
  21316. # Set up files for udev hotplugging support
  21317. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21318. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21319. fi
  21320. # Set up files for evdev input
  21321. if test x$use_input_events = xyes; then
  21322. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21323. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21324. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21325. fi
  21326. # Set up other core UNIX files
  21327. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21328. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21329. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21330. ;;
  21331. *-*-cygwin* | *-*-mingw32*)
  21332. ARCH=win32
  21333. if test "$build" != "$host"; then # cross-compiling
  21334. # Default cross-compile location
  21335. ac_default_prefix=/usr/local/cross-tools/$host
  21336. else
  21337. # Look for the location of the tools and install there
  21338. if test "$BUILD_PREFIX" != ""; then
  21339. ac_default_prefix=$BUILD_PREFIX
  21340. fi
  21341. fi
  21342. CheckDeclarationAfterStatement
  21343. CheckDummyVideo
  21344. CheckDiskAudio
  21345. CheckDummyAudio
  21346. CheckWINDOWS
  21347. CheckWINDOWSGL
  21348. CheckWINDOWSGLES
  21349. CheckVulkan
  21350. CheckDIRECTX
  21351. CheckHIDAPI
  21352. # Set up the core platform files
  21353. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21354. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21355. have_misc=yes
  21356. # Use the Windows locale APIs.
  21357. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21358. have_locale=yes
  21359. # Set up files for the video library
  21360. if test x$enable_video = xyes; then
  21361. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21362. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21363. have_video=yes
  21364. # Check whether --enable-render-d3d was given.
  21365. if test "${enable_render_d3d+set}" = set; then :
  21366. enableval=$enable_render_d3d;
  21367. else
  21368. enable_render_d3d=yes
  21369. fi
  21370. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21371. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21372. SUMMARY_video="${SUMMARY_video} d3d9"
  21373. fi
  21374. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21375. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21376. SUMMARY_video="${SUMMARY_video} d3d11"
  21377. fi
  21378. fi
  21379. # Set up files for the audio library
  21380. if test x$enable_audio = xyes; then
  21381. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21382. SUMMARY_audio="${SUMMARY_audio} winmm"
  21383. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21384. if test x$have_dsound = xyes; then
  21385. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21386. SUMMARY_audio="${SUMMARY_audio} directsound"
  21387. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21388. fi
  21389. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21390. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21391. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21392. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21393. fi
  21394. have_audio=yes
  21395. fi
  21396. # Set up files for the joystick library
  21397. if test x$enable_joystick = xyes; then
  21398. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21399. if test x$have_xinput = xyes; then
  21400. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21401. fi
  21402. if test x$have_dinput = xyes; then
  21403. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21404. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21405. fi
  21406. else
  21407. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21408. fi
  21409. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21410. have_joystick=yes
  21411. fi
  21412. if test x$enable_haptic = xyes; then
  21413. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21414. if test x$have_xinput = xyes; then
  21415. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21416. fi
  21417. if test x$have_dinput = xyes; then
  21418. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21419. fi
  21420. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21421. have_haptic=yes
  21422. fi
  21423. fi
  21424. # Set up files for the sensor library
  21425. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21426. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21427. have_winsensors=yes
  21428. else
  21429. have_winsensors=no
  21430. fi
  21431. if test x$have_winsensors = xyes; then
  21432. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21433. fi
  21434. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21435. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21436. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21437. have_sensor=yes
  21438. fi
  21439. # Set up files for the power library
  21440. if test x$enable_power = xyes; then
  21441. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21442. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21443. have_power=yes
  21444. fi
  21445. # Set up files for the filesystem library
  21446. if test x$enable_filesystem = xyes; then
  21447. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21448. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21449. have_filesystem=yes
  21450. fi
  21451. # Set up files for the thread library
  21452. if test x$enable_threads = xyes; then
  21453. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21454. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21455. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21456. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21457. have_threads=yes
  21458. fi
  21459. # Set up files for the timer library
  21460. if test x$enable_timers = xyes; then
  21461. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21462. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21463. have_timers=yes
  21464. fi
  21465. # Set up files for the shared object loading library
  21466. if test x$enable_loadso = xyes; then
  21467. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21468. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21469. have_loadso=yes
  21470. fi
  21471. # Set up the system libraries we need
  21472. if test -f /lib/w32api/libuuid.a; then
  21473. LIBUUID=/lib/w32api/libuuid.a
  21474. else
  21475. LIBUUID=-luuid
  21476. fi
  21477. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21478. # The Windows platform requires special setup
  21479. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21480. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21481. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21482. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21483. # Check to see if this is a mingw or cygwin build
  21484. have_mingw32=
  21485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21486. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21487. if ${ac_cv_lib_mingw32_main+:} false; then :
  21488. $as_echo_n "(cached) " >&6
  21489. else
  21490. ac_check_lib_save_LIBS=$LIBS
  21491. LIBS="-lmingw32 $LIBS"
  21492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21493. /* end confdefs.h. */
  21494. int
  21495. main ()
  21496. {
  21497. return main ();
  21498. ;
  21499. return 0;
  21500. }
  21501. _ACEOF
  21502. if ac_fn_c_try_link "$LINENO"; then :
  21503. ac_cv_lib_mingw32_main=yes
  21504. else
  21505. ac_cv_lib_mingw32_main=no
  21506. fi
  21507. rm -f core conftest.err conftest.$ac_objext \
  21508. conftest$ac_exeext conftest.$ac_ext
  21509. LIBS=$ac_check_lib_save_LIBS
  21510. fi
  21511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21512. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21513. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21514. have_mingw32=yes
  21515. fi
  21516. if test x$have_mingw32 = xyes; then
  21517. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21518. else
  21519. SDL_LIBS="-lcygwin $SDL_LIBS"
  21520. fi
  21521. ;;
  21522. *-*-beos*)
  21523. as_fn_error $? "
  21524. *** BeOS support has been removed as of SDL 2.0.2.
  21525. " "$LINENO" 5
  21526. ;;
  21527. *-*-haiku*)
  21528. ARCH=haiku
  21529. ac_default_prefix=/boot/system
  21530. CheckDummyVideo
  21531. CheckDiskAudio
  21532. CheckDummyAudio
  21533. CheckDLOPEN
  21534. CheckHaikuVideo
  21535. CheckHaikuGL
  21536. CheckPTHREAD
  21537. # Set up files for the audio library
  21538. if test x$enable_audio = xyes; then
  21539. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21540. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21541. SUMMARY_audio="${SUMMARY_audio} haiku"
  21542. have_audio=yes
  21543. fi
  21544. # Set up files for the joystick library
  21545. if test x$enable_joystick = xyes; then
  21546. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21547. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21548. have_joystick=yes
  21549. fi
  21550. # Set up files for the timer library
  21551. if test x$enable_timers = xyes; then
  21552. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21553. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21554. have_timers=yes
  21555. fi
  21556. # Set up files for the system power library
  21557. if test x$enable_power = xyes; then
  21558. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21559. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21560. have_power=yes
  21561. fi
  21562. # Set up files for the system filesystem library
  21563. if test x$enable_filesystem = xyes; then
  21564. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21565. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21566. have_filesystem=yes
  21567. fi
  21568. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21569. have_misc=yes
  21570. # Set up files for the locale library
  21571. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21572. have_locale=yes
  21573. # The Haiku platform requires special setup.
  21574. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21575. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21576. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21577. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21578. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21580. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21581. if eval \${$as_ac_File+:} false; then :
  21582. $as_echo_n "(cached) " >&6
  21583. else
  21584. test "$cross_compiling" = yes &&
  21585. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21586. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21587. eval "$as_ac_File=yes"
  21588. else
  21589. eval "$as_ac_File=no"
  21590. fi
  21591. fi
  21592. eval ac_res=\$$as_ac_File
  21593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21594. $as_echo "$ac_res" >&6; }
  21595. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21596. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21597. else
  21598. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21599. fi
  21600. ;;
  21601. *-ios-*)
  21602. ARCH=ios
  21603. CheckVisibilityHidden
  21604. CheckDeclarationAfterStatement
  21605. CheckDummyVideo
  21606. CheckDiskAudio
  21607. CheckDummyAudio
  21608. CheckDLOPEN
  21609. CheckMETAL
  21610. CheckVulkan
  21611. CheckPTHREAD
  21612. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21613. have_misc=yes
  21614. # Set up files for the locale library
  21615. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21616. have_locale=yes
  21617. # Set up files for the audio library
  21618. if test x$enable_audio = xyes; then
  21619. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21620. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21621. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21622. have_audio=yes
  21623. fi
  21624. # Set up files for the joystick library
  21625. if test x$enable_joystick = xyes; then
  21626. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21627. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21628. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21629. have_joystick=yes
  21630. else
  21631. # Need this code for accelerometer as joystick support
  21632. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21633. fi
  21634. # Set up files for the haptic library
  21635. #if test x$enable_haptic = xyes; then
  21636. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21637. # have_haptic=yes
  21638. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21639. #fi
  21640. # Set up files for the sensor library
  21641. if test x$enable_sensor = xyes; then
  21642. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21643. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21644. have_sensor=yes
  21645. fi
  21646. # Set up files for the power library
  21647. if test x$enable_power = xyes; then
  21648. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21649. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21650. have_power=yes
  21651. fi
  21652. # Set up files for the filesystem library
  21653. if test x$enable_filesystem = xyes; then
  21654. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21655. have_filesystem=yes
  21656. fi
  21657. # Set up additional files for the file library
  21658. if test x$enable_file = xyes; then
  21659. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21660. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21661. fi
  21662. # Set up files for the timer library
  21663. if test x$enable_timers = xyes; then
  21664. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21665. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21666. have_timers=yes
  21667. fi
  21668. # Set up other core UNIX files
  21669. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21670. # The iOS platform requires special setup.
  21671. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21672. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21673. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21674. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21675. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21676. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21677. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21688. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21690. fi
  21691. ;;
  21692. *-*-darwin* )
  21693. # This could be either full "Mac OS X", or plain "Darwin" which is
  21694. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21695. # Next line is broken, and a few files below require Mac OS X (full)
  21696. ARCH=macosx
  21697. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21698. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21699. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21700. CheckVisibilityHidden
  21701. CheckDeclarationAfterStatement
  21702. CheckDummyVideo
  21703. CheckDiskAudio
  21704. CheckDummyAudio
  21705. CheckDLOPEN
  21706. CheckCOCOA
  21707. CheckMETAL
  21708. CheckX11
  21709. CheckMacGL
  21710. CheckMacGLES
  21711. CheckOpenGLX11
  21712. CheckVulkan
  21713. CheckPTHREAD
  21714. CheckHIDAPI
  21715. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21716. have_misc=yes
  21717. # Set up files for the locale library
  21718. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21719. have_locale=yes
  21720. # Set up files for the audio library
  21721. if test x$enable_audio = xyes; then
  21722. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21723. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21724. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21725. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21726. have_audio=yes
  21727. fi
  21728. # Set up files for the joystick library
  21729. if test x$enable_joystick = xyes; then
  21730. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21731. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21732. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21733. CheckJoystickMFI
  21734. have_joystick=yes
  21735. fi
  21736. # Set up files for the haptic library
  21737. if test x$enable_haptic = xyes; then
  21738. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21739. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21740. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21741. have_haptic=yes
  21742. fi
  21743. # Set up files for the power library
  21744. if test x$enable_power = xyes; then
  21745. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21746. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21747. have_power=yes
  21748. fi
  21749. # Set up files for the filesystem library
  21750. if test x$enable_filesystem = xyes; then
  21751. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21752. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21753. have_filesystem=yes
  21754. fi
  21755. # Set up files for the timer library
  21756. if test x$enable_timers = xyes; then
  21757. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21758. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21759. have_timers=yes
  21760. fi
  21761. # Set up additional files for the file library
  21762. if test x$enable_file = xyes; then
  21763. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21764. fi
  21765. # Set up other core UNIX files
  21766. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21767. # The Mac OS X platform requires special setup.
  21768. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21770. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21771. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21772. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21773. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21775. fi
  21776. ;;
  21777. *-nacl|*-pnacl)
  21778. ARCH=nacl
  21779. CheckNativeClient
  21780. CheckDummyAudio
  21781. CheckDummyVideo
  21782. CheckInputEvents
  21783. CheckPTHREAD
  21784. # Set up files for the timer library
  21785. if test x$enable_timers = xyes; then
  21786. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21787. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21788. have_timers=yes
  21789. fi
  21790. if test x$enable_filesystem = xyes; then
  21791. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21792. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21793. have_filesystem=yes
  21794. fi
  21795. ;;
  21796. *-*-emscripten* )
  21797. if test x$enable_video = xyes; then
  21798. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21799. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21800. have_video=yes
  21801. SUMMARY_video="${SUMMARY_video} emscripten"
  21802. fi
  21803. if test x$enable_audio = xyes; then
  21804. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21805. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21806. have_audio=yes
  21807. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21808. fi
  21809. CheckVisibilityHidden
  21810. CheckDeclarationAfterStatement
  21811. CheckDummyVideo
  21812. CheckDiskAudio
  21813. CheckDummyAudio
  21814. CheckDLOPEN
  21815. CheckClockGettime
  21816. CheckEmscriptenGLES
  21817. # Set up files for the power library
  21818. if test x$enable_power = xyes; then
  21819. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21820. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21821. have_power=yes
  21822. fi
  21823. # Set up files for the power library
  21824. if test x$enable_joystick = xyes; then
  21825. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21826. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21827. have_joystick=yes
  21828. fi
  21829. # Set up files for the filesystem library
  21830. if test x$enable_filesystem = xyes; then
  21831. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21832. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21833. have_filesystem=yes
  21834. fi
  21835. # Set up files for the timer library
  21836. if test x$enable_timers = xyes; then
  21837. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21838. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21839. have_timers=yes
  21840. fi
  21841. # Set up files for the locale library
  21842. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  21843. have_locale=yes
  21844. ;;
  21845. *-*-riscos*)
  21846. ARCH=riscos
  21847. CheckVisibilityHidden
  21848. CheckDeclarationAfterStatement
  21849. CheckDummyVideo
  21850. CheckDiskAudio
  21851. CheckDummyAudio
  21852. CheckDLOPEN
  21853. CheckOSS
  21854. CheckPTHREAD
  21855. CheckClockGettime
  21856. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  21857. have_misc=yes
  21858. # Set up files for the timer library
  21859. if test x$enable_timers = xyes; then
  21860. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21861. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21862. have_timers=yes
  21863. fi
  21864. ;;
  21865. *)
  21866. as_fn_error $? "
  21867. *** Unsupported host: Please add to configure.ac
  21868. " "$LINENO" 5
  21869. ;;
  21870. esac
  21871. CheckVirtualJoystick
  21872. # Check whether to install sdl2-config
  21873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21874. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21875. # Check whether --enable-sdl2-config was given.
  21876. if test "${enable_sdl2_config+set}" = set; then :
  21877. enableval=$enable_sdl2_config; case "${enableval}" in
  21878. yes) enable_sdl2_config="TRUE" ;;
  21879. no) enable_sdl2_config="FALSE" ;;
  21880. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21881. esac
  21882. else
  21883. enable_sdl2_config="TRUE"
  21884. fi
  21885. if test "$enable_sdl2_config" = "TRUE"; then
  21886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21887. $as_echo "yes" >&6; }
  21888. else
  21889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21890. $as_echo "no" >&6; }
  21891. fi
  21892. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21893. # Verify that we have all the platform specific files we need
  21894. if test x$have_misc != xyes; then
  21895. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  21896. fi
  21897. if test x$have_locale != xyes; then
  21898. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  21899. fi
  21900. if test x$have_joystick != xyes; then
  21901. if test x$enable_joystick = xyes; then
  21902. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21903. fi
  21904. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21905. fi
  21906. if test x$have_haptic != xyes; then
  21907. if test x$enable_haptic = xyes; then
  21908. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21909. fi
  21910. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21911. fi
  21912. if test x$have_sensor != xyes; then
  21913. if test x$enable_sensor = xyes; then
  21914. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21915. fi
  21916. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21917. fi
  21918. if test x$have_threads != xyes; then
  21919. if test x$enable_threads = xyes; then
  21920. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21921. fi
  21922. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21923. fi
  21924. if test x$have_timers != xyes; then
  21925. if test x$enable_timers = xyes; then
  21926. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21927. fi
  21928. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21929. fi
  21930. if test x$have_filesystem != xyes; then
  21931. if test x$enable_filesystem = xyes; then
  21932. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21933. fi
  21934. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21935. fi
  21936. if test x$have_loadso != xyes; then
  21937. if test x$enable_loadso = xyes; then
  21938. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21939. fi
  21940. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21941. fi
  21942. if test x$SDLMAIN_SOURCES = x; then
  21943. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21944. fi
  21945. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21946. if test x$video_wayland = xyes; then
  21947. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21948. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  21949. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  21950. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21951. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21952. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21953. echo ;\
  21954. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21955. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21956. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21957. echo ;\
  21958. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21959. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21960. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21961. echo ;\
  21962. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21963. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21964. done ;\
  21965. echo ;\
  21966. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  21967. fi
  21968. OBJECTS=`echo $SOURCES`
  21969. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21970. for EXT in asm cc m c S; do
  21971. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21972. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21973. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21974. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21975. done
  21976. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21977. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21978. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21979. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21980. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21981. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21982. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21983. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21984. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21985. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21986. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21987. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21988. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21989. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21990. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21991. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21992. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21993. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21994. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21995. # Set runtime shared library paths as needed
  21996. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  21997. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21998. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22000. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22001. have_enable_new_dtags=no
  22002. save_LDFLAGS="$LDFLAGS"
  22003. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22005. /* end confdefs.h. */
  22006. int
  22007. main ()
  22008. {
  22009. ;
  22010. return 0;
  22011. }
  22012. _ACEOF
  22013. if ac_fn_c_try_link "$LINENO"; then :
  22014. have_enable_new_dtags=yes
  22015. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22016. fi
  22017. rm -f core conftest.err conftest.$ac_objext \
  22018. conftest$ac_exeext conftest.$ac_ext
  22019. LDFLAGS="$save_LDFLAGS"
  22020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22021. $as_echo "$have_enable_new_dtags" >&6; }
  22022. fi
  22023. if test $ARCH = solaris; then
  22024. SDL_RLD_FLAGS="-R\${libdir}"
  22025. fi
  22026. else
  22027. SDL_RLD_FLAGS=""
  22028. fi
  22029. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22030. if test x$enable_shared = xyes; then
  22031. PKG_CONFIG_LIBS_PRIV="
  22032. Libs.private:"
  22033. ENABLE_SHARED_TRUE=
  22034. ENABLE_SHARED_FALSE="#"
  22035. else
  22036. PKG_CONFIG_LIBS_PRIV=
  22037. ENABLE_SHARED_TRUE="#"
  22038. ENABLE_SHARED_FALSE=
  22039. fi
  22040. if test x$enable_static = xyes; then
  22041. ENABLE_STATIC_TRUE=
  22042. ENABLE_STATIC_FALSE="#"
  22043. else
  22044. ENABLE_STATIC_TRUE="#"
  22045. ENABLE_STATIC_FALSE=
  22046. fi
  22047. cat >Makefile.rules <<__EOF__
  22048. # Build rules for objects
  22049. -include \$(OBJECTS:.lo=.d)
  22050. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22051. $srcdir/src/SDL.c: update-revision
  22052. $DEPENDS
  22053. $VERSION_DEPENDS
  22054. $SDLMAIN_DEPENDS
  22055. $SDLTEST_DEPENDS
  22056. $WAYLAND_PROTOCOLS_DEPENDS
  22057. __EOF__
  22058. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22059. ac_config_commands="$ac_config_commands sdl2_config"
  22060. SUMMARY="SDL2 Configure Summary:\n"
  22061. if test x$enable_shared = xyes; then
  22062. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22063. fi
  22064. if test x$enable_static = xyes; then
  22065. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22066. fi
  22067. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22068. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22069. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22070. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22071. if test x$have_x = xyes; then
  22072. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22073. fi
  22074. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22075. if test x$have_joystick_virtual = xyes; then
  22076. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22077. else
  22078. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22079. fi
  22080. if test x$have_samplerate_h_hdr = xyes; then
  22081. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22082. else
  22083. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22084. fi
  22085. if test x$have_libudev_h_hdr = xyes; then
  22086. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22087. else
  22088. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22089. fi
  22090. if test x$have_dbus_dbus_h_hdr = xyes; then
  22091. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22092. else
  22093. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22094. fi
  22095. if test x$enable_ime = xyes; then
  22096. SUMMARY="${SUMMARY}Using ime : YES\n"
  22097. else
  22098. SUMMARY="${SUMMARY}Using ime : NO\n"
  22099. fi
  22100. if test x$have_ibus_ibus_h_hdr = xyes; then
  22101. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22102. else
  22103. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22104. fi
  22105. if test x$have_fcitx = xyes; then
  22106. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22107. else
  22108. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22109. fi
  22110. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22111. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22112. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22113. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22114. SUMMARY="${SUMMARY}configure script with:\n"
  22115. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22116. fi
  22117. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22118. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22119. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22120. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22121. SUMMARY="${SUMMARY}configure script with:\n"
  22122. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22123. fi
  22124. ac_config_commands="$ac_config_commands summary"
  22125. cat >confcache <<\_ACEOF
  22126. # This file is a shell script that caches the results of configure
  22127. # tests run on this system so they can be shared between configure
  22128. # scripts and configure runs, see configure's option --config-cache.
  22129. # It is not useful on other systems. If it contains results you don't
  22130. # want to keep, you may remove or edit it.
  22131. #
  22132. # config.status only pays attention to the cache file if you give it
  22133. # the --recheck option to rerun configure.
  22134. #
  22135. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22136. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22137. # following values.
  22138. _ACEOF
  22139. # The following way of writing the cache mishandles newlines in values,
  22140. # but we know of no workaround that is simple, portable, and efficient.
  22141. # So, we kill variables containing newlines.
  22142. # Ultrix sh set writes to stderr and can't be redirected directly,
  22143. # and sets the high bit in the cache file unless we assign to the vars.
  22144. (
  22145. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22146. eval ac_val=\$$ac_var
  22147. case $ac_val in #(
  22148. *${as_nl}*)
  22149. case $ac_var in #(
  22150. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22151. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22152. esac
  22153. case $ac_var in #(
  22154. _ | IFS | as_nl) ;; #(
  22155. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22156. *) { eval $ac_var=; unset $ac_var;} ;;
  22157. esac ;;
  22158. esac
  22159. done
  22160. (set) 2>&1 |
  22161. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22162. *${as_nl}ac_space=\ *)
  22163. # `set' does not quote correctly, so add quotes: double-quote
  22164. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22165. sed -n \
  22166. "s/'/'\\\\''/g;
  22167. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22168. ;; #(
  22169. *)
  22170. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22171. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22172. ;;
  22173. esac |
  22174. sort
  22175. ) |
  22176. sed '
  22177. /^ac_cv_env_/b end
  22178. t clear
  22179. :clear
  22180. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22181. t end
  22182. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22183. :end' >>confcache
  22184. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22185. if test -w "$cache_file"; then
  22186. if test "x$cache_file" != "x/dev/null"; then
  22187. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22188. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22189. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22190. cat confcache >"$cache_file"
  22191. else
  22192. case $cache_file in #(
  22193. */* | ?:*)
  22194. mv -f confcache "$cache_file"$$ &&
  22195. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22196. *)
  22197. mv -f confcache "$cache_file" ;;
  22198. esac
  22199. fi
  22200. fi
  22201. else
  22202. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22203. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22204. fi
  22205. fi
  22206. rm -f confcache
  22207. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22208. # Let make expand exec_prefix.
  22209. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22210. DEFS=-DHAVE_CONFIG_H
  22211. ac_libobjs=
  22212. ac_ltlibobjs=
  22213. U=
  22214. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22215. # 1. Remove the extension, and $U if already installed.
  22216. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22217. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22218. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22219. # will be set to the directory where LIBOBJS objects are built.
  22220. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22221. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22222. done
  22223. LIBOBJS=$ac_libobjs
  22224. LTLIBOBJS=$ac_ltlibobjs
  22225. : "${CONFIG_STATUS=./config.status}"
  22226. ac_write_fail=0
  22227. ac_clean_files_save=$ac_clean_files
  22228. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22229. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22230. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22231. as_write_fail=0
  22232. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22233. #! $SHELL
  22234. # Generated by $as_me.
  22235. # Run this file to recreate the current configuration.
  22236. # Compiler output produced by configure, useful for debugging
  22237. # configure, is in config.log if it exists.
  22238. debug=false
  22239. ac_cs_recheck=false
  22240. ac_cs_silent=false
  22241. SHELL=\${CONFIG_SHELL-$SHELL}
  22242. export SHELL
  22243. _ASEOF
  22244. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22245. ## -------------------- ##
  22246. ## M4sh Initialization. ##
  22247. ## -------------------- ##
  22248. # Be more Bourne compatible
  22249. DUALCASE=1; export DUALCASE # for MKS sh
  22250. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22251. emulate sh
  22252. NULLCMD=:
  22253. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22254. # is contrary to our usage. Disable this feature.
  22255. alias -g '${1+"$@"}'='"$@"'
  22256. setopt NO_GLOB_SUBST
  22257. else
  22258. case `(set -o) 2>/dev/null` in #(
  22259. *posix*) :
  22260. set -o posix ;; #(
  22261. *) :
  22262. ;;
  22263. esac
  22264. fi
  22265. as_nl='
  22266. '
  22267. export as_nl
  22268. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22269. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22270. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22271. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22272. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22273. # but without wasting forks for bash or zsh.
  22274. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22275. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22276. as_echo='print -r --'
  22277. as_echo_n='print -rn --'
  22278. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22279. as_echo='printf %s\n'
  22280. as_echo_n='printf %s'
  22281. else
  22282. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22283. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22284. as_echo_n='/usr/ucb/echo -n'
  22285. else
  22286. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22287. as_echo_n_body='eval
  22288. arg=$1;
  22289. case $arg in #(
  22290. *"$as_nl"*)
  22291. expr "X$arg" : "X\\(.*\\)$as_nl";
  22292. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22293. esac;
  22294. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22295. '
  22296. export as_echo_n_body
  22297. as_echo_n='sh -c $as_echo_n_body as_echo'
  22298. fi
  22299. export as_echo_body
  22300. as_echo='sh -c $as_echo_body as_echo'
  22301. fi
  22302. # The user is always right.
  22303. if test "${PATH_SEPARATOR+set}" != set; then
  22304. PATH_SEPARATOR=:
  22305. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22306. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22307. PATH_SEPARATOR=';'
  22308. }
  22309. fi
  22310. # IFS
  22311. # We need space, tab and new line, in precisely that order. Quoting is
  22312. # there to prevent editors from complaining about space-tab.
  22313. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22314. # splitting by setting IFS to empty value.)
  22315. IFS=" "" $as_nl"
  22316. # Find who we are. Look in the path if we contain no directory separator.
  22317. as_myself=
  22318. case $0 in #((
  22319. *[\\/]* ) as_myself=$0 ;;
  22320. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22321. for as_dir in $PATH
  22322. do
  22323. IFS=$as_save_IFS
  22324. test -z "$as_dir" && as_dir=.
  22325. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22326. done
  22327. IFS=$as_save_IFS
  22328. ;;
  22329. esac
  22330. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22331. # in which case we are not to be found in the path.
  22332. if test "x$as_myself" = x; then
  22333. as_myself=$0
  22334. fi
  22335. if test ! -f "$as_myself"; then
  22336. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22337. exit 1
  22338. fi
  22339. # Unset variables that we do not need and which cause bugs (e.g. in
  22340. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22341. # suppresses any "Segmentation fault" message there. '((' could
  22342. # trigger a bug in pdksh 5.2.14.
  22343. for as_var in BASH_ENV ENV MAIL MAILPATH
  22344. do eval test x\${$as_var+set} = xset \
  22345. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22346. done
  22347. PS1='$ '
  22348. PS2='> '
  22349. PS4='+ '
  22350. # NLS nuisances.
  22351. LC_ALL=C
  22352. export LC_ALL
  22353. LANGUAGE=C
  22354. export LANGUAGE
  22355. # CDPATH.
  22356. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22357. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22358. # ----------------------------------------
  22359. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22360. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22361. # script with STATUS, using 1 if that was 0.
  22362. as_fn_error ()
  22363. {
  22364. as_status=$1; test $as_status -eq 0 && as_status=1
  22365. if test "$4"; then
  22366. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22367. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22368. fi
  22369. $as_echo "$as_me: error: $2" >&2
  22370. as_fn_exit $as_status
  22371. } # as_fn_error
  22372. # as_fn_set_status STATUS
  22373. # -----------------------
  22374. # Set $? to STATUS, without forking.
  22375. as_fn_set_status ()
  22376. {
  22377. return $1
  22378. } # as_fn_set_status
  22379. # as_fn_exit STATUS
  22380. # -----------------
  22381. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22382. as_fn_exit ()
  22383. {
  22384. set +e
  22385. as_fn_set_status $1
  22386. exit $1
  22387. } # as_fn_exit
  22388. # as_fn_unset VAR
  22389. # ---------------
  22390. # Portably unset VAR.
  22391. as_fn_unset ()
  22392. {
  22393. { eval $1=; unset $1;}
  22394. }
  22395. as_unset=as_fn_unset
  22396. # as_fn_append VAR VALUE
  22397. # ----------------------
  22398. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22399. # advantage of any shell optimizations that allow amortized linear growth over
  22400. # repeated appends, instead of the typical quadratic growth present in naive
  22401. # implementations.
  22402. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22403. eval 'as_fn_append ()
  22404. {
  22405. eval $1+=\$2
  22406. }'
  22407. else
  22408. as_fn_append ()
  22409. {
  22410. eval $1=\$$1\$2
  22411. }
  22412. fi # as_fn_append
  22413. # as_fn_arith ARG...
  22414. # ------------------
  22415. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22416. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22417. # must be portable across $(()) and expr.
  22418. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22419. eval 'as_fn_arith ()
  22420. {
  22421. as_val=$(( $* ))
  22422. }'
  22423. else
  22424. as_fn_arith ()
  22425. {
  22426. as_val=`expr "$@" || test $? -eq 1`
  22427. }
  22428. fi # as_fn_arith
  22429. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22430. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22431. as_expr=expr
  22432. else
  22433. as_expr=false
  22434. fi
  22435. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22436. as_basename=basename
  22437. else
  22438. as_basename=false
  22439. fi
  22440. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22441. as_dirname=dirname
  22442. else
  22443. as_dirname=false
  22444. fi
  22445. as_me=`$as_basename -- "$0" ||
  22446. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22447. X"$0" : 'X\(//\)$' \| \
  22448. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22449. $as_echo X/"$0" |
  22450. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22451. s//\1/
  22452. q
  22453. }
  22454. /^X\/\(\/\/\)$/{
  22455. s//\1/
  22456. q
  22457. }
  22458. /^X\/\(\/\).*/{
  22459. s//\1/
  22460. q
  22461. }
  22462. s/.*/./; q'`
  22463. # Avoid depending upon Character Ranges.
  22464. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22465. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22466. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22467. as_cr_digits='0123456789'
  22468. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22469. ECHO_C= ECHO_N= ECHO_T=
  22470. case `echo -n x` in #(((((
  22471. -n*)
  22472. case `echo 'xy\c'` in
  22473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22474. xy) ECHO_C='\c';;
  22475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22476. ECHO_T=' ';;
  22477. esac;;
  22478. *)
  22479. ECHO_N='-n';;
  22480. esac
  22481. rm -f conf$$ conf$$.exe conf$$.file
  22482. if test -d conf$$.dir; then
  22483. rm -f conf$$.dir/conf$$.file
  22484. else
  22485. rm -f conf$$.dir
  22486. mkdir conf$$.dir 2>/dev/null
  22487. fi
  22488. if (echo >conf$$.file) 2>/dev/null; then
  22489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22490. as_ln_s='ln -s'
  22491. # ... but there are two gotchas:
  22492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22494. # In both cases, we have to default to `cp -pR'.
  22495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22496. as_ln_s='cp -pR'
  22497. elif ln conf$$.file conf$$ 2>/dev/null; then
  22498. as_ln_s=ln
  22499. else
  22500. as_ln_s='cp -pR'
  22501. fi
  22502. else
  22503. as_ln_s='cp -pR'
  22504. fi
  22505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22506. rmdir conf$$.dir 2>/dev/null
  22507. # as_fn_mkdir_p
  22508. # -------------
  22509. # Create "$as_dir" as a directory, including parents if necessary.
  22510. as_fn_mkdir_p ()
  22511. {
  22512. case $as_dir in #(
  22513. -*) as_dir=./$as_dir;;
  22514. esac
  22515. test -d "$as_dir" || eval $as_mkdir_p || {
  22516. as_dirs=
  22517. while :; do
  22518. case $as_dir in #(
  22519. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22520. *) as_qdir=$as_dir;;
  22521. esac
  22522. as_dirs="'$as_qdir' $as_dirs"
  22523. as_dir=`$as_dirname -- "$as_dir" ||
  22524. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22525. X"$as_dir" : 'X\(//\)[^/]' \| \
  22526. X"$as_dir" : 'X\(//\)$' \| \
  22527. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22528. $as_echo X"$as_dir" |
  22529. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22530. s//\1/
  22531. q
  22532. }
  22533. /^X\(\/\/\)[^/].*/{
  22534. s//\1/
  22535. q
  22536. }
  22537. /^X\(\/\/\)$/{
  22538. s//\1/
  22539. q
  22540. }
  22541. /^X\(\/\).*/{
  22542. s//\1/
  22543. q
  22544. }
  22545. s/.*/./; q'`
  22546. test -d "$as_dir" && break
  22547. done
  22548. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22549. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22550. } # as_fn_mkdir_p
  22551. if mkdir -p . 2>/dev/null; then
  22552. as_mkdir_p='mkdir -p "$as_dir"'
  22553. else
  22554. test -d ./-p && rmdir ./-p
  22555. as_mkdir_p=false
  22556. fi
  22557. # as_fn_executable_p FILE
  22558. # -----------------------
  22559. # Test if FILE is an executable regular file.
  22560. as_fn_executable_p ()
  22561. {
  22562. test -f "$1" && test -x "$1"
  22563. } # as_fn_executable_p
  22564. as_test_x='test -x'
  22565. as_executable_p=as_fn_executable_p
  22566. # Sed expression to map a string onto a valid CPP name.
  22567. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22568. # Sed expression to map a string onto a valid variable name.
  22569. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22570. exec 6>&1
  22571. ## ----------------------------------- ##
  22572. ## Main body of $CONFIG_STATUS script. ##
  22573. ## ----------------------------------- ##
  22574. _ASEOF
  22575. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22577. # Save the log message, to keep $0 and so on meaningful, and to
  22578. # report actual input values of CONFIG_FILES etc. instead of their
  22579. # values after options handling.
  22580. ac_log="
  22581. This file was extended by $as_me, which was
  22582. generated by GNU Autoconf 2.69. Invocation command line was
  22583. CONFIG_FILES = $CONFIG_FILES
  22584. CONFIG_HEADERS = $CONFIG_HEADERS
  22585. CONFIG_LINKS = $CONFIG_LINKS
  22586. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22587. $ $0 $@
  22588. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22589. "
  22590. _ACEOF
  22591. case $ac_config_files in *"
  22592. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22593. esac
  22594. case $ac_config_headers in *"
  22595. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22596. esac
  22597. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22598. # Files that config.status was made for.
  22599. config_files="$ac_config_files"
  22600. config_headers="$ac_config_headers"
  22601. config_commands="$ac_config_commands"
  22602. _ACEOF
  22603. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22604. ac_cs_usage="\
  22605. \`$as_me' instantiates files and other configuration actions
  22606. from templates according to the current configuration. Unless the files
  22607. and actions are specified as TAGs, all are instantiated by default.
  22608. Usage: $0 [OPTION]... [TAG]...
  22609. -h, --help print this help, then exit
  22610. -V, --version print version number and configuration settings, then exit
  22611. --config print configuration, then exit
  22612. -q, --quiet, --silent
  22613. do not print progress messages
  22614. -d, --debug don't remove temporary files
  22615. --recheck update $as_me by reconfiguring in the same conditions
  22616. --file=FILE[:TEMPLATE]
  22617. instantiate the configuration file FILE
  22618. --header=FILE[:TEMPLATE]
  22619. instantiate the configuration header FILE
  22620. Configuration files:
  22621. $config_files
  22622. Configuration headers:
  22623. $config_headers
  22624. Configuration commands:
  22625. $config_commands
  22626. Report bugs to the package provider."
  22627. _ACEOF
  22628. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22629. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22630. ac_cs_version="\\
  22631. config.status
  22632. configured by $0, generated by GNU Autoconf 2.69,
  22633. with options \\"\$ac_cs_config\\"
  22634. Copyright (C) 2012 Free Software Foundation, Inc.
  22635. This config.status script is free software; the Free Software Foundation
  22636. gives unlimited permission to copy, distribute and modify it."
  22637. ac_pwd='$ac_pwd'
  22638. srcdir='$srcdir'
  22639. INSTALL='$INSTALL'
  22640. AWK='$AWK'
  22641. test -n "\$AWK" || AWK=awk
  22642. _ACEOF
  22643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22644. # The default lists apply if the user does not specify any file.
  22645. ac_need_defaults=:
  22646. while test $# != 0
  22647. do
  22648. case $1 in
  22649. --*=?*)
  22650. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22651. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22652. ac_shift=:
  22653. ;;
  22654. --*=)
  22655. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22656. ac_optarg=
  22657. ac_shift=:
  22658. ;;
  22659. *)
  22660. ac_option=$1
  22661. ac_optarg=$2
  22662. ac_shift=shift
  22663. ;;
  22664. esac
  22665. case $ac_option in
  22666. # Handling of the options.
  22667. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22668. ac_cs_recheck=: ;;
  22669. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22670. $as_echo "$ac_cs_version"; exit ;;
  22671. --config | --confi | --conf | --con | --co | --c )
  22672. $as_echo "$ac_cs_config"; exit ;;
  22673. --debug | --debu | --deb | --de | --d | -d )
  22674. debug=: ;;
  22675. --file | --fil | --fi | --f )
  22676. $ac_shift
  22677. case $ac_optarg in
  22678. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22679. '') as_fn_error $? "missing file argument" ;;
  22680. esac
  22681. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22682. ac_need_defaults=false;;
  22683. --header | --heade | --head | --hea )
  22684. $ac_shift
  22685. case $ac_optarg in
  22686. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22687. esac
  22688. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22689. ac_need_defaults=false;;
  22690. --he | --h)
  22691. # Conflict between --help and --header
  22692. as_fn_error $? "ambiguous option: \`$1'
  22693. Try \`$0 --help' for more information.";;
  22694. --help | --hel | -h )
  22695. $as_echo "$ac_cs_usage"; exit ;;
  22696. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22697. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22698. ac_cs_silent=: ;;
  22699. # This is an error.
  22700. -*) as_fn_error $? "unrecognized option: \`$1'
  22701. Try \`$0 --help' for more information." ;;
  22702. *) as_fn_append ac_config_targets " $1"
  22703. ac_need_defaults=false ;;
  22704. esac
  22705. shift
  22706. done
  22707. ac_configure_extra_args=
  22708. if $ac_cs_silent; then
  22709. exec 6>/dev/null
  22710. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22711. fi
  22712. _ACEOF
  22713. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22714. if \$ac_cs_recheck; then
  22715. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22716. shift
  22717. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22718. CONFIG_SHELL='$SHELL'
  22719. export CONFIG_SHELL
  22720. exec "\$@"
  22721. fi
  22722. _ACEOF
  22723. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22724. exec 5>>config.log
  22725. {
  22726. echo
  22727. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22728. ## Running $as_me. ##
  22729. _ASBOX
  22730. $as_echo "$ac_log"
  22731. } >&5
  22732. _ACEOF
  22733. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22734. #
  22735. # INIT-COMMANDS
  22736. #
  22737. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22738. # if CDPATH is set.
  22739. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22740. sed_quote_subst='$sed_quote_subst'
  22741. double_quote_subst='$double_quote_subst'
  22742. delay_variable_subst='$delay_variable_subst'
  22743. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22744. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22745. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22746. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22747. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22748. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22749. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22750. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22751. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22752. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22753. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22754. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22755. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22756. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22757. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22758. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22759. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22760. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22761. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22762. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22763. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22764. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22765. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22766. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22767. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22768. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22769. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22770. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22771. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22772. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22773. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22774. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22775. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22776. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22777. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22778. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22779. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22780. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22781. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22782. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22783. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22784. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22785. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22786. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22787. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22788. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22789. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22790. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22791. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22792. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22793. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22794. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22795. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22796. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22797. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22798. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22799. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22800. 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"`'
  22801. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22802. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22803. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22804. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22805. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22806. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22807. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22808. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22809. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22810. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22811. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22812. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22813. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22814. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22815. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22816. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22817. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22818. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22819. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22820. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22821. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22822. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22823. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22824. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22825. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22826. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22827. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22828. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22829. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22830. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22831. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22832. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22833. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22834. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22835. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22836. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22837. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22838. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22839. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22840. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22841. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22842. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22843. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22844. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22845. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22846. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22847. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22848. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22849. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22850. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22851. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22852. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22853. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22854. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22855. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22856. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22857. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22858. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22859. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22860. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22861. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22862. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22863. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22864. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22865. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22866. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22867. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22868. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22869. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22870. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22871. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22872. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22873. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22874. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22875. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22876. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22877. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22878. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22879. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22880. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22881. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22882. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22883. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22884. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22885. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22886. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22887. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22888. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22889. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22890. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22891. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22892. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22893. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22894. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22895. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22896. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22897. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22898. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22899. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22900. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22901. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22902. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22903. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22904. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22905. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22906. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22907. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22908. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22909. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22910. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22911. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22912. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22913. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22914. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22915. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22916. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22917. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22918. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22919. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22920. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22921. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22922. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22923. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22924. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22925. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22926. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22927. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22928. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22929. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22930. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22931. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22932. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22933. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22934. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22935. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22936. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22937. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22938. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22939. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22940. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22941. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22942. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22943. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22944. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22945. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22946. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22947. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22948. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22949. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22950. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22951. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22952. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22953. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22954. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22955. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22956. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22957. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22958. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22959. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22960. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22961. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22962. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22963. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22964. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22965. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22966. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22967. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22968. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22969. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22970. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22971. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22972. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22973. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22974. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22975. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22976. LTCC='$LTCC'
  22977. LTCFLAGS='$LTCFLAGS'
  22978. compiler='$compiler_DEFAULT'
  22979. # A function that is used when there is no print builtin or printf.
  22980. func_fallback_echo ()
  22981. {
  22982. eval 'cat <<_LTECHO_EOF
  22983. \$1
  22984. _LTECHO_EOF'
  22985. }
  22986. # Quote evaled strings.
  22987. for var in AS \
  22988. DLLTOOL \
  22989. OBJDUMP \
  22990. SHELL \
  22991. ECHO \
  22992. PATH_SEPARATOR \
  22993. SED \
  22994. GREP \
  22995. EGREP \
  22996. FGREP \
  22997. LD \
  22998. NM \
  22999. LN_S \
  23000. lt_SP2NL \
  23001. lt_NL2SP \
  23002. reload_flag \
  23003. deplibs_check_method \
  23004. file_magic_cmd \
  23005. file_magic_glob \
  23006. want_nocaseglob \
  23007. sharedlib_from_linklib_cmd \
  23008. AR \
  23009. AR_FLAGS \
  23010. archiver_list_spec \
  23011. STRIP \
  23012. RANLIB \
  23013. CC \
  23014. CFLAGS \
  23015. compiler \
  23016. lt_cv_sys_global_symbol_pipe \
  23017. lt_cv_sys_global_symbol_to_cdecl \
  23018. lt_cv_sys_global_symbol_to_c_name_address \
  23019. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23020. nm_file_list_spec \
  23021. lt_prog_compiler_no_builtin_flag \
  23022. lt_prog_compiler_pic \
  23023. lt_prog_compiler_wl \
  23024. lt_prog_compiler_static \
  23025. lt_cv_prog_compiler_c_o \
  23026. need_locks \
  23027. MANIFEST_TOOL \
  23028. DSYMUTIL \
  23029. NMEDIT \
  23030. LIPO \
  23031. OTOOL \
  23032. OTOOL64 \
  23033. shrext_cmds \
  23034. export_dynamic_flag_spec \
  23035. whole_archive_flag_spec \
  23036. compiler_needs_object \
  23037. with_gnu_ld \
  23038. allow_undefined_flag \
  23039. no_undefined_flag \
  23040. hardcode_libdir_flag_spec \
  23041. hardcode_libdir_separator \
  23042. exclude_expsyms \
  23043. include_expsyms \
  23044. file_list_spec \
  23045. variables_saved_for_relink \
  23046. libname_spec \
  23047. library_names_spec \
  23048. soname_spec \
  23049. install_override_mode \
  23050. finish_eval \
  23051. old_striplib \
  23052. striplib \
  23053. compiler_lib_search_dirs \
  23054. predep_objects \
  23055. postdep_objects \
  23056. predeps \
  23057. postdeps \
  23058. compiler_lib_search_path \
  23059. LD_RC \
  23060. LD_CXX \
  23061. reload_flag_RC \
  23062. reload_flag_CXX \
  23063. compiler_RC \
  23064. compiler_CXX \
  23065. lt_prog_compiler_no_builtin_flag_RC \
  23066. lt_prog_compiler_no_builtin_flag_CXX \
  23067. lt_prog_compiler_pic_RC \
  23068. lt_prog_compiler_pic_CXX \
  23069. lt_prog_compiler_wl_RC \
  23070. lt_prog_compiler_wl_CXX \
  23071. lt_prog_compiler_static_RC \
  23072. lt_prog_compiler_static_CXX \
  23073. lt_cv_prog_compiler_c_o_RC \
  23074. lt_cv_prog_compiler_c_o_CXX \
  23075. export_dynamic_flag_spec_RC \
  23076. export_dynamic_flag_spec_CXX \
  23077. whole_archive_flag_spec_RC \
  23078. whole_archive_flag_spec_CXX \
  23079. compiler_needs_object_RC \
  23080. compiler_needs_object_CXX \
  23081. with_gnu_ld_RC \
  23082. with_gnu_ld_CXX \
  23083. allow_undefined_flag_RC \
  23084. allow_undefined_flag_CXX \
  23085. no_undefined_flag_RC \
  23086. no_undefined_flag_CXX \
  23087. hardcode_libdir_flag_spec_RC \
  23088. hardcode_libdir_flag_spec_CXX \
  23089. hardcode_libdir_separator_RC \
  23090. hardcode_libdir_separator_CXX \
  23091. exclude_expsyms_RC \
  23092. exclude_expsyms_CXX \
  23093. include_expsyms_RC \
  23094. include_expsyms_CXX \
  23095. file_list_spec_RC \
  23096. file_list_spec_CXX \
  23097. compiler_lib_search_dirs_RC \
  23098. compiler_lib_search_dirs_CXX \
  23099. predep_objects_RC \
  23100. predep_objects_CXX \
  23101. postdep_objects_RC \
  23102. postdep_objects_CXX \
  23103. predeps_RC \
  23104. predeps_CXX \
  23105. postdeps_RC \
  23106. postdeps_CXX \
  23107. compiler_lib_search_path_RC \
  23108. compiler_lib_search_path_CXX; do
  23109. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23110. *[\\\\\\\`\\"\\\$]*)
  23111. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23112. ;;
  23113. *)
  23114. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23115. ;;
  23116. esac
  23117. done
  23118. # Double-quote double-evaled strings.
  23119. for var in reload_cmds \
  23120. old_postinstall_cmds \
  23121. old_postuninstall_cmds \
  23122. old_archive_cmds \
  23123. extract_expsyms_cmds \
  23124. old_archive_from_new_cmds \
  23125. old_archive_from_expsyms_cmds \
  23126. archive_cmds \
  23127. archive_expsym_cmds \
  23128. module_cmds \
  23129. module_expsym_cmds \
  23130. export_symbols_cmds \
  23131. prelink_cmds \
  23132. postlink_cmds \
  23133. postinstall_cmds \
  23134. postuninstall_cmds \
  23135. finish_cmds \
  23136. sys_lib_search_path_spec \
  23137. sys_lib_dlsearch_path_spec \
  23138. reload_cmds_RC \
  23139. reload_cmds_CXX \
  23140. old_archive_cmds_RC \
  23141. old_archive_cmds_CXX \
  23142. old_archive_from_new_cmds_RC \
  23143. old_archive_from_new_cmds_CXX \
  23144. old_archive_from_expsyms_cmds_RC \
  23145. old_archive_from_expsyms_cmds_CXX \
  23146. archive_cmds_RC \
  23147. archive_cmds_CXX \
  23148. archive_expsym_cmds_RC \
  23149. archive_expsym_cmds_CXX \
  23150. module_cmds_RC \
  23151. module_cmds_CXX \
  23152. module_expsym_cmds_RC \
  23153. module_expsym_cmds_CXX \
  23154. export_symbols_cmds_RC \
  23155. export_symbols_cmds_CXX \
  23156. prelink_cmds_RC \
  23157. prelink_cmds_CXX \
  23158. postlink_cmds_RC \
  23159. postlink_cmds_CXX; do
  23160. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23161. *[\\\\\\\`\\"\\\$]*)
  23162. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23163. ;;
  23164. *)
  23165. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23166. ;;
  23167. esac
  23168. done
  23169. ac_aux_dir='$ac_aux_dir'
  23170. xsi_shell='$xsi_shell'
  23171. lt_shell_append='$lt_shell_append'
  23172. # See if we are running on zsh, and set the options which allow our
  23173. # commands through without removal of \ escapes INIT.
  23174. if test -n "\${ZSH_VERSION+set}" ; then
  23175. setopt NO_GLOB_SUBST
  23176. fi
  23177. PACKAGE='$PACKAGE'
  23178. VERSION='$VERSION'
  23179. TIMESTAMP='$TIMESTAMP'
  23180. RM='$RM'
  23181. ofile='$ofile'
  23182. SUMMARY="$SUMMARY"
  23183. _ACEOF
  23184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23185. # Handling of arguments.
  23186. for ac_config_target in $ac_config_targets
  23187. do
  23188. case $ac_config_target in
  23189. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23190. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23191. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23192. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23193. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23194. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23195. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23196. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23197. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23198. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23199. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23200. esac
  23201. done
  23202. # If the user did not use the arguments to specify the items to instantiate,
  23203. # then the envvar interface is used. Set only those that are not.
  23204. # We use the long form for the default assignment because of an extremely
  23205. # bizarre bug on SunOS 4.1.3.
  23206. if $ac_need_defaults; then
  23207. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23208. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23209. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23210. fi
  23211. # Have a temporary directory for convenience. Make it in the build tree
  23212. # simply because there is no reason against having it here, and in addition,
  23213. # creating and moving files from /tmp can sometimes cause problems.
  23214. # Hook for its removal unless debugging.
  23215. # Note that there is a small window in which the directory will not be cleaned:
  23216. # after its creation but before its name has been assigned to `$tmp'.
  23217. $debug ||
  23218. {
  23219. tmp= ac_tmp=
  23220. trap 'exit_status=$?
  23221. : "${ac_tmp:=$tmp}"
  23222. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23223. ' 0
  23224. trap 'as_fn_exit 1' 1 2 13 15
  23225. }
  23226. # Create a (secure) tmp directory for tmp files.
  23227. {
  23228. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23229. test -d "$tmp"
  23230. } ||
  23231. {
  23232. tmp=./conf$$-$RANDOM
  23233. (umask 077 && mkdir "$tmp")
  23234. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23235. ac_tmp=$tmp
  23236. # Set up the scripts for CONFIG_FILES section.
  23237. # No need to generate them if there are no CONFIG_FILES.
  23238. # This happens for instance with `./config.status config.h'.
  23239. if test -n "$CONFIG_FILES"; then
  23240. ac_cr=`echo X | tr X '\015'`
  23241. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23242. # But we know of no other shell where ac_cr would be empty at this
  23243. # point, so we can use a bashism as a fallback.
  23244. if test "x$ac_cr" = x; then
  23245. eval ac_cr=\$\'\\r\'
  23246. fi
  23247. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23248. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23249. ac_cs_awk_cr='\\r'
  23250. else
  23251. ac_cs_awk_cr=$ac_cr
  23252. fi
  23253. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23254. _ACEOF
  23255. {
  23256. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23257. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23258. echo "_ACEOF"
  23259. } >conf$$subs.sh ||
  23260. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23261. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23262. ac_delim='%!_!# '
  23263. for ac_last_try in false false false false false :; do
  23264. . ./conf$$subs.sh ||
  23265. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23266. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23267. if test $ac_delim_n = $ac_delim_num; then
  23268. break
  23269. elif $ac_last_try; then
  23270. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23271. else
  23272. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23273. fi
  23274. done
  23275. rm -f conf$$subs.sh
  23276. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23277. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23278. _ACEOF
  23279. sed -n '
  23280. h
  23281. s/^/S["/; s/!.*/"]=/
  23282. p
  23283. g
  23284. s/^[^!]*!//
  23285. :repl
  23286. t repl
  23287. s/'"$ac_delim"'$//
  23288. t delim
  23289. :nl
  23290. h
  23291. s/\(.\{148\}\)..*/\1/
  23292. t more1
  23293. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23294. p
  23295. n
  23296. b repl
  23297. :more1
  23298. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23299. p
  23300. g
  23301. s/.\{148\}//
  23302. t nl
  23303. :delim
  23304. h
  23305. s/\(.\{148\}\)..*/\1/
  23306. t more2
  23307. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23308. p
  23309. b
  23310. :more2
  23311. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23312. p
  23313. g
  23314. s/.\{148\}//
  23315. t delim
  23316. ' <conf$$subs.awk | sed '
  23317. /^[^""]/{
  23318. N
  23319. s/\n//
  23320. }
  23321. ' >>$CONFIG_STATUS || ac_write_fail=1
  23322. rm -f conf$$subs.awk
  23323. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23324. _ACAWK
  23325. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23326. for (key in S) S_is_set[key] = 1
  23327. FS = ""
  23328. }
  23329. {
  23330. line = $ 0
  23331. nfields = split(line, field, "@")
  23332. substed = 0
  23333. len = length(field[1])
  23334. for (i = 2; i < nfields; i++) {
  23335. key = field[i]
  23336. keylen = length(key)
  23337. if (S_is_set[key]) {
  23338. value = S[key]
  23339. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23340. len += length(value) + length(field[++i])
  23341. substed = 1
  23342. } else
  23343. len += 1 + keylen
  23344. }
  23345. print line
  23346. }
  23347. _ACAWK
  23348. _ACEOF
  23349. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23350. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23351. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23352. else
  23353. cat
  23354. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23355. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23356. _ACEOF
  23357. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23358. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23359. # trailing colons and then remove the whole line if VPATH becomes empty
  23360. # (actually we leave an empty line to preserve line numbers).
  23361. if test "x$srcdir" = x.; then
  23362. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23363. h
  23364. s///
  23365. s/^/:/
  23366. s/[ ]*$/:/
  23367. s/:\$(srcdir):/:/g
  23368. s/:\${srcdir}:/:/g
  23369. s/:@srcdir@:/:/g
  23370. s/^:*//
  23371. s/:*$//
  23372. x
  23373. s/\(=[ ]*\).*/\1/
  23374. G
  23375. s/\n//
  23376. s/^[^=]*=[ ]*$//
  23377. }'
  23378. fi
  23379. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23380. fi # test -n "$CONFIG_FILES"
  23381. # Set up the scripts for CONFIG_HEADERS section.
  23382. # No need to generate them if there are no CONFIG_HEADERS.
  23383. # This happens for instance with `./config.status Makefile'.
  23384. if test -n "$CONFIG_HEADERS"; then
  23385. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23386. BEGIN {
  23387. _ACEOF
  23388. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23389. # here-document in config.status, that substitutes the proper values into
  23390. # config.h.in to produce config.h.
  23391. # Create a delimiter string that does not exist in confdefs.h, to ease
  23392. # handling of long lines.
  23393. ac_delim='%!_!# '
  23394. for ac_last_try in false false :; do
  23395. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23396. if test -z "$ac_tt"; then
  23397. break
  23398. elif $ac_last_try; then
  23399. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23400. else
  23401. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23402. fi
  23403. done
  23404. # For the awk script, D is an array of macro values keyed by name,
  23405. # likewise P contains macro parameters if any. Preserve backslash
  23406. # newline sequences.
  23407. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23408. sed -n '
  23409. s/.\{148\}/&'"$ac_delim"'/g
  23410. t rset
  23411. :rset
  23412. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23413. t def
  23414. d
  23415. :def
  23416. s/\\$//
  23417. t bsnl
  23418. s/["\\]/\\&/g
  23419. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23420. D["\1"]=" \3"/p
  23421. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23422. d
  23423. :bsnl
  23424. s/["\\]/\\&/g
  23425. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23426. D["\1"]=" \3\\\\\\n"\\/p
  23427. t cont
  23428. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23429. t cont
  23430. d
  23431. :cont
  23432. n
  23433. s/.\{148\}/&'"$ac_delim"'/g
  23434. t clear
  23435. :clear
  23436. s/\\$//
  23437. t bsnlc
  23438. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23439. d
  23440. :bsnlc
  23441. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23442. b cont
  23443. ' <confdefs.h | sed '
  23444. s/'"$ac_delim"'/"\\\
  23445. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23446. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23447. for (key in D) D_is_set[key] = 1
  23448. FS = ""
  23449. }
  23450. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23451. line = \$ 0
  23452. split(line, arg, " ")
  23453. if (arg[1] == "#") {
  23454. defundef = arg[2]
  23455. mac1 = arg[3]
  23456. } else {
  23457. defundef = substr(arg[1], 2)
  23458. mac1 = arg[2]
  23459. }
  23460. split(mac1, mac2, "(") #)
  23461. macro = mac2[1]
  23462. prefix = substr(line, 1, index(line, defundef) - 1)
  23463. if (D_is_set[macro]) {
  23464. # Preserve the white space surrounding the "#".
  23465. print prefix "define", macro P[macro] D[macro]
  23466. next
  23467. } else {
  23468. # Replace #undef with comments. This is necessary, for example,
  23469. # in the case of _POSIX_SOURCE, which is predefined and required
  23470. # on some systems where configure will not decide to define it.
  23471. if (defundef == "undef") {
  23472. print "/*", prefix defundef, macro, "*/"
  23473. next
  23474. }
  23475. }
  23476. }
  23477. { print }
  23478. _ACAWK
  23479. _ACEOF
  23480. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23481. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23482. fi # test -n "$CONFIG_HEADERS"
  23483. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23484. shift
  23485. for ac_tag
  23486. do
  23487. case $ac_tag in
  23488. :[FHLC]) ac_mode=$ac_tag; continue;;
  23489. esac
  23490. case $ac_mode$ac_tag in
  23491. :[FHL]*:*);;
  23492. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23493. :[FH]-) ac_tag=-:-;;
  23494. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23495. esac
  23496. ac_save_IFS=$IFS
  23497. IFS=:
  23498. set x $ac_tag
  23499. IFS=$ac_save_IFS
  23500. shift
  23501. ac_file=$1
  23502. shift
  23503. case $ac_mode in
  23504. :L) ac_source=$1;;
  23505. :[FH])
  23506. ac_file_inputs=
  23507. for ac_f
  23508. do
  23509. case $ac_f in
  23510. -) ac_f="$ac_tmp/stdin";;
  23511. *) # Look for the file first in the build tree, then in the source tree
  23512. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23513. # because $ac_f cannot contain `:'.
  23514. test -f "$ac_f" ||
  23515. case $ac_f in
  23516. [\\/$]*) false;;
  23517. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23518. esac ||
  23519. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23520. esac
  23521. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23522. as_fn_append ac_file_inputs " '$ac_f'"
  23523. done
  23524. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23525. # use $as_me), people would be surprised to read:
  23526. # /* config.h. Generated by config.status. */
  23527. configure_input='Generated from '`
  23528. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23529. `' by configure.'
  23530. if test x"$ac_file" != x-; then
  23531. configure_input="$ac_file. $configure_input"
  23532. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23533. $as_echo "$as_me: creating $ac_file" >&6;}
  23534. fi
  23535. # Neutralize special characters interpreted by sed in replacement strings.
  23536. case $configure_input in #(
  23537. *\&* | *\|* | *\\* )
  23538. ac_sed_conf_input=`$as_echo "$configure_input" |
  23539. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23540. *) ac_sed_conf_input=$configure_input;;
  23541. esac
  23542. case $ac_tag in
  23543. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23544. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23545. esac
  23546. ;;
  23547. esac
  23548. ac_dir=`$as_dirname -- "$ac_file" ||
  23549. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23550. X"$ac_file" : 'X\(//\)[^/]' \| \
  23551. X"$ac_file" : 'X\(//\)$' \| \
  23552. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23553. $as_echo X"$ac_file" |
  23554. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23555. s//\1/
  23556. q
  23557. }
  23558. /^X\(\/\/\)[^/].*/{
  23559. s//\1/
  23560. q
  23561. }
  23562. /^X\(\/\/\)$/{
  23563. s//\1/
  23564. q
  23565. }
  23566. /^X\(\/\).*/{
  23567. s//\1/
  23568. q
  23569. }
  23570. s/.*/./; q'`
  23571. as_dir="$ac_dir"; as_fn_mkdir_p
  23572. ac_builddir=.
  23573. case "$ac_dir" in
  23574. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23575. *)
  23576. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23577. # A ".." for each directory in $ac_dir_suffix.
  23578. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23579. case $ac_top_builddir_sub in
  23580. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23581. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23582. esac ;;
  23583. esac
  23584. ac_abs_top_builddir=$ac_pwd
  23585. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23586. # for backward compatibility:
  23587. ac_top_builddir=$ac_top_build_prefix
  23588. case $srcdir in
  23589. .) # We are building in place.
  23590. ac_srcdir=.
  23591. ac_top_srcdir=$ac_top_builddir_sub
  23592. ac_abs_top_srcdir=$ac_pwd ;;
  23593. [\\/]* | ?:[\\/]* ) # Absolute name.
  23594. ac_srcdir=$srcdir$ac_dir_suffix;
  23595. ac_top_srcdir=$srcdir
  23596. ac_abs_top_srcdir=$srcdir ;;
  23597. *) # Relative name.
  23598. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23599. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23600. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23601. esac
  23602. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23603. case $ac_mode in
  23604. :F)
  23605. #
  23606. # CONFIG_FILE
  23607. #
  23608. case $INSTALL in
  23609. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23610. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23611. esac
  23612. _ACEOF
  23613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23614. # If the template does not know about datarootdir, expand it.
  23615. # FIXME: This hack should be removed a few years after 2.60.
  23616. ac_datarootdir_hack=; ac_datarootdir_seen=
  23617. ac_sed_dataroot='
  23618. /datarootdir/ {
  23619. p
  23620. q
  23621. }
  23622. /@datadir@/p
  23623. /@docdir@/p
  23624. /@infodir@/p
  23625. /@localedir@/p
  23626. /@mandir@/p'
  23627. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23628. *datarootdir*) ac_datarootdir_seen=yes;;
  23629. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23631. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23632. _ACEOF
  23633. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23634. ac_datarootdir_hack='
  23635. s&@datadir@&$datadir&g
  23636. s&@docdir@&$docdir&g
  23637. s&@infodir@&$infodir&g
  23638. s&@localedir@&$localedir&g
  23639. s&@mandir@&$mandir&g
  23640. s&\\\${datarootdir}&$datarootdir&g' ;;
  23641. esac
  23642. _ACEOF
  23643. # Neutralize VPATH when `$srcdir' = `.'.
  23644. # Shell code in configure.ac might set extrasub.
  23645. # FIXME: do we really want to maintain this feature?
  23646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23647. ac_sed_extra="$ac_vpsub
  23648. $extrasub
  23649. _ACEOF
  23650. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23651. :t
  23652. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23653. s|@configure_input@|$ac_sed_conf_input|;t t
  23654. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23655. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23656. s&@srcdir@&$ac_srcdir&;t t
  23657. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23658. s&@top_srcdir@&$ac_top_srcdir&;t t
  23659. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23660. s&@builddir@&$ac_builddir&;t t
  23661. s&@abs_builddir@&$ac_abs_builddir&;t t
  23662. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23663. s&@INSTALL@&$ac_INSTALL&;t t
  23664. $ac_datarootdir_hack
  23665. "
  23666. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23667. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23668. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23669. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23670. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23671. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23673. which seems to be undefined. Please make sure it is defined" >&5
  23674. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23675. which seems to be undefined. Please make sure it is defined" >&2;}
  23676. rm -f "$ac_tmp/stdin"
  23677. case $ac_file in
  23678. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23679. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23680. esac \
  23681. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23682. ;;
  23683. :H)
  23684. #
  23685. # CONFIG_HEADER
  23686. #
  23687. if test x"$ac_file" != x-; then
  23688. {
  23689. $as_echo "/* $configure_input */" \
  23690. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23691. } >"$ac_tmp/config.h" \
  23692. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23693. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23694. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23695. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23696. else
  23697. rm -f "$ac_file"
  23698. mv "$ac_tmp/config.h" "$ac_file" \
  23699. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23700. fi
  23701. else
  23702. $as_echo "/* $configure_input */" \
  23703. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23704. || as_fn_error $? "could not create -" "$LINENO" 5
  23705. fi
  23706. ;;
  23707. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23708. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23709. ;;
  23710. esac
  23711. case $ac_file$ac_mode in
  23712. "libtool":C)
  23713. # See if we are running on zsh, and set the options which allow our
  23714. # commands through without removal of \ escapes.
  23715. if test -n "${ZSH_VERSION+set}" ; then
  23716. setopt NO_GLOB_SUBST
  23717. fi
  23718. cfgfile="${ofile}T"
  23719. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23720. $RM "$cfgfile"
  23721. cat <<_LT_EOF >> "$cfgfile"
  23722. #! $SHELL
  23723. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23724. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23725. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23726. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23727. #
  23728. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23729. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23730. # Foundation, Inc.
  23731. # Written by Gordon Matzigkeit, 1996
  23732. #
  23733. # This file is part of GNU Libtool.
  23734. #
  23735. # GNU Libtool is free software; you can redistribute it and/or
  23736. # modify it under the terms of the GNU General Public License as
  23737. # published by the Free Software Foundation; either version 2 of
  23738. # the License, or (at your option) any later version.
  23739. #
  23740. # As a special exception to the GNU General Public License,
  23741. # if you distribute this file as part of a program or library that
  23742. # is built using GNU Libtool, you may include this file under the
  23743. # same distribution terms that you use for the rest of that program.
  23744. #
  23745. # GNU Libtool is distributed in the hope that it will be useful,
  23746. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23747. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23748. # GNU General Public License for more details.
  23749. #
  23750. # You should have received a copy of the GNU General Public License
  23751. # along with GNU Libtool; see the file COPYING. If not, a copy
  23752. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23753. # obtained by writing to the Free Software Foundation, Inc.,
  23754. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23755. # The names of the tagged configurations supported by this script.
  23756. available_tags="RC CXX "
  23757. # ### BEGIN LIBTOOL CONFIG
  23758. # Which release of libtool.m4 was used?
  23759. macro_version=$macro_version
  23760. macro_revision=$macro_revision
  23761. # Assembler program.
  23762. AS=$lt_AS
  23763. # DLL creation program.
  23764. DLLTOOL=$lt_DLLTOOL
  23765. # Object dumper program.
  23766. OBJDUMP=$lt_OBJDUMP
  23767. # Whether or not to build shared libraries.
  23768. build_libtool_libs=$enable_shared
  23769. # Whether or not to build static libraries.
  23770. build_old_libs=$enable_static
  23771. # What type of objects to build.
  23772. pic_mode=$pic_mode
  23773. # Whether or not to optimize for fast installation.
  23774. fast_install=$enable_fast_install
  23775. # Shell to use when invoking shell scripts.
  23776. SHELL=$lt_SHELL
  23777. # An echo program that protects backslashes.
  23778. ECHO=$lt_ECHO
  23779. # The PATH separator for the build system.
  23780. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23781. # The host system.
  23782. host_alias=$host_alias
  23783. host=$host
  23784. host_os=$host_os
  23785. # The build system.
  23786. build_alias=$build_alias
  23787. build=$build
  23788. build_os=$build_os
  23789. # A sed program that does not truncate output.
  23790. SED=$lt_SED
  23791. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23792. Xsed="\$SED -e 1s/^X//"
  23793. # A grep program that handles long lines.
  23794. GREP=$lt_GREP
  23795. # An ERE matcher.
  23796. EGREP=$lt_EGREP
  23797. # A literal string matcher.
  23798. FGREP=$lt_FGREP
  23799. # A BSD- or MS-compatible name lister.
  23800. NM=$lt_NM
  23801. # Whether we need soft or hard links.
  23802. LN_S=$lt_LN_S
  23803. # What is the maximum length of a command?
  23804. max_cmd_len=$max_cmd_len
  23805. # Object file suffix (normally "o").
  23806. objext=$ac_objext
  23807. # Executable file suffix (normally "").
  23808. exeext=$exeext
  23809. # whether the shell understands "unset".
  23810. lt_unset=$lt_unset
  23811. # turn spaces into newlines.
  23812. SP2NL=$lt_lt_SP2NL
  23813. # turn newlines into spaces.
  23814. NL2SP=$lt_lt_NL2SP
  23815. # convert \$build file names to \$host format.
  23816. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23817. # convert \$build files to toolchain format.
  23818. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23819. # Method to check whether dependent libraries are shared objects.
  23820. deplibs_check_method=$lt_deplibs_check_method
  23821. # Command to use when deplibs_check_method = "file_magic".
  23822. file_magic_cmd=$lt_file_magic_cmd
  23823. # How to find potential files when deplibs_check_method = "file_magic".
  23824. file_magic_glob=$lt_file_magic_glob
  23825. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23826. want_nocaseglob=$lt_want_nocaseglob
  23827. # Command to associate shared and link libraries.
  23828. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23829. # The archiver.
  23830. AR=$lt_AR
  23831. # Flags to create an archive.
  23832. AR_FLAGS=$lt_AR_FLAGS
  23833. # How to feed a file listing to the archiver.
  23834. archiver_list_spec=$lt_archiver_list_spec
  23835. # A symbol stripping program.
  23836. STRIP=$lt_STRIP
  23837. # Commands used to install an old-style archive.
  23838. RANLIB=$lt_RANLIB
  23839. old_postinstall_cmds=$lt_old_postinstall_cmds
  23840. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23841. # Whether to use a lock for old archive extraction.
  23842. lock_old_archive_extraction=$lock_old_archive_extraction
  23843. # A C compiler.
  23844. LTCC=$lt_CC
  23845. # LTCC compiler flags.
  23846. LTCFLAGS=$lt_CFLAGS
  23847. # Take the output of nm and produce a listing of raw symbols and C names.
  23848. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23849. # Transform the output of nm in a proper C declaration.
  23850. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23851. # Transform the output of nm in a C name address pair.
  23852. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23853. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23854. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23855. # Specify filename containing input files for \$NM.
  23856. nm_file_list_spec=$lt_nm_file_list_spec
  23857. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23858. lt_sysroot=$lt_sysroot
  23859. # The name of the directory that contains temporary libtool files.
  23860. objdir=$objdir
  23861. # Used to examine libraries when file_magic_cmd begins with "file".
  23862. MAGIC_CMD=$MAGIC_CMD
  23863. # Must we lock files when doing compilation?
  23864. need_locks=$lt_need_locks
  23865. # Manifest tool.
  23866. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23867. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23868. DSYMUTIL=$lt_DSYMUTIL
  23869. # Tool to change global to local symbols on Mac OS X.
  23870. NMEDIT=$lt_NMEDIT
  23871. # Tool to manipulate fat objects and archives on Mac OS X.
  23872. LIPO=$lt_LIPO
  23873. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23874. OTOOL=$lt_OTOOL
  23875. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23876. OTOOL64=$lt_OTOOL64
  23877. # Old archive suffix (normally "a").
  23878. libext=$libext
  23879. # Shared library suffix (normally ".so").
  23880. shrext_cmds=$lt_shrext_cmds
  23881. # The commands to extract the exported symbol list from a shared archive.
  23882. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23883. # Variables whose values should be saved in libtool wrapper scripts and
  23884. # restored at link time.
  23885. variables_saved_for_relink=$lt_variables_saved_for_relink
  23886. # Do we need the "lib" prefix for modules?
  23887. need_lib_prefix=$need_lib_prefix
  23888. # Do we need a version for libraries?
  23889. need_version=$need_version
  23890. # Library versioning type.
  23891. version_type=$version_type
  23892. # Shared library runtime path variable.
  23893. runpath_var=$runpath_var
  23894. # Shared library path variable.
  23895. shlibpath_var=$shlibpath_var
  23896. # Is shlibpath searched before the hard-coded library search path?
  23897. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23898. # Format of library name prefix.
  23899. libname_spec=$lt_libname_spec
  23900. # List of archive names. First name is the real one, the rest are links.
  23901. # The last name is the one that the linker finds with -lNAME
  23902. library_names_spec=$lt_library_names_spec
  23903. # The coded name of the library, if different from the real name.
  23904. soname_spec=$lt_soname_spec
  23905. # Permission mode override for installation of shared libraries.
  23906. install_override_mode=$lt_install_override_mode
  23907. # Command to use after installation of a shared archive.
  23908. postinstall_cmds=$lt_postinstall_cmds
  23909. # Command to use after uninstallation of a shared archive.
  23910. postuninstall_cmds=$lt_postuninstall_cmds
  23911. # Commands used to finish a libtool library installation in a directory.
  23912. finish_cmds=$lt_finish_cmds
  23913. # As "finish_cmds", except a single script fragment to be evaled but
  23914. # not shown.
  23915. finish_eval=$lt_finish_eval
  23916. # Whether we should hardcode library paths into libraries.
  23917. hardcode_into_libs=$hardcode_into_libs
  23918. # Compile-time system search path for libraries.
  23919. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23920. # Run-time system search path for libraries.
  23921. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23922. # Whether dlopen is supported.
  23923. dlopen_support=$enable_dlopen
  23924. # Whether dlopen of programs is supported.
  23925. dlopen_self=$enable_dlopen_self
  23926. # Whether dlopen of statically linked programs is supported.
  23927. dlopen_self_static=$enable_dlopen_self_static
  23928. # Commands to strip libraries.
  23929. old_striplib=$lt_old_striplib
  23930. striplib=$lt_striplib
  23931. # The linker used to build libraries.
  23932. LD=$lt_LD
  23933. # How to create reloadable object files.
  23934. reload_flag=$lt_reload_flag
  23935. reload_cmds=$lt_reload_cmds
  23936. # Commands used to build an old-style archive.
  23937. old_archive_cmds=$lt_old_archive_cmds
  23938. # A language specific compiler.
  23939. CC=$lt_compiler
  23940. # Is the compiler the GNU compiler?
  23941. with_gcc=$GCC
  23942. # Compiler flag to turn off builtin functions.
  23943. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23944. # Additional compiler flags for building library objects.
  23945. pic_flag=$lt_lt_prog_compiler_pic
  23946. # How to pass a linker flag through the compiler.
  23947. wl=$lt_lt_prog_compiler_wl
  23948. # Compiler flag to prevent dynamic linking.
  23949. link_static_flag=$lt_lt_prog_compiler_static
  23950. # Does compiler simultaneously support -c and -o options?
  23951. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23952. # Whether or not to add -lc for building shared libraries.
  23953. build_libtool_need_lc=$archive_cmds_need_lc
  23954. # Whether or not to disallow shared libs when runtime libs are static.
  23955. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23956. # Compiler flag to allow reflexive dlopens.
  23957. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23958. # Compiler flag to generate shared objects directly from archives.
  23959. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23960. # Whether the compiler copes with passing no objects directly.
  23961. compiler_needs_object=$lt_compiler_needs_object
  23962. # Create an old-style archive from a shared archive.
  23963. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23964. # Create a temporary old-style archive to link instead of a shared archive.
  23965. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23966. # Commands used to build a shared archive.
  23967. archive_cmds=$lt_archive_cmds
  23968. archive_expsym_cmds=$lt_archive_expsym_cmds
  23969. # Commands used to build a loadable module if different from building
  23970. # a shared archive.
  23971. module_cmds=$lt_module_cmds
  23972. module_expsym_cmds=$lt_module_expsym_cmds
  23973. # Whether we are building with GNU ld or not.
  23974. with_gnu_ld=$lt_with_gnu_ld
  23975. # Flag that allows shared libraries with undefined symbols to be built.
  23976. allow_undefined_flag=$lt_allow_undefined_flag
  23977. # Flag that enforces no undefined symbols.
  23978. no_undefined_flag=$lt_no_undefined_flag
  23979. # Flag to hardcode \$libdir into a binary during linking.
  23980. # This must work even if \$libdir does not exist
  23981. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23982. # Whether we need a single "-rpath" flag with a separated argument.
  23983. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23984. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23985. # DIR into the resulting binary.
  23986. hardcode_direct=$hardcode_direct
  23987. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23988. # DIR into the resulting binary and the resulting library dependency is
  23989. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23990. # library is relocated.
  23991. hardcode_direct_absolute=$hardcode_direct_absolute
  23992. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23993. # into the resulting binary.
  23994. hardcode_minus_L=$hardcode_minus_L
  23995. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23996. # into the resulting binary.
  23997. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23998. # Set to "yes" if building a shared library automatically hardcodes DIR
  23999. # into the library and all subsequent libraries and executables linked
  24000. # against it.
  24001. hardcode_automatic=$hardcode_automatic
  24002. # Set to yes if linker adds runtime paths of dependent libraries
  24003. # to runtime path list.
  24004. inherit_rpath=$inherit_rpath
  24005. # Whether libtool must link a program against all its dependency libraries.
  24006. link_all_deplibs=$link_all_deplibs
  24007. # Set to "yes" if exported symbols are required.
  24008. always_export_symbols=$always_export_symbols
  24009. # The commands to list exported symbols.
  24010. export_symbols_cmds=$lt_export_symbols_cmds
  24011. # Symbols that should not be listed in the preloaded symbols.
  24012. exclude_expsyms=$lt_exclude_expsyms
  24013. # Symbols that must always be exported.
  24014. include_expsyms=$lt_include_expsyms
  24015. # Commands necessary for linking programs (against libraries) with templates.
  24016. prelink_cmds=$lt_prelink_cmds
  24017. # Commands necessary for finishing linking programs.
  24018. postlink_cmds=$lt_postlink_cmds
  24019. # Specify filename containing input files.
  24020. file_list_spec=$lt_file_list_spec
  24021. # How to hardcode a shared library path into an executable.
  24022. hardcode_action=$hardcode_action
  24023. # The directories searched by this compiler when creating a shared library.
  24024. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24025. # Dependencies to place before and after the objects being linked to
  24026. # create a shared library.
  24027. predep_objects=$lt_predep_objects
  24028. postdep_objects=$lt_postdep_objects
  24029. predeps=$lt_predeps
  24030. postdeps=$lt_postdeps
  24031. # The library search path used internally by the compiler when linking
  24032. # a shared library.
  24033. compiler_lib_search_path=$lt_compiler_lib_search_path
  24034. # ### END LIBTOOL CONFIG
  24035. _LT_EOF
  24036. case $host_os in
  24037. aix3*)
  24038. cat <<\_LT_EOF >> "$cfgfile"
  24039. # AIX sometimes has problems with the GCC collect2 program. For some
  24040. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24041. # vanish in a puff of smoke.
  24042. if test "X${COLLECT_NAMES+set}" != Xset; then
  24043. COLLECT_NAMES=
  24044. export COLLECT_NAMES
  24045. fi
  24046. _LT_EOF
  24047. ;;
  24048. esac
  24049. ltmain="$ac_aux_dir/ltmain.sh"
  24050. # We use sed instead of cat because bash on DJGPP gets confused if
  24051. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24052. # text mode, it properly converts lines to CR/LF. This bash problem
  24053. # is reportedly fixed, but why not run on old versions too?
  24054. sed '$q' "$ltmain" >> "$cfgfile" \
  24055. || (rm -f "$cfgfile"; exit 1)
  24056. if test x"$xsi_shell" = xyes; then
  24057. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24058. func_dirname ()\
  24059. {\
  24060. \ case ${1} in\
  24061. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24062. \ * ) func_dirname_result="${3}" ;;\
  24063. \ esac\
  24064. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24065. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24066. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24067. test 0 -eq $? || _lt_function_replace_fail=:
  24068. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24069. func_basename ()\
  24070. {\
  24071. \ func_basename_result="${1##*/}"\
  24072. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24073. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24074. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24075. test 0 -eq $? || _lt_function_replace_fail=:
  24076. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24077. func_dirname_and_basename ()\
  24078. {\
  24079. \ case ${1} in\
  24080. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24081. \ * ) func_dirname_result="${3}" ;;\
  24082. \ esac\
  24083. \ func_basename_result="${1##*/}"\
  24084. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24085. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24086. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24087. test 0 -eq $? || _lt_function_replace_fail=:
  24088. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24089. func_stripname ()\
  24090. {\
  24091. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24092. \ # positional parameters, so assign one to ordinary parameter first.\
  24093. \ func_stripname_result=${3}\
  24094. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24095. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24096. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24097. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24098. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24099. test 0 -eq $? || _lt_function_replace_fail=:
  24100. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24101. func_split_long_opt ()\
  24102. {\
  24103. \ func_split_long_opt_name=${1%%=*}\
  24104. \ func_split_long_opt_arg=${1#*=}\
  24105. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24106. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24107. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24108. test 0 -eq $? || _lt_function_replace_fail=:
  24109. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24110. func_split_short_opt ()\
  24111. {\
  24112. \ func_split_short_opt_arg=${1#??}\
  24113. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24114. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24115. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24116. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24117. test 0 -eq $? || _lt_function_replace_fail=:
  24118. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24119. func_lo2o ()\
  24120. {\
  24121. \ case ${1} in\
  24122. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24123. \ *) func_lo2o_result=${1} ;;\
  24124. \ esac\
  24125. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24126. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24127. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24128. test 0 -eq $? || _lt_function_replace_fail=:
  24129. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24130. func_xform ()\
  24131. {\
  24132. func_xform_result=${1%.*}.lo\
  24133. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24134. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24135. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24136. test 0 -eq $? || _lt_function_replace_fail=:
  24137. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24138. func_arith ()\
  24139. {\
  24140. func_arith_result=$(( $* ))\
  24141. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24142. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24143. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24144. test 0 -eq $? || _lt_function_replace_fail=:
  24145. sed -e '/^func_len ()$/,/^} # func_len /c\
  24146. func_len ()\
  24147. {\
  24148. func_len_result=${#1}\
  24149. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24150. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24151. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24152. test 0 -eq $? || _lt_function_replace_fail=:
  24153. fi
  24154. if test x"$lt_shell_append" = xyes; then
  24155. sed -e '/^func_append ()$/,/^} # func_append /c\
  24156. func_append ()\
  24157. {\
  24158. eval "${1}+=\\${2}"\
  24159. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24160. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24161. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24162. test 0 -eq $? || _lt_function_replace_fail=:
  24163. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24164. func_append_quoted ()\
  24165. {\
  24166. \ func_quote_for_eval "${2}"\
  24167. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24168. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24169. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24170. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24171. test 0 -eq $? || _lt_function_replace_fail=:
  24172. # Save a `func_append' function call where possible by direct use of '+='
  24173. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24174. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24175. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24176. test 0 -eq $? || _lt_function_replace_fail=:
  24177. else
  24178. # Save a `func_append' function call even when '+=' is not available
  24179. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24180. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24181. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24182. test 0 -eq $? || _lt_function_replace_fail=:
  24183. fi
  24184. if test x"$_lt_function_replace_fail" = x":"; then
  24185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24186. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24187. fi
  24188. mv -f "$cfgfile" "$ofile" ||
  24189. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24190. chmod +x "$ofile"
  24191. cat <<_LT_EOF >> "$ofile"
  24192. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24193. # The linker used to build libraries.
  24194. LD=$lt_LD_RC
  24195. # How to create reloadable object files.
  24196. reload_flag=$lt_reload_flag_RC
  24197. reload_cmds=$lt_reload_cmds_RC
  24198. # Commands used to build an old-style archive.
  24199. old_archive_cmds=$lt_old_archive_cmds_RC
  24200. # A language specific compiler.
  24201. CC=$lt_compiler_RC
  24202. # Is the compiler the GNU compiler?
  24203. with_gcc=$GCC_RC
  24204. # Compiler flag to turn off builtin functions.
  24205. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24206. # Additional compiler flags for building library objects.
  24207. pic_flag=$lt_lt_prog_compiler_pic_RC
  24208. # How to pass a linker flag through the compiler.
  24209. wl=$lt_lt_prog_compiler_wl_RC
  24210. # Compiler flag to prevent dynamic linking.
  24211. link_static_flag=$lt_lt_prog_compiler_static_RC
  24212. # Does compiler simultaneously support -c and -o options?
  24213. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24214. # Whether or not to add -lc for building shared libraries.
  24215. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24216. # Whether or not to disallow shared libs when runtime libs are static.
  24217. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24218. # Compiler flag to allow reflexive dlopens.
  24219. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24220. # Compiler flag to generate shared objects directly from archives.
  24221. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24222. # Whether the compiler copes with passing no objects directly.
  24223. compiler_needs_object=$lt_compiler_needs_object_RC
  24224. # Create an old-style archive from a shared archive.
  24225. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24226. # Create a temporary old-style archive to link instead of a shared archive.
  24227. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24228. # Commands used to build a shared archive.
  24229. archive_cmds=$lt_archive_cmds_RC
  24230. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24231. # Commands used to build a loadable module if different from building
  24232. # a shared archive.
  24233. module_cmds=$lt_module_cmds_RC
  24234. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24235. # Whether we are building with GNU ld or not.
  24236. with_gnu_ld=$lt_with_gnu_ld_RC
  24237. # Flag that allows shared libraries with undefined symbols to be built.
  24238. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24239. # Flag that enforces no undefined symbols.
  24240. no_undefined_flag=$lt_no_undefined_flag_RC
  24241. # Flag to hardcode \$libdir into a binary during linking.
  24242. # This must work even if \$libdir does not exist
  24243. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24244. # Whether we need a single "-rpath" flag with a separated argument.
  24245. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24246. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24247. # DIR into the resulting binary.
  24248. hardcode_direct=$hardcode_direct_RC
  24249. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24250. # DIR into the resulting binary and the resulting library dependency is
  24251. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24252. # library is relocated.
  24253. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24254. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24255. # into the resulting binary.
  24256. hardcode_minus_L=$hardcode_minus_L_RC
  24257. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24258. # into the resulting binary.
  24259. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24260. # Set to "yes" if building a shared library automatically hardcodes DIR
  24261. # into the library and all subsequent libraries and executables linked
  24262. # against it.
  24263. hardcode_automatic=$hardcode_automatic_RC
  24264. # Set to yes if linker adds runtime paths of dependent libraries
  24265. # to runtime path list.
  24266. inherit_rpath=$inherit_rpath_RC
  24267. # Whether libtool must link a program against all its dependency libraries.
  24268. link_all_deplibs=$link_all_deplibs_RC
  24269. # Set to "yes" if exported symbols are required.
  24270. always_export_symbols=$always_export_symbols_RC
  24271. # The commands to list exported symbols.
  24272. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24273. # Symbols that should not be listed in the preloaded symbols.
  24274. exclude_expsyms=$lt_exclude_expsyms_RC
  24275. # Symbols that must always be exported.
  24276. include_expsyms=$lt_include_expsyms_RC
  24277. # Commands necessary for linking programs (against libraries) with templates.
  24278. prelink_cmds=$lt_prelink_cmds_RC
  24279. # Commands necessary for finishing linking programs.
  24280. postlink_cmds=$lt_postlink_cmds_RC
  24281. # Specify filename containing input files.
  24282. file_list_spec=$lt_file_list_spec_RC
  24283. # How to hardcode a shared library path into an executable.
  24284. hardcode_action=$hardcode_action_RC
  24285. # The directories searched by this compiler when creating a shared library.
  24286. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24287. # Dependencies to place before and after the objects being linked to
  24288. # create a shared library.
  24289. predep_objects=$lt_predep_objects_RC
  24290. postdep_objects=$lt_postdep_objects_RC
  24291. predeps=$lt_predeps_RC
  24292. postdeps=$lt_postdeps_RC
  24293. # The library search path used internally by the compiler when linking
  24294. # a shared library.
  24295. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24296. # ### END LIBTOOL TAG CONFIG: RC
  24297. _LT_EOF
  24298. cat <<_LT_EOF >> "$ofile"
  24299. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24300. # The linker used to build libraries.
  24301. LD=$lt_LD_CXX
  24302. # How to create reloadable object files.
  24303. reload_flag=$lt_reload_flag_CXX
  24304. reload_cmds=$lt_reload_cmds_CXX
  24305. # Commands used to build an old-style archive.
  24306. old_archive_cmds=$lt_old_archive_cmds_CXX
  24307. # A language specific compiler.
  24308. CC=$lt_compiler_CXX
  24309. # Is the compiler the GNU compiler?
  24310. with_gcc=$GCC_CXX
  24311. # Compiler flag to turn off builtin functions.
  24312. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24313. # Additional compiler flags for building library objects.
  24314. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24315. # How to pass a linker flag through the compiler.
  24316. wl=$lt_lt_prog_compiler_wl_CXX
  24317. # Compiler flag to prevent dynamic linking.
  24318. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24319. # Does compiler simultaneously support -c and -o options?
  24320. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24321. # Whether or not to add -lc for building shared libraries.
  24322. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24323. # Whether or not to disallow shared libs when runtime libs are static.
  24324. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24325. # Compiler flag to allow reflexive dlopens.
  24326. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24327. # Compiler flag to generate shared objects directly from archives.
  24328. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24329. # Whether the compiler copes with passing no objects directly.
  24330. compiler_needs_object=$lt_compiler_needs_object_CXX
  24331. # Create an old-style archive from a shared archive.
  24332. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24333. # Create a temporary old-style archive to link instead of a shared archive.
  24334. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24335. # Commands used to build a shared archive.
  24336. archive_cmds=$lt_archive_cmds_CXX
  24337. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24338. # Commands used to build a loadable module if different from building
  24339. # a shared archive.
  24340. module_cmds=$lt_module_cmds_CXX
  24341. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24342. # Whether we are building with GNU ld or not.
  24343. with_gnu_ld=$lt_with_gnu_ld_CXX
  24344. # Flag that allows shared libraries with undefined symbols to be built.
  24345. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24346. # Flag that enforces no undefined symbols.
  24347. no_undefined_flag=$lt_no_undefined_flag_CXX
  24348. # Flag to hardcode \$libdir into a binary during linking.
  24349. # This must work even if \$libdir does not exist
  24350. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24351. # Whether we need a single "-rpath" flag with a separated argument.
  24352. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24353. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24354. # DIR into the resulting binary.
  24355. hardcode_direct=$hardcode_direct_CXX
  24356. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24357. # DIR into the resulting binary and the resulting library dependency is
  24358. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24359. # library is relocated.
  24360. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24361. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24362. # into the resulting binary.
  24363. hardcode_minus_L=$hardcode_minus_L_CXX
  24364. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24365. # into the resulting binary.
  24366. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24367. # Set to "yes" if building a shared library automatically hardcodes DIR
  24368. # into the library and all subsequent libraries and executables linked
  24369. # against it.
  24370. hardcode_automatic=$hardcode_automatic_CXX
  24371. # Set to yes if linker adds runtime paths of dependent libraries
  24372. # to runtime path list.
  24373. inherit_rpath=$inherit_rpath_CXX
  24374. # Whether libtool must link a program against all its dependency libraries.
  24375. link_all_deplibs=$link_all_deplibs_CXX
  24376. # Set to "yes" if exported symbols are required.
  24377. always_export_symbols=$always_export_symbols_CXX
  24378. # The commands to list exported symbols.
  24379. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24380. # Symbols that should not be listed in the preloaded symbols.
  24381. exclude_expsyms=$lt_exclude_expsyms_CXX
  24382. # Symbols that must always be exported.
  24383. include_expsyms=$lt_include_expsyms_CXX
  24384. # Commands necessary for linking programs (against libraries) with templates.
  24385. prelink_cmds=$lt_prelink_cmds_CXX
  24386. # Commands necessary for finishing linking programs.
  24387. postlink_cmds=$lt_postlink_cmds_CXX
  24388. # Specify filename containing input files.
  24389. file_list_spec=$lt_file_list_spec_CXX
  24390. # How to hardcode a shared library path into an executable.
  24391. hardcode_action=$hardcode_action_CXX
  24392. # The directories searched by this compiler when creating a shared library.
  24393. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24394. # Dependencies to place before and after the objects being linked to
  24395. # create a shared library.
  24396. predep_objects=$lt_predep_objects_CXX
  24397. postdep_objects=$lt_postdep_objects_CXX
  24398. predeps=$lt_predeps_CXX
  24399. postdeps=$lt_postdeps_CXX
  24400. # The library search path used internally by the compiler when linking
  24401. # a shared library.
  24402. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24403. # ### END LIBTOOL TAG CONFIG: CXX
  24404. _LT_EOF
  24405. ;;
  24406. "sdl2_config":C) chmod a+x sdl2-config ;;
  24407. "summary":C) echo -en "$SUMMARY" ;;
  24408. esac
  24409. done # for ac_tag
  24410. as_fn_exit 0
  24411. _ACEOF
  24412. ac_clean_files=$ac_clean_files_save
  24413. test $ac_write_fail = 0 ||
  24414. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24415. # configure is writing to config.log, and then calls config.status.
  24416. # config.status does its own redirection, appending to config.log.
  24417. # Unfortunately, on DOS this fails, as config.log is still kept open
  24418. # by configure, so config.status won't be able to write to it; its
  24419. # output is simply discarded. So we exec the FD to /dev/null,
  24420. # effectively closing config.log, so it can be properly (re)opened and
  24421. # appended to by config.status. When coming back to configure, we
  24422. # need to make the FD available again.
  24423. if test "$no_create" != yes; then
  24424. ac_cs_success=:
  24425. ac_config_status_args=
  24426. test "$silent" = yes &&
  24427. ac_config_status_args="$ac_config_status_args --quiet"
  24428. exec 5>/dev/null
  24429. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24430. exec 5>>config.log
  24431. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24432. # would make configure fail if this is the last instruction.
  24433. $ac_cs_success || as_fn_exit 1
  24434. fi
  24435. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24437. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24438. fi