configure 850 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. LIBTOOLLINKERTAG
  642. LINKER
  643. PKG_CONFIG_LIBDIR
  644. PKG_CONFIG_PATH
  645. PKG_CONFIG
  646. SET_MAKE
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. CXXCPP
  651. ac_ct_CXX
  652. CXXFLAGS
  653. CXX
  654. LT_AGE
  655. LT_REVISION
  656. LT_CURRENT
  657. LT_RELEASE
  658. RC
  659. CPP
  660. OTOOL64
  661. OTOOL
  662. LIPO
  663. NMEDIT
  664. DSYMUTIL
  665. MANIFEST_TOOL
  666. AWK
  667. RANLIB
  668. STRIP
  669. ac_ct_AR
  670. AR
  671. LN_S
  672. NM
  673. ac_ct_DUMPBIN
  674. DUMPBIN
  675. LD
  676. FGREP
  677. EGREP
  678. GREP
  679. SED
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. host_os
  688. host_vendor
  689. host_cpu
  690. host
  691. build_os
  692. build_vendor
  693. build_cpu
  694. build
  695. LIBTOOL
  696. OBJDUMP
  697. DLLTOOL
  698. AS
  699. SDL_VERSION
  700. SDL_BINARY_AGE
  701. SDL_INTERFACE_AGE
  702. SDL_MICRO_VERSION
  703. SDL_MINOR_VERSION
  704. SDL_MAJOR_VERSION
  705. target_alias
  706. host_alias
  707. build_alias
  708. LIBS
  709. ECHO_T
  710. ECHO_N
  711. ECHO_C
  712. DEFS
  713. mandir
  714. localedir
  715. libdir
  716. psdir
  717. pdfdir
  718. dvidir
  719. htmldir
  720. infodir
  721. docdir
  722. oldincludedir
  723. includedir
  724. localstatedir
  725. sharedstatedir
  726. sysconfdir
  727. datadir
  728. datarootdir
  729. libexecdir
  730. sbindir
  731. bindir
  732. program_transform_name
  733. prefix
  734. exec_prefix
  735. PACKAGE_URL
  736. PACKAGE_BUGREPORT
  737. PACKAGE_STRING
  738. PACKAGE_VERSION
  739. PACKAGE_TARNAME
  740. PACKAGE_NAME
  741. PATH_SEPARATOR
  742. SHELL'
  743. ac_subst_files=''
  744. ac_user_opts='
  745. enable_option_checking
  746. enable_shared
  747. enable_static
  748. with_pic
  749. enable_fast_install
  750. with_gnu_ld
  751. with_sysroot
  752. enable_libtool_lock
  753. enable_assertions
  754. enable_dependency_tracking
  755. enable_libc
  756. enable_gcc_atomics
  757. enable_atomic
  758. enable_audio
  759. enable_video
  760. enable_render
  761. enable_events
  762. enable_joystick
  763. enable_haptic
  764. enable_sensor
  765. enable_power
  766. enable_filesystem
  767. enable_threads
  768. enable_timers
  769. enable_file
  770. enable_loadso
  771. enable_cpuinfo
  772. enable_assembly
  773. enable_ssemath
  774. enable_mmx
  775. enable_3dnow
  776. enable_sse
  777. enable_sse2
  778. enable_sse3
  779. enable_altivec
  780. enable_oss
  781. enable_alsa
  782. with_alsa_prefix
  783. with_alsa_inc_prefix
  784. enable_alsatest
  785. enable_alsa_shared
  786. enable_jack
  787. enable_jack_shared
  788. enable_esd
  789. with_esd_prefix
  790. with_esd_exec_prefix
  791. enable_esdtest
  792. enable_esd_shared
  793. enable_pipewire
  794. enable_pipewire_shared
  795. enable_pulseaudio
  796. enable_pulseaudio_shared
  797. enable_arts
  798. enable_arts_shared
  799. enable_nas
  800. enable_nas_shared
  801. enable_sndio
  802. enable_sndio_shared
  803. enable_fusionsound
  804. enable_fusionsound_shared
  805. enable_diskaudio
  806. enable_dummyaudio
  807. enable_libsamplerate
  808. enable_libsamplerate_shared
  809. enable_arm_simd
  810. enable_arm_neon
  811. enable_video_wayland
  812. enable_video_wayland_qt_touch
  813. enable_wayland_shared
  814. enable_libdecor
  815. enable_libdecor_shared
  816. enable_video_rpi
  817. enable_video_x11
  818. with_x
  819. enable_x11_shared
  820. enable_video_x11_xcursor
  821. enable_video_x11_xdbe
  822. enable_video_x11_xinerama
  823. enable_video_x11_xinput
  824. enable_video_x11_xrandr
  825. enable_video_x11_scrnsaver
  826. enable_video_x11_xshape
  827. enable_video_x11_vm
  828. enable_video_vivante
  829. enable_video_cocoa
  830. enable_video_metal
  831. enable_render_metal
  832. enable_video_directfb
  833. enable_directfb_shared
  834. enable_video_kmsdrm
  835. enable_kmsdrm_shared
  836. enable_video_dummy
  837. enable_video_opengl
  838. enable_video_opengles
  839. enable_video_opengles1
  840. enable_video_opengles2
  841. enable_video_vulkan
  842. enable_libudev
  843. enable_dbus
  844. enable_ime
  845. enable_ibus
  846. enable_fcitx
  847. enable_joystick_mfi
  848. enable_pthreads
  849. enable_pthread_sem
  850. enable_directx
  851. enable_xinput
  852. enable_wasapi
  853. enable_sdl_dlopen
  854. enable_hidapi
  855. enable_hidapi_libusb
  856. enable_clock_gettime
  857. enable_rpath
  858. enable_backgrounding_signal
  859. enable_foregrounding_signal
  860. enable_joystick_virtual
  861. enable_render_d3d
  862. enable_sdl2_config
  863. '
  864. ac_precious_vars='build_alias
  865. host_alias
  866. target_alias
  867. CC
  868. CFLAGS
  869. LDFLAGS
  870. LIBS
  871. CPPFLAGS
  872. CPP
  873. CXX
  874. CXXFLAGS
  875. CCC
  876. CXXCPP
  877. PKG_CONFIG
  878. PKG_CONFIG_PATH
  879. PKG_CONFIG_LIBDIR
  880. JACK_CFLAGS
  881. JACK_LIBS
  882. PIPEWIRE_CFLAGS
  883. PIPEWIRE_LIBS
  884. PULSEAUDIO_CFLAGS
  885. PULSEAUDIO_LIBS
  886. FUSIONSOUND_CFLAGS
  887. FUSIONSOUND_LIBS
  888. RPI_CFLAGS
  889. RPI_LIBS
  890. XMKMF
  891. DIRECTFB_CFLAGS
  892. DIRECTFB_LIBS
  893. LIBDRM_CFLAGS
  894. LIBDRM_LIBS
  895. LIBGBM_CFLAGS
  896. LIBGBM_LIBS
  897. DBUS_CFLAGS
  898. DBUS_LIBS
  899. IBUS_CFLAGS
  900. IBUS_LIBS
  901. LIBUSB_CFLAGS
  902. LIBUSB_LIBS'
  903. # Initialize some variables set by options.
  904. ac_init_help=
  905. ac_init_version=false
  906. ac_unrecognized_opts=
  907. ac_unrecognized_sep=
  908. # The variables have the same names as the options, with
  909. # dashes changed to underlines.
  910. cache_file=/dev/null
  911. exec_prefix=NONE
  912. no_create=
  913. no_recursion=
  914. prefix=NONE
  915. program_prefix=NONE
  916. program_suffix=NONE
  917. program_transform_name=s,x,x,
  918. silent=
  919. site=
  920. srcdir=
  921. verbose=
  922. x_includes=NONE
  923. x_libraries=NONE
  924. # Installation directory options.
  925. # These are left unexpanded so users can "make install exec_prefix=/foo"
  926. # and all the variables that are supposed to be based on exec_prefix
  927. # by default will actually change.
  928. # Use braces instead of parens because sh, perl, etc. also accept them.
  929. # (The list follows the same order as the GNU Coding Standards.)
  930. bindir='${exec_prefix}/bin'
  931. sbindir='${exec_prefix}/sbin'
  932. libexecdir='${exec_prefix}/libexec'
  933. datarootdir='${prefix}/share'
  934. datadir='${datarootdir}'
  935. sysconfdir='${prefix}/etc'
  936. sharedstatedir='${prefix}/com'
  937. localstatedir='${prefix}/var'
  938. includedir='${prefix}/include'
  939. oldincludedir='/usr/include'
  940. docdir='${datarootdir}/doc/${PACKAGE}'
  941. infodir='${datarootdir}/info'
  942. htmldir='${docdir}'
  943. dvidir='${docdir}'
  944. pdfdir='${docdir}'
  945. psdir='${docdir}'
  946. libdir='${exec_prefix}/lib'
  947. localedir='${datarootdir}/locale'
  948. mandir='${datarootdir}/man'
  949. ac_prev=
  950. ac_dashdash=
  951. for ac_option
  952. do
  953. # If the previous option needs an argument, assign it.
  954. if test -n "$ac_prev"; then
  955. eval $ac_prev=\$ac_option
  956. ac_prev=
  957. continue
  958. fi
  959. case $ac_option in
  960. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  961. *=) ac_optarg= ;;
  962. *) ac_optarg=yes ;;
  963. esac
  964. # Accept the important Cygnus configure options, so we can diagnose typos.
  965. case $ac_dashdash$ac_option in
  966. --)
  967. ac_dashdash=yes ;;
  968. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  969. ac_prev=bindir ;;
  970. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  971. bindir=$ac_optarg ;;
  972. -build | --build | --buil | --bui | --bu)
  973. ac_prev=build_alias ;;
  974. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  975. build_alias=$ac_optarg ;;
  976. -cache-file | --cache-file | --cache-fil | --cache-fi \
  977. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  978. ac_prev=cache_file ;;
  979. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  980. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  981. cache_file=$ac_optarg ;;
  982. --config-cache | -C)
  983. cache_file=config.cache ;;
  984. -datadir | --datadir | --datadi | --datad)
  985. ac_prev=datadir ;;
  986. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  987. datadir=$ac_optarg ;;
  988. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  989. | --dataroo | --dataro | --datar)
  990. ac_prev=datarootdir ;;
  991. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  992. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  993. datarootdir=$ac_optarg ;;
  994. -disable-* | --disable-*)
  995. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  996. # Reject names that are not valid shell variable names.
  997. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  998. as_fn_error $? "invalid feature name: $ac_useropt"
  999. ac_useropt_orig=$ac_useropt
  1000. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1001. case $ac_user_opts in
  1002. *"
  1003. "enable_$ac_useropt"
  1004. "*) ;;
  1005. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1006. ac_unrecognized_sep=', ';;
  1007. esac
  1008. eval enable_$ac_useropt=no ;;
  1009. -docdir | --docdir | --docdi | --doc | --do)
  1010. ac_prev=docdir ;;
  1011. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1012. docdir=$ac_optarg ;;
  1013. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1014. ac_prev=dvidir ;;
  1015. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1016. dvidir=$ac_optarg ;;
  1017. -enable-* | --enable-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. as_fn_error $? "invalid feature name: $ac_useropt"
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "enable_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval enable_$ac_useropt=\$ac_optarg ;;
  1032. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1033. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1034. | --exec | --exe | --ex)
  1035. ac_prev=exec_prefix ;;
  1036. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1037. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1038. | --exec=* | --exe=* | --ex=*)
  1039. exec_prefix=$ac_optarg ;;
  1040. -gas | --gas | --ga | --g)
  1041. # Obsolete; use --with-gas.
  1042. with_gas=yes ;;
  1043. -help | --help | --hel | --he | -h)
  1044. ac_init_help=long ;;
  1045. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1046. ac_init_help=recursive ;;
  1047. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1048. ac_init_help=short ;;
  1049. -host | --host | --hos | --ho)
  1050. ac_prev=host_alias ;;
  1051. -host=* | --host=* | --hos=* | --ho=*)
  1052. host_alias=$ac_optarg ;;
  1053. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1054. ac_prev=htmldir ;;
  1055. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1056. | --ht=*)
  1057. htmldir=$ac_optarg ;;
  1058. -includedir | --includedir | --includedi | --included | --include \
  1059. | --includ | --inclu | --incl | --inc)
  1060. ac_prev=includedir ;;
  1061. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1062. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1063. includedir=$ac_optarg ;;
  1064. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1065. ac_prev=infodir ;;
  1066. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1067. infodir=$ac_optarg ;;
  1068. -libdir | --libdir | --libdi | --libd)
  1069. ac_prev=libdir ;;
  1070. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1071. libdir=$ac_optarg ;;
  1072. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1073. | --libexe | --libex | --libe)
  1074. ac_prev=libexecdir ;;
  1075. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1076. | --libexe=* | --libex=* | --libe=*)
  1077. libexecdir=$ac_optarg ;;
  1078. -localedir | --localedir | --localedi | --localed | --locale)
  1079. ac_prev=localedir ;;
  1080. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1081. localedir=$ac_optarg ;;
  1082. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1083. | --localstate | --localstat | --localsta | --localst | --locals)
  1084. ac_prev=localstatedir ;;
  1085. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1086. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1087. localstatedir=$ac_optarg ;;
  1088. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1089. ac_prev=mandir ;;
  1090. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1091. mandir=$ac_optarg ;;
  1092. -nfp | --nfp | --nf)
  1093. # Obsolete; use --without-fp.
  1094. with_fp=no ;;
  1095. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1096. | --no-cr | --no-c | -n)
  1097. no_create=yes ;;
  1098. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1099. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1100. no_recursion=yes ;;
  1101. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1102. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1103. | --oldin | --oldi | --old | --ol | --o)
  1104. ac_prev=oldincludedir ;;
  1105. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1106. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1107. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1108. oldincludedir=$ac_optarg ;;
  1109. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1110. ac_prev=prefix ;;
  1111. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1112. prefix=$ac_optarg ;;
  1113. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1114. | --program-pre | --program-pr | --program-p)
  1115. ac_prev=program_prefix ;;
  1116. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1117. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1118. program_prefix=$ac_optarg ;;
  1119. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1120. | --program-suf | --program-su | --program-s)
  1121. ac_prev=program_suffix ;;
  1122. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1123. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1124. program_suffix=$ac_optarg ;;
  1125. -program-transform-name | --program-transform-name \
  1126. | --program-transform-nam | --program-transform-na \
  1127. | --program-transform-n | --program-transform- \
  1128. | --program-transform | --program-transfor \
  1129. | --program-transfo | --program-transf \
  1130. | --program-trans | --program-tran \
  1131. | --progr-tra | --program-tr | --program-t)
  1132. ac_prev=program_transform_name ;;
  1133. -program-transform-name=* | --program-transform-name=* \
  1134. | --program-transform-nam=* | --program-transform-na=* \
  1135. | --program-transform-n=* | --program-transform-=* \
  1136. | --program-transform=* | --program-transfor=* \
  1137. | --program-transfo=* | --program-transf=* \
  1138. | --program-trans=* | --program-tran=* \
  1139. | --progr-tra=* | --program-tr=* | --program-t=*)
  1140. program_transform_name=$ac_optarg ;;
  1141. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1142. ac_prev=pdfdir ;;
  1143. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1144. pdfdir=$ac_optarg ;;
  1145. -psdir | --psdir | --psdi | --psd | --ps)
  1146. ac_prev=psdir ;;
  1147. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1148. psdir=$ac_optarg ;;
  1149. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1150. | -silent | --silent | --silen | --sile | --sil)
  1151. silent=yes ;;
  1152. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1153. ac_prev=sbindir ;;
  1154. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1155. | --sbi=* | --sb=*)
  1156. sbindir=$ac_optarg ;;
  1157. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1158. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1159. | --sharedst | --shareds | --shared | --share | --shar \
  1160. | --sha | --sh)
  1161. ac_prev=sharedstatedir ;;
  1162. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1163. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1164. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1165. | --sha=* | --sh=*)
  1166. sharedstatedir=$ac_optarg ;;
  1167. -site | --site | --sit)
  1168. ac_prev=site ;;
  1169. -site=* | --site=* | --sit=*)
  1170. site=$ac_optarg ;;
  1171. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1172. ac_prev=srcdir ;;
  1173. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1174. srcdir=$ac_optarg ;;
  1175. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1176. | --syscon | --sysco | --sysc | --sys | --sy)
  1177. ac_prev=sysconfdir ;;
  1178. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1179. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1180. sysconfdir=$ac_optarg ;;
  1181. -target | --target | --targe | --targ | --tar | --ta | --t)
  1182. ac_prev=target_alias ;;
  1183. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1184. target_alias=$ac_optarg ;;
  1185. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1186. verbose=yes ;;
  1187. -version | --version | --versio | --versi | --vers | -V)
  1188. ac_init_version=: ;;
  1189. -with-* | --with-*)
  1190. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1191. # Reject names that are not valid shell variable names.
  1192. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1193. as_fn_error $? "invalid package name: $ac_useropt"
  1194. ac_useropt_orig=$ac_useropt
  1195. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1196. case $ac_user_opts in
  1197. *"
  1198. "with_$ac_useropt"
  1199. "*) ;;
  1200. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1201. ac_unrecognized_sep=', ';;
  1202. esac
  1203. eval with_$ac_useropt=\$ac_optarg ;;
  1204. -without-* | --without-*)
  1205. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1206. # Reject names that are not valid shell variable names.
  1207. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1208. as_fn_error $? "invalid package name: $ac_useropt"
  1209. ac_useropt_orig=$ac_useropt
  1210. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1211. case $ac_user_opts in
  1212. *"
  1213. "with_$ac_useropt"
  1214. "*) ;;
  1215. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1216. ac_unrecognized_sep=', ';;
  1217. esac
  1218. eval with_$ac_useropt=no ;;
  1219. --x)
  1220. # Obsolete; use --with-x.
  1221. with_x=yes ;;
  1222. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1223. | --x-incl | --x-inc | --x-in | --x-i)
  1224. ac_prev=x_includes ;;
  1225. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1226. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1227. x_includes=$ac_optarg ;;
  1228. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1229. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1230. ac_prev=x_libraries ;;
  1231. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1232. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1233. x_libraries=$ac_optarg ;;
  1234. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1235. Try \`$0 --help' for more information"
  1236. ;;
  1237. *=*)
  1238. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1239. # Reject names that are not valid shell variable names.
  1240. case $ac_envvar in #(
  1241. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1242. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1243. esac
  1244. eval $ac_envvar=\$ac_optarg
  1245. export $ac_envvar ;;
  1246. *)
  1247. # FIXME: should be removed in autoconf 3.0.
  1248. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1249. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1250. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1251. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1252. ;;
  1253. esac
  1254. done
  1255. if test -n "$ac_prev"; then
  1256. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1257. as_fn_error $? "missing argument to $ac_option"
  1258. fi
  1259. if test -n "$ac_unrecognized_opts"; then
  1260. case $enable_option_checking in
  1261. no) ;;
  1262. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1263. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1264. esac
  1265. fi
  1266. # Check all directory arguments for consistency.
  1267. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1268. datadir sysconfdir sharedstatedir localstatedir includedir \
  1269. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1270. libdir localedir mandir
  1271. do
  1272. eval ac_val=\$$ac_var
  1273. # Remove trailing slashes.
  1274. case $ac_val in
  1275. */ )
  1276. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1277. eval $ac_var=\$ac_val;;
  1278. esac
  1279. # Be sure to have absolute directory names.
  1280. case $ac_val in
  1281. [\\/$]* | ?:[\\/]* ) continue;;
  1282. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1283. esac
  1284. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1285. done
  1286. # There might be people who depend on the old broken behavior: `$host'
  1287. # used to hold the argument of --host etc.
  1288. # FIXME: To remove some day.
  1289. build=$build_alias
  1290. host=$host_alias
  1291. target=$target_alias
  1292. # FIXME: To remove some day.
  1293. if test "x$host_alias" != x; then
  1294. if test "x$build_alias" = x; then
  1295. cross_compiling=maybe
  1296. elif test "x$build_alias" != "x$host_alias"; then
  1297. cross_compiling=yes
  1298. fi
  1299. fi
  1300. ac_tool_prefix=
  1301. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1302. test "$silent" = yes && exec 6>/dev/null
  1303. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1304. ac_ls_di=`ls -di .` &&
  1305. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1306. as_fn_error $? "working directory cannot be determined"
  1307. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1308. as_fn_error $? "pwd does not report name of working directory"
  1309. # Find the source files, if location was not specified.
  1310. if test -z "$srcdir"; then
  1311. ac_srcdir_defaulted=yes
  1312. # Try the directory containing this script, then the parent directory.
  1313. ac_confdir=`$as_dirname -- "$as_myself" ||
  1314. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1315. X"$as_myself" : 'X\(//\)[^/]' \| \
  1316. X"$as_myself" : 'X\(//\)$' \| \
  1317. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1318. $as_echo X"$as_myself" |
  1319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1320. s//\1/
  1321. q
  1322. }
  1323. /^X\(\/\/\)[^/].*/{
  1324. s//\1/
  1325. q
  1326. }
  1327. /^X\(\/\/\)$/{
  1328. s//\1/
  1329. q
  1330. }
  1331. /^X\(\/\).*/{
  1332. s//\1/
  1333. q
  1334. }
  1335. s/.*/./; q'`
  1336. srcdir=$ac_confdir
  1337. if test ! -r "$srcdir/$ac_unique_file"; then
  1338. srcdir=..
  1339. fi
  1340. else
  1341. ac_srcdir_defaulted=no
  1342. fi
  1343. if test ! -r "$srcdir/$ac_unique_file"; then
  1344. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1345. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1346. fi
  1347. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1348. ac_abs_confdir=`(
  1349. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1350. pwd)`
  1351. # When building in place, set srcdir=.
  1352. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1353. srcdir=.
  1354. fi
  1355. # Remove unnecessary trailing slashes from srcdir.
  1356. # Double slashes in file names in object file debugging info
  1357. # mess up M-x gdb in Emacs.
  1358. case $srcdir in
  1359. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1360. esac
  1361. for ac_var in $ac_precious_vars; do
  1362. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1363. eval ac_env_${ac_var}_value=\$${ac_var}
  1364. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1365. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1366. done
  1367. #
  1368. # Report the --help message.
  1369. #
  1370. if test "$ac_init_help" = "long"; then
  1371. # Omit some internal or obsolete options to make the list less imposing.
  1372. # This message is too long to be a string in the A/UX 3.1 sh.
  1373. cat <<_ACEOF
  1374. \`configure' configures this package to adapt to many kinds of systems.
  1375. Usage: $0 [OPTION]... [VAR=VALUE]...
  1376. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1377. VAR=VALUE. See below for descriptions of some of the useful variables.
  1378. Defaults for the options are specified in brackets.
  1379. Configuration:
  1380. -h, --help display this help and exit
  1381. --help=short display options specific to this package
  1382. --help=recursive display the short help of all the included packages
  1383. -V, --version display version information and exit
  1384. -q, --quiet, --silent do not print \`checking ...' messages
  1385. --cache-file=FILE cache test results in FILE [disabled]
  1386. -C, --config-cache alias for \`--cache-file=config.cache'
  1387. -n, --no-create do not create output files
  1388. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1389. Installation directories:
  1390. --prefix=PREFIX install architecture-independent files in PREFIX
  1391. [$ac_default_prefix]
  1392. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1393. [PREFIX]
  1394. By default, \`make install' will install all the files in
  1395. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1396. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1397. for instance \`--prefix=\$HOME'.
  1398. For better control, use the options below.
  1399. Fine tuning of the installation directories:
  1400. --bindir=DIR user executables [EPREFIX/bin]
  1401. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1402. --libexecdir=DIR program executables [EPREFIX/libexec]
  1403. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1404. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1405. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1406. --libdir=DIR object code libraries [EPREFIX/lib]
  1407. --includedir=DIR C header files [PREFIX/include]
  1408. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1409. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1410. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1411. --infodir=DIR info documentation [DATAROOTDIR/info]
  1412. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1413. --mandir=DIR man documentation [DATAROOTDIR/man]
  1414. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1415. --htmldir=DIR html documentation [DOCDIR]
  1416. --dvidir=DIR dvi documentation [DOCDIR]
  1417. --pdfdir=DIR pdf documentation [DOCDIR]
  1418. --psdir=DIR ps documentation [DOCDIR]
  1419. _ACEOF
  1420. cat <<\_ACEOF
  1421. X features:
  1422. --x-includes=DIR X include files are in DIR
  1423. --x-libraries=DIR X library files are in DIR
  1424. System types:
  1425. --build=BUILD configure for building on BUILD [guessed]
  1426. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1427. _ACEOF
  1428. fi
  1429. if test -n "$ac_init_help"; then
  1430. cat <<\_ACEOF
  1431. Optional Features:
  1432. --disable-option-checking ignore unrecognized --enable/--with options
  1433. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1434. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1435. --enable-shared[=PKGS] build shared libraries [default=yes]
  1436. --enable-static[=PKGS] build static libraries [default=yes]
  1437. --enable-fast-install[=PKGS]
  1438. optimize for fast installation [default=yes]
  1439. --disable-libtool-lock avoid locking (might break parallel builds)
  1440. --enable-assertions Enable internal sanity checks
  1441. (auto/disabled/release/enabled/paranoid)
  1442. [default=auto]
  1443. --enable-dependency-tracking
  1444. Use gcc -MMD -MT dependency tracking [default=yes]
  1445. --enable-libc Use the system C library [default=yes]
  1446. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1447. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1448. --enable-audio Enable the audio subsystem [default=yes]
  1449. --enable-video Enable the video subsystem [default=yes]
  1450. --enable-render Enable the render subsystem [default=yes]
  1451. --enable-events Enable the events subsystem [default=yes]
  1452. --enable-joystick Enable the joystick subsystem [default=yes]
  1453. --enable-haptic Enable the haptic (force feedback) subsystem
  1454. [default=yes]
  1455. --enable-sensor Enable the sensor subsystem [default=yes]
  1456. --enable-power Enable the power subsystem [default=yes]
  1457. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1458. --enable-threads Enable the threading subsystem [default=yes]
  1459. --enable-timers Enable the timer subsystem [default=yes]
  1460. --enable-file Enable the file subsystem [default=yes]
  1461. --enable-loadso Enable the shared object loading subsystem
  1462. [default=yes]
  1463. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1464. --enable-assembly Enable assembly routines [default=yes]
  1465. --enable-ssemath Allow GCC to use SSE floating point math
  1466. [default=maybe]
  1467. --enable-mmx use MMX assembly routines [default=yes]
  1468. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1469. --enable-sse use SSE assembly routines [default=yes]
  1470. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1471. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1472. --enable-altivec use Altivec assembly routines [default=yes]
  1473. --enable-oss support the OSS audio API [default=maybe]
  1474. --enable-alsa support the ALSA audio API [default=yes]
  1475. --disable-alsatest Do not try to compile and run a test Alsa program
  1476. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1477. --enable-jack use JACK audio [default=yes]
  1478. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1479. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1480. --disable-esdtest Do not try to compile and run a test ESD program
  1481. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1482. --enable-pipewire use Pipewire audio [default=yes]
  1483. --enable-pipewire-shared
  1484. dynamically load Pipewire support [default=yes]
  1485. --enable-pulseaudio use PulseAudio [default=yes]
  1486. --enable-pulseaudio-shared
  1487. dynamically load PulseAudio support [default=yes]
  1488. --enable-arts support the Analog Real Time Synthesizer
  1489. [default=yes]
  1490. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1491. --enable-nas support the NAS audio API [default=yes]
  1492. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1493. --enable-sndio support the sndio audio API [default=yes]
  1494. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1495. --enable-fusionsound use FusionSound audio driver [default=no]
  1496. --enable-fusionsound-shared
  1497. dynamically load fusionsound audio support
  1498. [default=yes]
  1499. --enable-diskaudio support the disk writer audio driver [default=yes]
  1500. --enable-dummyaudio support the dummy audio driver [default=yes]
  1501. --enable-libsamplerate use libsamplerate for audio rate conversion
  1502. [default=yes]
  1503. --enable-libsamplerate-shared
  1504. dynamically load libsamplerate [default=yes]
  1505. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1506. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1507. --enable-video-wayland use Wayland video driver [default=yes]
  1508. --enable-video-wayland-qt-touch
  1509. QtWayland server support for Wayland video driver
  1510. [default=yes]
  1511. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1512. --enable-libdecor use libdecor for Wayland client-side decorations
  1513. [default=yes]
  1514. --enable-libdecor-shared
  1515. dynamically load libdecor [default=yes]
  1516. --enable-video-rpi use Raspberry Pi video driver [default=yes]
  1517. --enable-video-x11 use X11 video driver [default=yes]
  1518. --enable-x11-shared dynamically load X11 support [default=maybe]
  1519. --enable-video-x11-xcursor
  1520. enable X11 Xcursor support [default=yes]
  1521. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1522. --enable-video-x11-xinerama
  1523. enable X11 Xinerama support [default=yes]
  1524. --enable-video-x11-xinput
  1525. enable X11 XInput extension for manymouse, tablets,
  1526. etc [default=yes]
  1527. --enable-video-x11-xrandr
  1528. enable X11 Xrandr extension for fullscreen
  1529. [default=yes]
  1530. --enable-video-x11-scrnsaver
  1531. enable X11 screensaver extension [default=yes]
  1532. --enable-video-x11-xshape
  1533. enable X11 XShape support [default=yes]
  1534. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1535. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1536. --enable-video-cocoa use Cocoa video driver [default=yes]
  1537. --enable-video-metal include Metal support [default=yes]
  1538. --enable-render-metal enable the Metal render driver [default=yes]
  1539. --enable-video-directfb use DirectFB video driver [default=no]
  1540. --enable-directfb-shared
  1541. dynamically load directfb support [default=yes]
  1542. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1543. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1544. --enable-video-dummy use dummy video driver [default=yes]
  1545. --enable-video-opengl include OpenGL support [default=yes]
  1546. --enable-video-opengles include OpenGL ES support [default=yes]
  1547. --enable-video-opengles1
  1548. include OpenGL ES 1.1 support [default=yes]
  1549. --enable-video-opengles2
  1550. include OpenGL ES 2.0 support [default=yes]
  1551. --enable-video-vulkan include Vulkan support [default=yes]
  1552. --enable-libudev enable libudev support [default=yes]
  1553. --enable-dbus enable D-Bus support [default=yes]
  1554. --enable-ime enable IME support [default=yes]
  1555. --enable-ibus enable IBus support [default=yes]
  1556. --enable-fcitx enable fcitx support [default=yes]
  1557. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1558. --enable-pthreads use POSIX threads for multi-threading
  1559. [default=maybe]
  1560. --enable-pthread-sem use pthread semaphores [default=maybe]
  1561. --enable-directx use DirectX for Windows audio/video [default=yes]
  1562. --enable-xinput use Xinput for Windows [default=yes]
  1563. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1564. --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
  1565. --enable-hidapi use HIDAPI for low level joystick drivers
  1566. [default=yes]
  1567. --enable-hidapi-libusb use libusb for low level joystick drivers
  1568. [default=maybe]
  1569. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1570. UNIX [default=yes]
  1571. --enable-rpath use an rpath when linking SDL [default=yes]
  1572. --enable-backgrounding-signal
  1573. number to use for magic backgrounding signal or 'no'
  1574. [default=no]
  1575. --enable-foregrounding-signal
  1576. number to use for magic foregrounding signal or 'no'
  1577. [default=no]
  1578. --enable-joystick-virtual
  1579. enable virtual joystick APIs [default=yes]
  1580. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1581. --enable-sdl2-config Install sdl2-config [default=yes]
  1582. Optional Packages:
  1583. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1584. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1585. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1586. both]
  1587. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1588. --with-sysroot=DIR Search for dependent libraries within DIR
  1589. (or the compiler's sysroot if not specified).
  1590. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1591. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1592. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1593. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1594. --with-x use the X Window System
  1595. Some influential environment variables:
  1596. CC C compiler command
  1597. CFLAGS C compiler flags
  1598. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1599. nonstandard directory <lib dir>
  1600. LIBS libraries to pass to the linker, e.g. -l<library>
  1601. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1602. you have headers in a nonstandard directory <include dir>
  1603. CPP C preprocessor
  1604. CXX C++ compiler command
  1605. CXXFLAGS C++ compiler flags
  1606. CXXCPP C++ preprocessor
  1607. PKG_CONFIG path to pkg-config utility
  1608. PKG_CONFIG_PATH
  1609. directories to add to pkg-config's search path
  1610. PKG_CONFIG_LIBDIR
  1611. path overriding pkg-config's built-in search path
  1612. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1613. JACK_LIBS linker flags for JACK, overriding pkg-config
  1614. PIPEWIRE_CFLAGS
  1615. C compiler flags for PIPEWIRE, overriding pkg-config
  1616. PIPEWIRE_LIBS
  1617. linker flags for PIPEWIRE, overriding pkg-config
  1618. PULSEAUDIO_CFLAGS
  1619. C compiler flags for PULSEAUDIO, overriding pkg-config
  1620. PULSEAUDIO_LIBS
  1621. linker flags for PULSEAUDIO, overriding pkg-config
  1622. FUSIONSOUND_CFLAGS
  1623. C compiler flags for FUSIONSOUND, overriding pkg-config
  1624. FUSIONSOUND_LIBS
  1625. linker flags for FUSIONSOUND, overriding pkg-config
  1626. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1627. RPI_LIBS linker flags for RPI, overriding pkg-config
  1628. XMKMF Path to xmkmf, Makefile generator for X Window System
  1629. DIRECTFB_CFLAGS
  1630. C compiler flags for DIRECTFB, overriding pkg-config
  1631. DIRECTFB_LIBS
  1632. linker flags for DIRECTFB, overriding pkg-config
  1633. LIBDRM_CFLAGS
  1634. C compiler flags for LIBDRM, overriding pkg-config
  1635. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1636. LIBGBM_CFLAGS
  1637. C compiler flags for LIBGBM, overriding pkg-config
  1638. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1639. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1640. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1641. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1642. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1643. LIBUSB_CFLAGS
  1644. C compiler flags for LIBUSB, overriding pkg-config
  1645. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1646. Use these variables to override the choices made by `configure' or to help
  1647. it to find libraries and programs with nonstandard names/locations.
  1648. Report bugs to the package provider.
  1649. _ACEOF
  1650. ac_status=$?
  1651. fi
  1652. if test "$ac_init_help" = "recursive"; then
  1653. # If there are subdirs, report their specific --help.
  1654. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1655. test -d "$ac_dir" ||
  1656. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1657. continue
  1658. ac_builddir=.
  1659. case "$ac_dir" in
  1660. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1661. *)
  1662. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1663. # A ".." for each directory in $ac_dir_suffix.
  1664. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1665. case $ac_top_builddir_sub in
  1666. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1667. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1668. esac ;;
  1669. esac
  1670. ac_abs_top_builddir=$ac_pwd
  1671. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1672. # for backward compatibility:
  1673. ac_top_builddir=$ac_top_build_prefix
  1674. case $srcdir in
  1675. .) # We are building in place.
  1676. ac_srcdir=.
  1677. ac_top_srcdir=$ac_top_builddir_sub
  1678. ac_abs_top_srcdir=$ac_pwd ;;
  1679. [\\/]* | ?:[\\/]* ) # Absolute name.
  1680. ac_srcdir=$srcdir$ac_dir_suffix;
  1681. ac_top_srcdir=$srcdir
  1682. ac_abs_top_srcdir=$srcdir ;;
  1683. *) # Relative name.
  1684. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1685. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1686. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1687. esac
  1688. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1689. cd "$ac_dir" || { ac_status=$?; continue; }
  1690. # Check for guested configure.
  1691. if test -f "$ac_srcdir/configure.gnu"; then
  1692. echo &&
  1693. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1694. elif test -f "$ac_srcdir/configure"; then
  1695. echo &&
  1696. $SHELL "$ac_srcdir/configure" --help=recursive
  1697. else
  1698. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1699. fi || ac_status=$?
  1700. cd "$ac_pwd" || { ac_status=$?; break; }
  1701. done
  1702. fi
  1703. test -n "$ac_init_help" && exit $ac_status
  1704. if $ac_init_version; then
  1705. cat <<\_ACEOF
  1706. configure
  1707. generated by GNU Autoconf 2.69
  1708. Copyright (C) 2012 Free Software Foundation, Inc.
  1709. This configure script is free software; the Free Software Foundation
  1710. gives unlimited permission to copy, distribute and modify it.
  1711. _ACEOF
  1712. exit
  1713. fi
  1714. ## ------------------------ ##
  1715. ## Autoconf initialization. ##
  1716. ## ------------------------ ##
  1717. # ac_fn_c_try_compile LINENO
  1718. # --------------------------
  1719. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1720. ac_fn_c_try_compile ()
  1721. {
  1722. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1723. rm -f conftest.$ac_objext
  1724. if { { ac_try="$ac_compile"
  1725. case "(($ac_try" in
  1726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1727. *) ac_try_echo=$ac_try;;
  1728. esac
  1729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1730. $as_echo "$ac_try_echo"; } >&5
  1731. (eval "$ac_compile") 2>conftest.err
  1732. ac_status=$?
  1733. if test -s conftest.err; then
  1734. grep -v '^ *+' conftest.err >conftest.er1
  1735. cat conftest.er1 >&5
  1736. mv -f conftest.er1 conftest.err
  1737. fi
  1738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1739. test $ac_status = 0; } && {
  1740. test -z "$ac_c_werror_flag" ||
  1741. test ! -s conftest.err
  1742. } && test -s conftest.$ac_objext; then :
  1743. ac_retval=0
  1744. else
  1745. $as_echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. ac_retval=1
  1748. fi
  1749. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1750. as_fn_set_status $ac_retval
  1751. } # ac_fn_c_try_compile
  1752. # ac_fn_c_try_link LINENO
  1753. # -----------------------
  1754. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1755. ac_fn_c_try_link ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. rm -f conftest.$ac_objext conftest$ac_exeext
  1759. if { { ac_try="$ac_link"
  1760. case "(($ac_try" in
  1761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1762. *) ac_try_echo=$ac_try;;
  1763. esac
  1764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1765. $as_echo "$ac_try_echo"; } >&5
  1766. (eval "$ac_link") 2>conftest.err
  1767. ac_status=$?
  1768. if test -s conftest.err; then
  1769. grep -v '^ *+' conftest.err >conftest.er1
  1770. cat conftest.er1 >&5
  1771. mv -f conftest.er1 conftest.err
  1772. fi
  1773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1774. test $ac_status = 0; } && {
  1775. test -z "$ac_c_werror_flag" ||
  1776. test ! -s conftest.err
  1777. } && test -s conftest$ac_exeext && {
  1778. test "$cross_compiling" = yes ||
  1779. test -x conftest$ac_exeext
  1780. }; then :
  1781. ac_retval=0
  1782. else
  1783. $as_echo "$as_me: failed program was:" >&5
  1784. sed 's/^/| /' conftest.$ac_ext >&5
  1785. ac_retval=1
  1786. fi
  1787. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1788. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1789. # interfere with the next link command; also delete a directory that is
  1790. # left behind by Apple's compiler. We do this before executing the actions.
  1791. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1792. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1793. as_fn_set_status $ac_retval
  1794. } # ac_fn_c_try_link
  1795. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1796. # -------------------------------------------------------
  1797. # Tests whether HEADER exists and can be compiled using the include files in
  1798. # INCLUDES, setting the cache variable VAR accordingly.
  1799. ac_fn_c_check_header_compile ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1803. $as_echo_n "checking for $2... " >&6; }
  1804. if eval \${$3+:} false; then :
  1805. $as_echo_n "(cached) " >&6
  1806. else
  1807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1808. /* end confdefs.h. */
  1809. $4
  1810. #include <$2>
  1811. _ACEOF
  1812. if ac_fn_c_try_compile "$LINENO"; then :
  1813. eval "$3=yes"
  1814. else
  1815. eval "$3=no"
  1816. fi
  1817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1818. fi
  1819. eval ac_res=\$$3
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1821. $as_echo "$ac_res" >&6; }
  1822. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1823. } # ac_fn_c_check_header_compile
  1824. # ac_fn_c_try_cpp LINENO
  1825. # ----------------------
  1826. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1827. ac_fn_c_try_cpp ()
  1828. {
  1829. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1830. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1831. case "(($ac_try" in
  1832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1833. *) ac_try_echo=$ac_try;;
  1834. esac
  1835. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1836. $as_echo "$ac_try_echo"; } >&5
  1837. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1838. ac_status=$?
  1839. if test -s conftest.err; then
  1840. grep -v '^ *+' conftest.err >conftest.er1
  1841. cat conftest.er1 >&5
  1842. mv -f conftest.er1 conftest.err
  1843. fi
  1844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1845. test $ac_status = 0; } > conftest.i && {
  1846. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1847. test ! -s conftest.err
  1848. }; then :
  1849. ac_retval=0
  1850. else
  1851. $as_echo "$as_me: failed program was:" >&5
  1852. sed 's/^/| /' conftest.$ac_ext >&5
  1853. ac_retval=1
  1854. fi
  1855. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1856. as_fn_set_status $ac_retval
  1857. } # ac_fn_c_try_cpp
  1858. # ac_fn_c_try_run LINENO
  1859. # ----------------------
  1860. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1861. # that executables *can* be run.
  1862. ac_fn_c_try_run ()
  1863. {
  1864. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1865. if { { ac_try="$ac_link"
  1866. case "(($ac_try" in
  1867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1868. *) ac_try_echo=$ac_try;;
  1869. esac
  1870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1871. $as_echo "$ac_try_echo"; } >&5
  1872. (eval "$ac_link") 2>&5
  1873. ac_status=$?
  1874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1875. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1876. { { case "(($ac_try" in
  1877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1878. *) ac_try_echo=$ac_try;;
  1879. esac
  1880. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1881. $as_echo "$ac_try_echo"; } >&5
  1882. (eval "$ac_try") 2>&5
  1883. ac_status=$?
  1884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1885. test $ac_status = 0; }; }; then :
  1886. ac_retval=0
  1887. else
  1888. $as_echo "$as_me: program exited with status $ac_status" >&5
  1889. $as_echo "$as_me: failed program was:" >&5
  1890. sed 's/^/| /' conftest.$ac_ext >&5
  1891. ac_retval=$ac_status
  1892. fi
  1893. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. as_fn_set_status $ac_retval
  1896. } # ac_fn_c_try_run
  1897. # ac_fn_c_check_func LINENO FUNC VAR
  1898. # ----------------------------------
  1899. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1900. ac_fn_c_check_func ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1904. $as_echo_n "checking for $2... " >&6; }
  1905. if eval \${$3+:} false; then :
  1906. $as_echo_n "(cached) " >&6
  1907. else
  1908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1909. /* end confdefs.h. */
  1910. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1911. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1912. #define $2 innocuous_$2
  1913. /* System header to define __stub macros and hopefully few prototypes,
  1914. which can conflict with char $2 (); below.
  1915. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1916. <limits.h> exists even on freestanding compilers. */
  1917. #ifdef __STDC__
  1918. # include <limits.h>
  1919. #else
  1920. # include <assert.h>
  1921. #endif
  1922. #undef $2
  1923. /* Override any GCC internal prototype to avoid an error.
  1924. Use char because int might match the return type of a GCC
  1925. builtin and then its argument prototype would still apply. */
  1926. #ifdef __cplusplus
  1927. extern "C"
  1928. #endif
  1929. char $2 ();
  1930. /* The GNU C library defines this for functions which it implements
  1931. to always fail with ENOSYS. Some functions are actually named
  1932. something starting with __ and the normal name is an alias. */
  1933. #if defined __stub_$2 || defined __stub___$2
  1934. choke me
  1935. #endif
  1936. int
  1937. main ()
  1938. {
  1939. return $2 ();
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. if ac_fn_c_try_link "$LINENO"; then :
  1945. eval "$3=yes"
  1946. else
  1947. eval "$3=no"
  1948. fi
  1949. rm -f core conftest.err conftest.$ac_objext \
  1950. conftest$ac_exeext conftest.$ac_ext
  1951. fi
  1952. eval ac_res=\$$3
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1954. $as_echo "$ac_res" >&6; }
  1955. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1956. } # ac_fn_c_check_func
  1957. # ac_fn_cxx_try_compile LINENO
  1958. # ----------------------------
  1959. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1960. ac_fn_cxx_try_compile ()
  1961. {
  1962. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1963. rm -f conftest.$ac_objext
  1964. if { { ac_try="$ac_compile"
  1965. case "(($ac_try" in
  1966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1967. *) ac_try_echo=$ac_try;;
  1968. esac
  1969. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1970. $as_echo "$ac_try_echo"; } >&5
  1971. (eval "$ac_compile") 2>conftest.err
  1972. ac_status=$?
  1973. if test -s conftest.err; then
  1974. grep -v '^ *+' conftest.err >conftest.er1
  1975. cat conftest.er1 >&5
  1976. mv -f conftest.er1 conftest.err
  1977. fi
  1978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1979. test $ac_status = 0; } && {
  1980. test -z "$ac_cxx_werror_flag" ||
  1981. test ! -s conftest.err
  1982. } && test -s conftest.$ac_objext; then :
  1983. ac_retval=0
  1984. else
  1985. $as_echo "$as_me: failed program was:" >&5
  1986. sed 's/^/| /' conftest.$ac_ext >&5
  1987. ac_retval=1
  1988. fi
  1989. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1990. as_fn_set_status $ac_retval
  1991. } # ac_fn_cxx_try_compile
  1992. # ac_fn_cxx_try_cpp LINENO
  1993. # ------------------------
  1994. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1995. ac_fn_cxx_try_cpp ()
  1996. {
  1997. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1998. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1999. case "(($ac_try" in
  2000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2001. *) ac_try_echo=$ac_try;;
  2002. esac
  2003. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2004. $as_echo "$ac_try_echo"; } >&5
  2005. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2006. ac_status=$?
  2007. if test -s conftest.err; then
  2008. grep -v '^ *+' conftest.err >conftest.er1
  2009. cat conftest.er1 >&5
  2010. mv -f conftest.er1 conftest.err
  2011. fi
  2012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2013. test $ac_status = 0; } > conftest.i && {
  2014. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2015. test ! -s conftest.err
  2016. }; then :
  2017. ac_retval=0
  2018. else
  2019. $as_echo "$as_me: failed program was:" >&5
  2020. sed 's/^/| /' conftest.$ac_ext >&5
  2021. ac_retval=1
  2022. fi
  2023. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2024. as_fn_set_status $ac_retval
  2025. } # ac_fn_cxx_try_cpp
  2026. # ac_fn_cxx_try_link LINENO
  2027. # -------------------------
  2028. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2029. ac_fn_cxx_try_link ()
  2030. {
  2031. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2032. rm -f conftest.$ac_objext conftest$ac_exeext
  2033. if { { ac_try="$ac_link"
  2034. case "(($ac_try" in
  2035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2036. *) ac_try_echo=$ac_try;;
  2037. esac
  2038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2039. $as_echo "$ac_try_echo"; } >&5
  2040. (eval "$ac_link") 2>conftest.err
  2041. ac_status=$?
  2042. if test -s conftest.err; then
  2043. grep -v '^ *+' conftest.err >conftest.er1
  2044. cat conftest.er1 >&5
  2045. mv -f conftest.er1 conftest.err
  2046. fi
  2047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2048. test $ac_status = 0; } && {
  2049. test -z "$ac_cxx_werror_flag" ||
  2050. test ! -s conftest.err
  2051. } && test -s conftest$ac_exeext && {
  2052. test "$cross_compiling" = yes ||
  2053. test -x conftest$ac_exeext
  2054. }; then :
  2055. ac_retval=0
  2056. else
  2057. $as_echo "$as_me: failed program was:" >&5
  2058. sed 's/^/| /' conftest.$ac_ext >&5
  2059. ac_retval=1
  2060. fi
  2061. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2062. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2063. # interfere with the next link command; also delete a directory that is
  2064. # left behind by Apple's compiler. We do this before executing the actions.
  2065. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2066. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2067. as_fn_set_status $ac_retval
  2068. } # ac_fn_cxx_try_link
  2069. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2070. # -------------------------------------------------------
  2071. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2072. # the include files in INCLUDES and setting the cache variable VAR
  2073. # accordingly.
  2074. ac_fn_c_check_header_mongrel ()
  2075. {
  2076. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2077. if eval \${$3+:} false; then :
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2079. $as_echo_n "checking for $2... " >&6; }
  2080. if eval \${$3+:} false; then :
  2081. $as_echo_n "(cached) " >&6
  2082. fi
  2083. eval ac_res=\$$3
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2085. $as_echo "$ac_res" >&6; }
  2086. else
  2087. # Is the header compilable?
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2089. $as_echo_n "checking $2 usability... " >&6; }
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. #include <$2>
  2094. _ACEOF
  2095. if ac_fn_c_try_compile "$LINENO"; then :
  2096. ac_header_compiler=yes
  2097. else
  2098. ac_header_compiler=no
  2099. fi
  2100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2102. $as_echo "$ac_header_compiler" >&6; }
  2103. # Is the header present?
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2105. $as_echo_n "checking $2 presence... " >&6; }
  2106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2107. /* end confdefs.h. */
  2108. #include <$2>
  2109. _ACEOF
  2110. if ac_fn_c_try_cpp "$LINENO"; then :
  2111. ac_header_preproc=yes
  2112. else
  2113. ac_header_preproc=no
  2114. fi
  2115. rm -f conftest.err conftest.i conftest.$ac_ext
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2117. $as_echo "$ac_header_preproc" >&6; }
  2118. # So? What about this header?
  2119. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2120. yes:no: )
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2122. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2124. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2125. ;;
  2126. no:yes:* )
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2128. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2130. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2132. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2134. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2136. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2137. ;;
  2138. esac
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2140. $as_echo_n "checking for $2... " >&6; }
  2141. if eval \${$3+:} false; then :
  2142. $as_echo_n "(cached) " >&6
  2143. else
  2144. eval "$3=\$ac_header_compiler"
  2145. fi
  2146. eval ac_res=\$$3
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2148. $as_echo "$ac_res" >&6; }
  2149. fi
  2150. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2151. } # ac_fn_c_check_header_mongrel
  2152. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2153. # -------------------------------------------
  2154. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2155. # variable VAR accordingly.
  2156. ac_fn_c_check_type ()
  2157. {
  2158. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2160. $as_echo_n "checking for $2... " >&6; }
  2161. if eval \${$3+:} false; then :
  2162. $as_echo_n "(cached) " >&6
  2163. else
  2164. eval "$3=no"
  2165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2166. /* end confdefs.h. */
  2167. $4
  2168. int
  2169. main ()
  2170. {
  2171. if (sizeof ($2))
  2172. return 0;
  2173. ;
  2174. return 0;
  2175. }
  2176. _ACEOF
  2177. if ac_fn_c_try_compile "$LINENO"; then :
  2178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2179. /* end confdefs.h. */
  2180. $4
  2181. int
  2182. main ()
  2183. {
  2184. if (sizeof (($2)))
  2185. return 0;
  2186. ;
  2187. return 0;
  2188. }
  2189. _ACEOF
  2190. if ac_fn_c_try_compile "$LINENO"; then :
  2191. else
  2192. eval "$3=yes"
  2193. fi
  2194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2195. fi
  2196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2197. fi
  2198. eval ac_res=\$$3
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2200. $as_echo "$ac_res" >&6; }
  2201. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2202. } # ac_fn_c_check_type
  2203. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2204. # ----------------------------------------------------
  2205. # Tries to find if the field MEMBER exists in type AGGR, after including
  2206. # INCLUDES, setting cache variable VAR accordingly.
  2207. ac_fn_c_check_member ()
  2208. {
  2209. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2211. $as_echo_n "checking for $2.$3... " >&6; }
  2212. if eval \${$4+:} false; then :
  2213. $as_echo_n "(cached) " >&6
  2214. else
  2215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2216. /* end confdefs.h. */
  2217. $5
  2218. int
  2219. main ()
  2220. {
  2221. static $2 ac_aggr;
  2222. if (ac_aggr.$3)
  2223. return 0;
  2224. ;
  2225. return 0;
  2226. }
  2227. _ACEOF
  2228. if ac_fn_c_try_compile "$LINENO"; then :
  2229. eval "$4=yes"
  2230. else
  2231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2232. /* end confdefs.h. */
  2233. $5
  2234. int
  2235. main ()
  2236. {
  2237. static $2 ac_aggr;
  2238. if (sizeof ac_aggr.$3)
  2239. return 0;
  2240. ;
  2241. return 0;
  2242. }
  2243. _ACEOF
  2244. if ac_fn_c_try_compile "$LINENO"; then :
  2245. eval "$4=yes"
  2246. else
  2247. eval "$4=no"
  2248. fi
  2249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2250. fi
  2251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2252. fi
  2253. eval ac_res=\$$4
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2255. $as_echo "$ac_res" >&6; }
  2256. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2257. } # ac_fn_c_check_member
  2258. cat >config.log <<_ACEOF
  2259. This file contains any messages produced by compilers while
  2260. running configure, to aid debugging if configure makes a mistake.
  2261. It was created by $as_me, which was
  2262. generated by GNU Autoconf 2.69. Invocation command line was
  2263. $ $0 $@
  2264. _ACEOF
  2265. exec 5>>config.log
  2266. {
  2267. cat <<_ASUNAME
  2268. ## --------- ##
  2269. ## Platform. ##
  2270. ## --------- ##
  2271. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2272. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2273. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2274. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2275. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2276. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2277. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2278. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2279. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2280. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2281. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2282. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2283. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2284. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2285. _ASUNAME
  2286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2287. for as_dir in $PATH
  2288. do
  2289. IFS=$as_save_IFS
  2290. test -z "$as_dir" && as_dir=.
  2291. $as_echo "PATH: $as_dir"
  2292. done
  2293. IFS=$as_save_IFS
  2294. } >&5
  2295. cat >&5 <<_ACEOF
  2296. ## ----------- ##
  2297. ## Core tests. ##
  2298. ## ----------- ##
  2299. _ACEOF
  2300. # Keep a trace of the command line.
  2301. # Strip out --no-create and --no-recursion so they do not pile up.
  2302. # Strip out --silent because we don't want to record it for future runs.
  2303. # Also quote any args containing shell meta-characters.
  2304. # Make two passes to allow for proper duplicate-argument suppression.
  2305. ac_configure_args=
  2306. ac_configure_args0=
  2307. ac_configure_args1=
  2308. ac_must_keep_next=false
  2309. for ac_pass in 1 2
  2310. do
  2311. for ac_arg
  2312. do
  2313. case $ac_arg in
  2314. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2315. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2316. | -silent | --silent | --silen | --sile | --sil)
  2317. continue ;;
  2318. *\'*)
  2319. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2320. esac
  2321. case $ac_pass in
  2322. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2323. 2)
  2324. as_fn_append ac_configure_args1 " '$ac_arg'"
  2325. if test $ac_must_keep_next = true; then
  2326. ac_must_keep_next=false # Got value, back to normal.
  2327. else
  2328. case $ac_arg in
  2329. *=* | --config-cache | -C | -disable-* | --disable-* \
  2330. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2331. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2332. | -with-* | --with-* | -without-* | --without-* | --x)
  2333. case "$ac_configure_args0 " in
  2334. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2335. esac
  2336. ;;
  2337. -* ) ac_must_keep_next=true ;;
  2338. esac
  2339. fi
  2340. as_fn_append ac_configure_args " '$ac_arg'"
  2341. ;;
  2342. esac
  2343. done
  2344. done
  2345. { ac_configure_args0=; unset ac_configure_args0;}
  2346. { ac_configure_args1=; unset ac_configure_args1;}
  2347. # When interrupted or exit'd, cleanup temporary files, and complete
  2348. # config.log. We remove comments because anyway the quotes in there
  2349. # would cause problems or look ugly.
  2350. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2351. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2352. trap 'exit_status=$?
  2353. # Save into config.log some information that might help in debugging.
  2354. {
  2355. echo
  2356. $as_echo "## ---------------- ##
  2357. ## Cache variables. ##
  2358. ## ---------------- ##"
  2359. echo
  2360. # The following way of writing the cache mishandles newlines in values,
  2361. (
  2362. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2363. eval ac_val=\$$ac_var
  2364. case $ac_val in #(
  2365. *${as_nl}*)
  2366. case $ac_var in #(
  2367. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2368. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2369. esac
  2370. case $ac_var in #(
  2371. _ | IFS | as_nl) ;; #(
  2372. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2373. *) { eval $ac_var=; unset $ac_var;} ;;
  2374. esac ;;
  2375. esac
  2376. done
  2377. (set) 2>&1 |
  2378. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2379. *${as_nl}ac_space=\ *)
  2380. sed -n \
  2381. "s/'\''/'\''\\\\'\'''\''/g;
  2382. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2383. ;; #(
  2384. *)
  2385. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2386. ;;
  2387. esac |
  2388. sort
  2389. )
  2390. echo
  2391. $as_echo "## ----------------- ##
  2392. ## Output variables. ##
  2393. ## ----------------- ##"
  2394. echo
  2395. for ac_var in $ac_subst_vars
  2396. do
  2397. eval ac_val=\$$ac_var
  2398. case $ac_val in
  2399. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2400. esac
  2401. $as_echo "$ac_var='\''$ac_val'\''"
  2402. done | sort
  2403. echo
  2404. if test -n "$ac_subst_files"; then
  2405. $as_echo "## ------------------- ##
  2406. ## File substitutions. ##
  2407. ## ------------------- ##"
  2408. echo
  2409. for ac_var in $ac_subst_files
  2410. do
  2411. eval ac_val=\$$ac_var
  2412. case $ac_val in
  2413. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2414. esac
  2415. $as_echo "$ac_var='\''$ac_val'\''"
  2416. done | sort
  2417. echo
  2418. fi
  2419. if test -s confdefs.h; then
  2420. $as_echo "## ----------- ##
  2421. ## confdefs.h. ##
  2422. ## ----------- ##"
  2423. echo
  2424. cat confdefs.h
  2425. echo
  2426. fi
  2427. test "$ac_signal" != 0 &&
  2428. $as_echo "$as_me: caught signal $ac_signal"
  2429. $as_echo "$as_me: exit $exit_status"
  2430. } >&5
  2431. rm -f core *.core core.conftest.* &&
  2432. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2433. exit $exit_status
  2434. ' 0
  2435. for ac_signal in 1 2 13 15; do
  2436. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2437. done
  2438. ac_signal=0
  2439. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2440. rm -f -r conftest* confdefs.h
  2441. $as_echo "/* confdefs.h */" > confdefs.h
  2442. # Predefined preprocessor variables.
  2443. cat >>confdefs.h <<_ACEOF
  2444. #define PACKAGE_NAME "$PACKAGE_NAME"
  2445. _ACEOF
  2446. cat >>confdefs.h <<_ACEOF
  2447. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2448. _ACEOF
  2449. cat >>confdefs.h <<_ACEOF
  2450. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2451. _ACEOF
  2452. cat >>confdefs.h <<_ACEOF
  2453. #define PACKAGE_STRING "$PACKAGE_STRING"
  2454. _ACEOF
  2455. cat >>confdefs.h <<_ACEOF
  2456. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2457. _ACEOF
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define PACKAGE_URL "$PACKAGE_URL"
  2460. _ACEOF
  2461. # Let the site file select an alternate cache file if it wants to.
  2462. # Prefer an explicitly selected file to automatically selected ones.
  2463. ac_site_file1=NONE
  2464. ac_site_file2=NONE
  2465. if test -n "$CONFIG_SITE"; then
  2466. # We do not want a PATH search for config.site.
  2467. case $CONFIG_SITE in #((
  2468. -*) ac_site_file1=./$CONFIG_SITE;;
  2469. */*) ac_site_file1=$CONFIG_SITE;;
  2470. *) ac_site_file1=./$CONFIG_SITE;;
  2471. esac
  2472. elif test "x$prefix" != xNONE; then
  2473. ac_site_file1=$prefix/share/config.site
  2474. ac_site_file2=$prefix/etc/config.site
  2475. else
  2476. ac_site_file1=$ac_default_prefix/share/config.site
  2477. ac_site_file2=$ac_default_prefix/etc/config.site
  2478. fi
  2479. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2480. do
  2481. test "x$ac_site_file" = xNONE && continue
  2482. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2484. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2485. sed 's/^/| /' "$ac_site_file" >&5
  2486. . "$ac_site_file" \
  2487. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2488. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2489. as_fn_error $? "failed to load site script $ac_site_file
  2490. See \`config.log' for more details" "$LINENO" 5; }
  2491. fi
  2492. done
  2493. if test -r "$cache_file"; then
  2494. # Some versions of bash will fail to source /dev/null (special files
  2495. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2496. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2498. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2499. case $cache_file in
  2500. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2501. *) . "./$cache_file";;
  2502. esac
  2503. fi
  2504. else
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2506. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2507. >$cache_file
  2508. fi
  2509. # Check that the precious variables saved in the cache have kept the same
  2510. # value.
  2511. ac_cache_corrupted=false
  2512. for ac_var in $ac_precious_vars; do
  2513. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2514. eval ac_new_set=\$ac_env_${ac_var}_set
  2515. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2516. eval ac_new_val=\$ac_env_${ac_var}_value
  2517. case $ac_old_set,$ac_new_set in
  2518. set,)
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2520. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2521. ac_cache_corrupted=: ;;
  2522. ,set)
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2524. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2525. ac_cache_corrupted=: ;;
  2526. ,);;
  2527. *)
  2528. if test "x$ac_old_val" != "x$ac_new_val"; then
  2529. # differences in whitespace do not lead to failure.
  2530. ac_old_val_w=`echo x $ac_old_val`
  2531. ac_new_val_w=`echo x $ac_new_val`
  2532. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2534. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2535. ac_cache_corrupted=:
  2536. else
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2538. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2539. eval $ac_var=\$ac_old_val
  2540. fi
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2542. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2544. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2545. fi;;
  2546. esac
  2547. # Pass precious variables to config.status.
  2548. if test "$ac_new_set" = set; then
  2549. case $ac_new_val in
  2550. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2551. *) ac_arg=$ac_var=$ac_new_val ;;
  2552. esac
  2553. case " $ac_configure_args " in
  2554. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2555. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2556. esac
  2557. fi
  2558. done
  2559. if $ac_cache_corrupted; then
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2561. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2563. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2564. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2565. fi
  2566. ## -------------------- ##
  2567. ## Main body of script. ##
  2568. ## -------------------- ##
  2569. ac_ext=c
  2570. ac_cpp='$CPP $CPPFLAGS'
  2571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2574. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2575. ac_aux_dir=
  2576. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2577. if test -f "$ac_dir/install-sh"; then
  2578. ac_aux_dir=$ac_dir
  2579. ac_install_sh="$ac_aux_dir/install-sh -c"
  2580. break
  2581. elif test -f "$ac_dir/install.sh"; then
  2582. ac_aux_dir=$ac_dir
  2583. ac_install_sh="$ac_aux_dir/install.sh -c"
  2584. break
  2585. elif test -f "$ac_dir/shtool"; then
  2586. ac_aux_dir=$ac_dir
  2587. ac_install_sh="$ac_aux_dir/shtool install -c"
  2588. break
  2589. fi
  2590. done
  2591. if test -z "$ac_aux_dir"; then
  2592. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2593. fi
  2594. # These three variables are undocumented and unsupported,
  2595. # and are intended to be withdrawn in a future Autoconf release.
  2596. # They can cause serious problems if a builder's source tree is in a directory
  2597. # whose full name contains unusual characters.
  2598. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2599. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2600. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2601. orig_CFLAGS="$CFLAGS"
  2602. #
  2603. # Making releases:
  2604. # Edit include/SDL_version.h and change the version, then:
  2605. # SDL_MICRO_VERSION += 1;
  2606. # SDL_INTERFACE_AGE += 1;
  2607. # SDL_BINARY_AGE += 1;
  2608. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2609. # if backwards compatibility has been broken,
  2610. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2611. #
  2612. SDL_MAJOR_VERSION=2
  2613. SDL_MINOR_VERSION=0
  2614. SDL_MICRO_VERSION=16
  2615. SDL_INTERFACE_AGE=0
  2616. SDL_BINARY_AGE=16
  2617. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2618. # libtool versioning
  2619. case `pwd` in
  2620. *\ * | *\ *)
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2622. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2623. esac
  2624. macro_version='2.4.2'
  2625. macro_revision='1.3337'
  2626. ltmain="$ac_aux_dir/ltmain.sh"
  2627. # Make sure we can run config.sub.
  2628. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2629. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2631. $as_echo_n "checking build system type... " >&6; }
  2632. if ${ac_cv_build+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. ac_build_alias=$build_alias
  2636. test "x$ac_build_alias" = x &&
  2637. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2638. test "x$ac_build_alias" = x &&
  2639. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2640. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2641. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2642. fi
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2644. $as_echo "$ac_cv_build" >&6; }
  2645. case $ac_cv_build in
  2646. *-*-*) ;;
  2647. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2648. esac
  2649. build=$ac_cv_build
  2650. ac_save_IFS=$IFS; IFS='-'
  2651. set x $ac_cv_build
  2652. shift
  2653. build_cpu=$1
  2654. build_vendor=$2
  2655. shift; shift
  2656. # Remember, the first character of IFS is used to create $*,
  2657. # except with old shells:
  2658. build_os=$*
  2659. IFS=$ac_save_IFS
  2660. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2662. $as_echo_n "checking host system type... " >&6; }
  2663. if ${ac_cv_host+:} false; then :
  2664. $as_echo_n "(cached) " >&6
  2665. else
  2666. if test "x$host_alias" = x; then
  2667. ac_cv_host=$ac_cv_build
  2668. else
  2669. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2670. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2671. fi
  2672. fi
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2674. $as_echo "$ac_cv_host" >&6; }
  2675. case $ac_cv_host in
  2676. *-*-*) ;;
  2677. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2678. esac
  2679. host=$ac_cv_host
  2680. ac_save_IFS=$IFS; IFS='-'
  2681. set x $ac_cv_host
  2682. shift
  2683. host_cpu=$1
  2684. host_vendor=$2
  2685. shift; shift
  2686. # Remember, the first character of IFS is used to create $*,
  2687. # except with old shells:
  2688. host_os=$*
  2689. IFS=$ac_save_IFS
  2690. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2691. # Backslashify metacharacters that are still active within
  2692. # double-quoted strings.
  2693. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2694. # Same as above, but do not quote variable references.
  2695. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2696. # Sed substitution to delay expansion of an escaped shell variable in a
  2697. # double_quote_subst'ed string.
  2698. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2699. # Sed substitution to delay expansion of an escaped single quote.
  2700. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2701. # Sed substitution to avoid accidental globbing in evaled expressions
  2702. no_glob_subst='s/\*/\\\*/g'
  2703. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2704. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2705. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2707. $as_echo_n "checking how to print strings... " >&6; }
  2708. # Test print first, because it will be a builtin if present.
  2709. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2710. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2711. ECHO='print -r --'
  2712. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2713. ECHO='printf %s\n'
  2714. else
  2715. # Use this function as a fallback that always works.
  2716. func_fallback_echo ()
  2717. {
  2718. eval 'cat <<_LTECHO_EOF
  2719. $1
  2720. _LTECHO_EOF'
  2721. }
  2722. ECHO='func_fallback_echo'
  2723. fi
  2724. # func_echo_all arg...
  2725. # Invoke $ECHO with all args, space-separated.
  2726. func_echo_all ()
  2727. {
  2728. $ECHO ""
  2729. }
  2730. case "$ECHO" in
  2731. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2732. $as_echo "printf" >&6; } ;;
  2733. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2734. $as_echo "print -r" >&6; } ;;
  2735. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2736. $as_echo "cat" >&6; } ;;
  2737. esac
  2738. ac_ext=c
  2739. ac_cpp='$CPP $CPPFLAGS'
  2740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2743. if test -n "$ac_tool_prefix"; then
  2744. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2745. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2747. $as_echo_n "checking for $ac_word... " >&6; }
  2748. if ${ac_cv_prog_CC+:} false; then :
  2749. $as_echo_n "(cached) " >&6
  2750. else
  2751. if test -n "$CC"; then
  2752. ac_cv_prog_CC="$CC" # Let the user override the test.
  2753. else
  2754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2755. for as_dir in $PATH
  2756. do
  2757. IFS=$as_save_IFS
  2758. test -z "$as_dir" && as_dir=.
  2759. for ac_exec_ext in '' $ac_executable_extensions; do
  2760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2761. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2763. break 2
  2764. fi
  2765. done
  2766. done
  2767. IFS=$as_save_IFS
  2768. fi
  2769. fi
  2770. CC=$ac_cv_prog_CC
  2771. if test -n "$CC"; then
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2773. $as_echo "$CC" >&6; }
  2774. else
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2776. $as_echo "no" >&6; }
  2777. fi
  2778. fi
  2779. if test -z "$ac_cv_prog_CC"; then
  2780. ac_ct_CC=$CC
  2781. # Extract the first word of "gcc", so it can be a program name with args.
  2782. set dummy gcc; ac_word=$2
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2784. $as_echo_n "checking for $ac_word... " >&6; }
  2785. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2786. $as_echo_n "(cached) " >&6
  2787. else
  2788. if test -n "$ac_ct_CC"; then
  2789. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2790. else
  2791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792. for as_dir in $PATH
  2793. do
  2794. IFS=$as_save_IFS
  2795. test -z "$as_dir" && as_dir=.
  2796. for ac_exec_ext in '' $ac_executable_extensions; do
  2797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2798. ac_cv_prog_ac_ct_CC="gcc"
  2799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2800. break 2
  2801. fi
  2802. done
  2803. done
  2804. IFS=$as_save_IFS
  2805. fi
  2806. fi
  2807. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2808. if test -n "$ac_ct_CC"; then
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2810. $as_echo "$ac_ct_CC" >&6; }
  2811. else
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2813. $as_echo "no" >&6; }
  2814. fi
  2815. if test "x$ac_ct_CC" = x; then
  2816. CC=""
  2817. else
  2818. case $cross_compiling:$ac_tool_warned in
  2819. yes:)
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2822. ac_tool_warned=yes ;;
  2823. esac
  2824. CC=$ac_ct_CC
  2825. fi
  2826. else
  2827. CC="$ac_cv_prog_CC"
  2828. fi
  2829. if test -z "$CC"; then
  2830. if test -n "$ac_tool_prefix"; then
  2831. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2832. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2834. $as_echo_n "checking for $ac_word... " >&6; }
  2835. if ${ac_cv_prog_CC+:} false; then :
  2836. $as_echo_n "(cached) " >&6
  2837. else
  2838. if test -n "$CC"; then
  2839. ac_cv_prog_CC="$CC" # Let the user override the test.
  2840. else
  2841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2842. for as_dir in $PATH
  2843. do
  2844. IFS=$as_save_IFS
  2845. test -z "$as_dir" && as_dir=.
  2846. for ac_exec_ext in '' $ac_executable_extensions; do
  2847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2848. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2850. break 2
  2851. fi
  2852. done
  2853. done
  2854. IFS=$as_save_IFS
  2855. fi
  2856. fi
  2857. CC=$ac_cv_prog_CC
  2858. if test -n "$CC"; then
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2860. $as_echo "$CC" >&6; }
  2861. else
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2863. $as_echo "no" >&6; }
  2864. fi
  2865. fi
  2866. fi
  2867. if test -z "$CC"; then
  2868. # Extract the first word of "cc", so it can be a program name with args.
  2869. set dummy cc; ac_word=$2
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2871. $as_echo_n "checking for $ac_word... " >&6; }
  2872. if ${ac_cv_prog_CC+:} false; then :
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. if test -n "$CC"; then
  2876. ac_cv_prog_CC="$CC" # Let the user override the test.
  2877. else
  2878. ac_prog_rejected=no
  2879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2880. for as_dir in $PATH
  2881. do
  2882. IFS=$as_save_IFS
  2883. test -z "$as_dir" && as_dir=.
  2884. for ac_exec_ext in '' $ac_executable_extensions; do
  2885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2886. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2887. ac_prog_rejected=yes
  2888. continue
  2889. fi
  2890. ac_cv_prog_CC="cc"
  2891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2892. break 2
  2893. fi
  2894. done
  2895. done
  2896. IFS=$as_save_IFS
  2897. if test $ac_prog_rejected = yes; then
  2898. # We found a bogon in the path, so make sure we never use it.
  2899. set dummy $ac_cv_prog_CC
  2900. shift
  2901. if test $# != 0; then
  2902. # We chose a different compiler from the bogus one.
  2903. # However, it has the same basename, so the bogon will be chosen
  2904. # first if we set CC to just the basename; use the full file name.
  2905. shift
  2906. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2907. fi
  2908. fi
  2909. fi
  2910. fi
  2911. CC=$ac_cv_prog_CC
  2912. if test -n "$CC"; then
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2914. $as_echo "$CC" >&6; }
  2915. else
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2917. $as_echo "no" >&6; }
  2918. fi
  2919. fi
  2920. if test -z "$CC"; then
  2921. if test -n "$ac_tool_prefix"; then
  2922. for ac_prog in cl.exe
  2923. do
  2924. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2925. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2927. $as_echo_n "checking for $ac_word... " >&6; }
  2928. if ${ac_cv_prog_CC+:} false; then :
  2929. $as_echo_n "(cached) " >&6
  2930. else
  2931. if test -n "$CC"; then
  2932. ac_cv_prog_CC="$CC" # Let the user override the test.
  2933. else
  2934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2935. for as_dir in $PATH
  2936. do
  2937. IFS=$as_save_IFS
  2938. test -z "$as_dir" && as_dir=.
  2939. for ac_exec_ext in '' $ac_executable_extensions; do
  2940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2941. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2943. break 2
  2944. fi
  2945. done
  2946. done
  2947. IFS=$as_save_IFS
  2948. fi
  2949. fi
  2950. CC=$ac_cv_prog_CC
  2951. if test -n "$CC"; then
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2953. $as_echo "$CC" >&6; }
  2954. else
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2956. $as_echo "no" >&6; }
  2957. fi
  2958. test -n "$CC" && break
  2959. done
  2960. fi
  2961. if test -z "$CC"; then
  2962. ac_ct_CC=$CC
  2963. for ac_prog in cl.exe
  2964. do
  2965. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2966. set dummy $ac_prog; ac_word=$2
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2968. $as_echo_n "checking for $ac_word... " >&6; }
  2969. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. if test -n "$ac_ct_CC"; then
  2973. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2974. else
  2975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2976. for as_dir in $PATH
  2977. do
  2978. IFS=$as_save_IFS
  2979. test -z "$as_dir" && as_dir=.
  2980. for ac_exec_ext in '' $ac_executable_extensions; do
  2981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2982. ac_cv_prog_ac_ct_CC="$ac_prog"
  2983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2984. break 2
  2985. fi
  2986. done
  2987. done
  2988. IFS=$as_save_IFS
  2989. fi
  2990. fi
  2991. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2992. if test -n "$ac_ct_CC"; then
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2994. $as_echo "$ac_ct_CC" >&6; }
  2995. else
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2997. $as_echo "no" >&6; }
  2998. fi
  2999. test -n "$ac_ct_CC" && break
  3000. done
  3001. if test "x$ac_ct_CC" = x; then
  3002. CC=""
  3003. else
  3004. case $cross_compiling:$ac_tool_warned in
  3005. yes:)
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3007. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3008. ac_tool_warned=yes ;;
  3009. esac
  3010. CC=$ac_ct_CC
  3011. fi
  3012. fi
  3013. fi
  3014. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3015. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3016. as_fn_error $? "no acceptable C compiler found in \$PATH
  3017. See \`config.log' for more details" "$LINENO" 5; }
  3018. # Provide some information about the compiler.
  3019. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3020. set X $ac_compile
  3021. ac_compiler=$2
  3022. for ac_option in --version -v -V -qversion; do
  3023. { { ac_try="$ac_compiler $ac_option >&5"
  3024. case "(($ac_try" in
  3025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3026. *) ac_try_echo=$ac_try;;
  3027. esac
  3028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3029. $as_echo "$ac_try_echo"; } >&5
  3030. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3031. ac_status=$?
  3032. if test -s conftest.err; then
  3033. sed '10a\
  3034. ... rest of stderr output deleted ...
  3035. 10q' conftest.err >conftest.er1
  3036. cat conftest.er1 >&5
  3037. fi
  3038. rm -f conftest.er1 conftest.err
  3039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3040. test $ac_status = 0; }
  3041. done
  3042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h. */
  3044. int
  3045. main ()
  3046. {
  3047. ;
  3048. return 0;
  3049. }
  3050. _ACEOF
  3051. ac_clean_files_save=$ac_clean_files
  3052. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3053. # Try to create an executable without -o first, disregard a.out.
  3054. # It will help us diagnose broken compilers, and finding out an intuition
  3055. # of exeext.
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3057. $as_echo_n "checking whether the C compiler works... " >&6; }
  3058. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3059. # The possible output files:
  3060. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3061. ac_rmfiles=
  3062. for ac_file in $ac_files
  3063. do
  3064. case $ac_file in
  3065. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3066. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3067. esac
  3068. done
  3069. rm -f $ac_rmfiles
  3070. if { { ac_try="$ac_link_default"
  3071. case "(($ac_try" in
  3072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3073. *) ac_try_echo=$ac_try;;
  3074. esac
  3075. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3076. $as_echo "$ac_try_echo"; } >&5
  3077. (eval "$ac_link_default") 2>&5
  3078. ac_status=$?
  3079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3080. test $ac_status = 0; }; then :
  3081. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3082. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3083. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3084. # so that the user can short-circuit this test for compilers unknown to
  3085. # Autoconf.
  3086. for ac_file in $ac_files ''
  3087. do
  3088. test -f "$ac_file" || continue
  3089. case $ac_file in
  3090. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3091. ;;
  3092. [ab].out )
  3093. # We found the default executable, but exeext='' is most
  3094. # certainly right.
  3095. break;;
  3096. *.* )
  3097. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3098. then :; else
  3099. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3100. fi
  3101. # We set ac_cv_exeext here because the later test for it is not
  3102. # safe: cross compilers may not add the suffix if given an `-o'
  3103. # argument, so we may need to know it at that point already.
  3104. # Even if this section looks crufty: it has the advantage of
  3105. # actually working.
  3106. break;;
  3107. * )
  3108. break;;
  3109. esac
  3110. done
  3111. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3112. else
  3113. ac_file=''
  3114. fi
  3115. if test -z "$ac_file"; then :
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3117. $as_echo "no" >&6; }
  3118. $as_echo "$as_me: failed program was:" >&5
  3119. sed 's/^/| /' conftest.$ac_ext >&5
  3120. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3122. as_fn_error 77 "C compiler cannot create executables
  3123. See \`config.log' for more details" "$LINENO" 5; }
  3124. else
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3126. $as_echo "yes" >&6; }
  3127. fi
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3129. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3131. $as_echo "$ac_file" >&6; }
  3132. ac_exeext=$ac_cv_exeext
  3133. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3134. ac_clean_files=$ac_clean_files_save
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3136. $as_echo_n "checking for suffix of executables... " >&6; }
  3137. if { { ac_try="$ac_link"
  3138. case "(($ac_try" in
  3139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3140. *) ac_try_echo=$ac_try;;
  3141. esac
  3142. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3143. $as_echo "$ac_try_echo"; } >&5
  3144. (eval "$ac_link") 2>&5
  3145. ac_status=$?
  3146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3147. test $ac_status = 0; }; then :
  3148. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3149. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3150. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3151. # `rm'.
  3152. for ac_file in conftest.exe conftest conftest.*; do
  3153. test -f "$ac_file" || continue
  3154. case $ac_file in
  3155. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3156. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3157. break;;
  3158. * ) break;;
  3159. esac
  3160. done
  3161. else
  3162. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3163. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3164. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3165. See \`config.log' for more details" "$LINENO" 5; }
  3166. fi
  3167. rm -f conftest conftest$ac_cv_exeext
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3169. $as_echo "$ac_cv_exeext" >&6; }
  3170. rm -f conftest.$ac_ext
  3171. EXEEXT=$ac_cv_exeext
  3172. ac_exeext=$EXEEXT
  3173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3174. /* end confdefs.h. */
  3175. #include <stdio.h>
  3176. int
  3177. main ()
  3178. {
  3179. FILE *f = fopen ("conftest.out", "w");
  3180. return ferror (f) || fclose (f) != 0;
  3181. ;
  3182. return 0;
  3183. }
  3184. _ACEOF
  3185. ac_clean_files="$ac_clean_files conftest.out"
  3186. # Check that the compiler produces executables we can run. If not, either
  3187. # the compiler is broken, or we cross compile.
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3189. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3190. if test "$cross_compiling" != yes; then
  3191. { { ac_try="$ac_link"
  3192. case "(($ac_try" in
  3193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3194. *) ac_try_echo=$ac_try;;
  3195. esac
  3196. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3197. $as_echo "$ac_try_echo"; } >&5
  3198. (eval "$ac_link") 2>&5
  3199. ac_status=$?
  3200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3201. test $ac_status = 0; }
  3202. if { ac_try='./conftest$ac_cv_exeext'
  3203. { { case "(($ac_try" in
  3204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3205. *) ac_try_echo=$ac_try;;
  3206. esac
  3207. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3208. $as_echo "$ac_try_echo"; } >&5
  3209. (eval "$ac_try") 2>&5
  3210. ac_status=$?
  3211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3212. test $ac_status = 0; }; }; then
  3213. cross_compiling=no
  3214. else
  3215. if test "$cross_compiling" = maybe; then
  3216. cross_compiling=yes
  3217. else
  3218. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3219. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3220. as_fn_error $? "cannot run C compiled programs.
  3221. If you meant to cross compile, use \`--host'.
  3222. See \`config.log' for more details" "$LINENO" 5; }
  3223. fi
  3224. fi
  3225. fi
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3227. $as_echo "$cross_compiling" >&6; }
  3228. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3229. ac_clean_files=$ac_clean_files_save
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3231. $as_echo_n "checking for suffix of object files... " >&6; }
  3232. if ${ac_cv_objext+:} false; then :
  3233. $as_echo_n "(cached) " >&6
  3234. else
  3235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h. */
  3237. int
  3238. main ()
  3239. {
  3240. ;
  3241. return 0;
  3242. }
  3243. _ACEOF
  3244. rm -f conftest.o conftest.obj
  3245. if { { ac_try="$ac_compile"
  3246. case "(($ac_try" in
  3247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3248. *) ac_try_echo=$ac_try;;
  3249. esac
  3250. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3251. $as_echo "$ac_try_echo"; } >&5
  3252. (eval "$ac_compile") 2>&5
  3253. ac_status=$?
  3254. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3255. test $ac_status = 0; }; then :
  3256. for ac_file in conftest.o conftest.obj conftest.*; do
  3257. test -f "$ac_file" || continue;
  3258. case $ac_file in
  3259. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3260. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3261. break;;
  3262. esac
  3263. done
  3264. else
  3265. $as_echo "$as_me: failed program was:" >&5
  3266. sed 's/^/| /' conftest.$ac_ext >&5
  3267. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3268. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3269. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3270. See \`config.log' for more details" "$LINENO" 5; }
  3271. fi
  3272. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3273. fi
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3275. $as_echo "$ac_cv_objext" >&6; }
  3276. OBJEXT=$ac_cv_objext
  3277. ac_objext=$OBJEXT
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3279. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3280. if ${ac_cv_c_compiler_gnu+:} false; then :
  3281. $as_echo_n "(cached) " >&6
  3282. else
  3283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3284. /* end confdefs.h. */
  3285. int
  3286. main ()
  3287. {
  3288. #ifndef __GNUC__
  3289. choke me
  3290. #endif
  3291. ;
  3292. return 0;
  3293. }
  3294. _ACEOF
  3295. if ac_fn_c_try_compile "$LINENO"; then :
  3296. ac_compiler_gnu=yes
  3297. else
  3298. ac_compiler_gnu=no
  3299. fi
  3300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3301. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3302. fi
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3304. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3305. if test $ac_compiler_gnu = yes; then
  3306. GCC=yes
  3307. else
  3308. GCC=
  3309. fi
  3310. ac_test_CFLAGS=${CFLAGS+set}
  3311. ac_save_CFLAGS=$CFLAGS
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3313. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3314. if ${ac_cv_prog_cc_g+:} false; then :
  3315. $as_echo_n "(cached) " >&6
  3316. else
  3317. ac_save_c_werror_flag=$ac_c_werror_flag
  3318. ac_c_werror_flag=yes
  3319. ac_cv_prog_cc_g=no
  3320. CFLAGS="-g"
  3321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end confdefs.h. */
  3323. int
  3324. main ()
  3325. {
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. if ac_fn_c_try_compile "$LINENO"; then :
  3331. ac_cv_prog_cc_g=yes
  3332. else
  3333. CFLAGS=""
  3334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3335. /* end confdefs.h. */
  3336. int
  3337. main ()
  3338. {
  3339. ;
  3340. return 0;
  3341. }
  3342. _ACEOF
  3343. if ac_fn_c_try_compile "$LINENO"; then :
  3344. else
  3345. ac_c_werror_flag=$ac_save_c_werror_flag
  3346. CFLAGS="-g"
  3347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3348. /* end confdefs.h. */
  3349. int
  3350. main ()
  3351. {
  3352. ;
  3353. return 0;
  3354. }
  3355. _ACEOF
  3356. if ac_fn_c_try_compile "$LINENO"; then :
  3357. ac_cv_prog_cc_g=yes
  3358. fi
  3359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3360. fi
  3361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3362. fi
  3363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3364. ac_c_werror_flag=$ac_save_c_werror_flag
  3365. fi
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3367. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3368. if test "$ac_test_CFLAGS" = set; then
  3369. CFLAGS=$ac_save_CFLAGS
  3370. elif test $ac_cv_prog_cc_g = yes; then
  3371. if test "$GCC" = yes; then
  3372. CFLAGS="-g -O2"
  3373. else
  3374. CFLAGS="-g"
  3375. fi
  3376. else
  3377. if test "$GCC" = yes; then
  3378. CFLAGS="-O2"
  3379. else
  3380. CFLAGS=
  3381. fi
  3382. fi
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3384. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3385. if ${ac_cv_prog_cc_c89+:} false; then :
  3386. $as_echo_n "(cached) " >&6
  3387. else
  3388. ac_cv_prog_cc_c89=no
  3389. ac_save_CC=$CC
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. #include <stdarg.h>
  3393. #include <stdio.h>
  3394. struct stat;
  3395. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3396. struct buf { int x; };
  3397. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3398. static char *e (p, i)
  3399. char **p;
  3400. int i;
  3401. {
  3402. return p[i];
  3403. }
  3404. static char *f (char * (*g) (char **, int), char **p, ...)
  3405. {
  3406. char *s;
  3407. va_list v;
  3408. va_start (v,p);
  3409. s = g (p, va_arg (v,int));
  3410. va_end (v);
  3411. return s;
  3412. }
  3413. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3414. function prototypes and stuff, but not '\xHH' hex character constants.
  3415. These don't provoke an error unfortunately, instead are silently treated
  3416. as 'x'. The following induces an error, until -std is added to get
  3417. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3418. array size at least. It's necessary to write '\x00'==0 to get something
  3419. that's true only with -std. */
  3420. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3421. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3422. inside strings and character constants. */
  3423. #define FOO(x) 'x'
  3424. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3425. int test (int i, double x);
  3426. struct s1 {int (*f) (int a);};
  3427. struct s2 {int (*f) (double a);};
  3428. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3429. int argc;
  3430. char **argv;
  3431. int
  3432. main ()
  3433. {
  3434. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3435. ;
  3436. return 0;
  3437. }
  3438. _ACEOF
  3439. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3440. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3441. do
  3442. CC="$ac_save_CC $ac_arg"
  3443. if ac_fn_c_try_compile "$LINENO"; then :
  3444. ac_cv_prog_cc_c89=$ac_arg
  3445. fi
  3446. rm -f core conftest.err conftest.$ac_objext
  3447. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3448. done
  3449. rm -f conftest.$ac_ext
  3450. CC=$ac_save_CC
  3451. fi
  3452. # AC_CACHE_VAL
  3453. case "x$ac_cv_prog_cc_c89" in
  3454. x)
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3456. $as_echo "none needed" >&6; } ;;
  3457. xno)
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3459. $as_echo "unsupported" >&6; } ;;
  3460. *)
  3461. CC="$CC $ac_cv_prog_cc_c89"
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3463. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3464. esac
  3465. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3466. fi
  3467. ac_ext=c
  3468. ac_cpp='$CPP $CPPFLAGS'
  3469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3473. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3474. if ${ac_cv_path_SED+:} false; then :
  3475. $as_echo_n "(cached) " >&6
  3476. else
  3477. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3478. for ac_i in 1 2 3 4 5 6 7; do
  3479. ac_script="$ac_script$as_nl$ac_script"
  3480. done
  3481. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3482. { ac_script=; unset ac_script;}
  3483. if test -z "$SED"; then
  3484. ac_path_SED_found=false
  3485. # Loop through the user's path and test for each of PROGNAME-LIST
  3486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3487. for as_dir in $PATH
  3488. do
  3489. IFS=$as_save_IFS
  3490. test -z "$as_dir" && as_dir=.
  3491. for ac_prog in sed gsed; do
  3492. for ac_exec_ext in '' $ac_executable_extensions; do
  3493. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3494. as_fn_executable_p "$ac_path_SED" || continue
  3495. # Check for GNU ac_path_SED and select it if it is found.
  3496. # Check for GNU $ac_path_SED
  3497. case `"$ac_path_SED" --version 2>&1` in
  3498. *GNU*)
  3499. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3500. *)
  3501. ac_count=0
  3502. $as_echo_n 0123456789 >"conftest.in"
  3503. while :
  3504. do
  3505. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3506. mv "conftest.tmp" "conftest.in"
  3507. cp "conftest.in" "conftest.nl"
  3508. $as_echo '' >> "conftest.nl"
  3509. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3510. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3511. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3512. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3513. # Best one so far, save it but keep looking for a better one
  3514. ac_cv_path_SED="$ac_path_SED"
  3515. ac_path_SED_max=$ac_count
  3516. fi
  3517. # 10*(2^10) chars as input seems more than enough
  3518. test $ac_count -gt 10 && break
  3519. done
  3520. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3521. esac
  3522. $ac_path_SED_found && break 3
  3523. done
  3524. done
  3525. done
  3526. IFS=$as_save_IFS
  3527. if test -z "$ac_cv_path_SED"; then
  3528. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3529. fi
  3530. else
  3531. ac_cv_path_SED=$SED
  3532. fi
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3535. $as_echo "$ac_cv_path_SED" >&6; }
  3536. SED="$ac_cv_path_SED"
  3537. rm -f conftest.sed
  3538. test -z "$SED" && SED=sed
  3539. Xsed="$SED -e 1s/^X//"
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3541. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3542. if ${ac_cv_path_GREP+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if test -z "$GREP"; then
  3546. ac_path_GREP_found=false
  3547. # Loop through the user's path and test for each of PROGNAME-LIST
  3548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3549. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3550. do
  3551. IFS=$as_save_IFS
  3552. test -z "$as_dir" && as_dir=.
  3553. for ac_prog in grep ggrep; do
  3554. for ac_exec_ext in '' $ac_executable_extensions; do
  3555. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3556. as_fn_executable_p "$ac_path_GREP" || continue
  3557. # Check for GNU ac_path_GREP and select it if it is found.
  3558. # Check for GNU $ac_path_GREP
  3559. case `"$ac_path_GREP" --version 2>&1` in
  3560. *GNU*)
  3561. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3562. *)
  3563. ac_count=0
  3564. $as_echo_n 0123456789 >"conftest.in"
  3565. while :
  3566. do
  3567. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3568. mv "conftest.tmp" "conftest.in"
  3569. cp "conftest.in" "conftest.nl"
  3570. $as_echo 'GREP' >> "conftest.nl"
  3571. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3572. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3573. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3574. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3575. # Best one so far, save it but keep looking for a better one
  3576. ac_cv_path_GREP="$ac_path_GREP"
  3577. ac_path_GREP_max=$ac_count
  3578. fi
  3579. # 10*(2^10) chars as input seems more than enough
  3580. test $ac_count -gt 10 && break
  3581. done
  3582. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3583. esac
  3584. $ac_path_GREP_found && break 3
  3585. done
  3586. done
  3587. done
  3588. IFS=$as_save_IFS
  3589. if test -z "$ac_cv_path_GREP"; then
  3590. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3591. fi
  3592. else
  3593. ac_cv_path_GREP=$GREP
  3594. fi
  3595. fi
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3597. $as_echo "$ac_cv_path_GREP" >&6; }
  3598. GREP="$ac_cv_path_GREP"
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3600. $as_echo_n "checking for egrep... " >&6; }
  3601. if ${ac_cv_path_EGREP+:} false; then :
  3602. $as_echo_n "(cached) " >&6
  3603. else
  3604. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3605. then ac_cv_path_EGREP="$GREP -E"
  3606. else
  3607. if test -z "$EGREP"; then
  3608. ac_path_EGREP_found=false
  3609. # Loop through the user's path and test for each of PROGNAME-LIST
  3610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3611. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3612. do
  3613. IFS=$as_save_IFS
  3614. test -z "$as_dir" && as_dir=.
  3615. for ac_prog in egrep; do
  3616. for ac_exec_ext in '' $ac_executable_extensions; do
  3617. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3618. as_fn_executable_p "$ac_path_EGREP" || continue
  3619. # Check for GNU ac_path_EGREP and select it if it is found.
  3620. # Check for GNU $ac_path_EGREP
  3621. case `"$ac_path_EGREP" --version 2>&1` in
  3622. *GNU*)
  3623. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3624. *)
  3625. ac_count=0
  3626. $as_echo_n 0123456789 >"conftest.in"
  3627. while :
  3628. do
  3629. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3630. mv "conftest.tmp" "conftest.in"
  3631. cp "conftest.in" "conftest.nl"
  3632. $as_echo 'EGREP' >> "conftest.nl"
  3633. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3634. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3635. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3636. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3637. # Best one so far, save it but keep looking for a better one
  3638. ac_cv_path_EGREP="$ac_path_EGREP"
  3639. ac_path_EGREP_max=$ac_count
  3640. fi
  3641. # 10*(2^10) chars as input seems more than enough
  3642. test $ac_count -gt 10 && break
  3643. done
  3644. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3645. esac
  3646. $ac_path_EGREP_found && break 3
  3647. done
  3648. done
  3649. done
  3650. IFS=$as_save_IFS
  3651. if test -z "$ac_cv_path_EGREP"; then
  3652. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3653. fi
  3654. else
  3655. ac_cv_path_EGREP=$EGREP
  3656. fi
  3657. fi
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3660. $as_echo "$ac_cv_path_EGREP" >&6; }
  3661. EGREP="$ac_cv_path_EGREP"
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3663. $as_echo_n "checking for fgrep... " >&6; }
  3664. if ${ac_cv_path_FGREP+:} false; then :
  3665. $as_echo_n "(cached) " >&6
  3666. else
  3667. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3668. then ac_cv_path_FGREP="$GREP -F"
  3669. else
  3670. if test -z "$FGREP"; then
  3671. ac_path_FGREP_found=false
  3672. # Loop through the user's path and test for each of PROGNAME-LIST
  3673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3674. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3675. do
  3676. IFS=$as_save_IFS
  3677. test -z "$as_dir" && as_dir=.
  3678. for ac_prog in fgrep; do
  3679. for ac_exec_ext in '' $ac_executable_extensions; do
  3680. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3681. as_fn_executable_p "$ac_path_FGREP" || continue
  3682. # Check for GNU ac_path_FGREP and select it if it is found.
  3683. # Check for GNU $ac_path_FGREP
  3684. case `"$ac_path_FGREP" --version 2>&1` in
  3685. *GNU*)
  3686. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3687. *)
  3688. ac_count=0
  3689. $as_echo_n 0123456789 >"conftest.in"
  3690. while :
  3691. do
  3692. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3693. mv "conftest.tmp" "conftest.in"
  3694. cp "conftest.in" "conftest.nl"
  3695. $as_echo 'FGREP' >> "conftest.nl"
  3696. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3697. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3698. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3699. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3700. # Best one so far, save it but keep looking for a better one
  3701. ac_cv_path_FGREP="$ac_path_FGREP"
  3702. ac_path_FGREP_max=$ac_count
  3703. fi
  3704. # 10*(2^10) chars as input seems more than enough
  3705. test $ac_count -gt 10 && break
  3706. done
  3707. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3708. esac
  3709. $ac_path_FGREP_found && break 3
  3710. done
  3711. done
  3712. done
  3713. IFS=$as_save_IFS
  3714. if test -z "$ac_cv_path_FGREP"; then
  3715. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3716. fi
  3717. else
  3718. ac_cv_path_FGREP=$FGREP
  3719. fi
  3720. fi
  3721. fi
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3723. $as_echo "$ac_cv_path_FGREP" >&6; }
  3724. FGREP="$ac_cv_path_FGREP"
  3725. test -z "$GREP" && GREP=grep
  3726. # Check whether --with-gnu-ld was given.
  3727. if test "${with_gnu_ld+set}" = set; then :
  3728. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3729. else
  3730. with_gnu_ld=no
  3731. fi
  3732. ac_prog=ld
  3733. if test "$GCC" = yes; then
  3734. # Check if gcc -print-prog-name=ld gives a path.
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3736. $as_echo_n "checking for ld used by $CC... " >&6; }
  3737. case $host in
  3738. *-*-mingw*)
  3739. # gcc leaves a trailing carriage return which upsets mingw
  3740. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3741. *)
  3742. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3743. esac
  3744. case $ac_prog in
  3745. # Accept absolute paths.
  3746. [\\/]* | ?:[\\/]*)
  3747. re_direlt='/[^/][^/]*/\.\./'
  3748. # Canonicalize the pathname of ld
  3749. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3750. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3751. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3752. done
  3753. test -z "$LD" && LD="$ac_prog"
  3754. ;;
  3755. "")
  3756. # If it fails, then pretend we aren't using GCC.
  3757. ac_prog=ld
  3758. ;;
  3759. *)
  3760. # If it is relative, then search for the first ld in PATH.
  3761. with_gnu_ld=unknown
  3762. ;;
  3763. esac
  3764. elif test "$with_gnu_ld" = yes; then
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3766. $as_echo_n "checking for GNU ld... " >&6; }
  3767. else
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3769. $as_echo_n "checking for non-GNU ld... " >&6; }
  3770. fi
  3771. if ${lt_cv_path_LD+:} false; then :
  3772. $as_echo_n "(cached) " >&6
  3773. else
  3774. if test -z "$LD"; then
  3775. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3776. for ac_dir in $PATH; do
  3777. IFS="$lt_save_ifs"
  3778. test -z "$ac_dir" && ac_dir=.
  3779. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3780. lt_cv_path_LD="$ac_dir/$ac_prog"
  3781. # Check to see if the program is GNU ld. I'd rather use --version,
  3782. # but apparently some variants of GNU ld only accept -v.
  3783. # Break only if it was the GNU/non-GNU ld that we prefer.
  3784. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3785. *GNU* | *'with BFD'*)
  3786. test "$with_gnu_ld" != no && break
  3787. ;;
  3788. *)
  3789. test "$with_gnu_ld" != yes && break
  3790. ;;
  3791. esac
  3792. fi
  3793. done
  3794. IFS="$lt_save_ifs"
  3795. else
  3796. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3797. fi
  3798. fi
  3799. LD="$lt_cv_path_LD"
  3800. if test -n "$LD"; then
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3802. $as_echo "$LD" >&6; }
  3803. else
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3805. $as_echo "no" >&6; }
  3806. fi
  3807. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3809. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3810. if ${lt_cv_prog_gnu_ld+:} false; then :
  3811. $as_echo_n "(cached) " >&6
  3812. else
  3813. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3814. case `$LD -v 2>&1 </dev/null` in
  3815. *GNU* | *'with BFD'*)
  3816. lt_cv_prog_gnu_ld=yes
  3817. ;;
  3818. *)
  3819. lt_cv_prog_gnu_ld=no
  3820. ;;
  3821. esac
  3822. fi
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3824. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3825. with_gnu_ld=$lt_cv_prog_gnu_ld
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3827. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3828. if ${lt_cv_path_NM+:} false; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. if test -n "$NM"; then
  3832. # Let the user override the test.
  3833. lt_cv_path_NM="$NM"
  3834. else
  3835. lt_nm_to_check="${ac_tool_prefix}nm"
  3836. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3837. lt_nm_to_check="$lt_nm_to_check nm"
  3838. fi
  3839. for lt_tmp_nm in $lt_nm_to_check; do
  3840. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3841. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3842. IFS="$lt_save_ifs"
  3843. test -z "$ac_dir" && ac_dir=.
  3844. tmp_nm="$ac_dir/$lt_tmp_nm"
  3845. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3846. # Check to see if the nm accepts a BSD-compat flag.
  3847. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3848. # nm: unknown option "B" ignored
  3849. # Tru64's nm complains that /dev/null is an invalid object file
  3850. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3851. */dev/null* | *'Invalid file or object type'*)
  3852. lt_cv_path_NM="$tmp_nm -B"
  3853. break
  3854. ;;
  3855. *)
  3856. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3857. */dev/null*)
  3858. lt_cv_path_NM="$tmp_nm -p"
  3859. break
  3860. ;;
  3861. *)
  3862. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3863. continue # so that we can try to find one that supports BSD flags
  3864. ;;
  3865. esac
  3866. ;;
  3867. esac
  3868. fi
  3869. done
  3870. IFS="$lt_save_ifs"
  3871. done
  3872. : ${lt_cv_path_NM=no}
  3873. fi
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3876. $as_echo "$lt_cv_path_NM" >&6; }
  3877. if test "$lt_cv_path_NM" != "no"; then
  3878. NM="$lt_cv_path_NM"
  3879. else
  3880. # Didn't find any BSD compatible name lister, look for dumpbin.
  3881. if test -n "$DUMPBIN"; then :
  3882. # Let the user override the test.
  3883. else
  3884. if test -n "$ac_tool_prefix"; then
  3885. for ac_prog in dumpbin "link -dump"
  3886. do
  3887. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3888. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3890. $as_echo_n "checking for $ac_word... " >&6; }
  3891. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. if test -n "$DUMPBIN"; then
  3895. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3896. else
  3897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3898. for as_dir in $PATH
  3899. do
  3900. IFS=$as_save_IFS
  3901. test -z "$as_dir" && as_dir=.
  3902. for ac_exec_ext in '' $ac_executable_extensions; do
  3903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3904. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3906. break 2
  3907. fi
  3908. done
  3909. done
  3910. IFS=$as_save_IFS
  3911. fi
  3912. fi
  3913. DUMPBIN=$ac_cv_prog_DUMPBIN
  3914. if test -n "$DUMPBIN"; then
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3916. $as_echo "$DUMPBIN" >&6; }
  3917. else
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3919. $as_echo "no" >&6; }
  3920. fi
  3921. test -n "$DUMPBIN" && break
  3922. done
  3923. fi
  3924. if test -z "$DUMPBIN"; then
  3925. ac_ct_DUMPBIN=$DUMPBIN
  3926. for ac_prog in dumpbin "link -dump"
  3927. do
  3928. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3929. set dummy $ac_prog; ac_word=$2
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3931. $as_echo_n "checking for $ac_word... " >&6; }
  3932. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3933. $as_echo_n "(cached) " >&6
  3934. else
  3935. if test -n "$ac_ct_DUMPBIN"; then
  3936. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3937. else
  3938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3939. for as_dir in $PATH
  3940. do
  3941. IFS=$as_save_IFS
  3942. test -z "$as_dir" && as_dir=.
  3943. for ac_exec_ext in '' $ac_executable_extensions; do
  3944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3945. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3947. break 2
  3948. fi
  3949. done
  3950. done
  3951. IFS=$as_save_IFS
  3952. fi
  3953. fi
  3954. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3955. if test -n "$ac_ct_DUMPBIN"; then
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3957. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3958. else
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3960. $as_echo "no" >&6; }
  3961. fi
  3962. test -n "$ac_ct_DUMPBIN" && break
  3963. done
  3964. if test "x$ac_ct_DUMPBIN" = x; then
  3965. DUMPBIN=":"
  3966. else
  3967. case $cross_compiling:$ac_tool_warned in
  3968. yes:)
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3970. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3971. ac_tool_warned=yes ;;
  3972. esac
  3973. DUMPBIN=$ac_ct_DUMPBIN
  3974. fi
  3975. fi
  3976. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3977. *COFF*)
  3978. DUMPBIN="$DUMPBIN -symbols"
  3979. ;;
  3980. *)
  3981. DUMPBIN=:
  3982. ;;
  3983. esac
  3984. fi
  3985. if test "$DUMPBIN" != ":"; then
  3986. NM="$DUMPBIN"
  3987. fi
  3988. fi
  3989. test -z "$NM" && NM=nm
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3991. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3992. if ${lt_cv_nm_interface+:} false; then :
  3993. $as_echo_n "(cached) " >&6
  3994. else
  3995. lt_cv_nm_interface="BSD nm"
  3996. echo "int some_variable = 0;" > conftest.$ac_ext
  3997. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3998. (eval "$ac_compile" 2>conftest.err)
  3999. cat conftest.err >&5
  4000. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4001. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4002. cat conftest.err >&5
  4003. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4004. cat conftest.out >&5
  4005. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4006. lt_cv_nm_interface="MS dumpbin"
  4007. fi
  4008. rm -f conftest*
  4009. fi
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4011. $as_echo "$lt_cv_nm_interface" >&6; }
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4013. $as_echo_n "checking whether ln -s works... " >&6; }
  4014. LN_S=$as_ln_s
  4015. if test "$LN_S" = "ln -s"; then
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4017. $as_echo "yes" >&6; }
  4018. else
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4020. $as_echo "no, using $LN_S" >&6; }
  4021. fi
  4022. # find the maximum length of command line arguments
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4024. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4025. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4026. $as_echo_n "(cached) " >&6
  4027. else
  4028. i=0
  4029. teststring="ABCD"
  4030. case $build_os in
  4031. msdosdjgpp*)
  4032. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4033. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4034. # during glob expansion). Even if it were fixed, the result of this
  4035. # check would be larger than it should be.
  4036. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4037. ;;
  4038. gnu*)
  4039. # Under GNU Hurd, this test is not required because there is
  4040. # no limit to the length of command line arguments.
  4041. # Libtool will interpret -1 as no limit whatsoever
  4042. lt_cv_sys_max_cmd_len=-1;
  4043. ;;
  4044. cygwin* | mingw* | cegcc*)
  4045. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4046. # about 5 minutes as the teststring grows exponentially.
  4047. # Worse, since 9x/ME are not pre-emptively multitasking,
  4048. # you end up with a "frozen" computer, even though with patience
  4049. # the test eventually succeeds (with a max line length of 256k).
  4050. # Instead, let's just punt: use the minimum linelength reported by
  4051. # all of the supported platforms: 8192 (on NT/2K/XP).
  4052. lt_cv_sys_max_cmd_len=8192;
  4053. ;;
  4054. mint*)
  4055. # On MiNT this can take a long time and run out of memory.
  4056. lt_cv_sys_max_cmd_len=8192;
  4057. ;;
  4058. amigaos*)
  4059. # On AmigaOS with pdksh, this test takes hours, literally.
  4060. # So we just punt and use a minimum line length of 8192.
  4061. lt_cv_sys_max_cmd_len=8192;
  4062. ;;
  4063. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4064. # This has been around since 386BSD, at least. Likely further.
  4065. if test -x /sbin/sysctl; then
  4066. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4067. elif test -x /usr/sbin/sysctl; then
  4068. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4069. else
  4070. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4071. fi
  4072. # And add a safety zone
  4073. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4074. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4075. ;;
  4076. interix*)
  4077. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4078. lt_cv_sys_max_cmd_len=196608
  4079. ;;
  4080. os2*)
  4081. # The test takes a long time on OS/2.
  4082. lt_cv_sys_max_cmd_len=8192
  4083. ;;
  4084. osf*)
  4085. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4086. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4087. # nice to cause kernel panics so lets avoid the loop below.
  4088. # First set a reasonable default.
  4089. lt_cv_sys_max_cmd_len=16384
  4090. #
  4091. if test -x /sbin/sysconfig; then
  4092. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4093. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4094. esac
  4095. fi
  4096. ;;
  4097. sco3.2v5*)
  4098. lt_cv_sys_max_cmd_len=102400
  4099. ;;
  4100. sysv5* | sco5v6* | sysv4.2uw2*)
  4101. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4102. if test -n "$kargmax"; then
  4103. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4104. else
  4105. lt_cv_sys_max_cmd_len=32768
  4106. fi
  4107. ;;
  4108. *)
  4109. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4110. if test -n "$lt_cv_sys_max_cmd_len"; then
  4111. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4112. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4113. else
  4114. # Make teststring a little bigger before we do anything with it.
  4115. # a 1K string should be a reasonable start.
  4116. for i in 1 2 3 4 5 6 7 8 ; do
  4117. teststring=$teststring$teststring
  4118. done
  4119. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4120. # If test is not a shell built-in, we'll probably end up computing a
  4121. # maximum length that is only half of the actual maximum length, but
  4122. # we can't tell.
  4123. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4124. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4125. test $i != 17 # 1/2 MB should be enough
  4126. do
  4127. i=`expr $i + 1`
  4128. teststring=$teststring$teststring
  4129. done
  4130. # Only check the string length outside the loop.
  4131. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4132. teststring=
  4133. # Add a significant safety factor because C++ compilers can tack on
  4134. # massive amounts of additional arguments before passing them to the
  4135. # linker. It appears as though 1/2 is a usable value.
  4136. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4137. fi
  4138. ;;
  4139. esac
  4140. fi
  4141. if test -n $lt_cv_sys_max_cmd_len ; then
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4143. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4144. else
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4146. $as_echo "none" >&6; }
  4147. fi
  4148. max_cmd_len=$lt_cv_sys_max_cmd_len
  4149. : ${CP="cp -f"}
  4150. : ${MV="mv -f"}
  4151. : ${RM="rm -f"}
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4153. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4154. # Try some XSI features
  4155. xsi_shell=no
  4156. ( _lt_dummy="a/b/c"
  4157. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4158. = c,a/b,b/c, \
  4159. && eval 'test $(( 1 + 1 )) -eq 2 \
  4160. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4161. && xsi_shell=yes
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4163. $as_echo "$xsi_shell" >&6; }
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4165. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4166. lt_shell_append=no
  4167. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4168. >/dev/null 2>&1 \
  4169. && lt_shell_append=yes
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4171. $as_echo "$lt_shell_append" >&6; }
  4172. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4173. lt_unset=unset
  4174. else
  4175. lt_unset=false
  4176. fi
  4177. # test EBCDIC or ASCII
  4178. case `echo X|tr X '\101'` in
  4179. A) # ASCII based system
  4180. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4181. lt_SP2NL='tr \040 \012'
  4182. lt_NL2SP='tr \015\012 \040\040'
  4183. ;;
  4184. *) # EBCDIC based system
  4185. lt_SP2NL='tr \100 \n'
  4186. lt_NL2SP='tr \r\n \100\100'
  4187. ;;
  4188. esac
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4190. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4191. if ${lt_cv_to_host_file_cmd+:} false; then :
  4192. $as_echo_n "(cached) " >&6
  4193. else
  4194. case $host in
  4195. *-*-mingw* )
  4196. case $build in
  4197. *-*-mingw* ) # actually msys
  4198. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4199. ;;
  4200. *-*-cygwin* )
  4201. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4202. ;;
  4203. * ) # otherwise, assume *nix
  4204. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4205. ;;
  4206. esac
  4207. ;;
  4208. *-*-cygwin* )
  4209. case $build in
  4210. *-*-mingw* ) # actually msys
  4211. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4212. ;;
  4213. *-*-cygwin* )
  4214. lt_cv_to_host_file_cmd=func_convert_file_noop
  4215. ;;
  4216. * ) # otherwise, assume *nix
  4217. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4218. ;;
  4219. esac
  4220. ;;
  4221. * ) # unhandled hosts (and "normal" native builds)
  4222. lt_cv_to_host_file_cmd=func_convert_file_noop
  4223. ;;
  4224. esac
  4225. fi
  4226. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4228. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4230. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4231. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4232. $as_echo_n "(cached) " >&6
  4233. else
  4234. #assume ordinary cross tools, or native build.
  4235. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4236. case $host in
  4237. *-*-mingw* )
  4238. case $build in
  4239. *-*-mingw* ) # actually msys
  4240. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4241. ;;
  4242. esac
  4243. ;;
  4244. esac
  4245. fi
  4246. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4248. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4250. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4251. if ${lt_cv_ld_reload_flag+:} false; then :
  4252. $as_echo_n "(cached) " >&6
  4253. else
  4254. lt_cv_ld_reload_flag='-r'
  4255. fi
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4257. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4258. reload_flag=$lt_cv_ld_reload_flag
  4259. case $reload_flag in
  4260. "" | " "*) ;;
  4261. *) reload_flag=" $reload_flag" ;;
  4262. esac
  4263. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4264. case $host_os in
  4265. cygwin* | mingw* | pw32* | cegcc*)
  4266. if test "$GCC" != yes; then
  4267. reload_cmds=false
  4268. fi
  4269. ;;
  4270. darwin*)
  4271. if test "$GCC" = yes; then
  4272. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4273. else
  4274. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4275. fi
  4276. ;;
  4277. esac
  4278. if test -n "$ac_tool_prefix"; then
  4279. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4280. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4282. $as_echo_n "checking for $ac_word... " >&6; }
  4283. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. if test -n "$OBJDUMP"; then
  4287. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4288. else
  4289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4290. for as_dir in $PATH
  4291. do
  4292. IFS=$as_save_IFS
  4293. test -z "$as_dir" && as_dir=.
  4294. for ac_exec_ext in '' $ac_executable_extensions; do
  4295. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4296. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4298. break 2
  4299. fi
  4300. done
  4301. done
  4302. IFS=$as_save_IFS
  4303. fi
  4304. fi
  4305. OBJDUMP=$ac_cv_prog_OBJDUMP
  4306. if test -n "$OBJDUMP"; then
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4308. $as_echo "$OBJDUMP" >&6; }
  4309. else
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4311. $as_echo "no" >&6; }
  4312. fi
  4313. fi
  4314. if test -z "$ac_cv_prog_OBJDUMP"; then
  4315. ac_ct_OBJDUMP=$OBJDUMP
  4316. # Extract the first word of "objdump", so it can be a program name with args.
  4317. set dummy objdump; ac_word=$2
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4319. $as_echo_n "checking for $ac_word... " >&6; }
  4320. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4321. $as_echo_n "(cached) " >&6
  4322. else
  4323. if test -n "$ac_ct_OBJDUMP"; then
  4324. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4325. else
  4326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. for ac_exec_ext in '' $ac_executable_extensions; do
  4332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4333. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4335. break 2
  4336. fi
  4337. done
  4338. done
  4339. IFS=$as_save_IFS
  4340. fi
  4341. fi
  4342. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4343. if test -n "$ac_ct_OBJDUMP"; then
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4345. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4346. else
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4348. $as_echo "no" >&6; }
  4349. fi
  4350. if test "x$ac_ct_OBJDUMP" = x; then
  4351. OBJDUMP="false"
  4352. else
  4353. case $cross_compiling:$ac_tool_warned in
  4354. yes:)
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4357. ac_tool_warned=yes ;;
  4358. esac
  4359. OBJDUMP=$ac_ct_OBJDUMP
  4360. fi
  4361. else
  4362. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4363. fi
  4364. test -z "$OBJDUMP" && OBJDUMP=objdump
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4366. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4367. if ${lt_cv_deplibs_check_method+:} false; then :
  4368. $as_echo_n "(cached) " >&6
  4369. else
  4370. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4371. lt_cv_file_magic_test_file=
  4372. lt_cv_deplibs_check_method='unknown'
  4373. # Need to set the preceding variable on all platforms that support
  4374. # interlibrary dependencies.
  4375. # 'none' -- dependencies not supported.
  4376. # `unknown' -- same as none, but documents that we really don't know.
  4377. # 'pass_all' -- all dependencies passed with no checks.
  4378. # 'test_compile' -- check by making test program.
  4379. # 'file_magic [[regex]]' -- check by looking for files in library path
  4380. # which responds to the $file_magic_cmd with a given extended regex.
  4381. # If you have `file' or equivalent on your system and you're not sure
  4382. # whether `pass_all' will *always* work, you probably want this one.
  4383. case $host_os in
  4384. aix[4-9]*)
  4385. lt_cv_deplibs_check_method=pass_all
  4386. ;;
  4387. beos*)
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. bsdi[45]*)
  4391. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4392. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4393. lt_cv_file_magic_test_file=/shlib/libc.so
  4394. ;;
  4395. cygwin*)
  4396. # func_win32_libid is a shell function defined in ltmain.sh
  4397. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4398. lt_cv_file_magic_cmd='func_win32_libid'
  4399. lt_cv_deplibs_check_method=pass_all
  4400. ;;
  4401. mingw* | pw32*)
  4402. # Base MSYS/MinGW do not provide the 'file' command needed by
  4403. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4404. # unless we find 'file', for example because we are cross-compiling.
  4405. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4406. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4407. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4408. lt_cv_file_magic_cmd='func_win32_libid'
  4409. else
  4410. # Keep this pattern in sync with the one in func_win32_libid.
  4411. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4412. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4413. fi
  4414. lt_cv_deplibs_check_method=pass_all
  4415. ;;
  4416. cegcc*)
  4417. # use the weaker test based on 'objdump'. See mingw*.
  4418. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4419. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4420. ;;
  4421. darwin* | rhapsody*)
  4422. lt_cv_deplibs_check_method=pass_all
  4423. ;;
  4424. freebsd* | dragonfly*)
  4425. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4426. case $host_cpu in
  4427. i*86 )
  4428. # Not sure whether the presence of OpenBSD here was a mistake.
  4429. # Let's accept both of them until this is cleared up.
  4430. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4431. lt_cv_file_magic_cmd=/usr/bin/file
  4432. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4433. ;;
  4434. esac
  4435. else
  4436. lt_cv_deplibs_check_method=pass_all
  4437. fi
  4438. ;;
  4439. gnu*)
  4440. lt_cv_deplibs_check_method=pass_all
  4441. ;;
  4442. haiku*)
  4443. lt_cv_deplibs_check_method=pass_all
  4444. ;;
  4445. hpux10.20* | hpux11*)
  4446. lt_cv_file_magic_cmd=/usr/bin/file
  4447. case $host_cpu in
  4448. ia64*)
  4449. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4450. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4451. ;;
  4452. hppa*64*)
  4453. 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]'
  4454. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4455. ;;
  4456. *)
  4457. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4458. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4459. ;;
  4460. esac
  4461. ;;
  4462. interix[3-9]*)
  4463. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4464. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4465. ;;
  4466. irix5* | irix6* | nonstopux*)
  4467. case $LD in
  4468. *-32|*"-32 ") libmagic=32-bit;;
  4469. *-n32|*"-n32 ") libmagic=N32;;
  4470. *-64|*"-64 ") libmagic=64-bit;;
  4471. *) libmagic=never-match;;
  4472. esac
  4473. lt_cv_deplibs_check_method=pass_all
  4474. ;;
  4475. # This must be glibc/ELF.
  4476. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4477. lt_cv_deplibs_check_method=pass_all
  4478. ;;
  4479. netbsd*)
  4480. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4481. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4482. else
  4483. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4484. fi
  4485. ;;
  4486. newos6*)
  4487. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4488. lt_cv_file_magic_cmd=/usr/bin/file
  4489. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4490. ;;
  4491. *nto* | *qnx*)
  4492. lt_cv_deplibs_check_method=pass_all
  4493. ;;
  4494. openbsd*)
  4495. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4496. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4497. else
  4498. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4499. fi
  4500. ;;
  4501. osf3* | osf4* | osf5*)
  4502. lt_cv_deplibs_check_method=pass_all
  4503. ;;
  4504. rdos*)
  4505. lt_cv_deplibs_check_method=pass_all
  4506. ;;
  4507. solaris*)
  4508. lt_cv_deplibs_check_method=pass_all
  4509. ;;
  4510. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4511. lt_cv_deplibs_check_method=pass_all
  4512. ;;
  4513. sysv4 | sysv4.3*)
  4514. case $host_vendor in
  4515. motorola)
  4516. 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]'
  4517. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4518. ;;
  4519. ncr)
  4520. lt_cv_deplibs_check_method=pass_all
  4521. ;;
  4522. sequent)
  4523. lt_cv_file_magic_cmd='/bin/file'
  4524. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4525. ;;
  4526. sni)
  4527. lt_cv_file_magic_cmd='/bin/file'
  4528. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4529. lt_cv_file_magic_test_file=/lib/libc.so
  4530. ;;
  4531. siemens)
  4532. lt_cv_deplibs_check_method=pass_all
  4533. ;;
  4534. pc)
  4535. lt_cv_deplibs_check_method=pass_all
  4536. ;;
  4537. esac
  4538. ;;
  4539. tpf*)
  4540. lt_cv_deplibs_check_method=pass_all
  4541. ;;
  4542. esac
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4545. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4546. file_magic_glob=
  4547. want_nocaseglob=no
  4548. if test "$build" = "$host"; then
  4549. case $host_os in
  4550. mingw* | pw32*)
  4551. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4552. want_nocaseglob=yes
  4553. else
  4554. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4555. fi
  4556. ;;
  4557. esac
  4558. fi
  4559. file_magic_cmd=$lt_cv_file_magic_cmd
  4560. deplibs_check_method=$lt_cv_deplibs_check_method
  4561. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4562. if test -n "$ac_tool_prefix"; then
  4563. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4564. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4566. $as_echo_n "checking for $ac_word... " >&6; }
  4567. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. if test -n "$DLLTOOL"; then
  4571. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4572. else
  4573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4574. for as_dir in $PATH
  4575. do
  4576. IFS=$as_save_IFS
  4577. test -z "$as_dir" && as_dir=.
  4578. for ac_exec_ext in '' $ac_executable_extensions; do
  4579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4580. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4582. break 2
  4583. fi
  4584. done
  4585. done
  4586. IFS=$as_save_IFS
  4587. fi
  4588. fi
  4589. DLLTOOL=$ac_cv_prog_DLLTOOL
  4590. if test -n "$DLLTOOL"; then
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4592. $as_echo "$DLLTOOL" >&6; }
  4593. else
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4595. $as_echo "no" >&6; }
  4596. fi
  4597. fi
  4598. if test -z "$ac_cv_prog_DLLTOOL"; then
  4599. ac_ct_DLLTOOL=$DLLTOOL
  4600. # Extract the first word of "dlltool", so it can be a program name with args.
  4601. set dummy dlltool; ac_word=$2
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4603. $as_echo_n "checking for $ac_word... " >&6; }
  4604. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. if test -n "$ac_ct_DLLTOOL"; then
  4608. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4609. else
  4610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4611. for as_dir in $PATH
  4612. do
  4613. IFS=$as_save_IFS
  4614. test -z "$as_dir" && as_dir=.
  4615. for ac_exec_ext in '' $ac_executable_extensions; do
  4616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4617. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4619. break 2
  4620. fi
  4621. done
  4622. done
  4623. IFS=$as_save_IFS
  4624. fi
  4625. fi
  4626. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4627. if test -n "$ac_ct_DLLTOOL"; then
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4629. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4630. else
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4632. $as_echo "no" >&6; }
  4633. fi
  4634. if test "x$ac_ct_DLLTOOL" = x; then
  4635. DLLTOOL="false"
  4636. else
  4637. case $cross_compiling:$ac_tool_warned in
  4638. yes:)
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4641. ac_tool_warned=yes ;;
  4642. esac
  4643. DLLTOOL=$ac_ct_DLLTOOL
  4644. fi
  4645. else
  4646. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4647. fi
  4648. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4650. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4651. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4655. case $host_os in
  4656. cygwin* | mingw* | pw32* | cegcc*)
  4657. # two different shell functions defined in ltmain.sh
  4658. # decide which to use based on capabilities of $DLLTOOL
  4659. case `$DLLTOOL --help 2>&1` in
  4660. *--identify-strict*)
  4661. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4662. ;;
  4663. *)
  4664. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4665. ;;
  4666. esac
  4667. ;;
  4668. *)
  4669. # fallback: assume linklib IS sharedlib
  4670. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4671. ;;
  4672. esac
  4673. fi
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4675. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4676. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4677. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4678. if test -n "$ac_tool_prefix"; then
  4679. for ac_prog in ar
  4680. do
  4681. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4682. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4684. $as_echo_n "checking for $ac_word... " >&6; }
  4685. if ${ac_cv_prog_AR+:} false; then :
  4686. $as_echo_n "(cached) " >&6
  4687. else
  4688. if test -n "$AR"; then
  4689. ac_cv_prog_AR="$AR" # Let the user override the test.
  4690. else
  4691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4692. for as_dir in $PATH
  4693. do
  4694. IFS=$as_save_IFS
  4695. test -z "$as_dir" && as_dir=.
  4696. for ac_exec_ext in '' $ac_executable_extensions; do
  4697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4698. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4700. break 2
  4701. fi
  4702. done
  4703. done
  4704. IFS=$as_save_IFS
  4705. fi
  4706. fi
  4707. AR=$ac_cv_prog_AR
  4708. if test -n "$AR"; then
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4710. $as_echo "$AR" >&6; }
  4711. else
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4713. $as_echo "no" >&6; }
  4714. fi
  4715. test -n "$AR" && break
  4716. done
  4717. fi
  4718. if test -z "$AR"; then
  4719. ac_ct_AR=$AR
  4720. for ac_prog in ar
  4721. do
  4722. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4723. set dummy $ac_prog; ac_word=$2
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4725. $as_echo_n "checking for $ac_word... " >&6; }
  4726. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. if test -n "$ac_ct_AR"; then
  4730. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4731. else
  4732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4733. for as_dir in $PATH
  4734. do
  4735. IFS=$as_save_IFS
  4736. test -z "$as_dir" && as_dir=.
  4737. for ac_exec_ext in '' $ac_executable_extensions; do
  4738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4739. ac_cv_prog_ac_ct_AR="$ac_prog"
  4740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4741. break 2
  4742. fi
  4743. done
  4744. done
  4745. IFS=$as_save_IFS
  4746. fi
  4747. fi
  4748. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4749. if test -n "$ac_ct_AR"; then
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4751. $as_echo "$ac_ct_AR" >&6; }
  4752. else
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4754. $as_echo "no" >&6; }
  4755. fi
  4756. test -n "$ac_ct_AR" && break
  4757. done
  4758. if test "x$ac_ct_AR" = x; then
  4759. AR="false"
  4760. else
  4761. case $cross_compiling:$ac_tool_warned in
  4762. yes:)
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4765. ac_tool_warned=yes ;;
  4766. esac
  4767. AR=$ac_ct_AR
  4768. fi
  4769. fi
  4770. : ${AR=ar}
  4771. : ${AR_FLAGS=cru}
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4773. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4774. if ${lt_cv_ar_at_file+:} false; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. lt_cv_ar_at_file=no
  4778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4779. /* end confdefs.h. */
  4780. int
  4781. main ()
  4782. {
  4783. ;
  4784. return 0;
  4785. }
  4786. _ACEOF
  4787. if ac_fn_c_try_compile "$LINENO"; then :
  4788. echo conftest.$ac_objext > conftest.lst
  4789. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4790. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4791. (eval $lt_ar_try) 2>&5
  4792. ac_status=$?
  4793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4794. test $ac_status = 0; }
  4795. if test "$ac_status" -eq 0; then
  4796. # Ensure the archiver fails upon bogus file names.
  4797. rm -f conftest.$ac_objext libconftest.a
  4798. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4799. (eval $lt_ar_try) 2>&5
  4800. ac_status=$?
  4801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4802. test $ac_status = 0; }
  4803. if test "$ac_status" -ne 0; then
  4804. lt_cv_ar_at_file=@
  4805. fi
  4806. fi
  4807. rm -f conftest.* libconftest.a
  4808. fi
  4809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4810. fi
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4812. $as_echo "$lt_cv_ar_at_file" >&6; }
  4813. if test "x$lt_cv_ar_at_file" = xno; then
  4814. archiver_list_spec=
  4815. else
  4816. archiver_list_spec=$lt_cv_ar_at_file
  4817. fi
  4818. if test -n "$ac_tool_prefix"; then
  4819. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4820. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4822. $as_echo_n "checking for $ac_word... " >&6; }
  4823. if ${ac_cv_prog_STRIP+:} false; then :
  4824. $as_echo_n "(cached) " >&6
  4825. else
  4826. if test -n "$STRIP"; then
  4827. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4828. else
  4829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4830. for as_dir in $PATH
  4831. do
  4832. IFS=$as_save_IFS
  4833. test -z "$as_dir" && as_dir=.
  4834. for ac_exec_ext in '' $ac_executable_extensions; do
  4835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4836. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4838. break 2
  4839. fi
  4840. done
  4841. done
  4842. IFS=$as_save_IFS
  4843. fi
  4844. fi
  4845. STRIP=$ac_cv_prog_STRIP
  4846. if test -n "$STRIP"; then
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4848. $as_echo "$STRIP" >&6; }
  4849. else
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4851. $as_echo "no" >&6; }
  4852. fi
  4853. fi
  4854. if test -z "$ac_cv_prog_STRIP"; then
  4855. ac_ct_STRIP=$STRIP
  4856. # Extract the first word of "strip", so it can be a program name with args.
  4857. set dummy strip; ac_word=$2
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4859. $as_echo_n "checking for $ac_word... " >&6; }
  4860. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4861. $as_echo_n "(cached) " >&6
  4862. else
  4863. if test -n "$ac_ct_STRIP"; then
  4864. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4865. else
  4866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4867. for as_dir in $PATH
  4868. do
  4869. IFS=$as_save_IFS
  4870. test -z "$as_dir" && as_dir=.
  4871. for ac_exec_ext in '' $ac_executable_extensions; do
  4872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4873. ac_cv_prog_ac_ct_STRIP="strip"
  4874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4875. break 2
  4876. fi
  4877. done
  4878. done
  4879. IFS=$as_save_IFS
  4880. fi
  4881. fi
  4882. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4883. if test -n "$ac_ct_STRIP"; then
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4885. $as_echo "$ac_ct_STRIP" >&6; }
  4886. else
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4888. $as_echo "no" >&6; }
  4889. fi
  4890. if test "x$ac_ct_STRIP" = x; then
  4891. STRIP=":"
  4892. else
  4893. case $cross_compiling:$ac_tool_warned in
  4894. yes:)
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4897. ac_tool_warned=yes ;;
  4898. esac
  4899. STRIP=$ac_ct_STRIP
  4900. fi
  4901. else
  4902. STRIP="$ac_cv_prog_STRIP"
  4903. fi
  4904. test -z "$STRIP" && STRIP=:
  4905. if test -n "$ac_tool_prefix"; then
  4906. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4907. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4909. $as_echo_n "checking for $ac_word... " >&6; }
  4910. if ${ac_cv_prog_RANLIB+:} false; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. if test -n "$RANLIB"; then
  4914. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4915. else
  4916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4917. for as_dir in $PATH
  4918. do
  4919. IFS=$as_save_IFS
  4920. test -z "$as_dir" && as_dir=.
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4923. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4925. break 2
  4926. fi
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. fi
  4931. fi
  4932. RANLIB=$ac_cv_prog_RANLIB
  4933. if test -n "$RANLIB"; then
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4935. $as_echo "$RANLIB" >&6; }
  4936. else
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4938. $as_echo "no" >&6; }
  4939. fi
  4940. fi
  4941. if test -z "$ac_cv_prog_RANLIB"; then
  4942. ac_ct_RANLIB=$RANLIB
  4943. # Extract the first word of "ranlib", so it can be a program name with args.
  4944. set dummy ranlib; ac_word=$2
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4946. $as_echo_n "checking for $ac_word... " >&6; }
  4947. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. if test -n "$ac_ct_RANLIB"; then
  4951. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4952. else
  4953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4954. for as_dir in $PATH
  4955. do
  4956. IFS=$as_save_IFS
  4957. test -z "$as_dir" && as_dir=.
  4958. for ac_exec_ext in '' $ac_executable_extensions; do
  4959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4960. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4962. break 2
  4963. fi
  4964. done
  4965. done
  4966. IFS=$as_save_IFS
  4967. fi
  4968. fi
  4969. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4970. if test -n "$ac_ct_RANLIB"; then
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4972. $as_echo "$ac_ct_RANLIB" >&6; }
  4973. else
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4975. $as_echo "no" >&6; }
  4976. fi
  4977. if test "x$ac_ct_RANLIB" = x; then
  4978. RANLIB=":"
  4979. else
  4980. case $cross_compiling:$ac_tool_warned in
  4981. yes:)
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4983. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4984. ac_tool_warned=yes ;;
  4985. esac
  4986. RANLIB=$ac_ct_RANLIB
  4987. fi
  4988. else
  4989. RANLIB="$ac_cv_prog_RANLIB"
  4990. fi
  4991. test -z "$RANLIB" && RANLIB=:
  4992. # Determine commands to create old-style static archives.
  4993. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4994. old_postinstall_cmds='chmod 644 $oldlib'
  4995. old_postuninstall_cmds=
  4996. if test -n "$RANLIB"; then
  4997. case $host_os in
  4998. openbsd*)
  4999. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5000. ;;
  5001. *)
  5002. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5003. ;;
  5004. esac
  5005. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5006. fi
  5007. case $host_os in
  5008. darwin*)
  5009. lock_old_archive_extraction=yes ;;
  5010. *)
  5011. lock_old_archive_extraction=no ;;
  5012. esac
  5013. for ac_prog in gawk mawk nawk awk
  5014. do
  5015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5016. set dummy $ac_prog; ac_word=$2
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5018. $as_echo_n "checking for $ac_word... " >&6; }
  5019. if ${ac_cv_prog_AWK+:} false; then :
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. if test -n "$AWK"; then
  5023. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5024. else
  5025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5026. for as_dir in $PATH
  5027. do
  5028. IFS=$as_save_IFS
  5029. test -z "$as_dir" && as_dir=.
  5030. for ac_exec_ext in '' $ac_executable_extensions; do
  5031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5032. ac_cv_prog_AWK="$ac_prog"
  5033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5034. break 2
  5035. fi
  5036. done
  5037. done
  5038. IFS=$as_save_IFS
  5039. fi
  5040. fi
  5041. AWK=$ac_cv_prog_AWK
  5042. if test -n "$AWK"; then
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5044. $as_echo "$AWK" >&6; }
  5045. else
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5047. $as_echo "no" >&6; }
  5048. fi
  5049. test -n "$AWK" && break
  5050. done
  5051. # If no C compiler was specified, use CC.
  5052. LTCC=${LTCC-"$CC"}
  5053. # If no C compiler flags were specified, use CFLAGS.
  5054. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5055. # Allow CC to be a program name with arguments.
  5056. compiler=$CC
  5057. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5059. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5060. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. # These are sane defaults that work on at least a few old systems.
  5064. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5065. # Character class describing NM global symbol codes.
  5066. symcode='[BCDEGRST]'
  5067. # Regexp to match symbols that can be accessed directly from C.
  5068. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5069. # Define system-specific variables.
  5070. case $host_os in
  5071. aix*)
  5072. symcode='[BCDT]'
  5073. ;;
  5074. cygwin* | mingw* | pw32* | cegcc*)
  5075. symcode='[ABCDGISTW]'
  5076. ;;
  5077. hpux*)
  5078. if test "$host_cpu" = ia64; then
  5079. symcode='[ABCDEGRST]'
  5080. fi
  5081. ;;
  5082. irix* | nonstopux*)
  5083. symcode='[BCDEGRST]'
  5084. ;;
  5085. osf*)
  5086. symcode='[BCDEGQRST]'
  5087. ;;
  5088. solaris*)
  5089. symcode='[BDRT]'
  5090. ;;
  5091. sco3.2v5*)
  5092. symcode='[DT]'
  5093. ;;
  5094. sysv4.2uw2*)
  5095. symcode='[DT]'
  5096. ;;
  5097. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5098. symcode='[ABDT]'
  5099. ;;
  5100. sysv4)
  5101. symcode='[DFNSTU]'
  5102. ;;
  5103. esac
  5104. # If we're using GNU nm, then use its standard symbol codes.
  5105. case `$NM -V 2>&1` in
  5106. *GNU* | *'with BFD'*)
  5107. symcode='[ABCDGIRSTW]' ;;
  5108. esac
  5109. # Transform an extracted symbol line into a proper C declaration.
  5110. # Some systems (esp. on ia64) link data and code symbols differently,
  5111. # so use this general approach.
  5112. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5113. # Transform an extracted symbol line into symbol name and symbol address
  5114. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5115. 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'"
  5116. # Handle CRLF in mingw tool chain
  5117. opt_cr=
  5118. case $build_os in
  5119. mingw*)
  5120. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5121. ;;
  5122. esac
  5123. # Try without a prefix underscore, then with it.
  5124. for ac_symprfx in "" "_"; do
  5125. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5126. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5127. # Write the raw and C identifiers.
  5128. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5129. # Fake it for dumpbin and say T for any non-static function
  5130. # and D for any global variable.
  5131. # Also find C++ and __fastcall symbols from MSVC++,
  5132. # which start with @ or ?.
  5133. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5134. " {last_section=section; section=\$ 3};"\
  5135. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5136. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5137. " \$ 0!~/External *\|/{next};"\
  5138. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5139. " {if(hide[section]) next};"\
  5140. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5141. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5142. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5143. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5144. " ' prfx=^$ac_symprfx"
  5145. else
  5146. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5147. fi
  5148. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5149. # Check to see that the pipe works correctly.
  5150. pipe_works=no
  5151. rm -f conftest*
  5152. cat > conftest.$ac_ext <<_LT_EOF
  5153. #ifdef __cplusplus
  5154. extern "C" {
  5155. #endif
  5156. char nm_test_var;
  5157. void nm_test_func(void);
  5158. void nm_test_func(void){}
  5159. #ifdef __cplusplus
  5160. }
  5161. #endif
  5162. int main(){nm_test_var='a';nm_test_func();return(0);}
  5163. _LT_EOF
  5164. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5165. (eval $ac_compile) 2>&5
  5166. ac_status=$?
  5167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5168. test $ac_status = 0; }; then
  5169. # Now try to grab the symbols.
  5170. nlist=conftest.nm
  5171. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5172. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5173. ac_status=$?
  5174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5175. test $ac_status = 0; } && test -s "$nlist"; then
  5176. # Try sorting and uniquifying the output.
  5177. if sort "$nlist" | uniq > "$nlist"T; then
  5178. mv -f "$nlist"T "$nlist"
  5179. else
  5180. rm -f "$nlist"T
  5181. fi
  5182. # Make sure that we snagged all the symbols we need.
  5183. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5184. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5185. cat <<_LT_EOF > conftest.$ac_ext
  5186. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5187. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5188. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5189. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5190. # define LT_DLSYM_CONST
  5191. #elif defined(__osf__)
  5192. /* This system does not cope well with relocations in const data. */
  5193. # define LT_DLSYM_CONST
  5194. #else
  5195. # define LT_DLSYM_CONST const
  5196. #endif
  5197. #ifdef __cplusplus
  5198. extern "C" {
  5199. #endif
  5200. _LT_EOF
  5201. # Now generate the symbol file.
  5202. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5203. cat <<_LT_EOF >> conftest.$ac_ext
  5204. /* The mapping between symbol names and symbols. */
  5205. LT_DLSYM_CONST struct {
  5206. const char *name;
  5207. void *address;
  5208. }
  5209. lt__PROGRAM__LTX_preloaded_symbols[] =
  5210. {
  5211. { "@PROGRAM@", (void *) 0 },
  5212. _LT_EOF
  5213. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5214. cat <<\_LT_EOF >> conftest.$ac_ext
  5215. {0, (void *) 0}
  5216. };
  5217. /* This works around a problem in FreeBSD linker */
  5218. #ifdef FREEBSD_WORKAROUND
  5219. static const void *lt_preloaded_setup() {
  5220. return lt__PROGRAM__LTX_preloaded_symbols;
  5221. }
  5222. #endif
  5223. #ifdef __cplusplus
  5224. }
  5225. #endif
  5226. _LT_EOF
  5227. # Now try linking the two files.
  5228. mv conftest.$ac_objext conftstm.$ac_objext
  5229. lt_globsym_save_LIBS=$LIBS
  5230. lt_globsym_save_CFLAGS=$CFLAGS
  5231. LIBS="conftstm.$ac_objext"
  5232. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5233. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5234. (eval $ac_link) 2>&5
  5235. ac_status=$?
  5236. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5237. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5238. pipe_works=yes
  5239. fi
  5240. LIBS=$lt_globsym_save_LIBS
  5241. CFLAGS=$lt_globsym_save_CFLAGS
  5242. else
  5243. echo "cannot find nm_test_func in $nlist" >&5
  5244. fi
  5245. else
  5246. echo "cannot find nm_test_var in $nlist" >&5
  5247. fi
  5248. else
  5249. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5250. fi
  5251. else
  5252. echo "$progname: failed program was:" >&5
  5253. cat conftest.$ac_ext >&5
  5254. fi
  5255. rm -rf conftest* conftst*
  5256. # Do not use the global_symbol_pipe unless it works.
  5257. if test "$pipe_works" = yes; then
  5258. break
  5259. else
  5260. lt_cv_sys_global_symbol_pipe=
  5261. fi
  5262. done
  5263. fi
  5264. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5265. lt_cv_sys_global_symbol_to_cdecl=
  5266. fi
  5267. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5269. $as_echo "failed" >&6; }
  5270. else
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5272. $as_echo "ok" >&6; }
  5273. fi
  5274. # Response file support.
  5275. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5276. nm_file_list_spec='@'
  5277. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5278. nm_file_list_spec='@'
  5279. fi
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5281. $as_echo_n "checking for sysroot... " >&6; }
  5282. # Check whether --with-sysroot was given.
  5283. if test "${with_sysroot+set}" = set; then :
  5284. withval=$with_sysroot;
  5285. else
  5286. with_sysroot=no
  5287. fi
  5288. lt_sysroot=
  5289. case ${with_sysroot} in #(
  5290. yes)
  5291. if test "$GCC" = yes; then
  5292. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5293. fi
  5294. ;; #(
  5295. /*)
  5296. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5297. ;; #(
  5298. no|'')
  5299. ;; #(
  5300. *)
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5302. $as_echo "${with_sysroot}" >&6; }
  5303. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5304. ;;
  5305. esac
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5307. $as_echo "${lt_sysroot:-no}" >&6; }
  5308. # Check whether --enable-libtool-lock was given.
  5309. if test "${enable_libtool_lock+set}" = set; then :
  5310. enableval=$enable_libtool_lock;
  5311. fi
  5312. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5313. # Some flags need to be propagated to the compiler or linker for good
  5314. # libtool support.
  5315. case $host in
  5316. ia64-*-hpux*)
  5317. # Find out which ABI we are using.
  5318. echo 'int i;' > conftest.$ac_ext
  5319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5320. (eval $ac_compile) 2>&5
  5321. ac_status=$?
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5323. test $ac_status = 0; }; then
  5324. case `/usr/bin/file conftest.$ac_objext` in
  5325. *ELF-32*)
  5326. HPUX_IA64_MODE="32"
  5327. ;;
  5328. *ELF-64*)
  5329. HPUX_IA64_MODE="64"
  5330. ;;
  5331. esac
  5332. fi
  5333. rm -rf conftest*
  5334. ;;
  5335. *-*-irix6*)
  5336. # Find out which ABI we are using.
  5337. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5338. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5339. (eval $ac_compile) 2>&5
  5340. ac_status=$?
  5341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5342. test $ac_status = 0; }; then
  5343. if test "$lt_cv_prog_gnu_ld" = yes; then
  5344. case `/usr/bin/file conftest.$ac_objext` in
  5345. *32-bit*)
  5346. LD="${LD-ld} -melf32bsmip"
  5347. ;;
  5348. *N32*)
  5349. LD="${LD-ld} -melf32bmipn32"
  5350. ;;
  5351. *64-bit*)
  5352. LD="${LD-ld} -melf64bmip"
  5353. ;;
  5354. esac
  5355. else
  5356. case `/usr/bin/file conftest.$ac_objext` in
  5357. *32-bit*)
  5358. LD="${LD-ld} -32"
  5359. ;;
  5360. *N32*)
  5361. LD="${LD-ld} -n32"
  5362. ;;
  5363. *64-bit*)
  5364. LD="${LD-ld} -64"
  5365. ;;
  5366. esac
  5367. fi
  5368. fi
  5369. rm -rf conftest*
  5370. ;;
  5371. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5372. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5373. # Find out which ABI we are using.
  5374. echo 'int i;' > conftest.$ac_ext
  5375. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5376. (eval $ac_compile) 2>&5
  5377. ac_status=$?
  5378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5379. test $ac_status = 0; }; then
  5380. case `/usr/bin/file conftest.o` in
  5381. *32-bit*)
  5382. case $host in
  5383. x86_64-*kfreebsd*-gnu)
  5384. LD="${LD-ld} -m elf_i386_fbsd"
  5385. ;;
  5386. x86_64-*linux*)
  5387. LD="${LD-ld} -m elf_i386"
  5388. ;;
  5389. ppc64-*linux*|powerpc64-*linux*)
  5390. LD="${LD-ld} -m elf32ppclinux"
  5391. ;;
  5392. s390x-*linux*)
  5393. LD="${LD-ld} -m elf_s390"
  5394. ;;
  5395. sparc64-*linux*)
  5396. LD="${LD-ld} -m elf32_sparc"
  5397. ;;
  5398. esac
  5399. ;;
  5400. *64-bit*)
  5401. case $host in
  5402. x86_64-*kfreebsd*-gnu)
  5403. LD="${LD-ld} -m elf_x86_64_fbsd"
  5404. ;;
  5405. x86_64-*linux*)
  5406. LD="${LD-ld} -m elf_x86_64"
  5407. ;;
  5408. powerpc64le-*linux*)
  5409. LD="${LD-ld} -m elf64lppc"
  5410. ;;
  5411. powerpc64-*linux*)
  5412. LD="${LD-ld} -m elf64ppc"
  5413. ;;
  5414. s390*-*linux*|s390*-*tpf*)
  5415. LD="${LD-ld} -m elf64_s390"
  5416. ;;
  5417. sparc*-*linux*)
  5418. LD="${LD-ld} -m elf64_sparc"
  5419. ;;
  5420. esac
  5421. ;;
  5422. esac
  5423. fi
  5424. rm -rf conftest*
  5425. ;;
  5426. *-*-sco3.2v5*)
  5427. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5428. SAVE_CFLAGS="$CFLAGS"
  5429. CFLAGS="$CFLAGS -belf"
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5431. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5432. if ${lt_cv_cc_needs_belf+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. ac_ext=c
  5436. ac_cpp='$CPP $CPPFLAGS'
  5437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5441. /* end confdefs.h. */
  5442. int
  5443. main ()
  5444. {
  5445. ;
  5446. return 0;
  5447. }
  5448. _ACEOF
  5449. if ac_fn_c_try_link "$LINENO"; then :
  5450. lt_cv_cc_needs_belf=yes
  5451. else
  5452. lt_cv_cc_needs_belf=no
  5453. fi
  5454. rm -f core conftest.err conftest.$ac_objext \
  5455. conftest$ac_exeext conftest.$ac_ext
  5456. ac_ext=c
  5457. ac_cpp='$CPP $CPPFLAGS'
  5458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5461. fi
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5463. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5464. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5465. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5466. CFLAGS="$SAVE_CFLAGS"
  5467. fi
  5468. ;;
  5469. *-*solaris*)
  5470. # Find out which ABI we are using.
  5471. echo 'int i;' > conftest.$ac_ext
  5472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5473. (eval $ac_compile) 2>&5
  5474. ac_status=$?
  5475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5476. test $ac_status = 0; }; then
  5477. case `/usr/bin/file conftest.o` in
  5478. *64-bit*)
  5479. case $lt_cv_prog_gnu_ld in
  5480. yes*)
  5481. case $host in
  5482. i?86-*-solaris*)
  5483. LD="${LD-ld} -m elf_x86_64"
  5484. ;;
  5485. sparc*-*-solaris*)
  5486. LD="${LD-ld} -m elf64_sparc"
  5487. ;;
  5488. esac
  5489. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5490. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5491. LD="${LD-ld}_sol2"
  5492. fi
  5493. ;;
  5494. *)
  5495. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5496. LD="${LD-ld} -64"
  5497. fi
  5498. ;;
  5499. esac
  5500. ;;
  5501. esac
  5502. fi
  5503. rm -rf conftest*
  5504. ;;
  5505. esac
  5506. need_locks="$enable_libtool_lock"
  5507. if test -n "$ac_tool_prefix"; then
  5508. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5509. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5511. $as_echo_n "checking for $ac_word... " >&6; }
  5512. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5513. $as_echo_n "(cached) " >&6
  5514. else
  5515. if test -n "$MANIFEST_TOOL"; then
  5516. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5517. else
  5518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5519. for as_dir in $PATH
  5520. do
  5521. IFS=$as_save_IFS
  5522. test -z "$as_dir" && as_dir=.
  5523. for ac_exec_ext in '' $ac_executable_extensions; do
  5524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5525. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5527. break 2
  5528. fi
  5529. done
  5530. done
  5531. IFS=$as_save_IFS
  5532. fi
  5533. fi
  5534. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5535. if test -n "$MANIFEST_TOOL"; then
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5537. $as_echo "$MANIFEST_TOOL" >&6; }
  5538. else
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5540. $as_echo "no" >&6; }
  5541. fi
  5542. fi
  5543. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5544. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5545. # Extract the first word of "mt", so it can be a program name with args.
  5546. set dummy mt; ac_word=$2
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5548. $as_echo_n "checking for $ac_word... " >&6; }
  5549. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5550. $as_echo_n "(cached) " >&6
  5551. else
  5552. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5553. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5554. else
  5555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5556. for as_dir in $PATH
  5557. do
  5558. IFS=$as_save_IFS
  5559. test -z "$as_dir" && as_dir=.
  5560. for ac_exec_ext in '' $ac_executable_extensions; do
  5561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5562. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5564. break 2
  5565. fi
  5566. done
  5567. done
  5568. IFS=$as_save_IFS
  5569. fi
  5570. fi
  5571. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5572. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5574. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5575. else
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5577. $as_echo "no" >&6; }
  5578. fi
  5579. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5580. MANIFEST_TOOL=":"
  5581. else
  5582. case $cross_compiling:$ac_tool_warned in
  5583. yes:)
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5586. ac_tool_warned=yes ;;
  5587. esac
  5588. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5589. fi
  5590. else
  5591. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5592. fi
  5593. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5595. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5596. if ${lt_cv_path_mainfest_tool+:} false; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. lt_cv_path_mainfest_tool=no
  5600. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5601. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5602. cat conftest.err >&5
  5603. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5604. lt_cv_path_mainfest_tool=yes
  5605. fi
  5606. rm -f conftest*
  5607. fi
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5609. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5610. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5611. MANIFEST_TOOL=:
  5612. fi
  5613. case $host_os in
  5614. rhapsody* | darwin*)
  5615. if test -n "$ac_tool_prefix"; then
  5616. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5617. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5619. $as_echo_n "checking for $ac_word... " >&6; }
  5620. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5621. $as_echo_n "(cached) " >&6
  5622. else
  5623. if test -n "$DSYMUTIL"; then
  5624. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5625. else
  5626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5627. for as_dir in $PATH
  5628. do
  5629. IFS=$as_save_IFS
  5630. test -z "$as_dir" && as_dir=.
  5631. for ac_exec_ext in '' $ac_executable_extensions; do
  5632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5633. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5635. break 2
  5636. fi
  5637. done
  5638. done
  5639. IFS=$as_save_IFS
  5640. fi
  5641. fi
  5642. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5643. if test -n "$DSYMUTIL"; then
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5645. $as_echo "$DSYMUTIL" >&6; }
  5646. else
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5648. $as_echo "no" >&6; }
  5649. fi
  5650. fi
  5651. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5652. ac_ct_DSYMUTIL=$DSYMUTIL
  5653. # Extract the first word of "dsymutil", so it can be a program name with args.
  5654. set dummy dsymutil; ac_word=$2
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5656. $as_echo_n "checking for $ac_word... " >&6; }
  5657. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5658. $as_echo_n "(cached) " >&6
  5659. else
  5660. if test -n "$ac_ct_DSYMUTIL"; then
  5661. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5662. else
  5663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5664. for as_dir in $PATH
  5665. do
  5666. IFS=$as_save_IFS
  5667. test -z "$as_dir" && as_dir=.
  5668. for ac_exec_ext in '' $ac_executable_extensions; do
  5669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5670. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5672. break 2
  5673. fi
  5674. done
  5675. done
  5676. IFS=$as_save_IFS
  5677. fi
  5678. fi
  5679. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5680. if test -n "$ac_ct_DSYMUTIL"; then
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5682. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5683. else
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5685. $as_echo "no" >&6; }
  5686. fi
  5687. if test "x$ac_ct_DSYMUTIL" = x; then
  5688. DSYMUTIL=":"
  5689. else
  5690. case $cross_compiling:$ac_tool_warned in
  5691. yes:)
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5694. ac_tool_warned=yes ;;
  5695. esac
  5696. DSYMUTIL=$ac_ct_DSYMUTIL
  5697. fi
  5698. else
  5699. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5700. fi
  5701. if test -n "$ac_tool_prefix"; then
  5702. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5703. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5705. $as_echo_n "checking for $ac_word... " >&6; }
  5706. if ${ac_cv_prog_NMEDIT+:} false; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. if test -n "$NMEDIT"; then
  5710. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5711. else
  5712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5713. for as_dir in $PATH
  5714. do
  5715. IFS=$as_save_IFS
  5716. test -z "$as_dir" && as_dir=.
  5717. for ac_exec_ext in '' $ac_executable_extensions; do
  5718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5719. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5721. break 2
  5722. fi
  5723. done
  5724. done
  5725. IFS=$as_save_IFS
  5726. fi
  5727. fi
  5728. NMEDIT=$ac_cv_prog_NMEDIT
  5729. if test -n "$NMEDIT"; then
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5731. $as_echo "$NMEDIT" >&6; }
  5732. else
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5734. $as_echo "no" >&6; }
  5735. fi
  5736. fi
  5737. if test -z "$ac_cv_prog_NMEDIT"; then
  5738. ac_ct_NMEDIT=$NMEDIT
  5739. # Extract the first word of "nmedit", so it can be a program name with args.
  5740. set dummy nmedit; ac_word=$2
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5742. $as_echo_n "checking for $ac_word... " >&6; }
  5743. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5744. $as_echo_n "(cached) " >&6
  5745. else
  5746. if test -n "$ac_ct_NMEDIT"; then
  5747. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5748. else
  5749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5750. for as_dir in $PATH
  5751. do
  5752. IFS=$as_save_IFS
  5753. test -z "$as_dir" && as_dir=.
  5754. for ac_exec_ext in '' $ac_executable_extensions; do
  5755. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5756. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5758. break 2
  5759. fi
  5760. done
  5761. done
  5762. IFS=$as_save_IFS
  5763. fi
  5764. fi
  5765. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5766. if test -n "$ac_ct_NMEDIT"; then
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5768. $as_echo "$ac_ct_NMEDIT" >&6; }
  5769. else
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5771. $as_echo "no" >&6; }
  5772. fi
  5773. if test "x$ac_ct_NMEDIT" = x; then
  5774. NMEDIT=":"
  5775. else
  5776. case $cross_compiling:$ac_tool_warned in
  5777. yes:)
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5779. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5780. ac_tool_warned=yes ;;
  5781. esac
  5782. NMEDIT=$ac_ct_NMEDIT
  5783. fi
  5784. else
  5785. NMEDIT="$ac_cv_prog_NMEDIT"
  5786. fi
  5787. if test -n "$ac_tool_prefix"; then
  5788. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5789. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5791. $as_echo_n "checking for $ac_word... " >&6; }
  5792. if ${ac_cv_prog_LIPO+:} false; then :
  5793. $as_echo_n "(cached) " >&6
  5794. else
  5795. if test -n "$LIPO"; then
  5796. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5797. else
  5798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5799. for as_dir in $PATH
  5800. do
  5801. IFS=$as_save_IFS
  5802. test -z "$as_dir" && as_dir=.
  5803. for ac_exec_ext in '' $ac_executable_extensions; do
  5804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5805. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5807. break 2
  5808. fi
  5809. done
  5810. done
  5811. IFS=$as_save_IFS
  5812. fi
  5813. fi
  5814. LIPO=$ac_cv_prog_LIPO
  5815. if test -n "$LIPO"; then
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5817. $as_echo "$LIPO" >&6; }
  5818. else
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5820. $as_echo "no" >&6; }
  5821. fi
  5822. fi
  5823. if test -z "$ac_cv_prog_LIPO"; then
  5824. ac_ct_LIPO=$LIPO
  5825. # Extract the first word of "lipo", so it can be a program name with args.
  5826. set dummy lipo; ac_word=$2
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5828. $as_echo_n "checking for $ac_word... " >&6; }
  5829. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5830. $as_echo_n "(cached) " >&6
  5831. else
  5832. if test -n "$ac_ct_LIPO"; then
  5833. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5834. else
  5835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5836. for as_dir in $PATH
  5837. do
  5838. IFS=$as_save_IFS
  5839. test -z "$as_dir" && as_dir=.
  5840. for ac_exec_ext in '' $ac_executable_extensions; do
  5841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5842. ac_cv_prog_ac_ct_LIPO="lipo"
  5843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5844. break 2
  5845. fi
  5846. done
  5847. done
  5848. IFS=$as_save_IFS
  5849. fi
  5850. fi
  5851. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5852. if test -n "$ac_ct_LIPO"; then
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5854. $as_echo "$ac_ct_LIPO" >&6; }
  5855. else
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5857. $as_echo "no" >&6; }
  5858. fi
  5859. if test "x$ac_ct_LIPO" = x; then
  5860. LIPO=":"
  5861. else
  5862. case $cross_compiling:$ac_tool_warned in
  5863. yes:)
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5866. ac_tool_warned=yes ;;
  5867. esac
  5868. LIPO=$ac_ct_LIPO
  5869. fi
  5870. else
  5871. LIPO="$ac_cv_prog_LIPO"
  5872. fi
  5873. if test -n "$ac_tool_prefix"; then
  5874. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5875. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5877. $as_echo_n "checking for $ac_word... " >&6; }
  5878. if ${ac_cv_prog_OTOOL+:} false; then :
  5879. $as_echo_n "(cached) " >&6
  5880. else
  5881. if test -n "$OTOOL"; then
  5882. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5883. else
  5884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5885. for as_dir in $PATH
  5886. do
  5887. IFS=$as_save_IFS
  5888. test -z "$as_dir" && as_dir=.
  5889. for ac_exec_ext in '' $ac_executable_extensions; do
  5890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5891. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5893. break 2
  5894. fi
  5895. done
  5896. done
  5897. IFS=$as_save_IFS
  5898. fi
  5899. fi
  5900. OTOOL=$ac_cv_prog_OTOOL
  5901. if test -n "$OTOOL"; then
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5903. $as_echo "$OTOOL" >&6; }
  5904. else
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5906. $as_echo "no" >&6; }
  5907. fi
  5908. fi
  5909. if test -z "$ac_cv_prog_OTOOL"; then
  5910. ac_ct_OTOOL=$OTOOL
  5911. # Extract the first word of "otool", so it can be a program name with args.
  5912. set dummy otool; ac_word=$2
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5914. $as_echo_n "checking for $ac_word... " >&6; }
  5915. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5916. $as_echo_n "(cached) " >&6
  5917. else
  5918. if test -n "$ac_ct_OTOOL"; then
  5919. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5920. else
  5921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5922. for as_dir in $PATH
  5923. do
  5924. IFS=$as_save_IFS
  5925. test -z "$as_dir" && as_dir=.
  5926. for ac_exec_ext in '' $ac_executable_extensions; do
  5927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5928. ac_cv_prog_ac_ct_OTOOL="otool"
  5929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5930. break 2
  5931. fi
  5932. done
  5933. done
  5934. IFS=$as_save_IFS
  5935. fi
  5936. fi
  5937. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5938. if test -n "$ac_ct_OTOOL"; then
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5940. $as_echo "$ac_ct_OTOOL" >&6; }
  5941. else
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5943. $as_echo "no" >&6; }
  5944. fi
  5945. if test "x$ac_ct_OTOOL" = x; then
  5946. OTOOL=":"
  5947. else
  5948. case $cross_compiling:$ac_tool_warned in
  5949. yes:)
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5952. ac_tool_warned=yes ;;
  5953. esac
  5954. OTOOL=$ac_ct_OTOOL
  5955. fi
  5956. else
  5957. OTOOL="$ac_cv_prog_OTOOL"
  5958. fi
  5959. if test -n "$ac_tool_prefix"; then
  5960. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5961. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5963. $as_echo_n "checking for $ac_word... " >&6; }
  5964. if ${ac_cv_prog_OTOOL64+:} false; then :
  5965. $as_echo_n "(cached) " >&6
  5966. else
  5967. if test -n "$OTOOL64"; then
  5968. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5969. else
  5970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5971. for as_dir in $PATH
  5972. do
  5973. IFS=$as_save_IFS
  5974. test -z "$as_dir" && as_dir=.
  5975. for ac_exec_ext in '' $ac_executable_extensions; do
  5976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5977. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5979. break 2
  5980. fi
  5981. done
  5982. done
  5983. IFS=$as_save_IFS
  5984. fi
  5985. fi
  5986. OTOOL64=$ac_cv_prog_OTOOL64
  5987. if test -n "$OTOOL64"; then
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5989. $as_echo "$OTOOL64" >&6; }
  5990. else
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5992. $as_echo "no" >&6; }
  5993. fi
  5994. fi
  5995. if test -z "$ac_cv_prog_OTOOL64"; then
  5996. ac_ct_OTOOL64=$OTOOL64
  5997. # Extract the first word of "otool64", so it can be a program name with args.
  5998. set dummy otool64; ac_word=$2
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6000. $as_echo_n "checking for $ac_word... " >&6; }
  6001. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6002. $as_echo_n "(cached) " >&6
  6003. else
  6004. if test -n "$ac_ct_OTOOL64"; then
  6005. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6006. else
  6007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6008. for as_dir in $PATH
  6009. do
  6010. IFS=$as_save_IFS
  6011. test -z "$as_dir" && as_dir=.
  6012. for ac_exec_ext in '' $ac_executable_extensions; do
  6013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6014. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6016. break 2
  6017. fi
  6018. done
  6019. done
  6020. IFS=$as_save_IFS
  6021. fi
  6022. fi
  6023. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6024. if test -n "$ac_ct_OTOOL64"; then
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6026. $as_echo "$ac_ct_OTOOL64" >&6; }
  6027. else
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6029. $as_echo "no" >&6; }
  6030. fi
  6031. if test "x$ac_ct_OTOOL64" = x; then
  6032. OTOOL64=":"
  6033. else
  6034. case $cross_compiling:$ac_tool_warned in
  6035. yes:)
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6037. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6038. ac_tool_warned=yes ;;
  6039. esac
  6040. OTOOL64=$ac_ct_OTOOL64
  6041. fi
  6042. else
  6043. OTOOL64="$ac_cv_prog_OTOOL64"
  6044. fi
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6046. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6047. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6048. $as_echo_n "(cached) " >&6
  6049. else
  6050. lt_cv_apple_cc_single_mod=no
  6051. if test -z "${LT_MULTI_MODULE}"; then
  6052. # By default we will add the -single_module flag. You can override
  6053. # by either setting the environment variable LT_MULTI_MODULE
  6054. # non-empty at configure time, or by adding -multi_module to the
  6055. # link flags.
  6056. rm -rf libconftest.dylib*
  6057. echo "int foo(void){return 1;}" > conftest.c
  6058. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6059. -dynamiclib -Wl,-single_module conftest.c" >&5
  6060. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6061. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6062. _lt_result=$?
  6063. # If there is a non-empty error log, and "single_module"
  6064. # appears in it, assume the flag caused a linker warning
  6065. if test -s conftest.err && $GREP single_module conftest.err; then
  6066. cat conftest.err >&5
  6067. # Otherwise, if the output was created with a 0 exit code from
  6068. # the compiler, it worked.
  6069. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6070. lt_cv_apple_cc_single_mod=yes
  6071. else
  6072. cat conftest.err >&5
  6073. fi
  6074. rm -rf libconftest.dylib*
  6075. rm -f conftest.*
  6076. fi
  6077. fi
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6079. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6081. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6082. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6083. $as_echo_n "(cached) " >&6
  6084. else
  6085. lt_cv_ld_exported_symbols_list=no
  6086. save_LDFLAGS=$LDFLAGS
  6087. echo "_main" > conftest.sym
  6088. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6090. /* end confdefs.h. */
  6091. int
  6092. main ()
  6093. {
  6094. ;
  6095. return 0;
  6096. }
  6097. _ACEOF
  6098. if ac_fn_c_try_link "$LINENO"; then :
  6099. lt_cv_ld_exported_symbols_list=yes
  6100. else
  6101. lt_cv_ld_exported_symbols_list=no
  6102. fi
  6103. rm -f core conftest.err conftest.$ac_objext \
  6104. conftest$ac_exeext conftest.$ac_ext
  6105. LDFLAGS="$save_LDFLAGS"
  6106. fi
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6108. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6110. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6111. if ${lt_cv_ld_force_load+:} false; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. lt_cv_ld_force_load=no
  6115. cat > conftest.c << _LT_EOF
  6116. int forced_loaded() { return 2;}
  6117. _LT_EOF
  6118. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6119. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6120. echo "$AR cru libconftest.a conftest.o" >&5
  6121. $AR cru libconftest.a conftest.o 2>&5
  6122. echo "$RANLIB libconftest.a" >&5
  6123. $RANLIB libconftest.a 2>&5
  6124. cat > conftest.c << _LT_EOF
  6125. int main() { return 0;}
  6126. _LT_EOF
  6127. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6128. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6129. _lt_result=$?
  6130. if test -s conftest.err && $GREP force_load conftest.err; then
  6131. cat conftest.err >&5
  6132. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6133. lt_cv_ld_force_load=yes
  6134. else
  6135. cat conftest.err >&5
  6136. fi
  6137. rm -f conftest.err libconftest.a conftest conftest.c
  6138. rm -rf conftest.dSYM
  6139. fi
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6141. $as_echo "$lt_cv_ld_force_load" >&6; }
  6142. case $host_os in
  6143. rhapsody* | darwin1.[012])
  6144. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6145. darwin1.*)
  6146. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6147. darwin*)
  6148. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6149. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6150. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6151. *)
  6152. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6153. esac
  6154. ;;
  6155. esac
  6156. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6157. _lt_dar_single_mod='$single_module'
  6158. fi
  6159. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6160. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6161. else
  6162. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6163. fi
  6164. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6165. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6166. else
  6167. _lt_dsymutil=
  6168. fi
  6169. ;;
  6170. esac
  6171. ac_ext=c
  6172. ac_cpp='$CPP $CPPFLAGS'
  6173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6177. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6178. # On Suns, sometimes $CPP names a directory.
  6179. if test -n "$CPP" && test -d "$CPP"; then
  6180. CPP=
  6181. fi
  6182. if test -z "$CPP"; then
  6183. if ${ac_cv_prog_CPP+:} false; then :
  6184. $as_echo_n "(cached) " >&6
  6185. else
  6186. # Double quotes because CPP needs to be expanded
  6187. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6188. do
  6189. ac_preproc_ok=false
  6190. for ac_c_preproc_warn_flag in '' yes
  6191. do
  6192. # Use a header file that comes with gcc, so configuring glibc
  6193. # with a fresh cross-compiler works.
  6194. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6195. # <limits.h> exists even on freestanding compilers.
  6196. # On the NeXT, cc -E runs the code through the compiler's parser,
  6197. # not just through cpp. "Syntax error" is here to catch this case.
  6198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6199. /* end confdefs.h. */
  6200. #ifdef __STDC__
  6201. # include <limits.h>
  6202. #else
  6203. # include <assert.h>
  6204. #endif
  6205. Syntax error
  6206. _ACEOF
  6207. if ac_fn_c_try_cpp "$LINENO"; then :
  6208. else
  6209. # Broken: fails on valid input.
  6210. continue
  6211. fi
  6212. rm -f conftest.err conftest.i conftest.$ac_ext
  6213. # OK, works on sane cases. Now check whether nonexistent headers
  6214. # can be detected and how.
  6215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6216. /* end confdefs.h. */
  6217. #include <ac_nonexistent.h>
  6218. _ACEOF
  6219. if ac_fn_c_try_cpp "$LINENO"; then :
  6220. # Broken: success on invalid input.
  6221. continue
  6222. else
  6223. # Passes both tests.
  6224. ac_preproc_ok=:
  6225. break
  6226. fi
  6227. rm -f conftest.err conftest.i conftest.$ac_ext
  6228. done
  6229. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6230. rm -f conftest.i conftest.err conftest.$ac_ext
  6231. if $ac_preproc_ok; then :
  6232. break
  6233. fi
  6234. done
  6235. ac_cv_prog_CPP=$CPP
  6236. fi
  6237. CPP=$ac_cv_prog_CPP
  6238. else
  6239. ac_cv_prog_CPP=$CPP
  6240. fi
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6242. $as_echo "$CPP" >&6; }
  6243. ac_preproc_ok=false
  6244. for ac_c_preproc_warn_flag in '' yes
  6245. do
  6246. # Use a header file that comes with gcc, so configuring glibc
  6247. # with a fresh cross-compiler works.
  6248. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6249. # <limits.h> exists even on freestanding compilers.
  6250. # On the NeXT, cc -E runs the code through the compiler's parser,
  6251. # not just through cpp. "Syntax error" is here to catch this case.
  6252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6253. /* end confdefs.h. */
  6254. #ifdef __STDC__
  6255. # include <limits.h>
  6256. #else
  6257. # include <assert.h>
  6258. #endif
  6259. Syntax error
  6260. _ACEOF
  6261. if ac_fn_c_try_cpp "$LINENO"; then :
  6262. else
  6263. # Broken: fails on valid input.
  6264. continue
  6265. fi
  6266. rm -f conftest.err conftest.i conftest.$ac_ext
  6267. # OK, works on sane cases. Now check whether nonexistent headers
  6268. # can be detected and how.
  6269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6270. /* end confdefs.h. */
  6271. #include <ac_nonexistent.h>
  6272. _ACEOF
  6273. if ac_fn_c_try_cpp "$LINENO"; then :
  6274. # Broken: success on invalid input.
  6275. continue
  6276. else
  6277. # Passes both tests.
  6278. ac_preproc_ok=:
  6279. break
  6280. fi
  6281. rm -f conftest.err conftest.i conftest.$ac_ext
  6282. done
  6283. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6284. rm -f conftest.i conftest.err conftest.$ac_ext
  6285. if $ac_preproc_ok; then :
  6286. else
  6287. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6288. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6289. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6290. See \`config.log' for more details" "$LINENO" 5; }
  6291. fi
  6292. ac_ext=c
  6293. ac_cpp='$CPP $CPPFLAGS'
  6294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6298. $as_echo_n "checking for ANSI C header files... " >&6; }
  6299. if ${ac_cv_header_stdc+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6303. /* end confdefs.h. */
  6304. #include <stdlib.h>
  6305. #include <stdarg.h>
  6306. #include <string.h>
  6307. #include <float.h>
  6308. int
  6309. main ()
  6310. {
  6311. ;
  6312. return 0;
  6313. }
  6314. _ACEOF
  6315. if ac_fn_c_try_compile "$LINENO"; then :
  6316. ac_cv_header_stdc=yes
  6317. else
  6318. ac_cv_header_stdc=no
  6319. fi
  6320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6321. if test $ac_cv_header_stdc = yes; then
  6322. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6324. /* end confdefs.h. */
  6325. #include <string.h>
  6326. _ACEOF
  6327. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6328. $EGREP "memchr" >/dev/null 2>&1; then :
  6329. else
  6330. ac_cv_header_stdc=no
  6331. fi
  6332. rm -f conftest*
  6333. fi
  6334. if test $ac_cv_header_stdc = yes; then
  6335. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6337. /* end confdefs.h. */
  6338. #include <stdlib.h>
  6339. _ACEOF
  6340. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6341. $EGREP "free" >/dev/null 2>&1; then :
  6342. else
  6343. ac_cv_header_stdc=no
  6344. fi
  6345. rm -f conftest*
  6346. fi
  6347. if test $ac_cv_header_stdc = yes; then
  6348. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6349. if test "$cross_compiling" = yes; then :
  6350. :
  6351. else
  6352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6353. /* end confdefs.h. */
  6354. #include <ctype.h>
  6355. #include <stdlib.h>
  6356. #if ((' ' & 0x0FF) == 0x020)
  6357. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6358. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6359. #else
  6360. # define ISLOWER(c) \
  6361. (('a' <= (c) && (c) <= 'i') \
  6362. || ('j' <= (c) && (c) <= 'r') \
  6363. || ('s' <= (c) && (c) <= 'z'))
  6364. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6365. #endif
  6366. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6367. int
  6368. main ()
  6369. {
  6370. int i;
  6371. for (i = 0; i < 256; i++)
  6372. if (XOR (islower (i), ISLOWER (i))
  6373. || toupper (i) != TOUPPER (i))
  6374. return 2;
  6375. return 0;
  6376. }
  6377. _ACEOF
  6378. if ac_fn_c_try_run "$LINENO"; then :
  6379. else
  6380. ac_cv_header_stdc=no
  6381. fi
  6382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6383. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6384. fi
  6385. fi
  6386. fi
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6388. $as_echo "$ac_cv_header_stdc" >&6; }
  6389. if test $ac_cv_header_stdc = yes; then
  6390. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6391. fi
  6392. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6393. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6394. inttypes.h stdint.h unistd.h
  6395. do :
  6396. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6397. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6398. "
  6399. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6400. cat >>confdefs.h <<_ACEOF
  6401. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6402. _ACEOF
  6403. fi
  6404. done
  6405. for ac_header in dlfcn.h
  6406. do :
  6407. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6408. "
  6409. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6410. cat >>confdefs.h <<_ACEOF
  6411. #define HAVE_DLFCN_H 1
  6412. _ACEOF
  6413. fi
  6414. done
  6415. # Set options
  6416. enable_win32_dll=yes
  6417. case $host in
  6418. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6419. if test -n "$ac_tool_prefix"; then
  6420. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6421. set dummy ${ac_tool_prefix}as; ac_word=$2
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6423. $as_echo_n "checking for $ac_word... " >&6; }
  6424. if ${ac_cv_prog_AS+:} false; then :
  6425. $as_echo_n "(cached) " >&6
  6426. else
  6427. if test -n "$AS"; then
  6428. ac_cv_prog_AS="$AS" # Let the user override the test.
  6429. else
  6430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6431. for as_dir in $PATH
  6432. do
  6433. IFS=$as_save_IFS
  6434. test -z "$as_dir" && as_dir=.
  6435. for ac_exec_ext in '' $ac_executable_extensions; do
  6436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6437. ac_cv_prog_AS="${ac_tool_prefix}as"
  6438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6439. break 2
  6440. fi
  6441. done
  6442. done
  6443. IFS=$as_save_IFS
  6444. fi
  6445. fi
  6446. AS=$ac_cv_prog_AS
  6447. if test -n "$AS"; then
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6449. $as_echo "$AS" >&6; }
  6450. else
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6452. $as_echo "no" >&6; }
  6453. fi
  6454. fi
  6455. if test -z "$ac_cv_prog_AS"; then
  6456. ac_ct_AS=$AS
  6457. # Extract the first word of "as", so it can be a program name with args.
  6458. set dummy as; ac_word=$2
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6460. $as_echo_n "checking for $ac_word... " >&6; }
  6461. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6462. $as_echo_n "(cached) " >&6
  6463. else
  6464. if test -n "$ac_ct_AS"; then
  6465. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6466. else
  6467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6468. for as_dir in $PATH
  6469. do
  6470. IFS=$as_save_IFS
  6471. test -z "$as_dir" && as_dir=.
  6472. for ac_exec_ext in '' $ac_executable_extensions; do
  6473. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6474. ac_cv_prog_ac_ct_AS="as"
  6475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6476. break 2
  6477. fi
  6478. done
  6479. done
  6480. IFS=$as_save_IFS
  6481. fi
  6482. fi
  6483. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6484. if test -n "$ac_ct_AS"; then
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6486. $as_echo "$ac_ct_AS" >&6; }
  6487. else
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6489. $as_echo "no" >&6; }
  6490. fi
  6491. if test "x$ac_ct_AS" = x; then
  6492. AS="false"
  6493. else
  6494. case $cross_compiling:$ac_tool_warned in
  6495. yes:)
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6497. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6498. ac_tool_warned=yes ;;
  6499. esac
  6500. AS=$ac_ct_AS
  6501. fi
  6502. else
  6503. AS="$ac_cv_prog_AS"
  6504. fi
  6505. if test -n "$ac_tool_prefix"; then
  6506. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6507. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6509. $as_echo_n "checking for $ac_word... " >&6; }
  6510. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6511. $as_echo_n "(cached) " >&6
  6512. else
  6513. if test -n "$DLLTOOL"; then
  6514. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6515. else
  6516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6517. for as_dir in $PATH
  6518. do
  6519. IFS=$as_save_IFS
  6520. test -z "$as_dir" && as_dir=.
  6521. for ac_exec_ext in '' $ac_executable_extensions; do
  6522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6523. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6525. break 2
  6526. fi
  6527. done
  6528. done
  6529. IFS=$as_save_IFS
  6530. fi
  6531. fi
  6532. DLLTOOL=$ac_cv_prog_DLLTOOL
  6533. if test -n "$DLLTOOL"; then
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6535. $as_echo "$DLLTOOL" >&6; }
  6536. else
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6538. $as_echo "no" >&6; }
  6539. fi
  6540. fi
  6541. if test -z "$ac_cv_prog_DLLTOOL"; then
  6542. ac_ct_DLLTOOL=$DLLTOOL
  6543. # Extract the first word of "dlltool", so it can be a program name with args.
  6544. set dummy dlltool; ac_word=$2
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6546. $as_echo_n "checking for $ac_word... " >&6; }
  6547. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6548. $as_echo_n "(cached) " >&6
  6549. else
  6550. if test -n "$ac_ct_DLLTOOL"; then
  6551. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6552. else
  6553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6554. for as_dir in $PATH
  6555. do
  6556. IFS=$as_save_IFS
  6557. test -z "$as_dir" && as_dir=.
  6558. for ac_exec_ext in '' $ac_executable_extensions; do
  6559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6560. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6562. break 2
  6563. fi
  6564. done
  6565. done
  6566. IFS=$as_save_IFS
  6567. fi
  6568. fi
  6569. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6570. if test -n "$ac_ct_DLLTOOL"; then
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6572. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6573. else
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6575. $as_echo "no" >&6; }
  6576. fi
  6577. if test "x$ac_ct_DLLTOOL" = x; then
  6578. DLLTOOL="false"
  6579. else
  6580. case $cross_compiling:$ac_tool_warned in
  6581. yes:)
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6584. ac_tool_warned=yes ;;
  6585. esac
  6586. DLLTOOL=$ac_ct_DLLTOOL
  6587. fi
  6588. else
  6589. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6590. fi
  6591. if test -n "$ac_tool_prefix"; then
  6592. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6593. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6595. $as_echo_n "checking for $ac_word... " >&6; }
  6596. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6597. $as_echo_n "(cached) " >&6
  6598. else
  6599. if test -n "$OBJDUMP"; then
  6600. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6601. else
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. test -z "$as_dir" && as_dir=.
  6607. for ac_exec_ext in '' $ac_executable_extensions; do
  6608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6609. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6611. break 2
  6612. fi
  6613. done
  6614. done
  6615. IFS=$as_save_IFS
  6616. fi
  6617. fi
  6618. OBJDUMP=$ac_cv_prog_OBJDUMP
  6619. if test -n "$OBJDUMP"; then
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6621. $as_echo "$OBJDUMP" >&6; }
  6622. else
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6624. $as_echo "no" >&6; }
  6625. fi
  6626. fi
  6627. if test -z "$ac_cv_prog_OBJDUMP"; then
  6628. ac_ct_OBJDUMP=$OBJDUMP
  6629. # Extract the first word of "objdump", so it can be a program name with args.
  6630. set dummy objdump; ac_word=$2
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6632. $as_echo_n "checking for $ac_word... " >&6; }
  6633. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6634. $as_echo_n "(cached) " >&6
  6635. else
  6636. if test -n "$ac_ct_OBJDUMP"; then
  6637. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6638. else
  6639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6640. for as_dir in $PATH
  6641. do
  6642. IFS=$as_save_IFS
  6643. test -z "$as_dir" && as_dir=.
  6644. for ac_exec_ext in '' $ac_executable_extensions; do
  6645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6646. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6648. break 2
  6649. fi
  6650. done
  6651. done
  6652. IFS=$as_save_IFS
  6653. fi
  6654. fi
  6655. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6656. if test -n "$ac_ct_OBJDUMP"; then
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6658. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6659. else
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6661. $as_echo "no" >&6; }
  6662. fi
  6663. if test "x$ac_ct_OBJDUMP" = x; then
  6664. OBJDUMP="false"
  6665. else
  6666. case $cross_compiling:$ac_tool_warned in
  6667. yes:)
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6670. ac_tool_warned=yes ;;
  6671. esac
  6672. OBJDUMP=$ac_ct_OBJDUMP
  6673. fi
  6674. else
  6675. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6676. fi
  6677. ;;
  6678. esac
  6679. test -z "$AS" && AS=as
  6680. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6681. test -z "$OBJDUMP" && OBJDUMP=objdump
  6682. enable_dlopen=no
  6683. # Check whether --enable-shared was given.
  6684. if test "${enable_shared+set}" = set; then :
  6685. enableval=$enable_shared; p=${PACKAGE-default}
  6686. case $enableval in
  6687. yes) enable_shared=yes ;;
  6688. no) enable_shared=no ;;
  6689. *)
  6690. enable_shared=no
  6691. # Look at the argument we got. We use all the common list separators.
  6692. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6693. for pkg in $enableval; do
  6694. IFS="$lt_save_ifs"
  6695. if test "X$pkg" = "X$p"; then
  6696. enable_shared=yes
  6697. fi
  6698. done
  6699. IFS="$lt_save_ifs"
  6700. ;;
  6701. esac
  6702. else
  6703. enable_shared=yes
  6704. fi
  6705. # Check whether --enable-static was given.
  6706. if test "${enable_static+set}" = set; then :
  6707. enableval=$enable_static; p=${PACKAGE-default}
  6708. case $enableval in
  6709. yes) enable_static=yes ;;
  6710. no) enable_static=no ;;
  6711. *)
  6712. enable_static=no
  6713. # Look at the argument we got. We use all the common list separators.
  6714. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6715. for pkg in $enableval; do
  6716. IFS="$lt_save_ifs"
  6717. if test "X$pkg" = "X$p"; then
  6718. enable_static=yes
  6719. fi
  6720. done
  6721. IFS="$lt_save_ifs"
  6722. ;;
  6723. esac
  6724. else
  6725. enable_static=yes
  6726. fi
  6727. # Check whether --with-pic was given.
  6728. if test "${with_pic+set}" = set; then :
  6729. withval=$with_pic; lt_p=${PACKAGE-default}
  6730. case $withval in
  6731. yes|no) pic_mode=$withval ;;
  6732. *)
  6733. pic_mode=default
  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 lt_pkg in $withval; do
  6737. IFS="$lt_save_ifs"
  6738. if test "X$lt_pkg" = "X$lt_p"; then
  6739. pic_mode=yes
  6740. fi
  6741. done
  6742. IFS="$lt_save_ifs"
  6743. ;;
  6744. esac
  6745. else
  6746. pic_mode=default
  6747. fi
  6748. test -z "$pic_mode" && pic_mode=default
  6749. # Check whether --enable-fast-install was given.
  6750. if test "${enable_fast_install+set}" = set; then :
  6751. enableval=$enable_fast_install; p=${PACKAGE-default}
  6752. case $enableval in
  6753. yes) enable_fast_install=yes ;;
  6754. no) enable_fast_install=no ;;
  6755. *)
  6756. enable_fast_install=no
  6757. # Look at the argument we got. We use all the common list separators.
  6758. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6759. for pkg in $enableval; do
  6760. IFS="$lt_save_ifs"
  6761. if test "X$pkg" = "X$p"; then
  6762. enable_fast_install=yes
  6763. fi
  6764. done
  6765. IFS="$lt_save_ifs"
  6766. ;;
  6767. esac
  6768. else
  6769. enable_fast_install=yes
  6770. fi
  6771. # This can be used to rebuild libtool when needed
  6772. LIBTOOL_DEPS="$ltmain"
  6773. # Always use our own libtool.
  6774. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6775. test -z "$LN_S" && LN_S="ln -s"
  6776. if test -n "${ZSH_VERSION+set}" ; then
  6777. setopt NO_GLOB_SUBST
  6778. fi
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6780. $as_echo_n "checking for objdir... " >&6; }
  6781. if ${lt_cv_objdir+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. rm -f .libs 2>/dev/null
  6785. mkdir .libs 2>/dev/null
  6786. if test -d .libs; then
  6787. lt_cv_objdir=.libs
  6788. else
  6789. # MS-DOS does not allow filenames that begin with a dot.
  6790. lt_cv_objdir=_libs
  6791. fi
  6792. rmdir .libs 2>/dev/null
  6793. fi
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6795. $as_echo "$lt_cv_objdir" >&6; }
  6796. objdir=$lt_cv_objdir
  6797. cat >>confdefs.h <<_ACEOF
  6798. #define LT_OBJDIR "$lt_cv_objdir/"
  6799. _ACEOF
  6800. case $host_os in
  6801. aix3*)
  6802. # AIX sometimes has problems with the GCC collect2 program. For some
  6803. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6804. # vanish in a puff of smoke.
  6805. if test "X${COLLECT_NAMES+set}" != Xset; then
  6806. COLLECT_NAMES=
  6807. export COLLECT_NAMES
  6808. fi
  6809. ;;
  6810. esac
  6811. # Global variables:
  6812. ofile=libtool
  6813. can_build_shared=yes
  6814. # All known linkers require a `.a' archive for static linking (except MSVC,
  6815. # which needs '.lib').
  6816. libext=a
  6817. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6818. old_CC="$CC"
  6819. old_CFLAGS="$CFLAGS"
  6820. # Set sane defaults for various variables
  6821. test -z "$CC" && CC=cc
  6822. test -z "$LTCC" && LTCC=$CC
  6823. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6824. test -z "$LD" && LD=ld
  6825. test -z "$ac_objext" && ac_objext=o
  6826. for cc_temp in $compiler""; do
  6827. case $cc_temp in
  6828. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6829. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6830. \-*) ;;
  6831. *) break;;
  6832. esac
  6833. done
  6834. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6835. # Only perform the check for file, if the check method requires it
  6836. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6837. case $deplibs_check_method in
  6838. file_magic*)
  6839. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6841. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6842. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6843. $as_echo_n "(cached) " >&6
  6844. else
  6845. case $MAGIC_CMD in
  6846. [\\/*] | ?:[\\/]*)
  6847. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6848. ;;
  6849. *)
  6850. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6851. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6852. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6853. for ac_dir in $ac_dummy; do
  6854. IFS="$lt_save_ifs"
  6855. test -z "$ac_dir" && ac_dir=.
  6856. if test -f $ac_dir/${ac_tool_prefix}file; then
  6857. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6858. if test -n "$file_magic_test_file"; then
  6859. case $deplibs_check_method in
  6860. "file_magic "*)
  6861. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6862. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6863. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6864. $EGREP "$file_magic_regex" > /dev/null; then
  6865. :
  6866. else
  6867. cat <<_LT_EOF 1>&2
  6868. *** Warning: the command libtool uses to detect shared libraries,
  6869. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6870. *** The result is that libtool may fail to recognize shared libraries
  6871. *** as such. This will affect the creation of libtool libraries that
  6872. *** depend on shared libraries, but programs linked with such libtool
  6873. *** libraries will work regardless of this problem. Nevertheless, you
  6874. *** may want to report the problem to your system manager and/or to
  6875. *** bug-libtool@gnu.org
  6876. _LT_EOF
  6877. fi ;;
  6878. esac
  6879. fi
  6880. break
  6881. fi
  6882. done
  6883. IFS="$lt_save_ifs"
  6884. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6885. ;;
  6886. esac
  6887. fi
  6888. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6889. if test -n "$MAGIC_CMD"; then
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6891. $as_echo "$MAGIC_CMD" >&6; }
  6892. else
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6894. $as_echo "no" >&6; }
  6895. fi
  6896. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6897. if test -n "$ac_tool_prefix"; then
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6899. $as_echo_n "checking for file... " >&6; }
  6900. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6901. $as_echo_n "(cached) " >&6
  6902. else
  6903. case $MAGIC_CMD in
  6904. [\\/*] | ?:[\\/]*)
  6905. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6906. ;;
  6907. *)
  6908. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6909. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6910. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6911. for ac_dir in $ac_dummy; do
  6912. IFS="$lt_save_ifs"
  6913. test -z "$ac_dir" && ac_dir=.
  6914. if test -f $ac_dir/file; then
  6915. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6916. if test -n "$file_magic_test_file"; then
  6917. case $deplibs_check_method in
  6918. "file_magic "*)
  6919. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6920. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6921. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6922. $EGREP "$file_magic_regex" > /dev/null; then
  6923. :
  6924. else
  6925. cat <<_LT_EOF 1>&2
  6926. *** Warning: the command libtool uses to detect shared libraries,
  6927. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6928. *** The result is that libtool may fail to recognize shared libraries
  6929. *** as such. This will affect the creation of libtool libraries that
  6930. *** depend on shared libraries, but programs linked with such libtool
  6931. *** libraries will work regardless of this problem. Nevertheless, you
  6932. *** may want to report the problem to your system manager and/or to
  6933. *** bug-libtool@gnu.org
  6934. _LT_EOF
  6935. fi ;;
  6936. esac
  6937. fi
  6938. break
  6939. fi
  6940. done
  6941. IFS="$lt_save_ifs"
  6942. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6943. ;;
  6944. esac
  6945. fi
  6946. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6947. if test -n "$MAGIC_CMD"; then
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6949. $as_echo "$MAGIC_CMD" >&6; }
  6950. else
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6952. $as_echo "no" >&6; }
  6953. fi
  6954. else
  6955. MAGIC_CMD=:
  6956. fi
  6957. fi
  6958. fi
  6959. ;;
  6960. esac
  6961. # Use C for the default configuration in the libtool script
  6962. lt_save_CC="$CC"
  6963. ac_ext=c
  6964. ac_cpp='$CPP $CPPFLAGS'
  6965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6968. # Source file extension for C test sources.
  6969. ac_ext=c
  6970. # Object file extension for compiled C test sources.
  6971. objext=o
  6972. objext=$objext
  6973. # Code to be used in simple compile tests
  6974. lt_simple_compile_test_code="int some_variable = 0;"
  6975. # Code to be used in simple link tests
  6976. lt_simple_link_test_code='int main(){return(0);}'
  6977. # If no C compiler was specified, use CC.
  6978. LTCC=${LTCC-"$CC"}
  6979. # If no C compiler flags were specified, use CFLAGS.
  6980. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6981. # Allow CC to be a program name with arguments.
  6982. compiler=$CC
  6983. # Save the default compiler, since it gets overwritten when the other
  6984. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6985. compiler_DEFAULT=$CC
  6986. # save warnings/boilerplate of simple test code
  6987. ac_outfile=conftest.$ac_objext
  6988. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6989. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6990. _lt_compiler_boilerplate=`cat conftest.err`
  6991. $RM conftest*
  6992. ac_outfile=conftest.$ac_objext
  6993. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6994. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6995. _lt_linker_boilerplate=`cat conftest.err`
  6996. $RM -r conftest*
  6997. ## CAVEAT EMPTOR:
  6998. ## There is no encapsulation within the following macros, do not change
  6999. ## the running order or otherwise move them around unless you know exactly
  7000. ## what you are doing...
  7001. if test -n "$compiler"; then
  7002. lt_prog_compiler_no_builtin_flag=
  7003. if test "$GCC" = yes; then
  7004. case $cc_basename in
  7005. nvcc*)
  7006. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7007. *)
  7008. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7009. esac
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7011. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7012. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7013. $as_echo_n "(cached) " >&6
  7014. else
  7015. lt_cv_prog_compiler_rtti_exceptions=no
  7016. ac_outfile=conftest.$ac_objext
  7017. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7018. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7019. # Insert the option either (1) after the last *FLAGS variable, or
  7020. # (2) before a word containing "conftest.", or (3) at the end.
  7021. # Note that $ac_compile itself does not contain backslashes and begins
  7022. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7023. # The option is referenced via a variable to avoid confusing sed.
  7024. lt_compile=`echo "$ac_compile" | $SED \
  7025. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7026. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7027. -e 's:$: $lt_compiler_flag:'`
  7028. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7029. (eval "$lt_compile" 2>conftest.err)
  7030. ac_status=$?
  7031. cat conftest.err >&5
  7032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7033. if (exit $ac_status) && test -s "$ac_outfile"; then
  7034. # The compiler can only warn and ignore the option if not recognized
  7035. # So say no if there are warnings other than the usual output.
  7036. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7037. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7038. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7039. lt_cv_prog_compiler_rtti_exceptions=yes
  7040. fi
  7041. fi
  7042. $RM conftest*
  7043. fi
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7045. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7046. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7047. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7048. else
  7049. :
  7050. fi
  7051. fi
  7052. lt_prog_compiler_wl=
  7053. lt_prog_compiler_pic=
  7054. lt_prog_compiler_static=
  7055. if test "$GCC" = yes; then
  7056. lt_prog_compiler_wl='-Wl,'
  7057. lt_prog_compiler_static='-static'
  7058. case $host_os in
  7059. aix*)
  7060. # All AIX code is PIC.
  7061. if test "$host_cpu" = ia64; then
  7062. # AIX 5 now supports IA64 processor
  7063. lt_prog_compiler_static='-Bstatic'
  7064. fi
  7065. ;;
  7066. amigaos*)
  7067. case $host_cpu in
  7068. powerpc)
  7069. # see comment about AmigaOS4 .so support
  7070. lt_prog_compiler_pic='-fPIC'
  7071. ;;
  7072. m68k)
  7073. # FIXME: we need at least 68020 code to build shared libraries, but
  7074. # adding the `-m68020' flag to GCC prevents building anything better,
  7075. # like `-m68040'.
  7076. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7077. ;;
  7078. esac
  7079. ;;
  7080. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7081. # PIC is the default for these OSes.
  7082. ;;
  7083. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7084. # This hack is so that the source file can tell whether it is being
  7085. # built for inclusion in a dll (and should export symbols for example).
  7086. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7087. # (--disable-auto-import) libraries
  7088. lt_prog_compiler_pic='-DDLL_EXPORT'
  7089. ;;
  7090. darwin* | rhapsody*)
  7091. # PIC is the default on this platform
  7092. # Common symbols not allowed in MH_DYLIB files
  7093. lt_prog_compiler_pic='-fno-common'
  7094. ;;
  7095. haiku*)
  7096. # PIC is the default for Haiku.
  7097. # The "-static" flag exists, but is broken.
  7098. lt_prog_compiler_static=
  7099. ;;
  7100. hpux*)
  7101. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7102. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7103. # sets the default TLS model and affects inlining.
  7104. case $host_cpu in
  7105. hppa*64*)
  7106. # +Z the default
  7107. ;;
  7108. *)
  7109. lt_prog_compiler_pic='-fPIC'
  7110. ;;
  7111. esac
  7112. ;;
  7113. interix[3-9]*)
  7114. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7115. # Instead, we relocate shared libraries at runtime.
  7116. ;;
  7117. msdosdjgpp*)
  7118. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7119. # on systems that don't support them.
  7120. lt_prog_compiler_can_build_shared=no
  7121. enable_shared=no
  7122. ;;
  7123. *nto* | *qnx*)
  7124. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7125. # it will coredump.
  7126. lt_prog_compiler_pic='-fPIC -shared'
  7127. ;;
  7128. sysv4*MP*)
  7129. if test -d /usr/nec; then
  7130. lt_prog_compiler_pic=-Kconform_pic
  7131. fi
  7132. ;;
  7133. *)
  7134. lt_prog_compiler_pic='-fPIC'
  7135. ;;
  7136. esac
  7137. case $cc_basename in
  7138. nvcc*) # Cuda Compiler Driver 2.2
  7139. lt_prog_compiler_wl='-Xlinker '
  7140. if test -n "$lt_prog_compiler_pic"; then
  7141. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7142. fi
  7143. ;;
  7144. esac
  7145. else
  7146. # PORTME Check for flag to pass linker flags through the system compiler.
  7147. case $host_os in
  7148. aix*)
  7149. lt_prog_compiler_wl='-Wl,'
  7150. if test "$host_cpu" = ia64; then
  7151. # AIX 5 now supports IA64 processor
  7152. lt_prog_compiler_static='-Bstatic'
  7153. else
  7154. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7155. fi
  7156. ;;
  7157. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7158. # This hack is so that the source file can tell whether it is being
  7159. # built for inclusion in a dll (and should export symbols for example).
  7160. lt_prog_compiler_pic='-DDLL_EXPORT'
  7161. ;;
  7162. hpux9* | hpux10* | hpux11*)
  7163. lt_prog_compiler_wl='-Wl,'
  7164. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7165. # not for PA HP-UX.
  7166. case $host_cpu in
  7167. hppa*64*|ia64*)
  7168. # +Z the default
  7169. ;;
  7170. *)
  7171. lt_prog_compiler_pic='+Z'
  7172. ;;
  7173. esac
  7174. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7175. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7176. ;;
  7177. irix5* | irix6* | nonstopux*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. # PIC (with -KPIC) is the default.
  7180. lt_prog_compiler_static='-non_shared'
  7181. ;;
  7182. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7183. case $cc_basename in
  7184. # old Intel for x86_64 which still supported -KPIC.
  7185. ecc*)
  7186. lt_prog_compiler_wl='-Wl,'
  7187. lt_prog_compiler_pic='-KPIC'
  7188. lt_prog_compiler_static='-static'
  7189. ;;
  7190. # icc used to be incompatible with GCC.
  7191. # ICC 10 doesn't accept -KPIC any more.
  7192. icc* | ifort*)
  7193. lt_prog_compiler_wl='-Wl,'
  7194. lt_prog_compiler_pic='-fPIC'
  7195. lt_prog_compiler_static='-static'
  7196. ;;
  7197. # Lahey Fortran 8.1.
  7198. lf95*)
  7199. lt_prog_compiler_wl='-Wl,'
  7200. lt_prog_compiler_pic='--shared'
  7201. lt_prog_compiler_static='--static'
  7202. ;;
  7203. nagfor*)
  7204. # NAG Fortran compiler
  7205. lt_prog_compiler_wl='-Wl,-Wl,,'
  7206. lt_prog_compiler_pic='-PIC'
  7207. lt_prog_compiler_static='-Bstatic'
  7208. ;;
  7209. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7210. # Portland Group compilers (*not* the Pentium gcc compiler,
  7211. # which looks to be a dead project)
  7212. lt_prog_compiler_wl='-Wl,'
  7213. lt_prog_compiler_pic='-fpic'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. ;;
  7216. ccc*)
  7217. lt_prog_compiler_wl='-Wl,'
  7218. # All Alpha code is PIC.
  7219. lt_prog_compiler_static='-non_shared'
  7220. ;;
  7221. xl* | bgxl* | bgf* | mpixl*)
  7222. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7223. lt_prog_compiler_wl='-Wl,'
  7224. lt_prog_compiler_pic='-qpic'
  7225. lt_prog_compiler_static='-qstaticlink'
  7226. ;;
  7227. *)
  7228. case `$CC -V 2>&1 | sed 5q` in
  7229. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7230. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7231. lt_prog_compiler_pic='-KPIC'
  7232. lt_prog_compiler_static='-Bstatic'
  7233. lt_prog_compiler_wl=''
  7234. ;;
  7235. *Sun\ F* | *Sun*Fortran*)
  7236. lt_prog_compiler_pic='-KPIC'
  7237. lt_prog_compiler_static='-Bstatic'
  7238. lt_prog_compiler_wl='-Qoption ld '
  7239. ;;
  7240. *Sun\ C*)
  7241. # Sun C 5.9
  7242. lt_prog_compiler_pic='-KPIC'
  7243. lt_prog_compiler_static='-Bstatic'
  7244. lt_prog_compiler_wl='-Wl,'
  7245. ;;
  7246. *Intel*\ [CF]*Compiler*)
  7247. lt_prog_compiler_wl='-Wl,'
  7248. lt_prog_compiler_pic='-fPIC'
  7249. lt_prog_compiler_static='-static'
  7250. ;;
  7251. *Portland\ Group*)
  7252. lt_prog_compiler_wl='-Wl,'
  7253. lt_prog_compiler_pic='-fpic'
  7254. lt_prog_compiler_static='-Bstatic'
  7255. ;;
  7256. esac
  7257. ;;
  7258. esac
  7259. ;;
  7260. newsos6)
  7261. lt_prog_compiler_pic='-KPIC'
  7262. lt_prog_compiler_static='-Bstatic'
  7263. ;;
  7264. *nto* | *qnx*)
  7265. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7266. # it will coredump.
  7267. lt_prog_compiler_pic='-fPIC -shared'
  7268. ;;
  7269. osf3* | osf4* | osf5*)
  7270. lt_prog_compiler_wl='-Wl,'
  7271. # All OSF/1 code is PIC.
  7272. lt_prog_compiler_static='-non_shared'
  7273. ;;
  7274. rdos*)
  7275. lt_prog_compiler_static='-non_shared'
  7276. ;;
  7277. solaris*)
  7278. lt_prog_compiler_pic='-KPIC'
  7279. lt_prog_compiler_static='-Bstatic'
  7280. case $cc_basename in
  7281. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7282. lt_prog_compiler_wl='-Qoption ld ';;
  7283. *)
  7284. lt_prog_compiler_wl='-Wl,';;
  7285. esac
  7286. ;;
  7287. sunos4*)
  7288. lt_prog_compiler_wl='-Qoption ld '
  7289. lt_prog_compiler_pic='-PIC'
  7290. lt_prog_compiler_static='-Bstatic'
  7291. ;;
  7292. sysv4 | sysv4.2uw2* | sysv4.3*)
  7293. lt_prog_compiler_wl='-Wl,'
  7294. lt_prog_compiler_pic='-KPIC'
  7295. lt_prog_compiler_static='-Bstatic'
  7296. ;;
  7297. sysv4*MP*)
  7298. if test -d /usr/nec ;then
  7299. lt_prog_compiler_pic='-Kconform_pic'
  7300. lt_prog_compiler_static='-Bstatic'
  7301. fi
  7302. ;;
  7303. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7304. lt_prog_compiler_wl='-Wl,'
  7305. lt_prog_compiler_pic='-KPIC'
  7306. lt_prog_compiler_static='-Bstatic'
  7307. ;;
  7308. unicos*)
  7309. lt_prog_compiler_wl='-Wl,'
  7310. lt_prog_compiler_can_build_shared=no
  7311. ;;
  7312. uts4*)
  7313. lt_prog_compiler_pic='-pic'
  7314. lt_prog_compiler_static='-Bstatic'
  7315. ;;
  7316. *)
  7317. lt_prog_compiler_can_build_shared=no
  7318. ;;
  7319. esac
  7320. fi
  7321. case $host_os in
  7322. # For platforms which do not support PIC, -DPIC is meaningless:
  7323. *djgpp*)
  7324. lt_prog_compiler_pic=
  7325. ;;
  7326. *)
  7327. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7328. ;;
  7329. esac
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7331. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7332. if ${lt_cv_prog_compiler_pic+:} false; then :
  7333. $as_echo_n "(cached) " >&6
  7334. else
  7335. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7338. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7339. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7340. #
  7341. # Check to make sure the PIC flag actually works.
  7342. #
  7343. if test -n "$lt_prog_compiler_pic"; then
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7345. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7346. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7347. $as_echo_n "(cached) " >&6
  7348. else
  7349. lt_cv_prog_compiler_pic_works=no
  7350. ac_outfile=conftest.$ac_objext
  7351. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7352. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7353. # Insert the option either (1) after the last *FLAGS variable, or
  7354. # (2) before a word containing "conftest.", or (3) at the end.
  7355. # Note that $ac_compile itself does not contain backslashes and begins
  7356. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7357. # The option is referenced via a variable to avoid confusing sed.
  7358. lt_compile=`echo "$ac_compile" | $SED \
  7359. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7360. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7361. -e 's:$: $lt_compiler_flag:'`
  7362. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7363. (eval "$lt_compile" 2>conftest.err)
  7364. ac_status=$?
  7365. cat conftest.err >&5
  7366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7367. if (exit $ac_status) && test -s "$ac_outfile"; then
  7368. # The compiler can only warn and ignore the option if not recognized
  7369. # So say no if there are warnings other than the usual output.
  7370. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7371. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7372. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7373. lt_cv_prog_compiler_pic_works=yes
  7374. fi
  7375. fi
  7376. $RM conftest*
  7377. fi
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7379. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7380. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7381. case $lt_prog_compiler_pic in
  7382. "" | " "*) ;;
  7383. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7384. esac
  7385. else
  7386. lt_prog_compiler_pic=
  7387. lt_prog_compiler_can_build_shared=no
  7388. fi
  7389. fi
  7390. #
  7391. # Check to make sure the static flag actually works.
  7392. #
  7393. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7395. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7396. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7397. $as_echo_n "(cached) " >&6
  7398. else
  7399. lt_cv_prog_compiler_static_works=no
  7400. save_LDFLAGS="$LDFLAGS"
  7401. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7402. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7403. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7404. # The linker can only warn and ignore the option if not recognized
  7405. # So say no if there are warnings
  7406. if test -s conftest.err; then
  7407. # Append any errors to the config.log.
  7408. cat conftest.err 1>&5
  7409. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7410. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7411. if diff conftest.exp conftest.er2 >/dev/null; then
  7412. lt_cv_prog_compiler_static_works=yes
  7413. fi
  7414. else
  7415. lt_cv_prog_compiler_static_works=yes
  7416. fi
  7417. fi
  7418. $RM -r conftest*
  7419. LDFLAGS="$save_LDFLAGS"
  7420. fi
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7422. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7423. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7424. :
  7425. else
  7426. lt_prog_compiler_static=
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7429. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7430. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7431. $as_echo_n "(cached) " >&6
  7432. else
  7433. lt_cv_prog_compiler_c_o=no
  7434. $RM -r conftest 2>/dev/null
  7435. mkdir conftest
  7436. cd conftest
  7437. mkdir out
  7438. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7439. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7440. # Insert the option either (1) after the last *FLAGS variable, or
  7441. # (2) before a word containing "conftest.", or (3) at the end.
  7442. # Note that $ac_compile itself does not contain backslashes and begins
  7443. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7444. lt_compile=`echo "$ac_compile" | $SED \
  7445. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7446. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7447. -e 's:$: $lt_compiler_flag:'`
  7448. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7449. (eval "$lt_compile" 2>out/conftest.err)
  7450. ac_status=$?
  7451. cat out/conftest.err >&5
  7452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7453. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7454. then
  7455. # The compiler can only warn and ignore the option if not recognized
  7456. # So say no if there are warnings
  7457. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7458. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7459. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7460. lt_cv_prog_compiler_c_o=yes
  7461. fi
  7462. fi
  7463. chmod u+w . 2>&5
  7464. $RM conftest*
  7465. # SGI C++ compiler will create directory out/ii_files/ for
  7466. # template instantiation
  7467. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7468. $RM out/* && rmdir out
  7469. cd ..
  7470. $RM -r conftest
  7471. $RM conftest*
  7472. fi
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7474. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7476. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7477. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7478. $as_echo_n "(cached) " >&6
  7479. else
  7480. lt_cv_prog_compiler_c_o=no
  7481. $RM -r conftest 2>/dev/null
  7482. mkdir conftest
  7483. cd conftest
  7484. mkdir out
  7485. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7486. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7487. # Insert the option either (1) after the last *FLAGS variable, or
  7488. # (2) before a word containing "conftest.", or (3) at the end.
  7489. # Note that $ac_compile itself does not contain backslashes and begins
  7490. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7491. lt_compile=`echo "$ac_compile" | $SED \
  7492. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7493. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7494. -e 's:$: $lt_compiler_flag:'`
  7495. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7496. (eval "$lt_compile" 2>out/conftest.err)
  7497. ac_status=$?
  7498. cat out/conftest.err >&5
  7499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7500. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7501. then
  7502. # The compiler can only warn and ignore the option if not recognized
  7503. # So say no if there are warnings
  7504. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7505. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7506. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7507. lt_cv_prog_compiler_c_o=yes
  7508. fi
  7509. fi
  7510. chmod u+w . 2>&5
  7511. $RM conftest*
  7512. # SGI C++ compiler will create directory out/ii_files/ for
  7513. # template instantiation
  7514. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7515. $RM out/* && rmdir out
  7516. cd ..
  7517. $RM -r conftest
  7518. $RM conftest*
  7519. fi
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7521. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7522. hard_links="nottested"
  7523. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7524. # do not overwrite the value of need_locks provided by the user
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7526. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7527. hard_links=yes
  7528. $RM conftest*
  7529. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7530. touch conftest.a
  7531. ln conftest.a conftest.b 2>&5 || hard_links=no
  7532. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7534. $as_echo "$hard_links" >&6; }
  7535. if test "$hard_links" = no; then
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7537. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7538. need_locks=warn
  7539. fi
  7540. else
  7541. need_locks=no
  7542. fi
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7544. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7545. runpath_var=
  7546. allow_undefined_flag=
  7547. always_export_symbols=no
  7548. archive_cmds=
  7549. archive_expsym_cmds=
  7550. compiler_needs_object=no
  7551. enable_shared_with_static_runtimes=no
  7552. export_dynamic_flag_spec=
  7553. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7554. hardcode_automatic=no
  7555. hardcode_direct=no
  7556. hardcode_direct_absolute=no
  7557. hardcode_libdir_flag_spec=
  7558. hardcode_libdir_separator=
  7559. hardcode_minus_L=no
  7560. hardcode_shlibpath_var=unsupported
  7561. inherit_rpath=no
  7562. link_all_deplibs=unknown
  7563. module_cmds=
  7564. module_expsym_cmds=
  7565. old_archive_from_new_cmds=
  7566. old_archive_from_expsyms_cmds=
  7567. thread_safe_flag_spec=
  7568. whole_archive_flag_spec=
  7569. # include_expsyms should be a list of space-separated symbols to be *always*
  7570. # included in the symbol list
  7571. include_expsyms=
  7572. # exclude_expsyms can be an extended regexp of symbols to exclude
  7573. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7574. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7575. # as well as any symbol that contains `d'.
  7576. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7577. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7578. # platforms (ab)use it in PIC code, but their linkers get confused if
  7579. # the symbol is explicitly referenced. Since portable code cannot
  7580. # rely on this symbol name, it's probably fine to never include it in
  7581. # preloaded symbol tables.
  7582. # Exclude shared library initialization/finalization symbols.
  7583. extract_expsyms_cmds=
  7584. case $host_os in
  7585. cygwin* | mingw* | pw32* | cegcc*)
  7586. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7587. # When not using gcc, we currently assume that we are using
  7588. # Microsoft Visual C++.
  7589. if test "$GCC" != yes; then
  7590. with_gnu_ld=no
  7591. fi
  7592. ;;
  7593. interix*)
  7594. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7595. with_gnu_ld=yes
  7596. ;;
  7597. openbsd*)
  7598. with_gnu_ld=no
  7599. ;;
  7600. esac
  7601. ld_shlibs=yes
  7602. # On some targets, GNU ld is compatible enough with the native linker
  7603. # that we're better off using the native interface for both.
  7604. lt_use_gnu_ld_interface=no
  7605. if test "$with_gnu_ld" = yes; then
  7606. case $host_os in
  7607. aix*)
  7608. # The AIX port of GNU ld has always aspired to compatibility
  7609. # with the native linker. However, as the warning in the GNU ld
  7610. # block says, versions before 2.19.5* couldn't really create working
  7611. # shared libraries, regardless of the interface used.
  7612. case `$LD -v 2>&1` in
  7613. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7614. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7615. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7616. *)
  7617. lt_use_gnu_ld_interface=yes
  7618. ;;
  7619. esac
  7620. ;;
  7621. *)
  7622. lt_use_gnu_ld_interface=yes
  7623. ;;
  7624. esac
  7625. fi
  7626. if test "$lt_use_gnu_ld_interface" = yes; then
  7627. # If archive_cmds runs LD, not CC, wlarc should be empty
  7628. wlarc='${wl}'
  7629. # Set some defaults for GNU ld with shared library support. These
  7630. # are reset later if shared libraries are not supported. Putting them
  7631. # here allows them to be overridden if necessary.
  7632. runpath_var=LD_RUN_PATH
  7633. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7634. export_dynamic_flag_spec='${wl}--export-dynamic'
  7635. # ancient GNU ld didn't support --whole-archive et. al.
  7636. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7637. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7638. else
  7639. whole_archive_flag_spec=
  7640. fi
  7641. supports_anon_versioning=no
  7642. case `$LD -v 2>&1` in
  7643. *GNU\ gold*) supports_anon_versioning=yes ;;
  7644. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7645. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7646. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7647. *\ 2.11.*) ;; # other 2.11 versions
  7648. *) supports_anon_versioning=yes ;;
  7649. esac
  7650. # See if GNU ld supports shared libraries.
  7651. case $host_os in
  7652. aix[3-9]*)
  7653. # On AIX/PPC, the GNU linker is very broken
  7654. if test "$host_cpu" != ia64; then
  7655. ld_shlibs=no
  7656. cat <<_LT_EOF 1>&2
  7657. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7658. *** to be unable to reliably create shared libraries on AIX.
  7659. *** Therefore, libtool is disabling shared libraries support. If you
  7660. *** really care for shared libraries, you may want to install binutils
  7661. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7662. *** You will then need to restart the configuration process.
  7663. _LT_EOF
  7664. fi
  7665. ;;
  7666. amigaos*)
  7667. case $host_cpu in
  7668. powerpc)
  7669. # see comment about AmigaOS4 .so support
  7670. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7671. archive_expsym_cmds=''
  7672. ;;
  7673. m68k)
  7674. 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)'
  7675. hardcode_libdir_flag_spec='-L$libdir'
  7676. hardcode_minus_L=yes
  7677. ;;
  7678. esac
  7679. ;;
  7680. beos*)
  7681. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7682. allow_undefined_flag=unsupported
  7683. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7684. # support --undefined. This deserves some investigation. FIXME
  7685. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7686. else
  7687. ld_shlibs=no
  7688. fi
  7689. ;;
  7690. cygwin* | mingw* | pw32* | cegcc*)
  7691. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7692. # as there is no search path for DLLs.
  7693. hardcode_libdir_flag_spec='-L$libdir'
  7694. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7695. allow_undefined_flag=unsupported
  7696. always_export_symbols=no
  7697. enable_shared_with_static_runtimes=yes
  7698. 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'
  7699. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7700. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7701. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7702. # If the export-symbols file already is a .def file (1st line
  7703. # is EXPORTS), use it as is; otherwise, prepend...
  7704. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7705. cp $export_symbols $output_objdir/$soname.def;
  7706. else
  7707. echo EXPORTS > $output_objdir/$soname.def;
  7708. cat $export_symbols >> $output_objdir/$soname.def;
  7709. fi~
  7710. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7711. else
  7712. ld_shlibs=no
  7713. fi
  7714. ;;
  7715. haiku*)
  7716. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7717. link_all_deplibs=yes
  7718. ;;
  7719. interix[3-9]*)
  7720. hardcode_direct=no
  7721. hardcode_shlibpath_var=no
  7722. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7723. export_dynamic_flag_spec='${wl}-E'
  7724. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7725. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7726. # default) and relocated if they conflict, which is a slow very memory
  7727. # consuming and fragmenting process. To avoid this, we pick a random,
  7728. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7729. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7730. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7731. 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'
  7732. ;;
  7733. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7734. tmp_diet=no
  7735. if test "$host_os" = linux-dietlibc; then
  7736. case $cc_basename in
  7737. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7738. esac
  7739. fi
  7740. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7741. && test "$tmp_diet" = no
  7742. then
  7743. tmp_addflag=' $pic_flag'
  7744. tmp_sharedflag='-shared'
  7745. case $cc_basename,$host_cpu in
  7746. pgcc*) # Portland Group C compiler
  7747. 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'
  7748. tmp_addflag=' $pic_flag'
  7749. ;;
  7750. pgf77* | pgf90* | pgf95* | pgfortran*)
  7751. # Portland Group f77 and f90 compilers
  7752. 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'
  7753. tmp_addflag=' $pic_flag -Mnomain' ;;
  7754. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7755. tmp_addflag=' -i_dynamic' ;;
  7756. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7757. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7758. ifc* | ifort*) # Intel Fortran compiler
  7759. tmp_addflag=' -nofor_main' ;;
  7760. lf95*) # Lahey Fortran 8.1
  7761. whole_archive_flag_spec=
  7762. tmp_sharedflag='--shared' ;;
  7763. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7764. tmp_sharedflag='-qmkshrobj'
  7765. tmp_addflag= ;;
  7766. nvcc*) # Cuda Compiler Driver 2.2
  7767. 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'
  7768. compiler_needs_object=yes
  7769. ;;
  7770. esac
  7771. case `$CC -V 2>&1 | sed 5q` in
  7772. *Sun\ C*) # Sun C 5.9
  7773. 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'
  7774. compiler_needs_object=yes
  7775. tmp_sharedflag='-G' ;;
  7776. *Sun\ F*) # Sun Fortran 8.3
  7777. tmp_sharedflag='-G' ;;
  7778. esac
  7779. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7780. if test "x$supports_anon_versioning" = xyes; then
  7781. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7782. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7783. echo "local: *; };" >> $output_objdir/$libname.ver~
  7784. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7785. fi
  7786. case $cc_basename in
  7787. xlf* | bgf* | bgxlf* | mpixlf*)
  7788. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7789. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7790. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7791. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7792. if test "x$supports_anon_versioning" = xyes; then
  7793. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7794. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7795. echo "local: *; };" >> $output_objdir/$libname.ver~
  7796. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7797. fi
  7798. ;;
  7799. esac
  7800. else
  7801. ld_shlibs=no
  7802. fi
  7803. ;;
  7804. netbsd*)
  7805. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7806. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7807. wlarc=
  7808. else
  7809. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7810. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7811. fi
  7812. ;;
  7813. solaris*)
  7814. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7815. ld_shlibs=no
  7816. cat <<_LT_EOF 1>&2
  7817. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7818. *** create shared libraries on Solaris systems. Therefore, libtool
  7819. *** is disabling shared libraries support. We urge you to upgrade GNU
  7820. *** binutils to release 2.9.1 or newer. Another option is to modify
  7821. *** your PATH or compiler configuration so that the native linker is
  7822. *** used, and then restart.
  7823. _LT_EOF
  7824. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7825. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7826. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7827. else
  7828. ld_shlibs=no
  7829. fi
  7830. ;;
  7831. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7832. case `$LD -v 2>&1` in
  7833. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7834. ld_shlibs=no
  7835. cat <<_LT_EOF 1>&2
  7836. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7837. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7838. *** is disabling shared libraries support. We urge you to upgrade GNU
  7839. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7840. *** your PATH or compiler configuration so that the native linker is
  7841. *** used, and then restart.
  7842. _LT_EOF
  7843. ;;
  7844. *)
  7845. # For security reasons, it is highly recommended that you always
  7846. # use absolute paths for naming shared libraries, and exclude the
  7847. # DT_RUNPATH tag from executables and libraries. But doing so
  7848. # requires that you compile everything twice, which is a pain.
  7849. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7850. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7851. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7852. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7853. else
  7854. ld_shlibs=no
  7855. fi
  7856. ;;
  7857. esac
  7858. ;;
  7859. sunos4*)
  7860. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7861. wlarc=
  7862. hardcode_direct=yes
  7863. hardcode_shlibpath_var=no
  7864. ;;
  7865. *)
  7866. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7867. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7868. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7869. else
  7870. ld_shlibs=no
  7871. fi
  7872. ;;
  7873. esac
  7874. if test "$ld_shlibs" = no; then
  7875. runpath_var=
  7876. hardcode_libdir_flag_spec=
  7877. export_dynamic_flag_spec=
  7878. whole_archive_flag_spec=
  7879. fi
  7880. else
  7881. # PORTME fill in a description of your system's linker (not GNU ld)
  7882. case $host_os in
  7883. aix3*)
  7884. allow_undefined_flag=unsupported
  7885. always_export_symbols=yes
  7886. 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'
  7887. # Note: this linker hardcodes the directories in LIBPATH if there
  7888. # are no directories specified by -L.
  7889. hardcode_minus_L=yes
  7890. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7891. # Neither direct hardcoding nor static linking is supported with a
  7892. # broken collect2.
  7893. hardcode_direct=unsupported
  7894. fi
  7895. ;;
  7896. aix[4-9]*)
  7897. if test "$host_cpu" = ia64; then
  7898. # On IA64, the linker does run time linking by default, so we don't
  7899. # have to do anything special.
  7900. aix_use_runtimelinking=no
  7901. exp_sym_flag='-Bexport'
  7902. no_entry_flag=""
  7903. else
  7904. # If we're using GNU nm, then we don't want the "-C" option.
  7905. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7906. # Also, AIX nm treats weak defined symbols like other global
  7907. # defined symbols, whereas GNU nm marks them as "W".
  7908. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7909. 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'
  7910. else
  7911. 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'
  7912. fi
  7913. aix_use_runtimelinking=no
  7914. # Test if we are trying to use run time linking or normal
  7915. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7916. # need to do runtime linking.
  7917. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7918. for ld_flag in $LDFLAGS; do
  7919. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7920. aix_use_runtimelinking=yes
  7921. break
  7922. fi
  7923. done
  7924. ;;
  7925. esac
  7926. exp_sym_flag='-bexport'
  7927. no_entry_flag='-bnoentry'
  7928. fi
  7929. # When large executables or shared objects are built, AIX ld can
  7930. # have problems creating the table of contents. If linking a library
  7931. # or program results in "error TOC overflow" add -mminimal-toc to
  7932. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7933. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7934. archive_cmds=''
  7935. hardcode_direct=yes
  7936. hardcode_direct_absolute=yes
  7937. hardcode_libdir_separator=':'
  7938. link_all_deplibs=yes
  7939. file_list_spec='${wl}-f,'
  7940. if test "$GCC" = yes; then
  7941. case $host_os in aix4.[012]|aix4.[012].*)
  7942. # We only want to do this on AIX 4.2 and lower, the check
  7943. # below for broken collect2 doesn't work under 4.3+
  7944. collect2name=`${CC} -print-prog-name=collect2`
  7945. if test -f "$collect2name" &&
  7946. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7947. then
  7948. # We have reworked collect2
  7949. :
  7950. else
  7951. # We have old collect2
  7952. hardcode_direct=unsupported
  7953. # It fails to find uninstalled libraries when the uninstalled
  7954. # path is not listed in the libpath. Setting hardcode_minus_L
  7955. # to unsupported forces relinking
  7956. hardcode_minus_L=yes
  7957. hardcode_libdir_flag_spec='-L$libdir'
  7958. hardcode_libdir_separator=
  7959. fi
  7960. ;;
  7961. esac
  7962. shared_flag='-shared'
  7963. if test "$aix_use_runtimelinking" = yes; then
  7964. shared_flag="$shared_flag "'${wl}-G'
  7965. fi
  7966. else
  7967. # not using gcc
  7968. if test "$host_cpu" = ia64; then
  7969. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7970. # chokes on -Wl,-G. The following line is correct:
  7971. shared_flag='-G'
  7972. else
  7973. if test "$aix_use_runtimelinking" = yes; then
  7974. shared_flag='${wl}-G'
  7975. else
  7976. shared_flag='${wl}-bM:SRE'
  7977. fi
  7978. fi
  7979. fi
  7980. export_dynamic_flag_spec='${wl}-bexpall'
  7981. # It seems that -bexpall does not export symbols beginning with
  7982. # underscore (_), so it is better to generate a list of symbols to export.
  7983. always_export_symbols=yes
  7984. if test "$aix_use_runtimelinking" = yes; then
  7985. # Warning - without using the other runtime loading flags (-brtl),
  7986. # -berok will link without error, but may produce a broken library.
  7987. allow_undefined_flag='-berok'
  7988. # Determine the default libpath from the value encoded in an
  7989. # empty executable.
  7990. if test "${lt_cv_aix_libpath+set}" = set; then
  7991. aix_libpath=$lt_cv_aix_libpath
  7992. else
  7993. if ${lt_cv_aix_libpath_+:} false; then :
  7994. $as_echo_n "(cached) " >&6
  7995. else
  7996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7997. /* end confdefs.h. */
  7998. int
  7999. main ()
  8000. {
  8001. ;
  8002. return 0;
  8003. }
  8004. _ACEOF
  8005. if ac_fn_c_try_link "$LINENO"; then :
  8006. lt_aix_libpath_sed='
  8007. /Import File Strings/,/^$/ {
  8008. /^0/ {
  8009. s/^0 *\([^ ]*\) *$/\1/
  8010. p
  8011. }
  8012. }'
  8013. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8014. # Check for a 64-bit object if we didn't find anything.
  8015. if test -z "$lt_cv_aix_libpath_"; then
  8016. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8017. fi
  8018. fi
  8019. rm -f core conftest.err conftest.$ac_objext \
  8020. conftest$ac_exeext conftest.$ac_ext
  8021. if test -z "$lt_cv_aix_libpath_"; then
  8022. lt_cv_aix_libpath_="/usr/lib:/lib"
  8023. fi
  8024. fi
  8025. aix_libpath=$lt_cv_aix_libpath_
  8026. fi
  8027. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8028. 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"
  8029. else
  8030. if test "$host_cpu" = ia64; then
  8031. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8032. allow_undefined_flag="-z nodefs"
  8033. 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"
  8034. else
  8035. # Determine the default libpath from the value encoded in an
  8036. # empty executable.
  8037. if test "${lt_cv_aix_libpath+set}" = set; then
  8038. aix_libpath=$lt_cv_aix_libpath
  8039. else
  8040. if ${lt_cv_aix_libpath_+:} false; then :
  8041. $as_echo_n "(cached) " >&6
  8042. else
  8043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8044. /* end confdefs.h. */
  8045. int
  8046. main ()
  8047. {
  8048. ;
  8049. return 0;
  8050. }
  8051. _ACEOF
  8052. if ac_fn_c_try_link "$LINENO"; then :
  8053. lt_aix_libpath_sed='
  8054. /Import File Strings/,/^$/ {
  8055. /^0/ {
  8056. s/^0 *\([^ ]*\) *$/\1/
  8057. p
  8058. }
  8059. }'
  8060. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8061. # Check for a 64-bit object if we didn't find anything.
  8062. if test -z "$lt_cv_aix_libpath_"; then
  8063. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8064. fi
  8065. fi
  8066. rm -f core conftest.err conftest.$ac_objext \
  8067. conftest$ac_exeext conftest.$ac_ext
  8068. if test -z "$lt_cv_aix_libpath_"; then
  8069. lt_cv_aix_libpath_="/usr/lib:/lib"
  8070. fi
  8071. fi
  8072. aix_libpath=$lt_cv_aix_libpath_
  8073. fi
  8074. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8075. # Warning - without using the other run time loading flags,
  8076. # -berok will link without error, but may produce a broken library.
  8077. no_undefined_flag=' ${wl}-bernotok'
  8078. allow_undefined_flag=' ${wl}-berok'
  8079. if test "$with_gnu_ld" = yes; then
  8080. # We only use this code for GNU lds that support --whole-archive.
  8081. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8082. else
  8083. # Exported symbols can be pulled into shared objects from archives
  8084. whole_archive_flag_spec='$convenience'
  8085. fi
  8086. archive_cmds_need_lc=yes
  8087. # This is similar to how AIX traditionally builds its shared libraries.
  8088. 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'
  8089. fi
  8090. fi
  8091. ;;
  8092. amigaos*)
  8093. case $host_cpu in
  8094. powerpc)
  8095. # see comment about AmigaOS4 .so support
  8096. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8097. archive_expsym_cmds=''
  8098. ;;
  8099. m68k)
  8100. 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)'
  8101. hardcode_libdir_flag_spec='-L$libdir'
  8102. hardcode_minus_L=yes
  8103. ;;
  8104. esac
  8105. ;;
  8106. bsdi[45]*)
  8107. export_dynamic_flag_spec=-rdynamic
  8108. ;;
  8109. cygwin* | mingw* | pw32* | cegcc*)
  8110. # When not using gcc, we currently assume that we are using
  8111. # Microsoft Visual C++.
  8112. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8113. # no search path for DLLs.
  8114. case $cc_basename in
  8115. cl*)
  8116. # Native MSVC
  8117. hardcode_libdir_flag_spec=' '
  8118. allow_undefined_flag=unsupported
  8119. always_export_symbols=yes
  8120. file_list_spec='@'
  8121. # Tell ltmain to make .lib files, not .a files.
  8122. libext=lib
  8123. # Tell ltmain to make .dll files, not .so files.
  8124. shrext_cmds=".dll"
  8125. # FIXME: Setting linknames here is a bad hack.
  8126. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8127. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8128. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8129. else
  8130. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8131. fi~
  8132. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8133. linknames='
  8134. # The linker will not automatically build a static lib if we build a DLL.
  8135. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8136. enable_shared_with_static_runtimes=yes
  8137. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8138. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8139. # Don't use ranlib
  8140. old_postinstall_cmds='chmod 644 $oldlib'
  8141. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8142. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8143. case $lt_outputfile in
  8144. *.exe|*.EXE) ;;
  8145. *)
  8146. lt_outputfile="$lt_outputfile.exe"
  8147. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8148. ;;
  8149. esac~
  8150. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8151. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8152. $RM "$lt_outputfile.manifest";
  8153. fi'
  8154. ;;
  8155. *)
  8156. # Assume MSVC wrapper
  8157. hardcode_libdir_flag_spec=' '
  8158. allow_undefined_flag=unsupported
  8159. # Tell ltmain to make .lib files, not .a files.
  8160. libext=lib
  8161. # Tell ltmain to make .dll files, not .so files.
  8162. shrext_cmds=".dll"
  8163. # FIXME: Setting linknames here is a bad hack.
  8164. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8165. # The linker will automatically build a .lib file if we build a DLL.
  8166. old_archive_from_new_cmds='true'
  8167. # FIXME: Should let the user specify the lib program.
  8168. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8169. enable_shared_with_static_runtimes=yes
  8170. ;;
  8171. esac
  8172. ;;
  8173. darwin* | rhapsody*)
  8174. archive_cmds_need_lc=no
  8175. hardcode_direct=no
  8176. hardcode_automatic=yes
  8177. hardcode_shlibpath_var=unsupported
  8178. if test "$lt_cv_ld_force_load" = "yes"; then
  8179. 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\"`'
  8180. else
  8181. whole_archive_flag_spec=''
  8182. fi
  8183. link_all_deplibs=yes
  8184. allow_undefined_flag="$_lt_dar_allow_undefined"
  8185. case $cc_basename in
  8186. ifort*) _lt_dar_can_shared=yes ;;
  8187. *) _lt_dar_can_shared=$GCC ;;
  8188. esac
  8189. if test "$_lt_dar_can_shared" = "yes"; then
  8190. output_verbose_link_cmd=func_echo_all
  8191. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8192. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8193. 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}"
  8194. 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}"
  8195. else
  8196. ld_shlibs=no
  8197. fi
  8198. ;;
  8199. dgux*)
  8200. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8201. hardcode_libdir_flag_spec='-L$libdir'
  8202. hardcode_shlibpath_var=no
  8203. ;;
  8204. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8205. # support. Future versions do this automatically, but an explicit c++rt0.o
  8206. # does not break anything, and helps significantly (at the cost of a little
  8207. # extra space).
  8208. freebsd2.2*)
  8209. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8210. hardcode_libdir_flag_spec='-R$libdir'
  8211. hardcode_direct=yes
  8212. hardcode_shlibpath_var=no
  8213. ;;
  8214. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8215. freebsd2.*)
  8216. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8217. hardcode_direct=yes
  8218. hardcode_minus_L=yes
  8219. hardcode_shlibpath_var=no
  8220. ;;
  8221. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8222. freebsd* | dragonfly*)
  8223. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8224. hardcode_libdir_flag_spec='-R$libdir'
  8225. hardcode_direct=yes
  8226. hardcode_shlibpath_var=no
  8227. ;;
  8228. hpux9*)
  8229. if test "$GCC" = yes; then
  8230. 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'
  8231. else
  8232. 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'
  8233. fi
  8234. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8235. hardcode_libdir_separator=:
  8236. hardcode_direct=yes
  8237. # hardcode_minus_L: Not really in the search PATH,
  8238. # but as the default location of the library.
  8239. hardcode_minus_L=yes
  8240. export_dynamic_flag_spec='${wl}-E'
  8241. ;;
  8242. hpux10*)
  8243. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8244. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8245. else
  8246. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8247. fi
  8248. if test "$with_gnu_ld" = no; then
  8249. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8250. hardcode_libdir_separator=:
  8251. hardcode_direct=yes
  8252. hardcode_direct_absolute=yes
  8253. export_dynamic_flag_spec='${wl}-E'
  8254. # hardcode_minus_L: Not really in the search PATH,
  8255. # but as the default location of the library.
  8256. hardcode_minus_L=yes
  8257. fi
  8258. ;;
  8259. hpux11*)
  8260. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8261. case $host_cpu in
  8262. hppa*64*)
  8263. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8264. ;;
  8265. ia64*)
  8266. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8267. ;;
  8268. *)
  8269. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8270. ;;
  8271. esac
  8272. else
  8273. case $host_cpu in
  8274. hppa*64*)
  8275. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8276. ;;
  8277. ia64*)
  8278. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8279. ;;
  8280. *)
  8281. # Older versions of the 11.00 compiler do not understand -b yet
  8282. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8284. $as_echo_n "checking if $CC understands -b... " >&6; }
  8285. if ${lt_cv_prog_compiler__b+:} false; then :
  8286. $as_echo_n "(cached) " >&6
  8287. else
  8288. lt_cv_prog_compiler__b=no
  8289. save_LDFLAGS="$LDFLAGS"
  8290. LDFLAGS="$LDFLAGS -b"
  8291. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8292. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8293. # The linker can only warn and ignore the option if not recognized
  8294. # So say no if there are warnings
  8295. if test -s conftest.err; then
  8296. # Append any errors to the config.log.
  8297. cat conftest.err 1>&5
  8298. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8299. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8300. if diff conftest.exp conftest.er2 >/dev/null; then
  8301. lt_cv_prog_compiler__b=yes
  8302. fi
  8303. else
  8304. lt_cv_prog_compiler__b=yes
  8305. fi
  8306. fi
  8307. $RM -r conftest*
  8308. LDFLAGS="$save_LDFLAGS"
  8309. fi
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8311. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8312. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8313. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8314. else
  8315. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8316. fi
  8317. ;;
  8318. esac
  8319. fi
  8320. if test "$with_gnu_ld" = no; then
  8321. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8322. hardcode_libdir_separator=:
  8323. case $host_cpu in
  8324. hppa*64*|ia64*)
  8325. hardcode_direct=no
  8326. hardcode_shlibpath_var=no
  8327. ;;
  8328. *)
  8329. hardcode_direct=yes
  8330. hardcode_direct_absolute=yes
  8331. export_dynamic_flag_spec='${wl}-E'
  8332. # hardcode_minus_L: Not really in the search PATH,
  8333. # but as the default location of the library.
  8334. hardcode_minus_L=yes
  8335. ;;
  8336. esac
  8337. fi
  8338. ;;
  8339. irix5* | irix6* | nonstopux*)
  8340. if test "$GCC" = yes; then
  8341. 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'
  8342. # Try to use the -exported_symbol ld option, if it does not
  8343. # work, assume that -exports_file does not work either and
  8344. # implicitly export all symbols.
  8345. # This should be the same for all languages, so no per-tag cache variable.
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8347. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8348. if ${lt_cv_irix_exported_symbol+:} false; then :
  8349. $as_echo_n "(cached) " >&6
  8350. else
  8351. save_LDFLAGS="$LDFLAGS"
  8352. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8354. /* end confdefs.h. */
  8355. int foo (void) { return 0; }
  8356. _ACEOF
  8357. if ac_fn_c_try_link "$LINENO"; then :
  8358. lt_cv_irix_exported_symbol=yes
  8359. else
  8360. lt_cv_irix_exported_symbol=no
  8361. fi
  8362. rm -f core conftest.err conftest.$ac_objext \
  8363. conftest$ac_exeext conftest.$ac_ext
  8364. LDFLAGS="$save_LDFLAGS"
  8365. fi
  8366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8367. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8368. if test "$lt_cv_irix_exported_symbol" = yes; then
  8369. 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'
  8370. fi
  8371. else
  8372. 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'
  8373. 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'
  8374. fi
  8375. archive_cmds_need_lc='no'
  8376. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8377. hardcode_libdir_separator=:
  8378. inherit_rpath=yes
  8379. link_all_deplibs=yes
  8380. ;;
  8381. netbsd*)
  8382. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8383. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8384. else
  8385. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8386. fi
  8387. hardcode_libdir_flag_spec='-R$libdir'
  8388. hardcode_direct=yes
  8389. hardcode_shlibpath_var=no
  8390. ;;
  8391. newsos6)
  8392. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8393. hardcode_direct=yes
  8394. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8395. hardcode_libdir_separator=:
  8396. hardcode_shlibpath_var=no
  8397. ;;
  8398. *nto* | *qnx*)
  8399. ;;
  8400. openbsd*)
  8401. if test -f /usr/libexec/ld.so; then
  8402. hardcode_direct=yes
  8403. hardcode_shlibpath_var=no
  8404. hardcode_direct_absolute=yes
  8405. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8406. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8407. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8408. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8409. export_dynamic_flag_spec='${wl}-E'
  8410. else
  8411. case $host_os in
  8412. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8413. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8414. hardcode_libdir_flag_spec='-R$libdir'
  8415. ;;
  8416. *)
  8417. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8418. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8419. ;;
  8420. esac
  8421. fi
  8422. else
  8423. ld_shlibs=no
  8424. fi
  8425. ;;
  8426. os2*)
  8427. hardcode_libdir_flag_spec='-L$libdir'
  8428. hardcode_minus_L=yes
  8429. allow_undefined_flag=unsupported
  8430. 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'
  8431. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8432. ;;
  8433. osf3*)
  8434. if test "$GCC" = yes; then
  8435. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8436. 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'
  8437. else
  8438. allow_undefined_flag=' -expect_unresolved \*'
  8439. 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'
  8440. fi
  8441. archive_cmds_need_lc='no'
  8442. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8443. hardcode_libdir_separator=:
  8444. ;;
  8445. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8446. if test "$GCC" = yes; then
  8447. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8448. 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'
  8449. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8450. else
  8451. allow_undefined_flag=' -expect_unresolved \*'
  8452. 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'
  8453. 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~
  8454. $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'
  8455. # Both c and cxx compiler support -rpath directly
  8456. hardcode_libdir_flag_spec='-rpath $libdir'
  8457. fi
  8458. archive_cmds_need_lc='no'
  8459. hardcode_libdir_separator=:
  8460. ;;
  8461. solaris*)
  8462. no_undefined_flag=' -z defs'
  8463. if test "$GCC" = yes; then
  8464. wlarc='${wl}'
  8465. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8467. $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'
  8468. else
  8469. case `$CC -V 2>&1` in
  8470. *"Compilers 5.0"*)
  8471. wlarc=''
  8472. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8473. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8474. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8475. ;;
  8476. *)
  8477. wlarc='${wl}'
  8478. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8479. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8480. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8481. ;;
  8482. esac
  8483. fi
  8484. hardcode_libdir_flag_spec='-R$libdir'
  8485. hardcode_shlibpath_var=no
  8486. case $host_os in
  8487. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8488. *)
  8489. # The compiler driver will combine and reorder linker options,
  8490. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8491. # but is careful enough not to reorder.
  8492. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8493. if test "$GCC" = yes; then
  8494. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8495. else
  8496. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8497. fi
  8498. ;;
  8499. esac
  8500. link_all_deplibs=yes
  8501. ;;
  8502. sunos4*)
  8503. if test "x$host_vendor" = xsequent; then
  8504. # Use $CC to link under sequent, because it throws in some extra .o
  8505. # files that make .init and .fini sections work.
  8506. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8507. else
  8508. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8509. fi
  8510. hardcode_libdir_flag_spec='-L$libdir'
  8511. hardcode_direct=yes
  8512. hardcode_minus_L=yes
  8513. hardcode_shlibpath_var=no
  8514. ;;
  8515. sysv4)
  8516. case $host_vendor in
  8517. sni)
  8518. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8519. hardcode_direct=yes # is this really true???
  8520. ;;
  8521. siemens)
  8522. ## LD is ld it makes a PLAMLIB
  8523. ## CC just makes a GrossModule.
  8524. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8525. reload_cmds='$CC -r -o $output$reload_objs'
  8526. hardcode_direct=no
  8527. ;;
  8528. motorola)
  8529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8530. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8531. ;;
  8532. esac
  8533. runpath_var='LD_RUN_PATH'
  8534. hardcode_shlibpath_var=no
  8535. ;;
  8536. sysv4.3*)
  8537. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8538. hardcode_shlibpath_var=no
  8539. export_dynamic_flag_spec='-Bexport'
  8540. ;;
  8541. sysv4*MP*)
  8542. if test -d /usr/nec; then
  8543. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8544. hardcode_shlibpath_var=no
  8545. runpath_var=LD_RUN_PATH
  8546. hardcode_runpath_var=yes
  8547. ld_shlibs=yes
  8548. fi
  8549. ;;
  8550. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8551. no_undefined_flag='${wl}-z,text'
  8552. archive_cmds_need_lc=no
  8553. hardcode_shlibpath_var=no
  8554. runpath_var='LD_RUN_PATH'
  8555. if test "$GCC" = yes; then
  8556. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8557. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8558. else
  8559. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8560. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. fi
  8562. ;;
  8563. sysv5* | sco3.2v5* | sco5v6*)
  8564. # Note: We can NOT use -z defs as we might desire, because we do not
  8565. # link with -lc, and that would cause any symbols used from libc to
  8566. # always be unresolved, which means just about no library would
  8567. # ever link correctly. If we're not using GNU ld we use -z text
  8568. # though, which does catch some bad symbols but isn't as heavy-handed
  8569. # as -z defs.
  8570. no_undefined_flag='${wl}-z,text'
  8571. allow_undefined_flag='${wl}-z,nodefs'
  8572. archive_cmds_need_lc=no
  8573. hardcode_shlibpath_var=no
  8574. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8575. hardcode_libdir_separator=':'
  8576. link_all_deplibs=yes
  8577. export_dynamic_flag_spec='${wl}-Bexport'
  8578. runpath_var='LD_RUN_PATH'
  8579. if test "$GCC" = yes; then
  8580. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8581. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8582. else
  8583. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8584. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8585. fi
  8586. ;;
  8587. uts4*)
  8588. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8589. hardcode_libdir_flag_spec='-L$libdir'
  8590. hardcode_shlibpath_var=no
  8591. ;;
  8592. *)
  8593. ld_shlibs=no
  8594. ;;
  8595. esac
  8596. if test x$host_vendor = xsni; then
  8597. case $host in
  8598. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8599. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8600. ;;
  8601. esac
  8602. fi
  8603. fi
  8604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8605. $as_echo "$ld_shlibs" >&6; }
  8606. test "$ld_shlibs" = no && can_build_shared=no
  8607. with_gnu_ld=$with_gnu_ld
  8608. #
  8609. # Do we need to explicitly link libc?
  8610. #
  8611. case "x$archive_cmds_need_lc" in
  8612. x|xyes)
  8613. # Assume -lc should be added
  8614. archive_cmds_need_lc=yes
  8615. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8616. case $archive_cmds in
  8617. *'~'*)
  8618. # FIXME: we may have to deal with multi-command sequences.
  8619. ;;
  8620. '$CC '*)
  8621. # Test whether the compiler implicitly links with -lc since on some
  8622. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8623. # to ld, don't add -lc before -lgcc.
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8625. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8626. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8627. $as_echo_n "(cached) " >&6
  8628. else
  8629. $RM conftest*
  8630. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8631. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8632. (eval $ac_compile) 2>&5
  8633. ac_status=$?
  8634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8635. test $ac_status = 0; } 2>conftest.err; then
  8636. soname=conftest
  8637. lib=conftest
  8638. libobjs=conftest.$ac_objext
  8639. deplibs=
  8640. wl=$lt_prog_compiler_wl
  8641. pic_flag=$lt_prog_compiler_pic
  8642. compiler_flags=-v
  8643. linker_flags=-v
  8644. verstring=
  8645. output_objdir=.
  8646. libname=conftest
  8647. lt_save_allow_undefined_flag=$allow_undefined_flag
  8648. allow_undefined_flag=
  8649. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8650. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8651. ac_status=$?
  8652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8653. test $ac_status = 0; }
  8654. then
  8655. lt_cv_archive_cmds_need_lc=no
  8656. else
  8657. lt_cv_archive_cmds_need_lc=yes
  8658. fi
  8659. allow_undefined_flag=$lt_save_allow_undefined_flag
  8660. else
  8661. cat conftest.err 1>&5
  8662. fi
  8663. $RM conftest*
  8664. fi
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8666. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8667. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8668. ;;
  8669. esac
  8670. fi
  8671. ;;
  8672. esac
  8673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8674. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8675. if test "$GCC" = yes; then
  8676. case $host_os in
  8677. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8678. *) lt_awk_arg="/^libraries:/" ;;
  8679. esac
  8680. case $host_os in
  8681. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8682. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8683. esac
  8684. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8685. case $lt_search_path_spec in
  8686. *\;*)
  8687. # if the path contains ";" then we assume it to be the separator
  8688. # otherwise default to the standard path separator (i.e. ":") - it is
  8689. # assumed that no part of a normal pathname contains ";" but that should
  8690. # okay in the real world where ";" in dirpaths is itself problematic.
  8691. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8692. ;;
  8693. *)
  8694. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8695. ;;
  8696. esac
  8697. # Ok, now we have the path, separated by spaces, we can step through it
  8698. # and add multilib dir if necessary...
  8699. lt_tmp_lt_search_path_spec=
  8700. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8701. # ...but if some path already ends with the multilib dir we assume
  8702. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8703. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8704. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8705. lt_multi_os_dir=
  8706. ;;
  8707. esac
  8708. for lt_sys_path in $lt_search_path_spec; do
  8709. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8710. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8711. elif test -n "$lt_multi_os_dir"; then
  8712. test -d "$lt_sys_path" && \
  8713. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8714. fi
  8715. done
  8716. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8717. BEGIN {RS=" "; FS="/|\n";} {
  8718. lt_foo="";
  8719. lt_count=0;
  8720. for (lt_i = NF; lt_i > 0; lt_i--) {
  8721. if ($lt_i != "" && $lt_i != ".") {
  8722. if ($lt_i == "..") {
  8723. lt_count++;
  8724. } else {
  8725. if (lt_count == 0) {
  8726. lt_foo="/" $lt_i lt_foo;
  8727. } else {
  8728. lt_count--;
  8729. }
  8730. }
  8731. }
  8732. }
  8733. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8734. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8735. }'`
  8736. # AWK program above erroneously prepends '/' to C:/dos/paths
  8737. # for these hosts.
  8738. case $host_os in
  8739. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8740. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8741. esac
  8742. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8743. else
  8744. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8745. fi
  8746. library_names_spec=
  8747. libname_spec='lib$name'
  8748. soname_spec=
  8749. shrext_cmds=".so"
  8750. postinstall_cmds=
  8751. postuninstall_cmds=
  8752. finish_cmds=
  8753. finish_eval=
  8754. shlibpath_var=
  8755. shlibpath_overrides_runpath=unknown
  8756. version_type=none
  8757. dynamic_linker="$host_os ld.so"
  8758. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8759. need_lib_prefix=unknown
  8760. hardcode_into_libs=no
  8761. # when you set need_version to no, make sure it does not cause -set_version
  8762. # flags to be left without arguments
  8763. need_version=unknown
  8764. case $host_os in
  8765. aix3*)
  8766. version_type=linux # correct to gnu/linux during the next big refactor
  8767. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8768. shlibpath_var=LIBPATH
  8769. # AIX 3 has no versioning support, so we append a major version to the name.
  8770. soname_spec='${libname}${release}${shared_ext}$major'
  8771. ;;
  8772. aix[4-9]*)
  8773. version_type=linux # correct to gnu/linux during the next big refactor
  8774. need_lib_prefix=no
  8775. need_version=no
  8776. hardcode_into_libs=yes
  8777. if test "$host_cpu" = ia64; then
  8778. # AIX 5 supports IA64
  8779. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8780. shlibpath_var=LD_LIBRARY_PATH
  8781. else
  8782. # With GCC up to 2.95.x, collect2 would create an import file
  8783. # for dependence libraries. The import file would start with
  8784. # the line `#! .'. This would cause the generated library to
  8785. # depend on `.', always an invalid library. This was fixed in
  8786. # development snapshots of GCC prior to 3.0.
  8787. case $host_os in
  8788. aix4 | aix4.[01] | aix4.[01].*)
  8789. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8790. echo ' yes '
  8791. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8792. :
  8793. else
  8794. can_build_shared=no
  8795. fi
  8796. ;;
  8797. esac
  8798. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8799. # soname into executable. Probably we can add versioning support to
  8800. # collect2, so additional links can be useful in future.
  8801. if test "$aix_use_runtimelinking" = yes; then
  8802. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8803. # instead of lib<name>.a to let people know that these are not
  8804. # typical AIX shared libraries.
  8805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8806. else
  8807. # We preserve .a as extension for shared libraries through AIX4.2
  8808. # and later when we are not doing run time linking.
  8809. library_names_spec='${libname}${release}.a $libname.a'
  8810. soname_spec='${libname}${release}${shared_ext}$major'
  8811. fi
  8812. shlibpath_var=LIBPATH
  8813. fi
  8814. ;;
  8815. amigaos*)
  8816. case $host_cpu in
  8817. powerpc)
  8818. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8819. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8821. ;;
  8822. m68k)
  8823. library_names_spec='$libname.ixlibrary $libname.a'
  8824. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8825. 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'
  8826. ;;
  8827. esac
  8828. ;;
  8829. beos*)
  8830. library_names_spec='${libname}${shared_ext}'
  8831. dynamic_linker="$host_os ld.so"
  8832. shlibpath_var=LIBRARY_PATH
  8833. ;;
  8834. bsdi[45]*)
  8835. version_type=linux # correct to gnu/linux during the next big refactor
  8836. need_version=no
  8837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8838. soname_spec='${libname}${release}${shared_ext}$major'
  8839. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8840. shlibpath_var=LD_LIBRARY_PATH
  8841. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8842. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8843. # the default ld.so.conf also contains /usr/contrib/lib and
  8844. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8845. # libtool to hard-code these into programs
  8846. ;;
  8847. cygwin* | mingw* | pw32* | cegcc*)
  8848. version_type=windows
  8849. shrext_cmds=".dll"
  8850. need_version=no
  8851. need_lib_prefix=no
  8852. case $GCC,$cc_basename in
  8853. yes,*)
  8854. # gcc
  8855. library_names_spec='$libname.dll.a'
  8856. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8857. postinstall_cmds='base_file=`basename \${file}`~
  8858. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8859. dldir=$destdir/`dirname \$dlpath`~
  8860. test -d \$dldir || mkdir -p \$dldir~
  8861. $install_prog $dir/$dlname \$dldir/$dlname~
  8862. chmod a+x \$dldir/$dlname~
  8863. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8864. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8865. fi'
  8866. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8867. dlpath=$dir/\$dldll~
  8868. $RM \$dlpath'
  8869. shlibpath_overrides_runpath=yes
  8870. case $host_os in
  8871. cygwin*)
  8872. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8873. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8874. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8875. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8876. ;;
  8877. mingw* | cegcc*)
  8878. # MinGW DLLs use traditional 'lib' prefix
  8879. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8880. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8881. ;;
  8882. pw32*)
  8883. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8884. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8885. ;;
  8886. esac
  8887. dynamic_linker='Win32 ld.exe'
  8888. ;;
  8889. *,cl*)
  8890. # Native MSVC
  8891. libname_spec='$name'
  8892. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8893. library_names_spec='${libname}.dll.lib'
  8894. case $build_os in
  8895. mingw*)
  8896. sys_lib_search_path_spec=
  8897. lt_save_ifs=$IFS
  8898. IFS=';'
  8899. for lt_path in $LIB
  8900. do
  8901. IFS=$lt_save_ifs
  8902. # Let DOS variable expansion print the short 8.3 style file name.
  8903. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8904. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8905. done
  8906. IFS=$lt_save_ifs
  8907. # Convert to MSYS style.
  8908. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8909. ;;
  8910. cygwin*)
  8911. # Convert to unix form, then to dos form, then back to unix form
  8912. # but this time dos style (no spaces!) so that the unix form looks
  8913. # like /cygdrive/c/PROGRA~1:/cygdr...
  8914. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8915. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8916. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8917. ;;
  8918. *)
  8919. sys_lib_search_path_spec="$LIB"
  8920. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8921. # It is most probably a Windows format PATH.
  8922. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8923. else
  8924. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8925. fi
  8926. # FIXME: find the short name or the path components, as spaces are
  8927. # common. (e.g. "Program Files" -> "PROGRA~1")
  8928. ;;
  8929. esac
  8930. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8931. postinstall_cmds='base_file=`basename \${file}`~
  8932. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8933. dldir=$destdir/`dirname \$dlpath`~
  8934. test -d \$dldir || mkdir -p \$dldir~
  8935. $install_prog $dir/$dlname \$dldir/$dlname'
  8936. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8937. dlpath=$dir/\$dldll~
  8938. $RM \$dlpath'
  8939. shlibpath_overrides_runpath=yes
  8940. dynamic_linker='Win32 link.exe'
  8941. ;;
  8942. *)
  8943. # Assume MSVC wrapper
  8944. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8945. dynamic_linker='Win32 ld.exe'
  8946. ;;
  8947. esac
  8948. # FIXME: first we should search . and the directory the executable is in
  8949. shlibpath_var=PATH
  8950. ;;
  8951. darwin* | rhapsody*)
  8952. dynamic_linker="$host_os dyld"
  8953. version_type=darwin
  8954. need_lib_prefix=no
  8955. need_version=no
  8956. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8957. soname_spec='${libname}${release}${major}$shared_ext'
  8958. shlibpath_overrides_runpath=yes
  8959. shlibpath_var=DYLD_LIBRARY_PATH
  8960. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8961. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8962. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8963. ;;
  8964. dgux*)
  8965. version_type=linux # correct to gnu/linux during the next big refactor
  8966. need_lib_prefix=no
  8967. need_version=no
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. shlibpath_var=LD_LIBRARY_PATH
  8971. ;;
  8972. freebsd* | dragonfly*)
  8973. # DragonFly does not have aout. When/if they implement a new
  8974. # versioning mechanism, adjust this.
  8975. if test -x /usr/bin/objformat; then
  8976. objformat=`/usr/bin/objformat`
  8977. else
  8978. case $host_os in
  8979. freebsd[23].*) objformat=aout ;;
  8980. *) objformat=elf ;;
  8981. esac
  8982. fi
  8983. version_type=freebsd-$objformat
  8984. case $version_type in
  8985. freebsd-elf*)
  8986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8987. need_version=no
  8988. need_lib_prefix=no
  8989. ;;
  8990. freebsd-*)
  8991. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8992. need_version=yes
  8993. ;;
  8994. esac
  8995. shlibpath_var=LD_LIBRARY_PATH
  8996. case $host_os in
  8997. freebsd2.*)
  8998. shlibpath_overrides_runpath=yes
  8999. ;;
  9000. freebsd3.[01]* | freebsdelf3.[01]*)
  9001. shlibpath_overrides_runpath=yes
  9002. hardcode_into_libs=yes
  9003. ;;
  9004. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9005. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9006. shlibpath_overrides_runpath=no
  9007. hardcode_into_libs=yes
  9008. ;;
  9009. *) # from 4.6 on, and DragonFly
  9010. shlibpath_overrides_runpath=yes
  9011. hardcode_into_libs=yes
  9012. ;;
  9013. esac
  9014. ;;
  9015. gnu*)
  9016. version_type=linux # correct to gnu/linux during the next big refactor
  9017. need_lib_prefix=no
  9018. need_version=no
  9019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9020. soname_spec='${libname}${release}${shared_ext}$major'
  9021. shlibpath_var=LD_LIBRARY_PATH
  9022. shlibpath_overrides_runpath=no
  9023. hardcode_into_libs=yes
  9024. ;;
  9025. haiku*)
  9026. version_type=linux # correct to gnu/linux during the next big refactor
  9027. need_lib_prefix=no
  9028. need_version=no
  9029. dynamic_linker="$host_os runtime_loader"
  9030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9031. soname_spec='${libname}${release}${shared_ext}$major'
  9032. shlibpath_var=LIBRARY_PATH
  9033. shlibpath_overrides_runpath=yes
  9034. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9035. hardcode_into_libs=yes
  9036. ;;
  9037. hpux9* | hpux10* | hpux11*)
  9038. # Give a soname corresponding to the major version so that dld.sl refuses to
  9039. # link against other versions.
  9040. version_type=sunos
  9041. need_lib_prefix=no
  9042. need_version=no
  9043. case $host_cpu in
  9044. ia64*)
  9045. shrext_cmds='.so'
  9046. hardcode_into_libs=yes
  9047. dynamic_linker="$host_os dld.so"
  9048. shlibpath_var=LD_LIBRARY_PATH
  9049. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9051. soname_spec='${libname}${release}${shared_ext}$major'
  9052. if test "X$HPUX_IA64_MODE" = X32; then
  9053. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9054. else
  9055. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9056. fi
  9057. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9058. ;;
  9059. hppa*64*)
  9060. shrext_cmds='.sl'
  9061. hardcode_into_libs=yes
  9062. dynamic_linker="$host_os dld.sl"
  9063. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9064. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9068. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9069. ;;
  9070. *)
  9071. shrext_cmds='.sl'
  9072. dynamic_linker="$host_os dld.sl"
  9073. shlibpath_var=SHLIB_PATH
  9074. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9076. soname_spec='${libname}${release}${shared_ext}$major'
  9077. ;;
  9078. esac
  9079. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9080. postinstall_cmds='chmod 555 $lib'
  9081. # or fails outright, so override atomically:
  9082. install_override_mode=555
  9083. ;;
  9084. interix[3-9]*)
  9085. version_type=linux # correct to gnu/linux during the next big refactor
  9086. need_lib_prefix=no
  9087. need_version=no
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9089. soname_spec='${libname}${release}${shared_ext}$major'
  9090. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9091. shlibpath_var=LD_LIBRARY_PATH
  9092. shlibpath_overrides_runpath=no
  9093. hardcode_into_libs=yes
  9094. ;;
  9095. irix5* | irix6* | nonstopux*)
  9096. case $host_os in
  9097. nonstopux*) version_type=nonstopux ;;
  9098. *)
  9099. if test "$lt_cv_prog_gnu_ld" = yes; then
  9100. version_type=linux # correct to gnu/linux during the next big refactor
  9101. else
  9102. version_type=irix
  9103. fi ;;
  9104. esac
  9105. need_lib_prefix=no
  9106. need_version=no
  9107. soname_spec='${libname}${release}${shared_ext}$major'
  9108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9109. case $host_os in
  9110. irix5* | nonstopux*)
  9111. libsuff= shlibsuff=
  9112. ;;
  9113. *)
  9114. case $LD in # libtool.m4 will add one of these switches to LD
  9115. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9116. libsuff= shlibsuff= libmagic=32-bit;;
  9117. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9118. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9119. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9120. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9121. *) libsuff= shlibsuff= libmagic=never-match;;
  9122. esac
  9123. ;;
  9124. esac
  9125. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9126. shlibpath_overrides_runpath=no
  9127. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9128. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9129. hardcode_into_libs=yes
  9130. ;;
  9131. # No shared lib support for Linux oldld, aout, or coff.
  9132. linux*oldld* | linux*aout* | linux*coff*)
  9133. dynamic_linker=no
  9134. ;;
  9135. # This must be glibc/ELF.
  9136. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9137. version_type=linux # correct to gnu/linux during the next big refactor
  9138. need_lib_prefix=no
  9139. need_version=no
  9140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9141. soname_spec='${libname}${release}${shared_ext}$major'
  9142. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9143. shlibpath_var=LD_LIBRARY_PATH
  9144. shlibpath_overrides_runpath=no
  9145. # Some binutils ld are patched to set DT_RUNPATH
  9146. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9147. $as_echo_n "(cached) " >&6
  9148. else
  9149. lt_cv_shlibpath_overrides_runpath=no
  9150. save_LDFLAGS=$LDFLAGS
  9151. save_libdir=$libdir
  9152. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9153. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9155. /* end confdefs.h. */
  9156. int
  9157. main ()
  9158. {
  9159. ;
  9160. return 0;
  9161. }
  9162. _ACEOF
  9163. if ac_fn_c_try_link "$LINENO"; then :
  9164. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9165. lt_cv_shlibpath_overrides_runpath=yes
  9166. fi
  9167. fi
  9168. rm -f core conftest.err conftest.$ac_objext \
  9169. conftest$ac_exeext conftest.$ac_ext
  9170. LDFLAGS=$save_LDFLAGS
  9171. libdir=$save_libdir
  9172. fi
  9173. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9174. # This implies no fast_install, which is unacceptable.
  9175. # Some rework will be needed to allow for fast_install
  9176. # before this can be enabled.
  9177. hardcode_into_libs=yes
  9178. # Append ld.so.conf contents to the search path
  9179. if test -f /etc/ld.so.conf; then
  9180. 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' ' '`
  9181. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9182. fi
  9183. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9184. # powerpc, because MkLinux only supported shared libraries with the
  9185. # GNU dynamic linker. Since this was broken with cross compilers,
  9186. # most powerpc-linux boxes support dynamic linking these days and
  9187. # people can always --disable-shared, the test was removed, and we
  9188. # assume the GNU/Linux dynamic linker is in use.
  9189. dynamic_linker='GNU/Linux ld.so'
  9190. ;;
  9191. netbsd*)
  9192. version_type=sunos
  9193. need_lib_prefix=no
  9194. need_version=no
  9195. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9197. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9198. dynamic_linker='NetBSD (a.out) ld.so'
  9199. else
  9200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9201. soname_spec='${libname}${release}${shared_ext}$major'
  9202. dynamic_linker='NetBSD ld.elf_so'
  9203. fi
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. shlibpath_overrides_runpath=yes
  9206. hardcode_into_libs=yes
  9207. ;;
  9208. newsos6)
  9209. version_type=linux # correct to gnu/linux during the next big refactor
  9210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. shlibpath_overrides_runpath=yes
  9213. ;;
  9214. *nto* | *qnx*)
  9215. version_type=qnx
  9216. need_lib_prefix=no
  9217. need_version=no
  9218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9219. soname_spec='${libname}${release}${shared_ext}$major'
  9220. shlibpath_var=LD_LIBRARY_PATH
  9221. shlibpath_overrides_runpath=no
  9222. hardcode_into_libs=yes
  9223. dynamic_linker='ldqnx.so'
  9224. ;;
  9225. openbsd*)
  9226. version_type=sunos
  9227. sys_lib_dlsearch_path_spec="/usr/lib"
  9228. need_lib_prefix=no
  9229. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9230. case $host_os in
  9231. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9232. *) need_version=no ;;
  9233. esac
  9234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9235. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9236. shlibpath_var=LD_LIBRARY_PATH
  9237. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9238. case $host_os in
  9239. openbsd2.[89] | openbsd2.[89].*)
  9240. shlibpath_overrides_runpath=no
  9241. ;;
  9242. *)
  9243. shlibpath_overrides_runpath=yes
  9244. ;;
  9245. esac
  9246. else
  9247. shlibpath_overrides_runpath=yes
  9248. fi
  9249. ;;
  9250. os2*)
  9251. libname_spec='$name'
  9252. shrext_cmds=".dll"
  9253. need_lib_prefix=no
  9254. library_names_spec='$libname${shared_ext} $libname.a'
  9255. dynamic_linker='OS/2 ld.exe'
  9256. shlibpath_var=LIBPATH
  9257. ;;
  9258. osf3* | osf4* | osf5*)
  9259. version_type=osf
  9260. need_lib_prefix=no
  9261. need_version=no
  9262. soname_spec='${libname}${release}${shared_ext}$major'
  9263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9264. shlibpath_var=LD_LIBRARY_PATH
  9265. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9266. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9267. ;;
  9268. rdos*)
  9269. dynamic_linker=no
  9270. ;;
  9271. solaris*)
  9272. version_type=linux # correct to gnu/linux during the next big refactor
  9273. need_lib_prefix=no
  9274. need_version=no
  9275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9276. soname_spec='${libname}${release}${shared_ext}$major'
  9277. shlibpath_var=LD_LIBRARY_PATH
  9278. shlibpath_overrides_runpath=yes
  9279. hardcode_into_libs=yes
  9280. # ldd complains unless libraries are executable
  9281. postinstall_cmds='chmod +x $lib'
  9282. ;;
  9283. sunos4*)
  9284. version_type=sunos
  9285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9286. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9287. shlibpath_var=LD_LIBRARY_PATH
  9288. shlibpath_overrides_runpath=yes
  9289. if test "$with_gnu_ld" = yes; then
  9290. need_lib_prefix=no
  9291. fi
  9292. need_version=yes
  9293. ;;
  9294. sysv4 | sysv4.3*)
  9295. version_type=linux # correct to gnu/linux during the next big refactor
  9296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9297. soname_spec='${libname}${release}${shared_ext}$major'
  9298. shlibpath_var=LD_LIBRARY_PATH
  9299. case $host_vendor in
  9300. sni)
  9301. shlibpath_overrides_runpath=no
  9302. need_lib_prefix=no
  9303. runpath_var=LD_RUN_PATH
  9304. ;;
  9305. siemens)
  9306. need_lib_prefix=no
  9307. ;;
  9308. motorola)
  9309. need_lib_prefix=no
  9310. need_version=no
  9311. shlibpath_overrides_runpath=no
  9312. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9313. ;;
  9314. esac
  9315. ;;
  9316. sysv4*MP*)
  9317. if test -d /usr/nec ;then
  9318. version_type=linux # correct to gnu/linux during the next big refactor
  9319. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9320. soname_spec='$libname${shared_ext}.$major'
  9321. shlibpath_var=LD_LIBRARY_PATH
  9322. fi
  9323. ;;
  9324. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9325. version_type=freebsd-elf
  9326. need_lib_prefix=no
  9327. need_version=no
  9328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9329. soname_spec='${libname}${release}${shared_ext}$major'
  9330. shlibpath_var=LD_LIBRARY_PATH
  9331. shlibpath_overrides_runpath=yes
  9332. hardcode_into_libs=yes
  9333. if test "$with_gnu_ld" = yes; then
  9334. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9335. else
  9336. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9337. case $host_os in
  9338. sco3.2v5*)
  9339. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9340. ;;
  9341. esac
  9342. fi
  9343. sys_lib_dlsearch_path_spec='/usr/lib'
  9344. ;;
  9345. tpf*)
  9346. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9347. version_type=linux # correct to gnu/linux during the next big refactor
  9348. need_lib_prefix=no
  9349. need_version=no
  9350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9351. shlibpath_var=LD_LIBRARY_PATH
  9352. shlibpath_overrides_runpath=no
  9353. hardcode_into_libs=yes
  9354. ;;
  9355. uts4*)
  9356. version_type=linux # correct to gnu/linux during the next big refactor
  9357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9358. soname_spec='${libname}${release}${shared_ext}$major'
  9359. shlibpath_var=LD_LIBRARY_PATH
  9360. ;;
  9361. *)
  9362. dynamic_linker=no
  9363. ;;
  9364. esac
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9366. $as_echo "$dynamic_linker" >&6; }
  9367. test "$dynamic_linker" = no && can_build_shared=no
  9368. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9369. if test "$GCC" = yes; then
  9370. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9371. fi
  9372. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9373. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9374. fi
  9375. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9376. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9377. fi
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9379. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9380. hardcode_action=
  9381. if test -n "$hardcode_libdir_flag_spec" ||
  9382. test -n "$runpath_var" ||
  9383. test "X$hardcode_automatic" = "Xyes" ; then
  9384. # We can hardcode non-existent directories.
  9385. if test "$hardcode_direct" != no &&
  9386. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9387. # have to relink, otherwise we might link with an installed library
  9388. # when we should be linking with a yet-to-be-installed one
  9389. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9390. test "$hardcode_minus_L" != no; then
  9391. # Linking always hardcodes the temporary library directory.
  9392. hardcode_action=relink
  9393. else
  9394. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9395. hardcode_action=immediate
  9396. fi
  9397. else
  9398. # We cannot hardcode anything, or else we can only hardcode existing
  9399. # directories.
  9400. hardcode_action=unsupported
  9401. fi
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9403. $as_echo "$hardcode_action" >&6; }
  9404. if test "$hardcode_action" = relink ||
  9405. test "$inherit_rpath" = yes; then
  9406. # Fast installation is not supported
  9407. enable_fast_install=no
  9408. elif test "$shlibpath_overrides_runpath" = yes ||
  9409. test "$enable_shared" = no; then
  9410. # Fast installation is not necessary
  9411. enable_fast_install=needless
  9412. fi
  9413. if test "x$enable_dlopen" != xyes; then
  9414. enable_dlopen=unknown
  9415. enable_dlopen_self=unknown
  9416. enable_dlopen_self_static=unknown
  9417. else
  9418. lt_cv_dlopen=no
  9419. lt_cv_dlopen_libs=
  9420. case $host_os in
  9421. beos*)
  9422. lt_cv_dlopen="load_add_on"
  9423. lt_cv_dlopen_libs=
  9424. lt_cv_dlopen_self=yes
  9425. ;;
  9426. mingw* | pw32* | cegcc*)
  9427. lt_cv_dlopen="LoadLibrary"
  9428. lt_cv_dlopen_libs=
  9429. ;;
  9430. cygwin*)
  9431. lt_cv_dlopen="dlopen"
  9432. lt_cv_dlopen_libs=
  9433. ;;
  9434. darwin*)
  9435. # if libdl is installed we need to link against it
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9437. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9438. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9439. $as_echo_n "(cached) " >&6
  9440. else
  9441. ac_check_lib_save_LIBS=$LIBS
  9442. LIBS="-ldl $LIBS"
  9443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9444. /* end confdefs.h. */
  9445. /* Override any GCC internal prototype to avoid an error.
  9446. Use char because int might match the return type of a GCC
  9447. builtin and then its argument prototype would still apply. */
  9448. #ifdef __cplusplus
  9449. extern "C"
  9450. #endif
  9451. char dlopen ();
  9452. int
  9453. main ()
  9454. {
  9455. return dlopen ();
  9456. ;
  9457. return 0;
  9458. }
  9459. _ACEOF
  9460. if ac_fn_c_try_link "$LINENO"; then :
  9461. ac_cv_lib_dl_dlopen=yes
  9462. else
  9463. ac_cv_lib_dl_dlopen=no
  9464. fi
  9465. rm -f core conftest.err conftest.$ac_objext \
  9466. conftest$ac_exeext conftest.$ac_ext
  9467. LIBS=$ac_check_lib_save_LIBS
  9468. fi
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9470. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9471. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9472. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9473. else
  9474. lt_cv_dlopen="dyld"
  9475. lt_cv_dlopen_libs=
  9476. lt_cv_dlopen_self=yes
  9477. fi
  9478. ;;
  9479. *)
  9480. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9481. if test "x$ac_cv_func_shl_load" = xyes; then :
  9482. lt_cv_dlopen="shl_load"
  9483. else
  9484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9485. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9486. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9487. $as_echo_n "(cached) " >&6
  9488. else
  9489. ac_check_lib_save_LIBS=$LIBS
  9490. LIBS="-ldld $LIBS"
  9491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9492. /* end confdefs.h. */
  9493. /* Override any GCC internal prototype to avoid an error.
  9494. Use char because int might match the return type of a GCC
  9495. builtin and then its argument prototype would still apply. */
  9496. #ifdef __cplusplus
  9497. extern "C"
  9498. #endif
  9499. char shl_load ();
  9500. int
  9501. main ()
  9502. {
  9503. return shl_load ();
  9504. ;
  9505. return 0;
  9506. }
  9507. _ACEOF
  9508. if ac_fn_c_try_link "$LINENO"; then :
  9509. ac_cv_lib_dld_shl_load=yes
  9510. else
  9511. ac_cv_lib_dld_shl_load=no
  9512. fi
  9513. rm -f core conftest.err conftest.$ac_objext \
  9514. conftest$ac_exeext conftest.$ac_ext
  9515. LIBS=$ac_check_lib_save_LIBS
  9516. fi
  9517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9518. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9519. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9520. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9521. else
  9522. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9523. if test "x$ac_cv_func_dlopen" = xyes; then :
  9524. lt_cv_dlopen="dlopen"
  9525. else
  9526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9527. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9528. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9529. $as_echo_n "(cached) " >&6
  9530. else
  9531. ac_check_lib_save_LIBS=$LIBS
  9532. LIBS="-ldl $LIBS"
  9533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9534. /* end confdefs.h. */
  9535. /* Override any GCC internal prototype to avoid an error.
  9536. Use char because int might match the return type of a GCC
  9537. builtin and then its argument prototype would still apply. */
  9538. #ifdef __cplusplus
  9539. extern "C"
  9540. #endif
  9541. char dlopen ();
  9542. int
  9543. main ()
  9544. {
  9545. return dlopen ();
  9546. ;
  9547. return 0;
  9548. }
  9549. _ACEOF
  9550. if ac_fn_c_try_link "$LINENO"; then :
  9551. ac_cv_lib_dl_dlopen=yes
  9552. else
  9553. ac_cv_lib_dl_dlopen=no
  9554. fi
  9555. rm -f core conftest.err conftest.$ac_objext \
  9556. conftest$ac_exeext conftest.$ac_ext
  9557. LIBS=$ac_check_lib_save_LIBS
  9558. fi
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9560. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9561. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9562. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9563. else
  9564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9565. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9566. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9567. $as_echo_n "(cached) " >&6
  9568. else
  9569. ac_check_lib_save_LIBS=$LIBS
  9570. LIBS="-lsvld $LIBS"
  9571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9572. /* end confdefs.h. */
  9573. /* Override any GCC internal prototype to avoid an error.
  9574. Use char because int might match the return type of a GCC
  9575. builtin and then its argument prototype would still apply. */
  9576. #ifdef __cplusplus
  9577. extern "C"
  9578. #endif
  9579. char dlopen ();
  9580. int
  9581. main ()
  9582. {
  9583. return dlopen ();
  9584. ;
  9585. return 0;
  9586. }
  9587. _ACEOF
  9588. if ac_fn_c_try_link "$LINENO"; then :
  9589. ac_cv_lib_svld_dlopen=yes
  9590. else
  9591. ac_cv_lib_svld_dlopen=no
  9592. fi
  9593. rm -f core conftest.err conftest.$ac_objext \
  9594. conftest$ac_exeext conftest.$ac_ext
  9595. LIBS=$ac_check_lib_save_LIBS
  9596. fi
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9598. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9599. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9600. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9601. else
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9603. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9604. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9605. $as_echo_n "(cached) " >&6
  9606. else
  9607. ac_check_lib_save_LIBS=$LIBS
  9608. LIBS="-ldld $LIBS"
  9609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9610. /* end confdefs.h. */
  9611. /* Override any GCC internal prototype to avoid an error.
  9612. Use char because int might match the return type of a GCC
  9613. builtin and then its argument prototype would still apply. */
  9614. #ifdef __cplusplus
  9615. extern "C"
  9616. #endif
  9617. char dld_link ();
  9618. int
  9619. main ()
  9620. {
  9621. return dld_link ();
  9622. ;
  9623. return 0;
  9624. }
  9625. _ACEOF
  9626. if ac_fn_c_try_link "$LINENO"; then :
  9627. ac_cv_lib_dld_dld_link=yes
  9628. else
  9629. ac_cv_lib_dld_dld_link=no
  9630. fi
  9631. rm -f core conftest.err conftest.$ac_objext \
  9632. conftest$ac_exeext conftest.$ac_ext
  9633. LIBS=$ac_check_lib_save_LIBS
  9634. fi
  9635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9636. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9637. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9638. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9639. fi
  9640. fi
  9641. fi
  9642. fi
  9643. fi
  9644. fi
  9645. ;;
  9646. esac
  9647. if test "x$lt_cv_dlopen" != xno; then
  9648. enable_dlopen=yes
  9649. else
  9650. enable_dlopen=no
  9651. fi
  9652. case $lt_cv_dlopen in
  9653. dlopen)
  9654. save_CPPFLAGS="$CPPFLAGS"
  9655. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9656. save_LDFLAGS="$LDFLAGS"
  9657. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9658. save_LIBS="$LIBS"
  9659. LIBS="$lt_cv_dlopen_libs $LIBS"
  9660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9661. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9662. if ${lt_cv_dlopen_self+:} false; then :
  9663. $as_echo_n "(cached) " >&6
  9664. else
  9665. if test "$cross_compiling" = yes; then :
  9666. lt_cv_dlopen_self=cross
  9667. else
  9668. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9669. lt_status=$lt_dlunknown
  9670. cat > conftest.$ac_ext <<_LT_EOF
  9671. #line $LINENO "configure"
  9672. #include "confdefs.h"
  9673. #if HAVE_DLFCN_H
  9674. #include <dlfcn.h>
  9675. #endif
  9676. #include <stdio.h>
  9677. #ifdef RTLD_GLOBAL
  9678. # define LT_DLGLOBAL RTLD_GLOBAL
  9679. #else
  9680. # ifdef DL_GLOBAL
  9681. # define LT_DLGLOBAL DL_GLOBAL
  9682. # else
  9683. # define LT_DLGLOBAL 0
  9684. # endif
  9685. #endif
  9686. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9687. find out it does not work in some platform. */
  9688. #ifndef LT_DLLAZY_OR_NOW
  9689. # ifdef RTLD_LAZY
  9690. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9691. # else
  9692. # ifdef DL_LAZY
  9693. # define LT_DLLAZY_OR_NOW DL_LAZY
  9694. # else
  9695. # ifdef RTLD_NOW
  9696. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9697. # else
  9698. # ifdef DL_NOW
  9699. # define LT_DLLAZY_OR_NOW DL_NOW
  9700. # else
  9701. # define LT_DLLAZY_OR_NOW 0
  9702. # endif
  9703. # endif
  9704. # endif
  9705. # endif
  9706. #endif
  9707. /* When -fvisbility=hidden is used, assume the code has been annotated
  9708. correspondingly for the symbols needed. */
  9709. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9710. int fnord () __attribute__((visibility("default")));
  9711. #endif
  9712. int fnord () { return 42; }
  9713. int main ()
  9714. {
  9715. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9716. int status = $lt_dlunknown;
  9717. if (self)
  9718. {
  9719. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9720. else
  9721. {
  9722. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9723. else puts (dlerror ());
  9724. }
  9725. /* dlclose (self); */
  9726. }
  9727. else
  9728. puts (dlerror ());
  9729. return status;
  9730. }
  9731. _LT_EOF
  9732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9733. (eval $ac_link) 2>&5
  9734. ac_status=$?
  9735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9736. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9737. (./conftest; exit; ) >&5 2>/dev/null
  9738. lt_status=$?
  9739. case x$lt_status in
  9740. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9741. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9742. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9743. esac
  9744. else :
  9745. # compilation failed
  9746. lt_cv_dlopen_self=no
  9747. fi
  9748. fi
  9749. rm -fr conftest*
  9750. fi
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9752. $as_echo "$lt_cv_dlopen_self" >&6; }
  9753. if test "x$lt_cv_dlopen_self" = xyes; then
  9754. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9756. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9757. if ${lt_cv_dlopen_self_static+:} false; then :
  9758. $as_echo_n "(cached) " >&6
  9759. else
  9760. if test "$cross_compiling" = yes; then :
  9761. lt_cv_dlopen_self_static=cross
  9762. else
  9763. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9764. lt_status=$lt_dlunknown
  9765. cat > conftest.$ac_ext <<_LT_EOF
  9766. #line $LINENO "configure"
  9767. #include "confdefs.h"
  9768. #if HAVE_DLFCN_H
  9769. #include <dlfcn.h>
  9770. #endif
  9771. #include <stdio.h>
  9772. #ifdef RTLD_GLOBAL
  9773. # define LT_DLGLOBAL RTLD_GLOBAL
  9774. #else
  9775. # ifdef DL_GLOBAL
  9776. # define LT_DLGLOBAL DL_GLOBAL
  9777. # else
  9778. # define LT_DLGLOBAL 0
  9779. # endif
  9780. #endif
  9781. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9782. find out it does not work in some platform. */
  9783. #ifndef LT_DLLAZY_OR_NOW
  9784. # ifdef RTLD_LAZY
  9785. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9786. # else
  9787. # ifdef DL_LAZY
  9788. # define LT_DLLAZY_OR_NOW DL_LAZY
  9789. # else
  9790. # ifdef RTLD_NOW
  9791. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9792. # else
  9793. # ifdef DL_NOW
  9794. # define LT_DLLAZY_OR_NOW DL_NOW
  9795. # else
  9796. # define LT_DLLAZY_OR_NOW 0
  9797. # endif
  9798. # endif
  9799. # endif
  9800. # endif
  9801. #endif
  9802. /* When -fvisbility=hidden is used, assume the code has been annotated
  9803. correspondingly for the symbols needed. */
  9804. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9805. int fnord () __attribute__((visibility("default")));
  9806. #endif
  9807. int fnord () { return 42; }
  9808. int main ()
  9809. {
  9810. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9811. int status = $lt_dlunknown;
  9812. if (self)
  9813. {
  9814. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9815. else
  9816. {
  9817. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9818. else puts (dlerror ());
  9819. }
  9820. /* dlclose (self); */
  9821. }
  9822. else
  9823. puts (dlerror ());
  9824. return status;
  9825. }
  9826. _LT_EOF
  9827. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9828. (eval $ac_link) 2>&5
  9829. ac_status=$?
  9830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9831. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9832. (./conftest; exit; ) >&5 2>/dev/null
  9833. lt_status=$?
  9834. case x$lt_status in
  9835. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9836. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9837. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9838. esac
  9839. else :
  9840. # compilation failed
  9841. lt_cv_dlopen_self_static=no
  9842. fi
  9843. fi
  9844. rm -fr conftest*
  9845. fi
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9847. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9848. fi
  9849. CPPFLAGS="$save_CPPFLAGS"
  9850. LDFLAGS="$save_LDFLAGS"
  9851. LIBS="$save_LIBS"
  9852. ;;
  9853. esac
  9854. case $lt_cv_dlopen_self in
  9855. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9856. *) enable_dlopen_self=unknown ;;
  9857. esac
  9858. case $lt_cv_dlopen_self_static in
  9859. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9860. *) enable_dlopen_self_static=unknown ;;
  9861. esac
  9862. fi
  9863. striplib=
  9864. old_striplib=
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9866. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9867. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9868. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9869. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9871. $as_echo "yes" >&6; }
  9872. else
  9873. # FIXME - insert some real tests, host_os isn't really good enough
  9874. case $host_os in
  9875. darwin*)
  9876. if test -n "$STRIP" ; then
  9877. striplib="$STRIP -x"
  9878. old_striplib="$STRIP -S"
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9880. $as_echo "yes" >&6; }
  9881. else
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9883. $as_echo "no" >&6; }
  9884. fi
  9885. ;;
  9886. *)
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9888. $as_echo "no" >&6; }
  9889. ;;
  9890. esac
  9891. fi
  9892. # Report which library types will actually be built
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9894. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9896. $as_echo "$can_build_shared" >&6; }
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9898. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9899. test "$can_build_shared" = "no" && enable_shared=no
  9900. # On AIX, shared libraries and static libraries use the same namespace, and
  9901. # are all built from PIC.
  9902. case $host_os in
  9903. aix3*)
  9904. test "$enable_shared" = yes && enable_static=no
  9905. if test -n "$RANLIB"; then
  9906. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9907. postinstall_cmds='$RANLIB $lib'
  9908. fi
  9909. ;;
  9910. aix[4-9]*)
  9911. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9912. test "$enable_shared" = yes && enable_static=no
  9913. fi
  9914. ;;
  9915. esac
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9917. $as_echo "$enable_shared" >&6; }
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9919. $as_echo_n "checking whether to build static libraries... " >&6; }
  9920. # Make sure either enable_shared or enable_static is yes.
  9921. test "$enable_shared" = yes || enable_static=yes
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9923. $as_echo "$enable_static" >&6; }
  9924. fi
  9925. ac_ext=c
  9926. ac_cpp='$CPP $CPPFLAGS'
  9927. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9928. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9929. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9930. CC="$lt_save_CC"
  9931. ac_config_commands="$ac_config_commands libtool"
  9932. # Only expand once:
  9933. if test -n "$ac_tool_prefix"; then
  9934. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9935. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9937. $as_echo_n "checking for $ac_word... " >&6; }
  9938. if ${ac_cv_prog_RC+:} false; then :
  9939. $as_echo_n "(cached) " >&6
  9940. else
  9941. if test -n "$RC"; then
  9942. ac_cv_prog_RC="$RC" # Let the user override the test.
  9943. else
  9944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9945. for as_dir in $PATH
  9946. do
  9947. IFS=$as_save_IFS
  9948. test -z "$as_dir" && as_dir=.
  9949. for ac_exec_ext in '' $ac_executable_extensions; do
  9950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9951. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9953. break 2
  9954. fi
  9955. done
  9956. done
  9957. IFS=$as_save_IFS
  9958. fi
  9959. fi
  9960. RC=$ac_cv_prog_RC
  9961. if test -n "$RC"; then
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9963. $as_echo "$RC" >&6; }
  9964. else
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9966. $as_echo "no" >&6; }
  9967. fi
  9968. fi
  9969. if test -z "$ac_cv_prog_RC"; then
  9970. ac_ct_RC=$RC
  9971. # Extract the first word of "windres", so it can be a program name with args.
  9972. set dummy windres; ac_word=$2
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9974. $as_echo_n "checking for $ac_word... " >&6; }
  9975. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9976. $as_echo_n "(cached) " >&6
  9977. else
  9978. if test -n "$ac_ct_RC"; then
  9979. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9980. else
  9981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9982. for as_dir in $PATH
  9983. do
  9984. IFS=$as_save_IFS
  9985. test -z "$as_dir" && as_dir=.
  9986. for ac_exec_ext in '' $ac_executable_extensions; do
  9987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9988. ac_cv_prog_ac_ct_RC="windres"
  9989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9990. break 2
  9991. fi
  9992. done
  9993. done
  9994. IFS=$as_save_IFS
  9995. fi
  9996. fi
  9997. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9998. if test -n "$ac_ct_RC"; then
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10000. $as_echo "$ac_ct_RC" >&6; }
  10001. else
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10003. $as_echo "no" >&6; }
  10004. fi
  10005. if test "x$ac_ct_RC" = x; then
  10006. RC=""
  10007. else
  10008. case $cross_compiling:$ac_tool_warned in
  10009. yes:)
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10011. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10012. ac_tool_warned=yes ;;
  10013. esac
  10014. RC=$ac_ct_RC
  10015. fi
  10016. else
  10017. RC="$ac_cv_prog_RC"
  10018. fi
  10019. # Source file extension for RC test sources.
  10020. ac_ext=rc
  10021. # Object file extension for compiled RC test sources.
  10022. objext=o
  10023. objext_RC=$objext
  10024. # Code to be used in simple compile tests
  10025. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10026. # Code to be used in simple link tests
  10027. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10028. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10029. # If no C compiler was specified, use CC.
  10030. LTCC=${LTCC-"$CC"}
  10031. # If no C compiler flags were specified, use CFLAGS.
  10032. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10033. # Allow CC to be a program name with arguments.
  10034. compiler=$CC
  10035. # save warnings/boilerplate of simple test code
  10036. ac_outfile=conftest.$ac_objext
  10037. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10038. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10039. _lt_compiler_boilerplate=`cat conftest.err`
  10040. $RM conftest*
  10041. ac_outfile=conftest.$ac_objext
  10042. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10043. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10044. _lt_linker_boilerplate=`cat conftest.err`
  10045. $RM -r conftest*
  10046. # Allow CC to be a program name with arguments.
  10047. lt_save_CC="$CC"
  10048. lt_save_CFLAGS=$CFLAGS
  10049. lt_save_GCC=$GCC
  10050. GCC=
  10051. CC=${RC-"windres"}
  10052. CFLAGS=
  10053. compiler=$CC
  10054. compiler_RC=$CC
  10055. for cc_temp in $compiler""; do
  10056. case $cc_temp in
  10057. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10058. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10059. \-*) ;;
  10060. *) break;;
  10061. esac
  10062. done
  10063. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10064. lt_cv_prog_compiler_c_o_RC=yes
  10065. if test -n "$compiler"; then
  10066. :
  10067. fi
  10068. GCC=$lt_save_GCC
  10069. ac_ext=c
  10070. ac_cpp='$CPP $CPPFLAGS'
  10071. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10072. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10073. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10074. CC=$lt_save_CC
  10075. CFLAGS=$lt_save_CFLAGS
  10076. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10077. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10078. LT_REVISION=$SDL_INTERFACE_AGE
  10079. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10080. ac_ext=c
  10081. ac_cpp='$CPP $CPPFLAGS'
  10082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10085. if test -n "$ac_tool_prefix"; then
  10086. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10087. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10089. $as_echo_n "checking for $ac_word... " >&6; }
  10090. if ${ac_cv_prog_CC+:} false; then :
  10091. $as_echo_n "(cached) " >&6
  10092. else
  10093. if test -n "$CC"; then
  10094. ac_cv_prog_CC="$CC" # Let the user override the test.
  10095. else
  10096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10097. for as_dir in $PATH
  10098. do
  10099. IFS=$as_save_IFS
  10100. test -z "$as_dir" && as_dir=.
  10101. for ac_exec_ext in '' $ac_executable_extensions; do
  10102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10103. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10105. break 2
  10106. fi
  10107. done
  10108. done
  10109. IFS=$as_save_IFS
  10110. fi
  10111. fi
  10112. CC=$ac_cv_prog_CC
  10113. if test -n "$CC"; then
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10115. $as_echo "$CC" >&6; }
  10116. else
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10118. $as_echo "no" >&6; }
  10119. fi
  10120. fi
  10121. if test -z "$ac_cv_prog_CC"; then
  10122. ac_ct_CC=$CC
  10123. # Extract the first word of "gcc", so it can be a program name with args.
  10124. set dummy gcc; ac_word=$2
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10126. $as_echo_n "checking for $ac_word... " >&6; }
  10127. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10128. $as_echo_n "(cached) " >&6
  10129. else
  10130. if test -n "$ac_ct_CC"; then
  10131. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10132. else
  10133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10134. for as_dir in $PATH
  10135. do
  10136. IFS=$as_save_IFS
  10137. test -z "$as_dir" && as_dir=.
  10138. for ac_exec_ext in '' $ac_executable_extensions; do
  10139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10140. ac_cv_prog_ac_ct_CC="gcc"
  10141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10142. break 2
  10143. fi
  10144. done
  10145. done
  10146. IFS=$as_save_IFS
  10147. fi
  10148. fi
  10149. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10150. if test -n "$ac_ct_CC"; then
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10152. $as_echo "$ac_ct_CC" >&6; }
  10153. else
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10155. $as_echo "no" >&6; }
  10156. fi
  10157. if test "x$ac_ct_CC" = x; then
  10158. CC=""
  10159. else
  10160. case $cross_compiling:$ac_tool_warned in
  10161. yes:)
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10163. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10164. ac_tool_warned=yes ;;
  10165. esac
  10166. CC=$ac_ct_CC
  10167. fi
  10168. else
  10169. CC="$ac_cv_prog_CC"
  10170. fi
  10171. if test -z "$CC"; then
  10172. if test -n "$ac_tool_prefix"; then
  10173. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10174. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10176. $as_echo_n "checking for $ac_word... " >&6; }
  10177. if ${ac_cv_prog_CC+:} false; then :
  10178. $as_echo_n "(cached) " >&6
  10179. else
  10180. if test -n "$CC"; then
  10181. ac_cv_prog_CC="$CC" # Let the user override the test.
  10182. else
  10183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10184. for as_dir in $PATH
  10185. do
  10186. IFS=$as_save_IFS
  10187. test -z "$as_dir" && as_dir=.
  10188. for ac_exec_ext in '' $ac_executable_extensions; do
  10189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10190. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10192. break 2
  10193. fi
  10194. done
  10195. done
  10196. IFS=$as_save_IFS
  10197. fi
  10198. fi
  10199. CC=$ac_cv_prog_CC
  10200. if test -n "$CC"; then
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10202. $as_echo "$CC" >&6; }
  10203. else
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10205. $as_echo "no" >&6; }
  10206. fi
  10207. fi
  10208. fi
  10209. if test -z "$CC"; then
  10210. # Extract the first word of "cc", so it can be a program name with args.
  10211. set dummy cc; ac_word=$2
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10213. $as_echo_n "checking for $ac_word... " >&6; }
  10214. if ${ac_cv_prog_CC+:} false; then :
  10215. $as_echo_n "(cached) " >&6
  10216. else
  10217. if test -n "$CC"; then
  10218. ac_cv_prog_CC="$CC" # Let the user override the test.
  10219. else
  10220. ac_prog_rejected=no
  10221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10222. for as_dir in $PATH
  10223. do
  10224. IFS=$as_save_IFS
  10225. test -z "$as_dir" && as_dir=.
  10226. for ac_exec_ext in '' $ac_executable_extensions; do
  10227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10228. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10229. ac_prog_rejected=yes
  10230. continue
  10231. fi
  10232. ac_cv_prog_CC="cc"
  10233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10234. break 2
  10235. fi
  10236. done
  10237. done
  10238. IFS=$as_save_IFS
  10239. if test $ac_prog_rejected = yes; then
  10240. # We found a bogon in the path, so make sure we never use it.
  10241. set dummy $ac_cv_prog_CC
  10242. shift
  10243. if test $# != 0; then
  10244. # We chose a different compiler from the bogus one.
  10245. # However, it has the same basename, so the bogon will be chosen
  10246. # first if we set CC to just the basename; use the full file name.
  10247. shift
  10248. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10249. fi
  10250. fi
  10251. fi
  10252. fi
  10253. CC=$ac_cv_prog_CC
  10254. if test -n "$CC"; then
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10256. $as_echo "$CC" >&6; }
  10257. else
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10259. $as_echo "no" >&6; }
  10260. fi
  10261. fi
  10262. if test -z "$CC"; then
  10263. if test -n "$ac_tool_prefix"; then
  10264. for ac_prog in cl.exe
  10265. do
  10266. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10267. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10269. $as_echo_n "checking for $ac_word... " >&6; }
  10270. if ${ac_cv_prog_CC+:} false; then :
  10271. $as_echo_n "(cached) " >&6
  10272. else
  10273. if test -n "$CC"; then
  10274. ac_cv_prog_CC="$CC" # Let the user override the test.
  10275. else
  10276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10277. for as_dir in $PATH
  10278. do
  10279. IFS=$as_save_IFS
  10280. test -z "$as_dir" && as_dir=.
  10281. for ac_exec_ext in '' $ac_executable_extensions; do
  10282. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10283. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10285. break 2
  10286. fi
  10287. done
  10288. done
  10289. IFS=$as_save_IFS
  10290. fi
  10291. fi
  10292. CC=$ac_cv_prog_CC
  10293. if test -n "$CC"; then
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10295. $as_echo "$CC" >&6; }
  10296. else
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10298. $as_echo "no" >&6; }
  10299. fi
  10300. test -n "$CC" && break
  10301. done
  10302. fi
  10303. if test -z "$CC"; then
  10304. ac_ct_CC=$CC
  10305. for ac_prog in cl.exe
  10306. do
  10307. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10308. set dummy $ac_prog; ac_word=$2
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10310. $as_echo_n "checking for $ac_word... " >&6; }
  10311. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10312. $as_echo_n "(cached) " >&6
  10313. else
  10314. if test -n "$ac_ct_CC"; then
  10315. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10316. else
  10317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10318. for as_dir in $PATH
  10319. do
  10320. IFS=$as_save_IFS
  10321. test -z "$as_dir" && as_dir=.
  10322. for ac_exec_ext in '' $ac_executable_extensions; do
  10323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10324. ac_cv_prog_ac_ct_CC="$ac_prog"
  10325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10326. break 2
  10327. fi
  10328. done
  10329. done
  10330. IFS=$as_save_IFS
  10331. fi
  10332. fi
  10333. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10334. if test -n "$ac_ct_CC"; then
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10336. $as_echo "$ac_ct_CC" >&6; }
  10337. else
  10338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10339. $as_echo "no" >&6; }
  10340. fi
  10341. test -n "$ac_ct_CC" && break
  10342. done
  10343. if test "x$ac_ct_CC" = x; then
  10344. CC=""
  10345. else
  10346. case $cross_compiling:$ac_tool_warned in
  10347. yes:)
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10350. ac_tool_warned=yes ;;
  10351. esac
  10352. CC=$ac_ct_CC
  10353. fi
  10354. fi
  10355. fi
  10356. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10357. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10358. as_fn_error $? "no acceptable C compiler found in \$PATH
  10359. See \`config.log' for more details" "$LINENO" 5; }
  10360. # Provide some information about the compiler.
  10361. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10362. set X $ac_compile
  10363. ac_compiler=$2
  10364. for ac_option in --version -v -V -qversion; do
  10365. { { ac_try="$ac_compiler $ac_option >&5"
  10366. case "(($ac_try" in
  10367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10368. *) ac_try_echo=$ac_try;;
  10369. esac
  10370. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10371. $as_echo "$ac_try_echo"; } >&5
  10372. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10373. ac_status=$?
  10374. if test -s conftest.err; then
  10375. sed '10a\
  10376. ... rest of stderr output deleted ...
  10377. 10q' conftest.err >conftest.er1
  10378. cat conftest.er1 >&5
  10379. fi
  10380. rm -f conftest.er1 conftest.err
  10381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10382. test $ac_status = 0; }
  10383. done
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10385. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10386. if ${ac_cv_c_compiler_gnu+:} false; then :
  10387. $as_echo_n "(cached) " >&6
  10388. else
  10389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10390. /* end confdefs.h. */
  10391. int
  10392. main ()
  10393. {
  10394. #ifndef __GNUC__
  10395. choke me
  10396. #endif
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. if ac_fn_c_try_compile "$LINENO"; then :
  10402. ac_compiler_gnu=yes
  10403. else
  10404. ac_compiler_gnu=no
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10407. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10408. fi
  10409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10410. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10411. if test $ac_compiler_gnu = yes; then
  10412. GCC=yes
  10413. else
  10414. GCC=
  10415. fi
  10416. ac_test_CFLAGS=${CFLAGS+set}
  10417. ac_save_CFLAGS=$CFLAGS
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10419. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10420. if ${ac_cv_prog_cc_g+:} false; then :
  10421. $as_echo_n "(cached) " >&6
  10422. else
  10423. ac_save_c_werror_flag=$ac_c_werror_flag
  10424. ac_c_werror_flag=yes
  10425. ac_cv_prog_cc_g=no
  10426. CFLAGS="-g"
  10427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10428. /* end confdefs.h. */
  10429. int
  10430. main ()
  10431. {
  10432. ;
  10433. return 0;
  10434. }
  10435. _ACEOF
  10436. if ac_fn_c_try_compile "$LINENO"; then :
  10437. ac_cv_prog_cc_g=yes
  10438. else
  10439. CFLAGS=""
  10440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10441. /* end confdefs.h. */
  10442. int
  10443. main ()
  10444. {
  10445. ;
  10446. return 0;
  10447. }
  10448. _ACEOF
  10449. if ac_fn_c_try_compile "$LINENO"; then :
  10450. else
  10451. ac_c_werror_flag=$ac_save_c_werror_flag
  10452. CFLAGS="-g"
  10453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10454. /* end confdefs.h. */
  10455. int
  10456. main ()
  10457. {
  10458. ;
  10459. return 0;
  10460. }
  10461. _ACEOF
  10462. if ac_fn_c_try_compile "$LINENO"; then :
  10463. ac_cv_prog_cc_g=yes
  10464. fi
  10465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10466. fi
  10467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. ac_c_werror_flag=$ac_save_c_werror_flag
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10473. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10474. if test "$ac_test_CFLAGS" = set; then
  10475. CFLAGS=$ac_save_CFLAGS
  10476. elif test $ac_cv_prog_cc_g = yes; then
  10477. if test "$GCC" = yes; then
  10478. CFLAGS="-g -O2"
  10479. else
  10480. CFLAGS="-g"
  10481. fi
  10482. else
  10483. if test "$GCC" = yes; then
  10484. CFLAGS="-O2"
  10485. else
  10486. CFLAGS=
  10487. fi
  10488. fi
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10490. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10491. if ${ac_cv_prog_cc_c89+:} false; then :
  10492. $as_echo_n "(cached) " >&6
  10493. else
  10494. ac_cv_prog_cc_c89=no
  10495. ac_save_CC=$CC
  10496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10497. /* end confdefs.h. */
  10498. #include <stdarg.h>
  10499. #include <stdio.h>
  10500. struct stat;
  10501. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10502. struct buf { int x; };
  10503. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10504. static char *e (p, i)
  10505. char **p;
  10506. int i;
  10507. {
  10508. return p[i];
  10509. }
  10510. static char *f (char * (*g) (char **, int), char **p, ...)
  10511. {
  10512. char *s;
  10513. va_list v;
  10514. va_start (v,p);
  10515. s = g (p, va_arg (v,int));
  10516. va_end (v);
  10517. return s;
  10518. }
  10519. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10520. function prototypes and stuff, but not '\xHH' hex character constants.
  10521. These don't provoke an error unfortunately, instead are silently treated
  10522. as 'x'. The following induces an error, until -std is added to get
  10523. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10524. array size at least. It's necessary to write '\x00'==0 to get something
  10525. that's true only with -std. */
  10526. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10527. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10528. inside strings and character constants. */
  10529. #define FOO(x) 'x'
  10530. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10531. int test (int i, double x);
  10532. struct s1 {int (*f) (int a);};
  10533. struct s2 {int (*f) (double a);};
  10534. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10535. int argc;
  10536. char **argv;
  10537. int
  10538. main ()
  10539. {
  10540. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10541. ;
  10542. return 0;
  10543. }
  10544. _ACEOF
  10545. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10546. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10547. do
  10548. CC="$ac_save_CC $ac_arg"
  10549. if ac_fn_c_try_compile "$LINENO"; then :
  10550. ac_cv_prog_cc_c89=$ac_arg
  10551. fi
  10552. rm -f core conftest.err conftest.$ac_objext
  10553. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10554. done
  10555. rm -f conftest.$ac_ext
  10556. CC=$ac_save_CC
  10557. fi
  10558. # AC_CACHE_VAL
  10559. case "x$ac_cv_prog_cc_c89" in
  10560. x)
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10562. $as_echo "none needed" >&6; } ;;
  10563. xno)
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10565. $as_echo "unsupported" >&6; } ;;
  10566. *)
  10567. CC="$CC $ac_cv_prog_cc_c89"
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10569. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10570. esac
  10571. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10572. fi
  10573. ac_ext=c
  10574. ac_cpp='$CPP $CPPFLAGS'
  10575. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10576. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10577. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10578. ac_ext=cpp
  10579. ac_cpp='$CXXCPP $CPPFLAGS'
  10580. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10581. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10582. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10583. if test -z "$CXX"; then
  10584. if test -n "$CCC"; then
  10585. CXX=$CCC
  10586. else
  10587. if test -n "$ac_tool_prefix"; then
  10588. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10589. do
  10590. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10591. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10593. $as_echo_n "checking for $ac_word... " >&6; }
  10594. if ${ac_cv_prog_CXX+:} false; then :
  10595. $as_echo_n "(cached) " >&6
  10596. else
  10597. if test -n "$CXX"; then
  10598. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10599. else
  10600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10601. for as_dir in $PATH
  10602. do
  10603. IFS=$as_save_IFS
  10604. test -z "$as_dir" && as_dir=.
  10605. for ac_exec_ext in '' $ac_executable_extensions; do
  10606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10607. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10609. break 2
  10610. fi
  10611. done
  10612. done
  10613. IFS=$as_save_IFS
  10614. fi
  10615. fi
  10616. CXX=$ac_cv_prog_CXX
  10617. if test -n "$CXX"; then
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10619. $as_echo "$CXX" >&6; }
  10620. else
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10622. $as_echo "no" >&6; }
  10623. fi
  10624. test -n "$CXX" && break
  10625. done
  10626. fi
  10627. if test -z "$CXX"; then
  10628. ac_ct_CXX=$CXX
  10629. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10630. do
  10631. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10632. set dummy $ac_prog; ac_word=$2
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10634. $as_echo_n "checking for $ac_word... " >&6; }
  10635. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10636. $as_echo_n "(cached) " >&6
  10637. else
  10638. if test -n "$ac_ct_CXX"; then
  10639. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10640. else
  10641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10642. for as_dir in $PATH
  10643. do
  10644. IFS=$as_save_IFS
  10645. test -z "$as_dir" && as_dir=.
  10646. for ac_exec_ext in '' $ac_executable_extensions; do
  10647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10648. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10650. break 2
  10651. fi
  10652. done
  10653. done
  10654. IFS=$as_save_IFS
  10655. fi
  10656. fi
  10657. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10658. if test -n "$ac_ct_CXX"; then
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10660. $as_echo "$ac_ct_CXX" >&6; }
  10661. else
  10662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10663. $as_echo "no" >&6; }
  10664. fi
  10665. test -n "$ac_ct_CXX" && break
  10666. done
  10667. if test "x$ac_ct_CXX" = x; then
  10668. CXX="g++"
  10669. else
  10670. case $cross_compiling:$ac_tool_warned in
  10671. yes:)
  10672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10674. ac_tool_warned=yes ;;
  10675. esac
  10676. CXX=$ac_ct_CXX
  10677. fi
  10678. fi
  10679. fi
  10680. fi
  10681. # Provide some information about the compiler.
  10682. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10683. set X $ac_compile
  10684. ac_compiler=$2
  10685. for ac_option in --version -v -V -qversion; do
  10686. { { ac_try="$ac_compiler $ac_option >&5"
  10687. case "(($ac_try" in
  10688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10689. *) ac_try_echo=$ac_try;;
  10690. esac
  10691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10692. $as_echo "$ac_try_echo"; } >&5
  10693. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10694. ac_status=$?
  10695. if test -s conftest.err; then
  10696. sed '10a\
  10697. ... rest of stderr output deleted ...
  10698. 10q' conftest.err >conftest.er1
  10699. cat conftest.er1 >&5
  10700. fi
  10701. rm -f conftest.er1 conftest.err
  10702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10703. test $ac_status = 0; }
  10704. done
  10705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10706. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10707. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10708. $as_echo_n "(cached) " >&6
  10709. else
  10710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10711. /* end confdefs.h. */
  10712. int
  10713. main ()
  10714. {
  10715. #ifndef __GNUC__
  10716. choke me
  10717. #endif
  10718. ;
  10719. return 0;
  10720. }
  10721. _ACEOF
  10722. if ac_fn_cxx_try_compile "$LINENO"; then :
  10723. ac_compiler_gnu=yes
  10724. else
  10725. ac_compiler_gnu=no
  10726. fi
  10727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10728. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10729. fi
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10731. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10732. if test $ac_compiler_gnu = yes; then
  10733. GXX=yes
  10734. else
  10735. GXX=
  10736. fi
  10737. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10738. ac_save_CXXFLAGS=$CXXFLAGS
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10740. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10741. if ${ac_cv_prog_cxx_g+:} false; then :
  10742. $as_echo_n "(cached) " >&6
  10743. else
  10744. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10745. ac_cxx_werror_flag=yes
  10746. ac_cv_prog_cxx_g=no
  10747. CXXFLAGS="-g"
  10748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10749. /* end confdefs.h. */
  10750. int
  10751. main ()
  10752. {
  10753. ;
  10754. return 0;
  10755. }
  10756. _ACEOF
  10757. if ac_fn_cxx_try_compile "$LINENO"; then :
  10758. ac_cv_prog_cxx_g=yes
  10759. else
  10760. CXXFLAGS=""
  10761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10762. /* end confdefs.h. */
  10763. int
  10764. main ()
  10765. {
  10766. ;
  10767. return 0;
  10768. }
  10769. _ACEOF
  10770. if ac_fn_cxx_try_compile "$LINENO"; then :
  10771. else
  10772. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10773. CXXFLAGS="-g"
  10774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10775. /* end confdefs.h. */
  10776. int
  10777. main ()
  10778. {
  10779. ;
  10780. return 0;
  10781. }
  10782. _ACEOF
  10783. if ac_fn_cxx_try_compile "$LINENO"; then :
  10784. ac_cv_prog_cxx_g=yes
  10785. fi
  10786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10787. fi
  10788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10789. fi
  10790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10791. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10792. fi
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10794. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10795. if test "$ac_test_CXXFLAGS" = set; then
  10796. CXXFLAGS=$ac_save_CXXFLAGS
  10797. elif test $ac_cv_prog_cxx_g = yes; then
  10798. if test "$GXX" = yes; then
  10799. CXXFLAGS="-g -O2"
  10800. else
  10801. CXXFLAGS="-g"
  10802. fi
  10803. else
  10804. if test "$GXX" = yes; then
  10805. CXXFLAGS="-O2"
  10806. else
  10807. CXXFLAGS=
  10808. fi
  10809. fi
  10810. ac_ext=c
  10811. ac_cpp='$CPP $CPPFLAGS'
  10812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10815. func_stripname_cnf ()
  10816. {
  10817. case ${2} in
  10818. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10819. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10820. esac
  10821. } # func_stripname_cnf
  10822. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10823. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10824. (test "X$CXX" != "Xg++"))) ; then
  10825. ac_ext=cpp
  10826. ac_cpp='$CXXCPP $CPPFLAGS'
  10827. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10828. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10829. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10831. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10832. if test -z "$CXXCPP"; then
  10833. if ${ac_cv_prog_CXXCPP+:} false; then :
  10834. $as_echo_n "(cached) " >&6
  10835. else
  10836. # Double quotes because CXXCPP needs to be expanded
  10837. for CXXCPP in "$CXX -E" "/lib/cpp"
  10838. do
  10839. ac_preproc_ok=false
  10840. for ac_cxx_preproc_warn_flag in '' yes
  10841. do
  10842. # Use a header file that comes with gcc, so configuring glibc
  10843. # with a fresh cross-compiler works.
  10844. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10845. # <limits.h> exists even on freestanding compilers.
  10846. # On the NeXT, cc -E runs the code through the compiler's parser,
  10847. # not just through cpp. "Syntax error" is here to catch this case.
  10848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10849. /* end confdefs.h. */
  10850. #ifdef __STDC__
  10851. # include <limits.h>
  10852. #else
  10853. # include <assert.h>
  10854. #endif
  10855. Syntax error
  10856. _ACEOF
  10857. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10858. else
  10859. # Broken: fails on valid input.
  10860. continue
  10861. fi
  10862. rm -f conftest.err conftest.i conftest.$ac_ext
  10863. # OK, works on sane cases. Now check whether nonexistent headers
  10864. # can be detected and how.
  10865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10866. /* end confdefs.h. */
  10867. #include <ac_nonexistent.h>
  10868. _ACEOF
  10869. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10870. # Broken: success on invalid input.
  10871. continue
  10872. else
  10873. # Passes both tests.
  10874. ac_preproc_ok=:
  10875. break
  10876. fi
  10877. rm -f conftest.err conftest.i conftest.$ac_ext
  10878. done
  10879. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10880. rm -f conftest.i conftest.err conftest.$ac_ext
  10881. if $ac_preproc_ok; then :
  10882. break
  10883. fi
  10884. done
  10885. ac_cv_prog_CXXCPP=$CXXCPP
  10886. fi
  10887. CXXCPP=$ac_cv_prog_CXXCPP
  10888. else
  10889. ac_cv_prog_CXXCPP=$CXXCPP
  10890. fi
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10892. $as_echo "$CXXCPP" >&6; }
  10893. ac_preproc_ok=false
  10894. for ac_cxx_preproc_warn_flag in '' yes
  10895. do
  10896. # Use a header file that comes with gcc, so configuring glibc
  10897. # with a fresh cross-compiler works.
  10898. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10899. # <limits.h> exists even on freestanding compilers.
  10900. # On the NeXT, cc -E runs the code through the compiler's parser,
  10901. # not just through cpp. "Syntax error" is here to catch this case.
  10902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10903. /* end confdefs.h. */
  10904. #ifdef __STDC__
  10905. # include <limits.h>
  10906. #else
  10907. # include <assert.h>
  10908. #endif
  10909. Syntax error
  10910. _ACEOF
  10911. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10912. else
  10913. # Broken: fails on valid input.
  10914. continue
  10915. fi
  10916. rm -f conftest.err conftest.i conftest.$ac_ext
  10917. # OK, works on sane cases. Now check whether nonexistent headers
  10918. # can be detected and how.
  10919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10920. /* end confdefs.h. */
  10921. #include <ac_nonexistent.h>
  10922. _ACEOF
  10923. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10924. # Broken: success on invalid input.
  10925. continue
  10926. else
  10927. # Passes both tests.
  10928. ac_preproc_ok=:
  10929. break
  10930. fi
  10931. rm -f conftest.err conftest.i conftest.$ac_ext
  10932. done
  10933. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10934. rm -f conftest.i conftest.err conftest.$ac_ext
  10935. if $ac_preproc_ok; then :
  10936. else
  10937. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10938. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10939. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10940. See \`config.log' for more details" "$LINENO" 5; }
  10941. fi
  10942. ac_ext=c
  10943. ac_cpp='$CPP $CPPFLAGS'
  10944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10947. else
  10948. _lt_caught_CXX_error=yes
  10949. fi
  10950. ac_ext=cpp
  10951. ac_cpp='$CXXCPP $CPPFLAGS'
  10952. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10953. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10954. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10955. archive_cmds_need_lc_CXX=no
  10956. allow_undefined_flag_CXX=
  10957. always_export_symbols_CXX=no
  10958. archive_expsym_cmds_CXX=
  10959. compiler_needs_object_CXX=no
  10960. export_dynamic_flag_spec_CXX=
  10961. hardcode_direct_CXX=no
  10962. hardcode_direct_absolute_CXX=no
  10963. hardcode_libdir_flag_spec_CXX=
  10964. hardcode_libdir_separator_CXX=
  10965. hardcode_minus_L_CXX=no
  10966. hardcode_shlibpath_var_CXX=unsupported
  10967. hardcode_automatic_CXX=no
  10968. inherit_rpath_CXX=no
  10969. module_cmds_CXX=
  10970. module_expsym_cmds_CXX=
  10971. link_all_deplibs_CXX=unknown
  10972. old_archive_cmds_CXX=$old_archive_cmds
  10973. reload_flag_CXX=$reload_flag
  10974. reload_cmds_CXX=$reload_cmds
  10975. no_undefined_flag_CXX=
  10976. whole_archive_flag_spec_CXX=
  10977. enable_shared_with_static_runtimes_CXX=no
  10978. # Source file extension for C++ test sources.
  10979. ac_ext=cpp
  10980. # Object file extension for compiled C++ test sources.
  10981. objext=o
  10982. objext_CXX=$objext
  10983. # No sense in running all these tests if we already determined that
  10984. # the CXX compiler isn't working. Some variables (like enable_shared)
  10985. # are currently assumed to apply to all compilers on this platform,
  10986. # and will be corrupted by setting them based on a non-working compiler.
  10987. if test "$_lt_caught_CXX_error" != yes; then
  10988. # Code to be used in simple compile tests
  10989. lt_simple_compile_test_code="int some_variable = 0;"
  10990. # Code to be used in simple link tests
  10991. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10992. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10993. # If no C compiler was specified, use CC.
  10994. LTCC=${LTCC-"$CC"}
  10995. # If no C compiler flags were specified, use CFLAGS.
  10996. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10997. # Allow CC to be a program name with arguments.
  10998. compiler=$CC
  10999. # save warnings/boilerplate of simple test code
  11000. ac_outfile=conftest.$ac_objext
  11001. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11002. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11003. _lt_compiler_boilerplate=`cat conftest.err`
  11004. $RM conftest*
  11005. ac_outfile=conftest.$ac_objext
  11006. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11007. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11008. _lt_linker_boilerplate=`cat conftest.err`
  11009. $RM -r conftest*
  11010. # Allow CC to be a program name with arguments.
  11011. lt_save_CC=$CC
  11012. lt_save_CFLAGS=$CFLAGS
  11013. lt_save_LD=$LD
  11014. lt_save_GCC=$GCC
  11015. GCC=$GXX
  11016. lt_save_with_gnu_ld=$with_gnu_ld
  11017. lt_save_path_LD=$lt_cv_path_LD
  11018. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11019. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11020. else
  11021. $as_unset lt_cv_prog_gnu_ld
  11022. fi
  11023. if test -n "${lt_cv_path_LDCXX+set}"; then
  11024. lt_cv_path_LD=$lt_cv_path_LDCXX
  11025. else
  11026. $as_unset lt_cv_path_LD
  11027. fi
  11028. test -z "${LDCXX+set}" || LD=$LDCXX
  11029. CC=${CXX-"c++"}
  11030. CFLAGS=$CXXFLAGS
  11031. compiler=$CC
  11032. compiler_CXX=$CC
  11033. for cc_temp in $compiler""; do
  11034. case $cc_temp in
  11035. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11036. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11037. \-*) ;;
  11038. *) break;;
  11039. esac
  11040. done
  11041. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11042. if test -n "$compiler"; then
  11043. # We don't want -fno-exception when compiling C++ code, so set the
  11044. # no_builtin_flag separately
  11045. if test "$GXX" = yes; then
  11046. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11047. else
  11048. lt_prog_compiler_no_builtin_flag_CXX=
  11049. fi
  11050. if test "$GXX" = yes; then
  11051. # Set up default GNU C++ configuration
  11052. # Check whether --with-gnu-ld was given.
  11053. if test "${with_gnu_ld+set}" = set; then :
  11054. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11055. else
  11056. with_gnu_ld=no
  11057. fi
  11058. ac_prog=ld
  11059. if test "$GCC" = yes; then
  11060. # Check if gcc -print-prog-name=ld gives a path.
  11061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11062. $as_echo_n "checking for ld used by $CC... " >&6; }
  11063. case $host in
  11064. *-*-mingw*)
  11065. # gcc leaves a trailing carriage return which upsets mingw
  11066. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11067. *)
  11068. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11069. esac
  11070. case $ac_prog in
  11071. # Accept absolute paths.
  11072. [\\/]* | ?:[\\/]*)
  11073. re_direlt='/[^/][^/]*/\.\./'
  11074. # Canonicalize the pathname of ld
  11075. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11076. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11077. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11078. done
  11079. test -z "$LD" && LD="$ac_prog"
  11080. ;;
  11081. "")
  11082. # If it fails, then pretend we aren't using GCC.
  11083. ac_prog=ld
  11084. ;;
  11085. *)
  11086. # If it is relative, then search for the first ld in PATH.
  11087. with_gnu_ld=unknown
  11088. ;;
  11089. esac
  11090. elif test "$with_gnu_ld" = yes; then
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11092. $as_echo_n "checking for GNU ld... " >&6; }
  11093. else
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11095. $as_echo_n "checking for non-GNU ld... " >&6; }
  11096. fi
  11097. if ${lt_cv_path_LD+:} false; then :
  11098. $as_echo_n "(cached) " >&6
  11099. else
  11100. if test -z "$LD"; then
  11101. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11102. for ac_dir in $PATH; do
  11103. IFS="$lt_save_ifs"
  11104. test -z "$ac_dir" && ac_dir=.
  11105. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11106. lt_cv_path_LD="$ac_dir/$ac_prog"
  11107. # Check to see if the program is GNU ld. I'd rather use --version,
  11108. # but apparently some variants of GNU ld only accept -v.
  11109. # Break only if it was the GNU/non-GNU ld that we prefer.
  11110. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11111. *GNU* | *'with BFD'*)
  11112. test "$with_gnu_ld" != no && break
  11113. ;;
  11114. *)
  11115. test "$with_gnu_ld" != yes && break
  11116. ;;
  11117. esac
  11118. fi
  11119. done
  11120. IFS="$lt_save_ifs"
  11121. else
  11122. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11123. fi
  11124. fi
  11125. LD="$lt_cv_path_LD"
  11126. if test -n "$LD"; then
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11128. $as_echo "$LD" >&6; }
  11129. else
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11131. $as_echo "no" >&6; }
  11132. fi
  11133. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11135. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11136. if ${lt_cv_prog_gnu_ld+:} false; then :
  11137. $as_echo_n "(cached) " >&6
  11138. else
  11139. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11140. case `$LD -v 2>&1 </dev/null` in
  11141. *GNU* | *'with BFD'*)
  11142. lt_cv_prog_gnu_ld=yes
  11143. ;;
  11144. *)
  11145. lt_cv_prog_gnu_ld=no
  11146. ;;
  11147. esac
  11148. fi
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11150. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11151. with_gnu_ld=$lt_cv_prog_gnu_ld
  11152. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11153. # archiving commands below assume that GNU ld is being used.
  11154. if test "$with_gnu_ld" = yes; then
  11155. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11156. 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'
  11157. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11158. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11159. # If archive_cmds runs LD, not CC, wlarc should be empty
  11160. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11161. # investigate it a little bit more. (MM)
  11162. wlarc='${wl}'
  11163. # ancient GNU ld didn't support --whole-archive et. al.
  11164. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11165. $GREP 'no-whole-archive' > /dev/null; then
  11166. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11167. else
  11168. whole_archive_flag_spec_CXX=
  11169. fi
  11170. else
  11171. with_gnu_ld=no
  11172. wlarc=
  11173. # A generic and very simple default shared library creation
  11174. # command for GNU C++ for the case where it uses the native
  11175. # linker, instead of GNU ld. If possible, this setting should
  11176. # overridden to take advantage of the native linker features on
  11177. # the platform it is being used on.
  11178. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11179. fi
  11180. # Commands to make compiler produce verbose output that lists
  11181. # what "hidden" libraries, object files and flags are used when
  11182. # linking a shared library.
  11183. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11184. else
  11185. GXX=no
  11186. with_gnu_ld=no
  11187. wlarc=
  11188. fi
  11189. # PORTME: fill in a description of your system's C++ link characteristics
  11190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11191. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11192. ld_shlibs_CXX=yes
  11193. case $host_os in
  11194. aix3*)
  11195. # FIXME: insert proper C++ library support
  11196. ld_shlibs_CXX=no
  11197. ;;
  11198. aix[4-9]*)
  11199. if test "$host_cpu" = ia64; then
  11200. # On IA64, the linker does run time linking by default, so we don't
  11201. # have to do anything special.
  11202. aix_use_runtimelinking=no
  11203. exp_sym_flag='-Bexport'
  11204. no_entry_flag=""
  11205. else
  11206. aix_use_runtimelinking=no
  11207. # Test if we are trying to use run time linking or normal
  11208. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11209. # need to do runtime linking.
  11210. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11211. for ld_flag in $LDFLAGS; do
  11212. case $ld_flag in
  11213. *-brtl*)
  11214. aix_use_runtimelinking=yes
  11215. break
  11216. ;;
  11217. esac
  11218. done
  11219. ;;
  11220. esac
  11221. exp_sym_flag='-bexport'
  11222. no_entry_flag='-bnoentry'
  11223. fi
  11224. # When large executables or shared objects are built, AIX ld can
  11225. # have problems creating the table of contents. If linking a library
  11226. # or program results in "error TOC overflow" add -mminimal-toc to
  11227. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11228. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11229. archive_cmds_CXX=''
  11230. hardcode_direct_CXX=yes
  11231. hardcode_direct_absolute_CXX=yes
  11232. hardcode_libdir_separator_CXX=':'
  11233. link_all_deplibs_CXX=yes
  11234. file_list_spec_CXX='${wl}-f,'
  11235. if test "$GXX" = yes; then
  11236. case $host_os in aix4.[012]|aix4.[012].*)
  11237. # We only want to do this on AIX 4.2 and lower, the check
  11238. # below for broken collect2 doesn't work under 4.3+
  11239. collect2name=`${CC} -print-prog-name=collect2`
  11240. if test -f "$collect2name" &&
  11241. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11242. then
  11243. # We have reworked collect2
  11244. :
  11245. else
  11246. # We have old collect2
  11247. hardcode_direct_CXX=unsupported
  11248. # It fails to find uninstalled libraries when the uninstalled
  11249. # path is not listed in the libpath. Setting hardcode_minus_L
  11250. # to unsupported forces relinking
  11251. hardcode_minus_L_CXX=yes
  11252. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11253. hardcode_libdir_separator_CXX=
  11254. fi
  11255. esac
  11256. shared_flag='-shared'
  11257. if test "$aix_use_runtimelinking" = yes; then
  11258. shared_flag="$shared_flag "'${wl}-G'
  11259. fi
  11260. else
  11261. # not using gcc
  11262. if test "$host_cpu" = ia64; then
  11263. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11264. # chokes on -Wl,-G. The following line is correct:
  11265. shared_flag='-G'
  11266. else
  11267. if test "$aix_use_runtimelinking" = yes; then
  11268. shared_flag='${wl}-G'
  11269. else
  11270. shared_flag='${wl}-bM:SRE'
  11271. fi
  11272. fi
  11273. fi
  11274. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11275. # It seems that -bexpall does not export symbols beginning with
  11276. # underscore (_), so it is better to generate a list of symbols to
  11277. # export.
  11278. always_export_symbols_CXX=yes
  11279. if test "$aix_use_runtimelinking" = yes; then
  11280. # Warning - without using the other runtime loading flags (-brtl),
  11281. # -berok will link without error, but may produce a broken library.
  11282. allow_undefined_flag_CXX='-berok'
  11283. # Determine the default libpath from the value encoded in an empty
  11284. # executable.
  11285. if test "${lt_cv_aix_libpath+set}" = set; then
  11286. aix_libpath=$lt_cv_aix_libpath
  11287. else
  11288. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11289. $as_echo_n "(cached) " >&6
  11290. else
  11291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11292. /* end confdefs.h. */
  11293. int
  11294. main ()
  11295. {
  11296. ;
  11297. return 0;
  11298. }
  11299. _ACEOF
  11300. if ac_fn_cxx_try_link "$LINENO"; then :
  11301. lt_aix_libpath_sed='
  11302. /Import File Strings/,/^$/ {
  11303. /^0/ {
  11304. s/^0 *\([^ ]*\) *$/\1/
  11305. p
  11306. }
  11307. }'
  11308. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11309. # Check for a 64-bit object if we didn't find anything.
  11310. if test -z "$lt_cv_aix_libpath__CXX"; then
  11311. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11312. fi
  11313. fi
  11314. rm -f core conftest.err conftest.$ac_objext \
  11315. conftest$ac_exeext conftest.$ac_ext
  11316. if test -z "$lt_cv_aix_libpath__CXX"; then
  11317. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11318. fi
  11319. fi
  11320. aix_libpath=$lt_cv_aix_libpath__CXX
  11321. fi
  11322. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11323. 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"
  11324. else
  11325. if test "$host_cpu" = ia64; then
  11326. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11327. allow_undefined_flag_CXX="-z nodefs"
  11328. 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"
  11329. else
  11330. # Determine the default libpath from the value encoded in an
  11331. # empty executable.
  11332. if test "${lt_cv_aix_libpath+set}" = set; then
  11333. aix_libpath=$lt_cv_aix_libpath
  11334. else
  11335. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11336. $as_echo_n "(cached) " >&6
  11337. else
  11338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11339. /* end confdefs.h. */
  11340. int
  11341. main ()
  11342. {
  11343. ;
  11344. return 0;
  11345. }
  11346. _ACEOF
  11347. if ac_fn_cxx_try_link "$LINENO"; then :
  11348. lt_aix_libpath_sed='
  11349. /Import File Strings/,/^$/ {
  11350. /^0/ {
  11351. s/^0 *\([^ ]*\) *$/\1/
  11352. p
  11353. }
  11354. }'
  11355. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11356. # Check for a 64-bit object if we didn't find anything.
  11357. if test -z "$lt_cv_aix_libpath__CXX"; then
  11358. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11359. fi
  11360. fi
  11361. rm -f core conftest.err conftest.$ac_objext \
  11362. conftest$ac_exeext conftest.$ac_ext
  11363. if test -z "$lt_cv_aix_libpath__CXX"; then
  11364. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11365. fi
  11366. fi
  11367. aix_libpath=$lt_cv_aix_libpath__CXX
  11368. fi
  11369. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11370. # Warning - without using the other run time loading flags,
  11371. # -berok will link without error, but may produce a broken library.
  11372. no_undefined_flag_CXX=' ${wl}-bernotok'
  11373. allow_undefined_flag_CXX=' ${wl}-berok'
  11374. if test "$with_gnu_ld" = yes; then
  11375. # We only use this code for GNU lds that support --whole-archive.
  11376. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11377. else
  11378. # Exported symbols can be pulled into shared objects from archives
  11379. whole_archive_flag_spec_CXX='$convenience'
  11380. fi
  11381. archive_cmds_need_lc_CXX=yes
  11382. # This is similar to how AIX traditionally builds its shared
  11383. # libraries.
  11384. 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'
  11385. fi
  11386. fi
  11387. ;;
  11388. beos*)
  11389. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11390. allow_undefined_flag_CXX=unsupported
  11391. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11392. # support --undefined. This deserves some investigation. FIXME
  11393. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11394. else
  11395. ld_shlibs_CXX=no
  11396. fi
  11397. ;;
  11398. chorus*)
  11399. case $cc_basename in
  11400. *)
  11401. # FIXME: insert proper C++ library support
  11402. ld_shlibs_CXX=no
  11403. ;;
  11404. esac
  11405. ;;
  11406. cygwin* | mingw* | pw32* | cegcc*)
  11407. case $GXX,$cc_basename in
  11408. ,cl* | no,cl*)
  11409. # Native MSVC
  11410. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11411. # no search path for DLLs.
  11412. hardcode_libdir_flag_spec_CXX=' '
  11413. allow_undefined_flag_CXX=unsupported
  11414. always_export_symbols_CXX=yes
  11415. file_list_spec_CXX='@'
  11416. # Tell ltmain to make .lib files, not .a files.
  11417. libext=lib
  11418. # Tell ltmain to make .dll files, not .so files.
  11419. shrext_cmds=".dll"
  11420. # FIXME: Setting linknames here is a bad hack.
  11421. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11422. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11423. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11424. else
  11425. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11426. fi~
  11427. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11428. linknames='
  11429. # The linker will not automatically build a static lib if we build a DLL.
  11430. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11431. enable_shared_with_static_runtimes_CXX=yes
  11432. # Don't use ranlib
  11433. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11434. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11435. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11436. case $lt_outputfile in
  11437. *.exe|*.EXE) ;;
  11438. *)
  11439. lt_outputfile="$lt_outputfile.exe"
  11440. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11441. ;;
  11442. esac~
  11443. func_to_tool_file "$lt_outputfile"~
  11444. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11445. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11446. $RM "$lt_outputfile.manifest";
  11447. fi'
  11448. ;;
  11449. *)
  11450. # g++
  11451. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11452. # as there is no search path for DLLs.
  11453. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11454. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11455. allow_undefined_flag_CXX=unsupported
  11456. always_export_symbols_CXX=no
  11457. enable_shared_with_static_runtimes_CXX=yes
  11458. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11459. 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'
  11460. # If the export-symbols file already is a .def file (1st line
  11461. # is EXPORTS), use it as is; otherwise, prepend...
  11462. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11463. cp $export_symbols $output_objdir/$soname.def;
  11464. else
  11465. echo EXPORTS > $output_objdir/$soname.def;
  11466. cat $export_symbols >> $output_objdir/$soname.def;
  11467. fi~
  11468. $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'
  11469. else
  11470. ld_shlibs_CXX=no
  11471. fi
  11472. ;;
  11473. esac
  11474. ;;
  11475. darwin* | rhapsody*)
  11476. archive_cmds_need_lc_CXX=no
  11477. hardcode_direct_CXX=no
  11478. hardcode_automatic_CXX=yes
  11479. hardcode_shlibpath_var_CXX=unsupported
  11480. if test "$lt_cv_ld_force_load" = "yes"; then
  11481. 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\"`'
  11482. else
  11483. whole_archive_flag_spec_CXX=''
  11484. fi
  11485. link_all_deplibs_CXX=yes
  11486. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11487. case $cc_basename in
  11488. ifort*) _lt_dar_can_shared=yes ;;
  11489. *) _lt_dar_can_shared=$GCC ;;
  11490. esac
  11491. if test "$_lt_dar_can_shared" = "yes"; then
  11492. output_verbose_link_cmd=func_echo_all
  11493. 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}"
  11494. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11495. 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}"
  11496. 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}"
  11497. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11498. 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}"
  11499. 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}"
  11500. fi
  11501. else
  11502. ld_shlibs_CXX=no
  11503. fi
  11504. ;;
  11505. dgux*)
  11506. case $cc_basename in
  11507. ec++*)
  11508. # FIXME: insert proper C++ library support
  11509. ld_shlibs_CXX=no
  11510. ;;
  11511. ghcx*)
  11512. # Green Hills C++ Compiler
  11513. # FIXME: insert proper C++ library support
  11514. ld_shlibs_CXX=no
  11515. ;;
  11516. *)
  11517. # FIXME: insert proper C++ library support
  11518. ld_shlibs_CXX=no
  11519. ;;
  11520. esac
  11521. ;;
  11522. freebsd2.*)
  11523. # C++ shared libraries reported to be fairly broken before
  11524. # switch to ELF
  11525. ld_shlibs_CXX=no
  11526. ;;
  11527. freebsd-elf*)
  11528. archive_cmds_need_lc_CXX=no
  11529. ;;
  11530. freebsd* | dragonfly*)
  11531. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11532. # conventions
  11533. ld_shlibs_CXX=yes
  11534. ;;
  11535. gnu*)
  11536. ;;
  11537. haiku*)
  11538. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11539. link_all_deplibs_CXX=yes
  11540. ;;
  11541. hpux9*)
  11542. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11543. hardcode_libdir_separator_CXX=:
  11544. export_dynamic_flag_spec_CXX='${wl}-E'
  11545. hardcode_direct_CXX=yes
  11546. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11547. # but as the default
  11548. # location of the library.
  11549. case $cc_basename in
  11550. CC*)
  11551. # FIXME: insert proper C++ library support
  11552. ld_shlibs_CXX=no
  11553. ;;
  11554. aCC*)
  11555. 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'
  11556. # Commands to make compiler produce verbose output that lists
  11557. # what "hidden" libraries, object files and flags are used when
  11558. # linking a shared library.
  11559. #
  11560. # There doesn't appear to be a way to prevent this compiler from
  11561. # explicitly linking system object files so we need to strip them
  11562. # from the output so that they don't get included in the library
  11563. # dependencies.
  11564. 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"'
  11565. ;;
  11566. *)
  11567. if test "$GXX" = yes; then
  11568. 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'
  11569. else
  11570. # FIXME: insert proper C++ library support
  11571. ld_shlibs_CXX=no
  11572. fi
  11573. ;;
  11574. esac
  11575. ;;
  11576. hpux10*|hpux11*)
  11577. if test $with_gnu_ld = no; then
  11578. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11579. hardcode_libdir_separator_CXX=:
  11580. case $host_cpu in
  11581. hppa*64*|ia64*)
  11582. ;;
  11583. *)
  11584. export_dynamic_flag_spec_CXX='${wl}-E'
  11585. ;;
  11586. esac
  11587. fi
  11588. case $host_cpu in
  11589. hppa*64*|ia64*)
  11590. hardcode_direct_CXX=no
  11591. hardcode_shlibpath_var_CXX=no
  11592. ;;
  11593. *)
  11594. hardcode_direct_CXX=yes
  11595. hardcode_direct_absolute_CXX=yes
  11596. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11597. # but as the default
  11598. # location of the library.
  11599. ;;
  11600. esac
  11601. case $cc_basename in
  11602. CC*)
  11603. # FIXME: insert proper C++ library support
  11604. ld_shlibs_CXX=no
  11605. ;;
  11606. aCC*)
  11607. case $host_cpu in
  11608. hppa*64*)
  11609. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11610. ;;
  11611. ia64*)
  11612. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11613. ;;
  11614. *)
  11615. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11616. ;;
  11617. esac
  11618. # Commands to make compiler produce verbose output that lists
  11619. # what "hidden" libraries, object files and flags are used when
  11620. # linking a shared library.
  11621. #
  11622. # There doesn't appear to be a way to prevent this compiler from
  11623. # explicitly linking system object files so we need to strip them
  11624. # from the output so that they don't get included in the library
  11625. # dependencies.
  11626. 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"'
  11627. ;;
  11628. *)
  11629. if test "$GXX" = yes; then
  11630. if test $with_gnu_ld = no; then
  11631. case $host_cpu in
  11632. hppa*64*)
  11633. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11634. ;;
  11635. ia64*)
  11636. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11637. ;;
  11638. *)
  11639. 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'
  11640. ;;
  11641. esac
  11642. fi
  11643. else
  11644. # FIXME: insert proper C++ library support
  11645. ld_shlibs_CXX=no
  11646. fi
  11647. ;;
  11648. esac
  11649. ;;
  11650. interix[3-9]*)
  11651. hardcode_direct_CXX=no
  11652. hardcode_shlibpath_var_CXX=no
  11653. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11654. export_dynamic_flag_spec_CXX='${wl}-E'
  11655. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11656. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11657. # default) and relocated if they conflict, which is a slow very memory
  11658. # consuming and fragmenting process. To avoid this, we pick a random,
  11659. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11660. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11661. 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'
  11662. 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'
  11663. ;;
  11664. irix5* | irix6*)
  11665. case $cc_basename in
  11666. CC*)
  11667. # SGI C++
  11668. 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'
  11669. # Archives containing C++ object files must be created using
  11670. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11671. # necessary to make sure instantiated templates are included
  11672. # in the archive.
  11673. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11674. ;;
  11675. *)
  11676. if test "$GXX" = yes; then
  11677. if test "$with_gnu_ld" = no; then
  11678. 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'
  11679. else
  11680. 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'
  11681. fi
  11682. fi
  11683. link_all_deplibs_CXX=yes
  11684. ;;
  11685. esac
  11686. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11687. hardcode_libdir_separator_CXX=:
  11688. inherit_rpath_CXX=yes
  11689. ;;
  11690. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11691. case $cc_basename in
  11692. KCC*)
  11693. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11694. # KCC will only create a shared library if the output file
  11695. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11696. # to its proper name (with version) after linking.
  11697. 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'
  11698. 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'
  11699. # Commands to make compiler produce verbose output that lists
  11700. # what "hidden" libraries, object files and flags are used when
  11701. # linking a shared library.
  11702. #
  11703. # There doesn't appear to be a way to prevent this compiler from
  11704. # explicitly linking system object files so we need to strip them
  11705. # from the output so that they don't get included in the library
  11706. # dependencies.
  11707. 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"'
  11708. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11709. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11710. # Archives containing C++ object files must be created using
  11711. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11712. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11713. ;;
  11714. icpc* | ecpc* )
  11715. # Intel C++
  11716. with_gnu_ld=yes
  11717. # version 8.0 and above of icpc choke on multiply defined symbols
  11718. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11719. # earlier do not add the objects themselves.
  11720. case `$CC -V 2>&1` in
  11721. *"Version 7."*)
  11722. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11723. 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'
  11724. ;;
  11725. *) # Version 8.0 or newer
  11726. tmp_idyn=
  11727. case $host_cpu in
  11728. ia64*) tmp_idyn=' -i_dynamic';;
  11729. esac
  11730. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11731. 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'
  11732. ;;
  11733. esac
  11734. archive_cmds_need_lc_CXX=no
  11735. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11736. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11737. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11738. ;;
  11739. pgCC* | pgcpp*)
  11740. # Portland Group C++ compiler
  11741. case `$CC -V` in
  11742. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11743. prelink_cmds_CXX='tpldir=Template.dir~
  11744. rm -rf $tpldir~
  11745. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11746. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11747. old_archive_cmds_CXX='tpldir=Template.dir~
  11748. rm -rf $tpldir~
  11749. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11750. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11751. $RANLIB $oldlib'
  11752. archive_cmds_CXX='tpldir=Template.dir~
  11753. rm -rf $tpldir~
  11754. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11755. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11756. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11757. rm -rf $tpldir~
  11758. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11759. $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'
  11760. ;;
  11761. *) # Version 6 and above use weak symbols
  11762. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11763. 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'
  11764. ;;
  11765. esac
  11766. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11767. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11768. 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'
  11769. ;;
  11770. cxx*)
  11771. # Compaq C++
  11772. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11773. 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'
  11774. runpath_var=LD_RUN_PATH
  11775. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11776. hardcode_libdir_separator_CXX=:
  11777. # Commands to make compiler produce verbose output that lists
  11778. # what "hidden" libraries, object files and flags are used when
  11779. # linking a shared library.
  11780. #
  11781. # There doesn't appear to be a way to prevent this compiler from
  11782. # explicitly linking system object files so we need to strip them
  11783. # from the output so that they don't get included in the library
  11784. # dependencies.
  11785. 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'
  11786. ;;
  11787. xl* | mpixl* | bgxl*)
  11788. # IBM XL 8.0 on PPC, with GNU ld
  11789. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11790. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11791. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11792. if test "x$supports_anon_versioning" = xyes; then
  11793. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11794. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11795. echo "local: *; };" >> $output_objdir/$libname.ver~
  11796. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11797. fi
  11798. ;;
  11799. *)
  11800. case `$CC -V 2>&1 | sed 5q` in
  11801. *Sun\ C*)
  11802. # Sun C++ 5.9
  11803. no_undefined_flag_CXX=' -zdefs'
  11804. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11805. 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'
  11806. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11807. 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'
  11808. compiler_needs_object_CXX=yes
  11809. # Not sure whether something based on
  11810. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11811. # would be better.
  11812. output_verbose_link_cmd='func_echo_all'
  11813. # Archives containing C++ object files must be created using
  11814. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11815. # necessary to make sure instantiated templates are included
  11816. # in the archive.
  11817. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11818. ;;
  11819. esac
  11820. ;;
  11821. esac
  11822. ;;
  11823. lynxos*)
  11824. # FIXME: insert proper C++ library support
  11825. ld_shlibs_CXX=no
  11826. ;;
  11827. m88k*)
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. mvs*)
  11832. case $cc_basename in
  11833. cxx*)
  11834. # FIXME: insert proper C++ library support
  11835. ld_shlibs_CXX=no
  11836. ;;
  11837. *)
  11838. # FIXME: insert proper C++ library support
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. esac
  11842. ;;
  11843. netbsd*)
  11844. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11845. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11846. wlarc=
  11847. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11848. hardcode_direct_CXX=yes
  11849. hardcode_shlibpath_var_CXX=no
  11850. fi
  11851. # Workaround some broken pre-1.5 toolchains
  11852. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11853. ;;
  11854. *nto* | *qnx*)
  11855. ld_shlibs_CXX=yes
  11856. ;;
  11857. openbsd2*)
  11858. # C++ shared libraries are fairly broken
  11859. ld_shlibs_CXX=no
  11860. ;;
  11861. openbsd*)
  11862. if test -f /usr/libexec/ld.so; then
  11863. hardcode_direct_CXX=yes
  11864. hardcode_shlibpath_var_CXX=no
  11865. hardcode_direct_absolute_CXX=yes
  11866. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11867. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11868. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11869. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11870. export_dynamic_flag_spec_CXX='${wl}-E'
  11871. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11872. fi
  11873. output_verbose_link_cmd=func_echo_all
  11874. else
  11875. ld_shlibs_CXX=no
  11876. fi
  11877. ;;
  11878. osf3* | osf4* | osf5*)
  11879. case $cc_basename in
  11880. KCC*)
  11881. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11882. # KCC will only create a shared library if the output file
  11883. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11884. # to its proper name (with version) after linking.
  11885. 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'
  11886. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11887. hardcode_libdir_separator_CXX=:
  11888. # Archives containing C++ object files must be created using
  11889. # the KAI C++ compiler.
  11890. case $host in
  11891. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11892. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11893. esac
  11894. ;;
  11895. RCC*)
  11896. # Rational C++ 2.4.1
  11897. # FIXME: insert proper C++ library support
  11898. ld_shlibs_CXX=no
  11899. ;;
  11900. cxx*)
  11901. case $host in
  11902. osf3*)
  11903. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11904. 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'
  11905. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11906. ;;
  11907. *)
  11908. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11909. 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'
  11910. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11911. echo "-hidden">> $lib.exp~
  11912. $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~
  11913. $RM $lib.exp'
  11914. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11915. ;;
  11916. esac
  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. #
  11922. # There doesn't appear to be a way to prevent this compiler from
  11923. # explicitly linking system object files so we need to strip them
  11924. # from the output so that they don't get included in the library
  11925. # dependencies.
  11926. 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"'
  11927. ;;
  11928. *)
  11929. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11930. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11931. case $host in
  11932. osf3*)
  11933. 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'
  11934. ;;
  11935. *)
  11936. 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'
  11937. ;;
  11938. esac
  11939. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11940. hardcode_libdir_separator_CXX=:
  11941. # Commands to make compiler produce verbose output that lists
  11942. # what "hidden" libraries, object files and flags are used when
  11943. # linking a shared library.
  11944. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11945. else
  11946. # FIXME: insert proper C++ library support
  11947. ld_shlibs_CXX=no
  11948. fi
  11949. ;;
  11950. esac
  11951. ;;
  11952. psos*)
  11953. # FIXME: insert proper C++ library support
  11954. ld_shlibs_CXX=no
  11955. ;;
  11956. sunos4*)
  11957. case $cc_basename in
  11958. CC*)
  11959. # Sun C++ 4.x
  11960. # FIXME: insert proper C++ library support
  11961. ld_shlibs_CXX=no
  11962. ;;
  11963. lcc*)
  11964. # Lucid
  11965. # FIXME: insert proper C++ library support
  11966. ld_shlibs_CXX=no
  11967. ;;
  11968. *)
  11969. # FIXME: insert proper C++ library support
  11970. ld_shlibs_CXX=no
  11971. ;;
  11972. esac
  11973. ;;
  11974. solaris*)
  11975. case $cc_basename in
  11976. CC* | sunCC*)
  11977. # Sun C++ 4.2, 5.x and Centerline C++
  11978. archive_cmds_need_lc_CXX=yes
  11979. no_undefined_flag_CXX=' -zdefs'
  11980. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11981. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11982. $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'
  11983. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11984. hardcode_shlibpath_var_CXX=no
  11985. case $host_os in
  11986. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11987. *)
  11988. # The compiler driver will combine and reorder linker options,
  11989. # but understands `-z linker_flag'.
  11990. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11991. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11992. ;;
  11993. esac
  11994. link_all_deplibs_CXX=yes
  11995. output_verbose_link_cmd='func_echo_all'
  11996. # Archives containing C++ object files must be created using
  11997. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11998. # necessary to make sure instantiated templates are included
  11999. # in the archive.
  12000. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12001. ;;
  12002. gcx*)
  12003. # Green Hills C++ Compiler
  12004. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12005. # The C++ compiler must be used to create the archive.
  12006. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12007. ;;
  12008. *)
  12009. # GNU C++ compiler with Solaris linker
  12010. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12011. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12012. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12013. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12014. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12015. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12016. # Commands to make compiler produce verbose output that lists
  12017. # what "hidden" libraries, object files and flags are used when
  12018. # linking a shared library.
  12019. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12020. else
  12021. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12022. # platform.
  12023. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12024. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12025. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12026. # Commands to make compiler produce verbose output that lists
  12027. # what "hidden" libraries, object files and flags are used when
  12028. # linking a shared library.
  12029. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12030. fi
  12031. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12032. case $host_os in
  12033. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12034. *)
  12035. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12036. ;;
  12037. esac
  12038. fi
  12039. ;;
  12040. esac
  12041. ;;
  12042. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12043. no_undefined_flag_CXX='${wl}-z,text'
  12044. archive_cmds_need_lc_CXX=no
  12045. hardcode_shlibpath_var_CXX=no
  12046. runpath_var='LD_RUN_PATH'
  12047. case $cc_basename in
  12048. CC*)
  12049. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12050. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12051. ;;
  12052. *)
  12053. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12054. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12055. ;;
  12056. esac
  12057. ;;
  12058. sysv5* | sco3.2v5* | sco5v6*)
  12059. # Note: We can NOT use -z defs as we might desire, because we do not
  12060. # link with -lc, and that would cause any symbols used from libc to
  12061. # always be unresolved, which means just about no library would
  12062. # ever link correctly. If we're not using GNU ld we use -z text
  12063. # though, which does catch some bad symbols but isn't as heavy-handed
  12064. # as -z defs.
  12065. no_undefined_flag_CXX='${wl}-z,text'
  12066. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12067. archive_cmds_need_lc_CXX=no
  12068. hardcode_shlibpath_var_CXX=no
  12069. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12070. hardcode_libdir_separator_CXX=':'
  12071. link_all_deplibs_CXX=yes
  12072. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12073. runpath_var='LD_RUN_PATH'
  12074. case $cc_basename in
  12075. CC*)
  12076. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12077. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12078. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12079. '"$old_archive_cmds_CXX"
  12080. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12081. '"$reload_cmds_CXX"
  12082. ;;
  12083. *)
  12084. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12085. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12086. ;;
  12087. esac
  12088. ;;
  12089. tandem*)
  12090. case $cc_basename in
  12091. NCC*)
  12092. # NonStop-UX NCC 3.20
  12093. # FIXME: insert proper C++ library support
  12094. ld_shlibs_CXX=no
  12095. ;;
  12096. *)
  12097. # FIXME: insert proper C++ library support
  12098. ld_shlibs_CXX=no
  12099. ;;
  12100. esac
  12101. ;;
  12102. vxworks*)
  12103. # FIXME: insert proper C++ library support
  12104. ld_shlibs_CXX=no
  12105. ;;
  12106. *)
  12107. # FIXME: insert proper C++ library support
  12108. ld_shlibs_CXX=no
  12109. ;;
  12110. esac
  12111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12112. $as_echo "$ld_shlibs_CXX" >&6; }
  12113. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12114. GCC_CXX="$GXX"
  12115. LD_CXX="$LD"
  12116. ## CAVEAT EMPTOR:
  12117. ## There is no encapsulation within the following macros, do not change
  12118. ## the running order or otherwise move them around unless you know exactly
  12119. ## what you are doing...
  12120. # Dependencies to place before and after the object being linked:
  12121. predep_objects_CXX=
  12122. postdep_objects_CXX=
  12123. predeps_CXX=
  12124. postdeps_CXX=
  12125. compiler_lib_search_path_CXX=
  12126. cat > conftest.$ac_ext <<_LT_EOF
  12127. class Foo
  12128. {
  12129. public:
  12130. Foo (void) { a = 0; }
  12131. private:
  12132. int a;
  12133. };
  12134. _LT_EOF
  12135. _lt_libdeps_save_CFLAGS=$CFLAGS
  12136. case "$CC $CFLAGS " in #(
  12137. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12138. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12139. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12140. esac
  12141. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12142. (eval $ac_compile) 2>&5
  12143. ac_status=$?
  12144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12145. test $ac_status = 0; }; then
  12146. # Parse the compiler output and extract the necessary
  12147. # objects, libraries and library flags.
  12148. # Sentinel used to keep track of whether or not we are before
  12149. # the conftest object file.
  12150. pre_test_object_deps_done=no
  12151. for p in `eval "$output_verbose_link_cmd"`; do
  12152. case ${prev}${p} in
  12153. -L* | -R* | -l*)
  12154. # Some compilers place space between "-{L,R}" and the path.
  12155. # Remove the space.
  12156. if test $p = "-L" ||
  12157. test $p = "-R"; then
  12158. prev=$p
  12159. continue
  12160. fi
  12161. # Expand the sysroot to ease extracting the directories later.
  12162. if test -z "$prev"; then
  12163. case $p in
  12164. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12165. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12166. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12167. esac
  12168. fi
  12169. case $p in
  12170. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12171. esac
  12172. if test "$pre_test_object_deps_done" = no; then
  12173. case ${prev} in
  12174. -L | -R)
  12175. # Internal compiler library paths should come after those
  12176. # provided the user. The postdeps already come after the
  12177. # user supplied libs so there is no need to process them.
  12178. if test -z "$compiler_lib_search_path_CXX"; then
  12179. compiler_lib_search_path_CXX="${prev}${p}"
  12180. else
  12181. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12182. fi
  12183. ;;
  12184. # The "-l" case would never come before the object being
  12185. # linked, so don't bother handling this case.
  12186. esac
  12187. else
  12188. if test -z "$postdeps_CXX"; then
  12189. postdeps_CXX="${prev}${p}"
  12190. else
  12191. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12192. fi
  12193. fi
  12194. prev=
  12195. ;;
  12196. *.lto.$objext) ;; # Ignore GCC LTO objects
  12197. *.$objext)
  12198. # This assumes that the test object file only shows up
  12199. # once in the compiler output.
  12200. if test "$p" = "conftest.$objext"; then
  12201. pre_test_object_deps_done=yes
  12202. continue
  12203. fi
  12204. if test "$pre_test_object_deps_done" = no; then
  12205. if test -z "$predep_objects_CXX"; then
  12206. predep_objects_CXX="$p"
  12207. else
  12208. predep_objects_CXX="$predep_objects_CXX $p"
  12209. fi
  12210. else
  12211. if test -z "$postdep_objects_CXX"; then
  12212. postdep_objects_CXX="$p"
  12213. else
  12214. postdep_objects_CXX="$postdep_objects_CXX $p"
  12215. fi
  12216. fi
  12217. ;;
  12218. *) ;; # Ignore the rest.
  12219. esac
  12220. done
  12221. # Clean up.
  12222. rm -f a.out a.exe
  12223. else
  12224. echo "libtool.m4: error: problem compiling CXX test program"
  12225. fi
  12226. $RM -f confest.$objext
  12227. CFLAGS=$_lt_libdeps_save_CFLAGS
  12228. # PORTME: override above test on systems where it is broken
  12229. case $host_os in
  12230. interix[3-9]*)
  12231. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12232. # hack all around it, let's just trust "g++" to DTRT.
  12233. predep_objects_CXX=
  12234. postdep_objects_CXX=
  12235. postdeps_CXX=
  12236. ;;
  12237. linux*)
  12238. case `$CC -V 2>&1 | sed 5q` in
  12239. *Sun\ C*)
  12240. # Sun C++ 5.9
  12241. # The more standards-conforming stlport4 library is
  12242. # incompatible with the Cstd library. Avoid specifying
  12243. # it if it's in CXXFLAGS. Ignore libCrun as
  12244. # -library=stlport4 depends on it.
  12245. case " $CXX $CXXFLAGS " in
  12246. *" -library=stlport4 "*)
  12247. solaris_use_stlport4=yes
  12248. ;;
  12249. esac
  12250. if test "$solaris_use_stlport4" != yes; then
  12251. postdeps_CXX='-library=Cstd -library=Crun'
  12252. fi
  12253. ;;
  12254. esac
  12255. ;;
  12256. solaris*)
  12257. case $cc_basename in
  12258. CC* | sunCC*)
  12259. # The more standards-conforming stlport4 library is
  12260. # incompatible with the Cstd library. Avoid specifying
  12261. # it if it's in CXXFLAGS. Ignore libCrun as
  12262. # -library=stlport4 depends on it.
  12263. case " $CXX $CXXFLAGS " in
  12264. *" -library=stlport4 "*)
  12265. solaris_use_stlport4=yes
  12266. ;;
  12267. esac
  12268. # Adding this requires a known-good setup of shared libraries for
  12269. # Sun compiler versions before 5.6, else PIC objects from an old
  12270. # archive will be linked into the output, leading to subtle bugs.
  12271. if test "$solaris_use_stlport4" != yes; then
  12272. postdeps_CXX='-library=Cstd -library=Crun'
  12273. fi
  12274. ;;
  12275. esac
  12276. ;;
  12277. esac
  12278. case " $postdeps_CXX " in
  12279. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12280. esac
  12281. compiler_lib_search_dirs_CXX=
  12282. if test -n "${compiler_lib_search_path_CXX}"; then
  12283. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12284. fi
  12285. lt_prog_compiler_wl_CXX=
  12286. lt_prog_compiler_pic_CXX=
  12287. lt_prog_compiler_static_CXX=
  12288. # C++ specific cases for pic, static, wl, etc.
  12289. if test "$GXX" = yes; then
  12290. lt_prog_compiler_wl_CXX='-Wl,'
  12291. lt_prog_compiler_static_CXX='-static'
  12292. case $host_os in
  12293. aix*)
  12294. # All AIX code is PIC.
  12295. if test "$host_cpu" = ia64; then
  12296. # AIX 5 now supports IA64 processor
  12297. lt_prog_compiler_static_CXX='-Bstatic'
  12298. fi
  12299. ;;
  12300. amigaos*)
  12301. case $host_cpu in
  12302. powerpc)
  12303. # see comment about AmigaOS4 .so support
  12304. lt_prog_compiler_pic_CXX='-fPIC'
  12305. ;;
  12306. m68k)
  12307. # FIXME: we need at least 68020 code to build shared libraries, but
  12308. # adding the `-m68020' flag to GCC prevents building anything better,
  12309. # like `-m68040'.
  12310. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12311. ;;
  12312. esac
  12313. ;;
  12314. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12315. # PIC is the default for these OSes.
  12316. ;;
  12317. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12318. # This hack is so that the source file can tell whether it is being
  12319. # built for inclusion in a dll (and should export symbols for example).
  12320. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12321. # (--disable-auto-import) libraries
  12322. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12323. ;;
  12324. darwin* | rhapsody*)
  12325. # PIC is the default on this platform
  12326. # Common symbols not allowed in MH_DYLIB files
  12327. lt_prog_compiler_pic_CXX='-fno-common'
  12328. ;;
  12329. *djgpp*)
  12330. # DJGPP does not support shared libraries at all
  12331. lt_prog_compiler_pic_CXX=
  12332. ;;
  12333. haiku*)
  12334. # PIC is the default for Haiku.
  12335. # The "-static" flag exists, but is broken.
  12336. lt_prog_compiler_static_CXX=
  12337. ;;
  12338. interix[3-9]*)
  12339. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12340. # Instead, we relocate shared libraries at runtime.
  12341. ;;
  12342. sysv4*MP*)
  12343. if test -d /usr/nec; then
  12344. lt_prog_compiler_pic_CXX=-Kconform_pic
  12345. fi
  12346. ;;
  12347. hpux*)
  12348. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12349. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12350. # sets the default TLS model and affects inlining.
  12351. case $host_cpu in
  12352. hppa*64*)
  12353. ;;
  12354. *)
  12355. lt_prog_compiler_pic_CXX='-fPIC'
  12356. ;;
  12357. esac
  12358. ;;
  12359. *qnx* | *nto*)
  12360. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12361. # it will coredump.
  12362. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12363. ;;
  12364. *)
  12365. lt_prog_compiler_pic_CXX='-fPIC'
  12366. ;;
  12367. esac
  12368. else
  12369. case $host_os in
  12370. aix[4-9]*)
  12371. # All AIX code is PIC.
  12372. if test "$host_cpu" = ia64; then
  12373. # AIX 5 now supports IA64 processor
  12374. lt_prog_compiler_static_CXX='-Bstatic'
  12375. else
  12376. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12377. fi
  12378. ;;
  12379. chorus*)
  12380. case $cc_basename in
  12381. cxch68*)
  12382. # Green Hills C++ Compiler
  12383. # _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"
  12384. ;;
  12385. esac
  12386. ;;
  12387. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12388. # This hack is so that the source file can tell whether it is being
  12389. # built for inclusion in a dll (and should export symbols for example).
  12390. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12391. ;;
  12392. dgux*)
  12393. case $cc_basename in
  12394. ec++*)
  12395. lt_prog_compiler_pic_CXX='-KPIC'
  12396. ;;
  12397. ghcx*)
  12398. # Green Hills C++ Compiler
  12399. lt_prog_compiler_pic_CXX='-pic'
  12400. ;;
  12401. *)
  12402. ;;
  12403. esac
  12404. ;;
  12405. freebsd* | dragonfly*)
  12406. # FreeBSD uses GNU C++
  12407. ;;
  12408. hpux9* | hpux10* | hpux11*)
  12409. case $cc_basename in
  12410. CC*)
  12411. lt_prog_compiler_wl_CXX='-Wl,'
  12412. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12413. if test "$host_cpu" != ia64; then
  12414. lt_prog_compiler_pic_CXX='+Z'
  12415. fi
  12416. ;;
  12417. aCC*)
  12418. lt_prog_compiler_wl_CXX='-Wl,'
  12419. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12420. case $host_cpu in
  12421. hppa*64*|ia64*)
  12422. # +Z the default
  12423. ;;
  12424. *)
  12425. lt_prog_compiler_pic_CXX='+Z'
  12426. ;;
  12427. esac
  12428. ;;
  12429. *)
  12430. ;;
  12431. esac
  12432. ;;
  12433. interix*)
  12434. # This is c89, which is MS Visual C++ (no shared libs)
  12435. # Anyone wants to do a port?
  12436. ;;
  12437. irix5* | irix6* | nonstopux*)
  12438. case $cc_basename in
  12439. CC*)
  12440. lt_prog_compiler_wl_CXX='-Wl,'
  12441. lt_prog_compiler_static_CXX='-non_shared'
  12442. # CC pic flag -KPIC is the default.
  12443. ;;
  12444. *)
  12445. ;;
  12446. esac
  12447. ;;
  12448. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12449. case $cc_basename in
  12450. KCC*)
  12451. # KAI C++ Compiler
  12452. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12453. lt_prog_compiler_pic_CXX='-fPIC'
  12454. ;;
  12455. ecpc* )
  12456. # old Intel C++ for x86_64 which still supported -KPIC.
  12457. lt_prog_compiler_wl_CXX='-Wl,'
  12458. lt_prog_compiler_pic_CXX='-KPIC'
  12459. lt_prog_compiler_static_CXX='-static'
  12460. ;;
  12461. icpc* )
  12462. # Intel C++, used to be incompatible with GCC.
  12463. # ICC 10 doesn't accept -KPIC any more.
  12464. lt_prog_compiler_wl_CXX='-Wl,'
  12465. lt_prog_compiler_pic_CXX='-fPIC'
  12466. lt_prog_compiler_static_CXX='-static'
  12467. ;;
  12468. pgCC* | pgcpp*)
  12469. # Portland Group C++ compiler
  12470. lt_prog_compiler_wl_CXX='-Wl,'
  12471. lt_prog_compiler_pic_CXX='-fpic'
  12472. lt_prog_compiler_static_CXX='-Bstatic'
  12473. ;;
  12474. cxx*)
  12475. # Compaq C++
  12476. # Make sure the PIC flag is empty. It appears that all Alpha
  12477. # Linux and Compaq Tru64 Unix objects are PIC.
  12478. lt_prog_compiler_pic_CXX=
  12479. lt_prog_compiler_static_CXX='-non_shared'
  12480. ;;
  12481. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12482. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12483. lt_prog_compiler_wl_CXX='-Wl,'
  12484. lt_prog_compiler_pic_CXX='-qpic'
  12485. lt_prog_compiler_static_CXX='-qstaticlink'
  12486. ;;
  12487. *)
  12488. case `$CC -V 2>&1 | sed 5q` in
  12489. *Sun\ C*)
  12490. # Sun C++ 5.9
  12491. lt_prog_compiler_pic_CXX='-KPIC'
  12492. lt_prog_compiler_static_CXX='-Bstatic'
  12493. lt_prog_compiler_wl_CXX='-Qoption ld '
  12494. ;;
  12495. esac
  12496. ;;
  12497. esac
  12498. ;;
  12499. lynxos*)
  12500. ;;
  12501. m88k*)
  12502. ;;
  12503. mvs*)
  12504. case $cc_basename in
  12505. cxx*)
  12506. lt_prog_compiler_pic_CXX='-W c,exportall'
  12507. ;;
  12508. *)
  12509. ;;
  12510. esac
  12511. ;;
  12512. netbsd*)
  12513. ;;
  12514. *qnx* | *nto*)
  12515. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12516. # it will coredump.
  12517. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12518. ;;
  12519. osf3* | osf4* | osf5*)
  12520. case $cc_basename in
  12521. KCC*)
  12522. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12523. ;;
  12524. RCC*)
  12525. # Rational C++ 2.4.1
  12526. lt_prog_compiler_pic_CXX='-pic'
  12527. ;;
  12528. cxx*)
  12529. # Digital/Compaq C++
  12530. lt_prog_compiler_wl_CXX='-Wl,'
  12531. # Make sure the PIC flag is empty. It appears that all Alpha
  12532. # Linux and Compaq Tru64 Unix objects are PIC.
  12533. lt_prog_compiler_pic_CXX=
  12534. lt_prog_compiler_static_CXX='-non_shared'
  12535. ;;
  12536. *)
  12537. ;;
  12538. esac
  12539. ;;
  12540. psos*)
  12541. ;;
  12542. solaris*)
  12543. case $cc_basename in
  12544. CC* | sunCC*)
  12545. # Sun C++ 4.2, 5.x and Centerline C++
  12546. lt_prog_compiler_pic_CXX='-KPIC'
  12547. lt_prog_compiler_static_CXX='-Bstatic'
  12548. lt_prog_compiler_wl_CXX='-Qoption ld '
  12549. ;;
  12550. gcx*)
  12551. # Green Hills C++ Compiler
  12552. lt_prog_compiler_pic_CXX='-PIC'
  12553. ;;
  12554. *)
  12555. ;;
  12556. esac
  12557. ;;
  12558. sunos4*)
  12559. case $cc_basename in
  12560. CC*)
  12561. # Sun C++ 4.x
  12562. lt_prog_compiler_pic_CXX='-pic'
  12563. lt_prog_compiler_static_CXX='-Bstatic'
  12564. ;;
  12565. lcc*)
  12566. # Lucid
  12567. lt_prog_compiler_pic_CXX='-pic'
  12568. ;;
  12569. *)
  12570. ;;
  12571. esac
  12572. ;;
  12573. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12574. case $cc_basename in
  12575. CC*)
  12576. lt_prog_compiler_wl_CXX='-Wl,'
  12577. lt_prog_compiler_pic_CXX='-KPIC'
  12578. lt_prog_compiler_static_CXX='-Bstatic'
  12579. ;;
  12580. esac
  12581. ;;
  12582. tandem*)
  12583. case $cc_basename in
  12584. NCC*)
  12585. # NonStop-UX NCC 3.20
  12586. lt_prog_compiler_pic_CXX='-KPIC'
  12587. ;;
  12588. *)
  12589. ;;
  12590. esac
  12591. ;;
  12592. vxworks*)
  12593. ;;
  12594. *)
  12595. lt_prog_compiler_can_build_shared_CXX=no
  12596. ;;
  12597. esac
  12598. fi
  12599. case $host_os in
  12600. # For platforms which do not support PIC, -DPIC is meaningless:
  12601. *djgpp*)
  12602. lt_prog_compiler_pic_CXX=
  12603. ;;
  12604. *)
  12605. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12606. ;;
  12607. esac
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12609. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12610. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12611. $as_echo_n "(cached) " >&6
  12612. else
  12613. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12614. fi
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12616. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12617. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12618. #
  12619. # Check to make sure the PIC flag actually works.
  12620. #
  12621. if test -n "$lt_prog_compiler_pic_CXX"; then
  12622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12623. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12624. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12625. $as_echo_n "(cached) " >&6
  12626. else
  12627. lt_cv_prog_compiler_pic_works_CXX=no
  12628. ac_outfile=conftest.$ac_objext
  12629. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12630. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12631. # Insert the option either (1) after the last *FLAGS variable, or
  12632. # (2) before a word containing "conftest.", or (3) at the end.
  12633. # Note that $ac_compile itself does not contain backslashes and begins
  12634. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12635. # The option is referenced via a variable to avoid confusing sed.
  12636. lt_compile=`echo "$ac_compile" | $SED \
  12637. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12638. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12639. -e 's:$: $lt_compiler_flag:'`
  12640. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12641. (eval "$lt_compile" 2>conftest.err)
  12642. ac_status=$?
  12643. cat conftest.err >&5
  12644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12645. if (exit $ac_status) && test -s "$ac_outfile"; then
  12646. # The compiler can only warn and ignore the option if not recognized
  12647. # So say no if there are warnings other than the usual output.
  12648. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12649. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12650. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12651. lt_cv_prog_compiler_pic_works_CXX=yes
  12652. fi
  12653. fi
  12654. $RM conftest*
  12655. fi
  12656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12657. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12658. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12659. case $lt_prog_compiler_pic_CXX in
  12660. "" | " "*) ;;
  12661. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12662. esac
  12663. else
  12664. lt_prog_compiler_pic_CXX=
  12665. lt_prog_compiler_can_build_shared_CXX=no
  12666. fi
  12667. fi
  12668. #
  12669. # Check to make sure the static flag actually works.
  12670. #
  12671. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12673. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12674. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12675. $as_echo_n "(cached) " >&6
  12676. else
  12677. lt_cv_prog_compiler_static_works_CXX=no
  12678. save_LDFLAGS="$LDFLAGS"
  12679. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12680. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12681. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12682. # The linker can only warn and ignore the option if not recognized
  12683. # So say no if there are warnings
  12684. if test -s conftest.err; then
  12685. # Append any errors to the config.log.
  12686. cat conftest.err 1>&5
  12687. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12688. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12689. if diff conftest.exp conftest.er2 >/dev/null; then
  12690. lt_cv_prog_compiler_static_works_CXX=yes
  12691. fi
  12692. else
  12693. lt_cv_prog_compiler_static_works_CXX=yes
  12694. fi
  12695. fi
  12696. $RM -r conftest*
  12697. LDFLAGS="$save_LDFLAGS"
  12698. fi
  12699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12700. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12701. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12702. :
  12703. else
  12704. lt_prog_compiler_static_CXX=
  12705. fi
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12707. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12708. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12709. $as_echo_n "(cached) " >&6
  12710. else
  12711. lt_cv_prog_compiler_c_o_CXX=no
  12712. $RM -r conftest 2>/dev/null
  12713. mkdir conftest
  12714. cd conftest
  12715. mkdir out
  12716. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12717. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12718. # Insert the option either (1) after the last *FLAGS variable, or
  12719. # (2) before a word containing "conftest.", or (3) at the end.
  12720. # Note that $ac_compile itself does not contain backslashes and begins
  12721. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12722. lt_compile=`echo "$ac_compile" | $SED \
  12723. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12724. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12725. -e 's:$: $lt_compiler_flag:'`
  12726. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12727. (eval "$lt_compile" 2>out/conftest.err)
  12728. ac_status=$?
  12729. cat out/conftest.err >&5
  12730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12731. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12732. then
  12733. # The compiler can only warn and ignore the option if not recognized
  12734. # So say no if there are warnings
  12735. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12736. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12737. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12738. lt_cv_prog_compiler_c_o_CXX=yes
  12739. fi
  12740. fi
  12741. chmod u+w . 2>&5
  12742. $RM conftest*
  12743. # SGI C++ compiler will create directory out/ii_files/ for
  12744. # template instantiation
  12745. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12746. $RM out/* && rmdir out
  12747. cd ..
  12748. $RM -r conftest
  12749. $RM conftest*
  12750. fi
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12752. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12754. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12755. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12756. $as_echo_n "(cached) " >&6
  12757. else
  12758. lt_cv_prog_compiler_c_o_CXX=no
  12759. $RM -r conftest 2>/dev/null
  12760. mkdir conftest
  12761. cd conftest
  12762. mkdir out
  12763. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12764. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12765. # Insert the option either (1) after the last *FLAGS variable, or
  12766. # (2) before a word containing "conftest.", or (3) at the end.
  12767. # Note that $ac_compile itself does not contain backslashes and begins
  12768. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12769. lt_compile=`echo "$ac_compile" | $SED \
  12770. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12771. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12772. -e 's:$: $lt_compiler_flag:'`
  12773. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12774. (eval "$lt_compile" 2>out/conftest.err)
  12775. ac_status=$?
  12776. cat out/conftest.err >&5
  12777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12778. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12779. then
  12780. # The compiler can only warn and ignore the option if not recognized
  12781. # So say no if there are warnings
  12782. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12783. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12784. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12785. lt_cv_prog_compiler_c_o_CXX=yes
  12786. fi
  12787. fi
  12788. chmod u+w . 2>&5
  12789. $RM conftest*
  12790. # SGI C++ compiler will create directory out/ii_files/ for
  12791. # template instantiation
  12792. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12793. $RM out/* && rmdir out
  12794. cd ..
  12795. $RM -r conftest
  12796. $RM conftest*
  12797. fi
  12798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12799. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12800. hard_links="nottested"
  12801. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12802. # do not overwrite the value of need_locks provided by the user
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12804. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12805. hard_links=yes
  12806. $RM conftest*
  12807. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12808. touch conftest.a
  12809. ln conftest.a conftest.b 2>&5 || hard_links=no
  12810. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12812. $as_echo "$hard_links" >&6; }
  12813. if test "$hard_links" = no; then
  12814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12815. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12816. need_locks=warn
  12817. fi
  12818. else
  12819. need_locks=no
  12820. fi
  12821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12822. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12823. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12824. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12825. case $host_os in
  12826. aix[4-9]*)
  12827. # If we're using GNU nm, then we don't want the "-C" option.
  12828. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12829. # Also, AIX nm treats weak defined symbols like other global defined
  12830. # symbols, whereas GNU nm marks them as "W".
  12831. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12832. 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'
  12833. else
  12834. 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'
  12835. fi
  12836. ;;
  12837. pw32*)
  12838. export_symbols_cmds_CXX="$ltdll_cmds"
  12839. ;;
  12840. cygwin* | mingw* | cegcc*)
  12841. case $cc_basename in
  12842. cl*)
  12843. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12844. ;;
  12845. *)
  12846. 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'
  12847. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12848. ;;
  12849. esac
  12850. ;;
  12851. *)
  12852. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12853. ;;
  12854. esac
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12856. $as_echo "$ld_shlibs_CXX" >&6; }
  12857. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12858. with_gnu_ld_CXX=$with_gnu_ld
  12859. #
  12860. # Do we need to explicitly link libc?
  12861. #
  12862. case "x$archive_cmds_need_lc_CXX" in
  12863. x|xyes)
  12864. # Assume -lc should be added
  12865. archive_cmds_need_lc_CXX=yes
  12866. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12867. case $archive_cmds_CXX in
  12868. *'~'*)
  12869. # FIXME: we may have to deal with multi-command sequences.
  12870. ;;
  12871. '$CC '*)
  12872. # Test whether the compiler implicitly links with -lc since on some
  12873. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12874. # to ld, don't add -lc before -lgcc.
  12875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12876. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12877. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12878. $as_echo_n "(cached) " >&6
  12879. else
  12880. $RM conftest*
  12881. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12882. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12883. (eval $ac_compile) 2>&5
  12884. ac_status=$?
  12885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12886. test $ac_status = 0; } 2>conftest.err; then
  12887. soname=conftest
  12888. lib=conftest
  12889. libobjs=conftest.$ac_objext
  12890. deplibs=
  12891. wl=$lt_prog_compiler_wl_CXX
  12892. pic_flag=$lt_prog_compiler_pic_CXX
  12893. compiler_flags=-v
  12894. linker_flags=-v
  12895. verstring=
  12896. output_objdir=.
  12897. libname=conftest
  12898. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12899. allow_undefined_flag_CXX=
  12900. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12901. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12902. ac_status=$?
  12903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12904. test $ac_status = 0; }
  12905. then
  12906. lt_cv_archive_cmds_need_lc_CXX=no
  12907. else
  12908. lt_cv_archive_cmds_need_lc_CXX=yes
  12909. fi
  12910. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12911. else
  12912. cat conftest.err 1>&5
  12913. fi
  12914. $RM conftest*
  12915. fi
  12916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12917. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12918. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12919. ;;
  12920. esac
  12921. fi
  12922. ;;
  12923. esac
  12924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12925. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12926. library_names_spec=
  12927. libname_spec='lib$name'
  12928. soname_spec=
  12929. shrext_cmds=".so"
  12930. postinstall_cmds=
  12931. postuninstall_cmds=
  12932. finish_cmds=
  12933. finish_eval=
  12934. shlibpath_var=
  12935. shlibpath_overrides_runpath=unknown
  12936. version_type=none
  12937. dynamic_linker="$host_os ld.so"
  12938. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12939. need_lib_prefix=unknown
  12940. hardcode_into_libs=no
  12941. # when you set need_version to no, make sure it does not cause -set_version
  12942. # flags to be left without arguments
  12943. need_version=unknown
  12944. case $host_os in
  12945. aix3*)
  12946. version_type=linux # correct to gnu/linux during the next big refactor
  12947. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12948. shlibpath_var=LIBPATH
  12949. # AIX 3 has no versioning support, so we append a major version to the name.
  12950. soname_spec='${libname}${release}${shared_ext}$major'
  12951. ;;
  12952. aix[4-9]*)
  12953. version_type=linux # correct to gnu/linux during the next big refactor
  12954. need_lib_prefix=no
  12955. need_version=no
  12956. hardcode_into_libs=yes
  12957. if test "$host_cpu" = ia64; then
  12958. # AIX 5 supports IA64
  12959. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12960. shlibpath_var=LD_LIBRARY_PATH
  12961. else
  12962. # With GCC up to 2.95.x, collect2 would create an import file
  12963. # for dependence libraries. The import file would start with
  12964. # the line `#! .'. This would cause the generated library to
  12965. # depend on `.', always an invalid library. This was fixed in
  12966. # development snapshots of GCC prior to 3.0.
  12967. case $host_os in
  12968. aix4 | aix4.[01] | aix4.[01].*)
  12969. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12970. echo ' yes '
  12971. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12972. :
  12973. else
  12974. can_build_shared=no
  12975. fi
  12976. ;;
  12977. esac
  12978. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12979. # soname into executable. Probably we can add versioning support to
  12980. # collect2, so additional links can be useful in future.
  12981. if test "$aix_use_runtimelinking" = yes; then
  12982. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12983. # instead of lib<name>.a to let people know that these are not
  12984. # typical AIX shared libraries.
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12986. else
  12987. # We preserve .a as extension for shared libraries through AIX4.2
  12988. # and later when we are not doing run time linking.
  12989. library_names_spec='${libname}${release}.a $libname.a'
  12990. soname_spec='${libname}${release}${shared_ext}$major'
  12991. fi
  12992. shlibpath_var=LIBPATH
  12993. fi
  12994. ;;
  12995. amigaos*)
  12996. case $host_cpu in
  12997. powerpc)
  12998. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12999. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13001. ;;
  13002. m68k)
  13003. library_names_spec='$libname.ixlibrary $libname.a'
  13004. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13005. 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'
  13006. ;;
  13007. esac
  13008. ;;
  13009. beos*)
  13010. library_names_spec='${libname}${shared_ext}'
  13011. dynamic_linker="$host_os ld.so"
  13012. shlibpath_var=LIBRARY_PATH
  13013. ;;
  13014. bsdi[45]*)
  13015. version_type=linux # correct to gnu/linux during the next big refactor
  13016. need_version=no
  13017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13018. soname_spec='${libname}${release}${shared_ext}$major'
  13019. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13020. shlibpath_var=LD_LIBRARY_PATH
  13021. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13022. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13023. # the default ld.so.conf also contains /usr/contrib/lib and
  13024. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13025. # libtool to hard-code these into programs
  13026. ;;
  13027. cygwin* | mingw* | pw32* | cegcc*)
  13028. version_type=windows
  13029. shrext_cmds=".dll"
  13030. need_version=no
  13031. need_lib_prefix=no
  13032. case $GCC,$cc_basename in
  13033. yes,*)
  13034. # gcc
  13035. library_names_spec='$libname.dll.a'
  13036. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13037. postinstall_cmds='base_file=`basename \${file}`~
  13038. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13039. dldir=$destdir/`dirname \$dlpath`~
  13040. test -d \$dldir || mkdir -p \$dldir~
  13041. $install_prog $dir/$dlname \$dldir/$dlname~
  13042. chmod a+x \$dldir/$dlname~
  13043. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13044. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13045. fi'
  13046. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13047. dlpath=$dir/\$dldll~
  13048. $RM \$dlpath'
  13049. shlibpath_overrides_runpath=yes
  13050. case $host_os in
  13051. cygwin*)
  13052. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13053. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13054. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13055. ;;
  13056. mingw* | cegcc*)
  13057. # MinGW DLLs use traditional 'lib' prefix
  13058. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13059. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13060. ;;
  13061. pw32*)
  13062. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13063. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13064. ;;
  13065. esac
  13066. dynamic_linker='Win32 ld.exe'
  13067. ;;
  13068. *,cl*)
  13069. # Native MSVC
  13070. libname_spec='$name'
  13071. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13072. library_names_spec='${libname}.dll.lib'
  13073. case $build_os in
  13074. mingw*)
  13075. sys_lib_search_path_spec=
  13076. lt_save_ifs=$IFS
  13077. IFS=';'
  13078. for lt_path in $LIB
  13079. do
  13080. IFS=$lt_save_ifs
  13081. # Let DOS variable expansion print the short 8.3 style file name.
  13082. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13083. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13084. done
  13085. IFS=$lt_save_ifs
  13086. # Convert to MSYS style.
  13087. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13088. ;;
  13089. cygwin*)
  13090. # Convert to unix form, then to dos form, then back to unix form
  13091. # but this time dos style (no spaces!) so that the unix form looks
  13092. # like /cygdrive/c/PROGRA~1:/cygdr...
  13093. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13094. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13095. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13096. ;;
  13097. *)
  13098. sys_lib_search_path_spec="$LIB"
  13099. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13100. # It is most probably a Windows format PATH.
  13101. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13102. else
  13103. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13104. fi
  13105. # FIXME: find the short name or the path components, as spaces are
  13106. # common. (e.g. "Program Files" -> "PROGRA~1")
  13107. ;;
  13108. esac
  13109. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13110. postinstall_cmds='base_file=`basename \${file}`~
  13111. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13112. dldir=$destdir/`dirname \$dlpath`~
  13113. test -d \$dldir || mkdir -p \$dldir~
  13114. $install_prog $dir/$dlname \$dldir/$dlname'
  13115. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13116. dlpath=$dir/\$dldll~
  13117. $RM \$dlpath'
  13118. shlibpath_overrides_runpath=yes
  13119. dynamic_linker='Win32 link.exe'
  13120. ;;
  13121. *)
  13122. # Assume MSVC wrapper
  13123. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13124. dynamic_linker='Win32 ld.exe'
  13125. ;;
  13126. esac
  13127. # FIXME: first we should search . and the directory the executable is in
  13128. shlibpath_var=PATH
  13129. ;;
  13130. darwin* | rhapsody*)
  13131. dynamic_linker="$host_os dyld"
  13132. version_type=darwin
  13133. need_lib_prefix=no
  13134. need_version=no
  13135. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13136. soname_spec='${libname}${release}${major}$shared_ext'
  13137. shlibpath_overrides_runpath=yes
  13138. shlibpath_var=DYLD_LIBRARY_PATH
  13139. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13140. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13141. ;;
  13142. dgux*)
  13143. version_type=linux # correct to gnu/linux during the next big refactor
  13144. need_lib_prefix=no
  13145. need_version=no
  13146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13147. soname_spec='${libname}${release}${shared_ext}$major'
  13148. shlibpath_var=LD_LIBRARY_PATH
  13149. ;;
  13150. freebsd* | dragonfly*)
  13151. # DragonFly does not have aout. When/if they implement a new
  13152. # versioning mechanism, adjust this.
  13153. if test -x /usr/bin/objformat; then
  13154. objformat=`/usr/bin/objformat`
  13155. else
  13156. case $host_os in
  13157. freebsd[23].*) objformat=aout ;;
  13158. *) objformat=elf ;;
  13159. esac
  13160. fi
  13161. version_type=freebsd-$objformat
  13162. case $version_type in
  13163. freebsd-elf*)
  13164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13165. need_version=no
  13166. need_lib_prefix=no
  13167. ;;
  13168. freebsd-*)
  13169. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13170. need_version=yes
  13171. ;;
  13172. esac
  13173. shlibpath_var=LD_LIBRARY_PATH
  13174. case $host_os in
  13175. freebsd2.*)
  13176. shlibpath_overrides_runpath=yes
  13177. ;;
  13178. freebsd3.[01]* | freebsdelf3.[01]*)
  13179. shlibpath_overrides_runpath=yes
  13180. hardcode_into_libs=yes
  13181. ;;
  13182. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13183. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13184. shlibpath_overrides_runpath=no
  13185. hardcode_into_libs=yes
  13186. ;;
  13187. *) # from 4.6 on, and DragonFly
  13188. shlibpath_overrides_runpath=yes
  13189. hardcode_into_libs=yes
  13190. ;;
  13191. esac
  13192. ;;
  13193. gnu*)
  13194. version_type=linux # correct to gnu/linux during the next big refactor
  13195. need_lib_prefix=no
  13196. need_version=no
  13197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13198. soname_spec='${libname}${release}${shared_ext}$major'
  13199. shlibpath_var=LD_LIBRARY_PATH
  13200. shlibpath_overrides_runpath=no
  13201. hardcode_into_libs=yes
  13202. ;;
  13203. haiku*)
  13204. version_type=linux # correct to gnu/linux during the next big refactor
  13205. need_lib_prefix=no
  13206. need_version=no
  13207. dynamic_linker="$host_os runtime_loader"
  13208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13209. soname_spec='${libname}${release}${shared_ext}$major'
  13210. shlibpath_var=LIBRARY_PATH
  13211. shlibpath_overrides_runpath=yes
  13212. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13213. hardcode_into_libs=yes
  13214. ;;
  13215. hpux9* | hpux10* | hpux11*)
  13216. # Give a soname corresponding to the major version so that dld.sl refuses to
  13217. # link against other versions.
  13218. version_type=sunos
  13219. need_lib_prefix=no
  13220. need_version=no
  13221. case $host_cpu in
  13222. ia64*)
  13223. shrext_cmds='.so'
  13224. hardcode_into_libs=yes
  13225. dynamic_linker="$host_os dld.so"
  13226. shlibpath_var=LD_LIBRARY_PATH
  13227. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13229. soname_spec='${libname}${release}${shared_ext}$major'
  13230. if test "X$HPUX_IA64_MODE" = X32; then
  13231. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13232. else
  13233. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13234. fi
  13235. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13236. ;;
  13237. hppa*64*)
  13238. shrext_cmds='.sl'
  13239. hardcode_into_libs=yes
  13240. dynamic_linker="$host_os dld.sl"
  13241. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13242. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13246. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13247. ;;
  13248. *)
  13249. shrext_cmds='.sl'
  13250. dynamic_linker="$host_os dld.sl"
  13251. shlibpath_var=SHLIB_PATH
  13252. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13254. soname_spec='${libname}${release}${shared_ext}$major'
  13255. ;;
  13256. esac
  13257. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13258. postinstall_cmds='chmod 555 $lib'
  13259. # or fails outright, so override atomically:
  13260. install_override_mode=555
  13261. ;;
  13262. interix[3-9]*)
  13263. version_type=linux # correct to gnu/linux during the next big refactor
  13264. need_lib_prefix=no
  13265. need_version=no
  13266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13267. soname_spec='${libname}${release}${shared_ext}$major'
  13268. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13269. shlibpath_var=LD_LIBRARY_PATH
  13270. shlibpath_overrides_runpath=no
  13271. hardcode_into_libs=yes
  13272. ;;
  13273. irix5* | irix6* | nonstopux*)
  13274. case $host_os in
  13275. nonstopux*) version_type=nonstopux ;;
  13276. *)
  13277. if test "$lt_cv_prog_gnu_ld" = yes; then
  13278. version_type=linux # correct to gnu/linux during the next big refactor
  13279. else
  13280. version_type=irix
  13281. fi ;;
  13282. esac
  13283. need_lib_prefix=no
  13284. need_version=no
  13285. soname_spec='${libname}${release}${shared_ext}$major'
  13286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13287. case $host_os in
  13288. irix5* | nonstopux*)
  13289. libsuff= shlibsuff=
  13290. ;;
  13291. *)
  13292. case $LD in # libtool.m4 will add one of these switches to LD
  13293. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13294. libsuff= shlibsuff= libmagic=32-bit;;
  13295. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13296. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13297. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13298. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13299. *) libsuff= shlibsuff= libmagic=never-match;;
  13300. esac
  13301. ;;
  13302. esac
  13303. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13304. shlibpath_overrides_runpath=no
  13305. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13306. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13307. hardcode_into_libs=yes
  13308. ;;
  13309. # No shared lib support for Linux oldld, aout, or coff.
  13310. linux*oldld* | linux*aout* | linux*coff*)
  13311. dynamic_linker=no
  13312. ;;
  13313. # This must be glibc/ELF.
  13314. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13315. version_type=linux # correct to gnu/linux during the next big refactor
  13316. need_lib_prefix=no
  13317. need_version=no
  13318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13319. soname_spec='${libname}${release}${shared_ext}$major'
  13320. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13321. shlibpath_var=LD_LIBRARY_PATH
  13322. shlibpath_overrides_runpath=no
  13323. # Some binutils ld are patched to set DT_RUNPATH
  13324. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13325. $as_echo_n "(cached) " >&6
  13326. else
  13327. lt_cv_shlibpath_overrides_runpath=no
  13328. save_LDFLAGS=$LDFLAGS
  13329. save_libdir=$libdir
  13330. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13331. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13333. /* end confdefs.h. */
  13334. int
  13335. main ()
  13336. {
  13337. ;
  13338. return 0;
  13339. }
  13340. _ACEOF
  13341. if ac_fn_cxx_try_link "$LINENO"; then :
  13342. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13343. lt_cv_shlibpath_overrides_runpath=yes
  13344. fi
  13345. fi
  13346. rm -f core conftest.err conftest.$ac_objext \
  13347. conftest$ac_exeext conftest.$ac_ext
  13348. LDFLAGS=$save_LDFLAGS
  13349. libdir=$save_libdir
  13350. fi
  13351. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13352. # This implies no fast_install, which is unacceptable.
  13353. # Some rework will be needed to allow for fast_install
  13354. # before this can be enabled.
  13355. hardcode_into_libs=yes
  13356. # Append ld.so.conf contents to the search path
  13357. if test -f /etc/ld.so.conf; then
  13358. 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' ' '`
  13359. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13360. fi
  13361. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13362. # powerpc, because MkLinux only supported shared libraries with the
  13363. # GNU dynamic linker. Since this was broken with cross compilers,
  13364. # most powerpc-linux boxes support dynamic linking these days and
  13365. # people can always --disable-shared, the test was removed, and we
  13366. # assume the GNU/Linux dynamic linker is in use.
  13367. dynamic_linker='GNU/Linux ld.so'
  13368. ;;
  13369. netbsd*)
  13370. version_type=sunos
  13371. need_lib_prefix=no
  13372. need_version=no
  13373. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13375. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13376. dynamic_linker='NetBSD (a.out) ld.so'
  13377. else
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13379. soname_spec='${libname}${release}${shared_ext}$major'
  13380. dynamic_linker='NetBSD ld.elf_so'
  13381. fi
  13382. shlibpath_var=LD_LIBRARY_PATH
  13383. shlibpath_overrides_runpath=yes
  13384. hardcode_into_libs=yes
  13385. ;;
  13386. newsos6)
  13387. version_type=linux # correct to gnu/linux during the next big refactor
  13388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13389. shlibpath_var=LD_LIBRARY_PATH
  13390. shlibpath_overrides_runpath=yes
  13391. ;;
  13392. *nto* | *qnx*)
  13393. version_type=qnx
  13394. need_lib_prefix=no
  13395. need_version=no
  13396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13397. soname_spec='${libname}${release}${shared_ext}$major'
  13398. shlibpath_var=LD_LIBRARY_PATH
  13399. shlibpath_overrides_runpath=no
  13400. hardcode_into_libs=yes
  13401. dynamic_linker='ldqnx.so'
  13402. ;;
  13403. openbsd*)
  13404. version_type=sunos
  13405. sys_lib_dlsearch_path_spec="/usr/lib"
  13406. need_lib_prefix=no
  13407. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13408. case $host_os in
  13409. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13410. *) need_version=no ;;
  13411. esac
  13412. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13413. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13414. shlibpath_var=LD_LIBRARY_PATH
  13415. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13416. case $host_os in
  13417. openbsd2.[89] | openbsd2.[89].*)
  13418. shlibpath_overrides_runpath=no
  13419. ;;
  13420. *)
  13421. shlibpath_overrides_runpath=yes
  13422. ;;
  13423. esac
  13424. else
  13425. shlibpath_overrides_runpath=yes
  13426. fi
  13427. ;;
  13428. os2*)
  13429. libname_spec='$name'
  13430. shrext_cmds=".dll"
  13431. need_lib_prefix=no
  13432. library_names_spec='$libname${shared_ext} $libname.a'
  13433. dynamic_linker='OS/2 ld.exe'
  13434. shlibpath_var=LIBPATH
  13435. ;;
  13436. osf3* | osf4* | osf5*)
  13437. version_type=osf
  13438. need_lib_prefix=no
  13439. need_version=no
  13440. soname_spec='${libname}${release}${shared_ext}$major'
  13441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13442. shlibpath_var=LD_LIBRARY_PATH
  13443. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13444. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13445. ;;
  13446. rdos*)
  13447. dynamic_linker=no
  13448. ;;
  13449. solaris*)
  13450. version_type=linux # correct to gnu/linux during the next big refactor
  13451. need_lib_prefix=no
  13452. need_version=no
  13453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13454. soname_spec='${libname}${release}${shared_ext}$major'
  13455. shlibpath_var=LD_LIBRARY_PATH
  13456. shlibpath_overrides_runpath=yes
  13457. hardcode_into_libs=yes
  13458. # ldd complains unless libraries are executable
  13459. postinstall_cmds='chmod +x $lib'
  13460. ;;
  13461. sunos4*)
  13462. version_type=sunos
  13463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13464. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13465. shlibpath_var=LD_LIBRARY_PATH
  13466. shlibpath_overrides_runpath=yes
  13467. if test "$with_gnu_ld" = yes; then
  13468. need_lib_prefix=no
  13469. fi
  13470. need_version=yes
  13471. ;;
  13472. sysv4 | sysv4.3*)
  13473. version_type=linux # correct to gnu/linux during the next big refactor
  13474. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13475. soname_spec='${libname}${release}${shared_ext}$major'
  13476. shlibpath_var=LD_LIBRARY_PATH
  13477. case $host_vendor in
  13478. sni)
  13479. shlibpath_overrides_runpath=no
  13480. need_lib_prefix=no
  13481. runpath_var=LD_RUN_PATH
  13482. ;;
  13483. siemens)
  13484. need_lib_prefix=no
  13485. ;;
  13486. motorola)
  13487. need_lib_prefix=no
  13488. need_version=no
  13489. shlibpath_overrides_runpath=no
  13490. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13491. ;;
  13492. esac
  13493. ;;
  13494. sysv4*MP*)
  13495. if test -d /usr/nec ;then
  13496. version_type=linux # correct to gnu/linux during the next big refactor
  13497. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13498. soname_spec='$libname${shared_ext}.$major'
  13499. shlibpath_var=LD_LIBRARY_PATH
  13500. fi
  13501. ;;
  13502. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13503. version_type=freebsd-elf
  13504. need_lib_prefix=no
  13505. need_version=no
  13506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13507. soname_spec='${libname}${release}${shared_ext}$major'
  13508. shlibpath_var=LD_LIBRARY_PATH
  13509. shlibpath_overrides_runpath=yes
  13510. hardcode_into_libs=yes
  13511. if test "$with_gnu_ld" = yes; then
  13512. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13513. else
  13514. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13515. case $host_os in
  13516. sco3.2v5*)
  13517. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13518. ;;
  13519. esac
  13520. fi
  13521. sys_lib_dlsearch_path_spec='/usr/lib'
  13522. ;;
  13523. tpf*)
  13524. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13525. version_type=linux # correct to gnu/linux during the next big refactor
  13526. need_lib_prefix=no
  13527. need_version=no
  13528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13529. shlibpath_var=LD_LIBRARY_PATH
  13530. shlibpath_overrides_runpath=no
  13531. hardcode_into_libs=yes
  13532. ;;
  13533. uts4*)
  13534. version_type=linux # correct to gnu/linux during the next big refactor
  13535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13536. soname_spec='${libname}${release}${shared_ext}$major'
  13537. shlibpath_var=LD_LIBRARY_PATH
  13538. ;;
  13539. *)
  13540. dynamic_linker=no
  13541. ;;
  13542. esac
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13544. $as_echo "$dynamic_linker" >&6; }
  13545. test "$dynamic_linker" = no && can_build_shared=no
  13546. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13547. if test "$GCC" = yes; then
  13548. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13549. fi
  13550. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13551. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13552. fi
  13553. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13554. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13555. fi
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13557. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13558. hardcode_action_CXX=
  13559. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13560. test -n "$runpath_var_CXX" ||
  13561. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13562. # We can hardcode non-existent directories.
  13563. if test "$hardcode_direct_CXX" != no &&
  13564. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13565. # have to relink, otherwise we might link with an installed library
  13566. # when we should be linking with a yet-to-be-installed one
  13567. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13568. test "$hardcode_minus_L_CXX" != no; then
  13569. # Linking always hardcodes the temporary library directory.
  13570. hardcode_action_CXX=relink
  13571. else
  13572. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13573. hardcode_action_CXX=immediate
  13574. fi
  13575. else
  13576. # We cannot hardcode anything, or else we can only hardcode existing
  13577. # directories.
  13578. hardcode_action_CXX=unsupported
  13579. fi
  13580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13581. $as_echo "$hardcode_action_CXX" >&6; }
  13582. if test "$hardcode_action_CXX" = relink ||
  13583. test "$inherit_rpath_CXX" = yes; then
  13584. # Fast installation is not supported
  13585. enable_fast_install=no
  13586. elif test "$shlibpath_overrides_runpath" = yes ||
  13587. test "$enable_shared" = no; then
  13588. # Fast installation is not necessary
  13589. enable_fast_install=needless
  13590. fi
  13591. fi # test -n "$compiler"
  13592. CC=$lt_save_CC
  13593. CFLAGS=$lt_save_CFLAGS
  13594. LDCXX=$LD
  13595. LD=$lt_save_LD
  13596. GCC=$lt_save_GCC
  13597. with_gnu_ld=$lt_save_with_gnu_ld
  13598. lt_cv_path_LDCXX=$lt_cv_path_LD
  13599. lt_cv_path_LD=$lt_save_path_LD
  13600. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13601. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13602. fi # test "$_lt_caught_CXX_error" != yes
  13603. ac_ext=c
  13604. ac_cpp='$CPP $CPPFLAGS'
  13605. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13606. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13607. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13608. # Find a good install program. We prefer a C program (faster),
  13609. # so one script is as good as another. But avoid the broken or
  13610. # incompatible versions:
  13611. # SysV /etc/install, /usr/sbin/install
  13612. # SunOS /usr/etc/install
  13613. # IRIX /sbin/install
  13614. # AIX /bin/install
  13615. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13616. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13617. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13618. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13619. # OS/2's system install, which has a completely different semantic
  13620. # ./install, which can be erroneously created by make from ./install.sh.
  13621. # Reject install programs that cannot install multiple files.
  13622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13623. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13624. if test -z "$INSTALL"; then
  13625. if ${ac_cv_path_install+:} false; then :
  13626. $as_echo_n "(cached) " >&6
  13627. else
  13628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13629. for as_dir in $PATH
  13630. do
  13631. IFS=$as_save_IFS
  13632. test -z "$as_dir" && as_dir=.
  13633. # Account for people who put trailing slashes in PATH elements.
  13634. case $as_dir/ in #((
  13635. ./ | .// | /[cC]/* | \
  13636. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13637. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13638. /usr/ucb/* ) ;;
  13639. *)
  13640. # OSF1 and SCO ODT 3.0 have their own names for install.
  13641. # Don't use installbsd from OSF since it installs stuff as root
  13642. # by default.
  13643. for ac_prog in ginstall scoinst install; do
  13644. for ac_exec_ext in '' $ac_executable_extensions; do
  13645. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13646. if test $ac_prog = install &&
  13647. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13648. # AIX install. It has an incompatible calling convention.
  13649. :
  13650. elif test $ac_prog = install &&
  13651. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13652. # program-specific install script used by HP pwplus--don't use.
  13653. :
  13654. else
  13655. rm -rf conftest.one conftest.two conftest.dir
  13656. echo one > conftest.one
  13657. echo two > conftest.two
  13658. mkdir conftest.dir
  13659. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13660. test -s conftest.one && test -s conftest.two &&
  13661. test -s conftest.dir/conftest.one &&
  13662. test -s conftest.dir/conftest.two
  13663. then
  13664. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13665. break 3
  13666. fi
  13667. fi
  13668. fi
  13669. done
  13670. done
  13671. ;;
  13672. esac
  13673. done
  13674. IFS=$as_save_IFS
  13675. rm -rf conftest.one conftest.two conftest.dir
  13676. fi
  13677. if test "${ac_cv_path_install+set}" = set; then
  13678. INSTALL=$ac_cv_path_install
  13679. else
  13680. # As a last resort, use the slow shell script. Don't cache a
  13681. # value for INSTALL within a source directory, because that will
  13682. # break other packages using the cache if that directory is
  13683. # removed, or if the value is a relative name.
  13684. INSTALL=$ac_install_sh
  13685. fi
  13686. fi
  13687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13688. $as_echo "$INSTALL" >&6; }
  13689. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13690. # It thinks the first close brace ends the variable substitution.
  13691. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13692. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13693. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13695. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13696. set x ${MAKE-make}
  13697. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13698. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13699. $as_echo_n "(cached) " >&6
  13700. else
  13701. cat >conftest.make <<\_ACEOF
  13702. SHELL = /bin/sh
  13703. all:
  13704. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13705. _ACEOF
  13706. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13707. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13708. *@@@%%%=?*=@@@%%%*)
  13709. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13710. *)
  13711. eval ac_cv_prog_make_${ac_make}_set=no;;
  13712. esac
  13713. rm -f conftest.make
  13714. fi
  13715. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13717. $as_echo "yes" >&6; }
  13718. SET_MAKE=
  13719. else
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13721. $as_echo "no" >&6; }
  13722. SET_MAKE="MAKE=${MAKE-make}"
  13723. fi
  13724. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13725. if test -n "$ac_tool_prefix"; then
  13726. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13727. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13729. $as_echo_n "checking for $ac_word... " >&6; }
  13730. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13731. $as_echo_n "(cached) " >&6
  13732. else
  13733. case $PKG_CONFIG in
  13734. [\\/]* | ?:[\\/]*)
  13735. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13736. ;;
  13737. *)
  13738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13739. for as_dir in $PATH
  13740. do
  13741. IFS=$as_save_IFS
  13742. test -z "$as_dir" && as_dir=.
  13743. for ac_exec_ext in '' $ac_executable_extensions; do
  13744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13745. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13747. break 2
  13748. fi
  13749. done
  13750. done
  13751. IFS=$as_save_IFS
  13752. ;;
  13753. esac
  13754. fi
  13755. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13756. if test -n "$PKG_CONFIG"; then
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13758. $as_echo "$PKG_CONFIG" >&6; }
  13759. else
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13761. $as_echo "no" >&6; }
  13762. fi
  13763. fi
  13764. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13765. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13766. # Extract the first word of "pkg-config", so it can be a program name with args.
  13767. set dummy pkg-config; ac_word=$2
  13768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13769. $as_echo_n "checking for $ac_word... " >&6; }
  13770. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13771. $as_echo_n "(cached) " >&6
  13772. else
  13773. case $ac_pt_PKG_CONFIG in
  13774. [\\/]* | ?:[\\/]*)
  13775. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13776. ;;
  13777. *)
  13778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13779. for as_dir in $PATH
  13780. do
  13781. IFS=$as_save_IFS
  13782. test -z "$as_dir" && as_dir=.
  13783. for ac_exec_ext in '' $ac_executable_extensions; do
  13784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13785. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13787. break 2
  13788. fi
  13789. done
  13790. done
  13791. IFS=$as_save_IFS
  13792. ;;
  13793. esac
  13794. fi
  13795. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13796. if test -n "$ac_pt_PKG_CONFIG"; then
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13798. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13799. else
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13801. $as_echo "no" >&6; }
  13802. fi
  13803. if test "x$ac_pt_PKG_CONFIG" = x; then
  13804. PKG_CONFIG=""
  13805. else
  13806. case $cross_compiling:$ac_tool_warned in
  13807. yes:)
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13809. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13810. ac_tool_warned=yes ;;
  13811. esac
  13812. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13813. fi
  13814. else
  13815. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13816. fi
  13817. fi
  13818. if test -n "$PKG_CONFIG"; then
  13819. _pkg_min_version=0.9.0
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13821. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13822. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13824. $as_echo "yes" >&6; }
  13825. else
  13826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13827. $as_echo "no" >&6; }
  13828. PKG_CONFIG=""
  13829. fi
  13830. fi
  13831. case "$host" in
  13832. *-*-mingw*)
  13833. # Except on msys, where make can't handle full pathnames (bug 1972)
  13834. ;;
  13835. *)
  13836. srcdir=`cd $srcdir && pwd`
  13837. ;;
  13838. esac
  13839. INCLUDE="-I$srcdir/include"
  13840. case "$host" in
  13841. *-*-nto-qnx*)
  13842. ;;
  13843. *)
  13844. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13845. ;;
  13846. esac
  13847. case "$host" in
  13848. *-*-haiku*)
  13849. LINKER='$(CXX)'
  13850. LIBTOOLLINKERTAG='CXX'
  13851. ;;
  13852. *)
  13853. LINKER='$(CC)'
  13854. LIBTOOLLINKERTAG='CC'
  13855. ;;
  13856. esac
  13857. if test x$srcdir != x.; then
  13858. INCLUDE="-Iinclude $INCLUDE"
  13859. elif test -d .git; then
  13860. as_fn_error $? "
  13861. *** When building from a git clone you should configure and build in a
  13862. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13863. " "$LINENO" 5
  13864. fi
  13865. BASE_CFLAGS=""
  13866. BASE_LDFLAGS=""
  13867. case "$host" in
  13868. *-*-cygwin*)
  13869. # We build SDL on cygwin without the UNIX emulation layer
  13870. save_CFLAGS="$CFLAGS"
  13871. have_no_cygwin=no
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13873. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13874. CFLAGS="$save_CFLAGS -mno-cygwin"
  13875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13876. /* end confdefs.h. */
  13877. int
  13878. main ()
  13879. {
  13880. ;
  13881. return 0;
  13882. }
  13883. _ACEOF
  13884. if ac_fn_c_try_compile "$LINENO"; then :
  13885. have_no_cygwin=yes
  13886. fi
  13887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13889. $as_echo "$have_no_cygwin" >&6; }
  13890. CFLAGS="$save_CFLAGS"
  13891. if test x$have_no_cygwin = xyes; then
  13892. BASE_CFLAGS="-mno-cygwin"
  13893. BASE_LDFLAGS="-mno-cygwin"
  13894. fi
  13895. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13896. ;;
  13897. esac
  13898. # Uncomment the following line if you want to force SDL and applications
  13899. # built with it to be compiled for a particular architecture.
  13900. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13901. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13902. # The default optimization for SDL is -O3 (Bug #31)
  13903. if test "x$orig_CFLAGS" = x; then
  13904. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13905. fi
  13906. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13907. BUILD_LDFLAGS="$LDFLAGS"
  13908. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13909. ## These are common directories to find software packages
  13910. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13911. # if test -d $path/include; then
  13912. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13913. # fi
  13914. # if test -d $path/lib; then
  13915. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13916. # fi
  13917. #done
  13918. SDL_CFLAGS="$BASE_CFLAGS"
  13919. SDL_LIBS="-lSDL2"
  13920. if test "x$BASE_LDFLAGS" != x; then
  13921. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13922. fi
  13923. if test "x$EXTRA_CFLAGS" != x; then
  13924. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13925. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13926. fi
  13927. if test "x$EXTRA_LDFLAGS" != x; then
  13928. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13929. fi
  13930. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13931. find_lib()
  13932. {
  13933. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13934. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13935. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13936. if test "$cross_compiling" = yes; then
  13937. host_lib_path=""
  13938. else
  13939. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13940. fi
  13941. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13942. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13943. if test x$lib != x; then
  13944. echo $lib
  13945. return
  13946. fi
  13947. done
  13948. # Try again, this time allowing more than one version digit after the .so
  13949. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13950. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13951. if test x$lib != x; then
  13952. echo $lib
  13953. return
  13954. fi
  13955. done
  13956. }
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13958. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13959. if ${ac_cv_c_const+:} false; then :
  13960. $as_echo_n "(cached) " >&6
  13961. else
  13962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13963. /* end confdefs.h. */
  13964. int
  13965. main ()
  13966. {
  13967. #ifndef __cplusplus
  13968. /* Ultrix mips cc rejects this sort of thing. */
  13969. typedef int charset[2];
  13970. const charset cs = { 0, 0 };
  13971. /* SunOS 4.1.1 cc rejects this. */
  13972. char const *const *pcpcc;
  13973. char **ppc;
  13974. /* NEC SVR4.0.2 mips cc rejects this. */
  13975. struct point {int x, y;};
  13976. static struct point const zero = {0,0};
  13977. /* AIX XL C 1.02.0.0 rejects this.
  13978. It does not let you subtract one const X* pointer from another in
  13979. an arm of an if-expression whose if-part is not a constant
  13980. expression */
  13981. const char *g = "string";
  13982. pcpcc = &g + (g ? g-g : 0);
  13983. /* HPUX 7.0 cc rejects these. */
  13984. ++pcpcc;
  13985. ppc = (char**) pcpcc;
  13986. pcpcc = (char const *const *) ppc;
  13987. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13988. char tx;
  13989. char *t = &tx;
  13990. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13991. *t++ = 0;
  13992. if (s) return 0;
  13993. }
  13994. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13995. int x[] = {25, 17};
  13996. const int *foo = &x[0];
  13997. ++foo;
  13998. }
  13999. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14000. typedef const int *iptr;
  14001. iptr p = 0;
  14002. ++p;
  14003. }
  14004. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14005. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14006. struct s { int j; const int *ap[3]; } bx;
  14007. struct s *b = &bx; b->j = 5;
  14008. }
  14009. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14010. const int foo = 10;
  14011. if (!foo) return 0;
  14012. }
  14013. return !cs[0] && !zero.x;
  14014. #endif
  14015. ;
  14016. return 0;
  14017. }
  14018. _ACEOF
  14019. if ac_fn_c_try_compile "$LINENO"; then :
  14020. ac_cv_c_const=yes
  14021. else
  14022. ac_cv_c_const=no
  14023. fi
  14024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14025. fi
  14026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14027. $as_echo "$ac_cv_c_const" >&6; }
  14028. if test $ac_cv_c_const = no; then
  14029. $as_echo "#define const /**/" >>confdefs.h
  14030. fi
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14032. $as_echo_n "checking for inline... " >&6; }
  14033. if ${ac_cv_c_inline+:} false; then :
  14034. $as_echo_n "(cached) " >&6
  14035. else
  14036. ac_cv_c_inline=no
  14037. for ac_kw in inline __inline__ __inline; do
  14038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14039. /* end confdefs.h. */
  14040. #ifndef __cplusplus
  14041. typedef int foo_t;
  14042. static $ac_kw foo_t static_foo () {return 0; }
  14043. $ac_kw foo_t foo () {return 0; }
  14044. #endif
  14045. _ACEOF
  14046. if ac_fn_c_try_compile "$LINENO"; then :
  14047. ac_cv_c_inline=$ac_kw
  14048. fi
  14049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14050. test "$ac_cv_c_inline" != no && break
  14051. done
  14052. fi
  14053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14054. $as_echo "$ac_cv_c_inline" >&6; }
  14055. case $ac_cv_c_inline in
  14056. inline | yes) ;;
  14057. *)
  14058. case $ac_cv_c_inline in
  14059. no) ac_val=;;
  14060. *) ac_val=$ac_cv_c_inline;;
  14061. esac
  14062. cat >>confdefs.h <<_ACEOF
  14063. #ifndef __cplusplus
  14064. #define inline $ac_val
  14065. #endif
  14066. _ACEOF
  14067. ;;
  14068. esac
  14069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14070. $as_echo_n "checking for working volatile... " >&6; }
  14071. if ${ac_cv_c_volatile+:} false; then :
  14072. $as_echo_n "(cached) " >&6
  14073. else
  14074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14075. /* end confdefs.h. */
  14076. int
  14077. main ()
  14078. {
  14079. volatile int x;
  14080. int * volatile y = (int *) 0;
  14081. return !x && !y;
  14082. ;
  14083. return 0;
  14084. }
  14085. _ACEOF
  14086. if ac_fn_c_try_compile "$LINENO"; then :
  14087. ac_cv_c_volatile=yes
  14088. else
  14089. ac_cv_c_volatile=no
  14090. fi
  14091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14092. fi
  14093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14094. $as_echo "$ac_cv_c_volatile" >&6; }
  14095. if test $ac_cv_c_volatile = no; then
  14096. $as_echo "#define volatile /**/" >>confdefs.h
  14097. fi
  14098. # Check whether --enable-assertions was given.
  14099. if test "${enable_assertions+set}" = set; then :
  14100. enableval=$enable_assertions;
  14101. else
  14102. enable_assertions=auto
  14103. fi
  14104. case "$enable_assertions" in
  14105. auto) # Use optimization settings to determine assertion level
  14106. ;;
  14107. disabled)
  14108. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14109. ;;
  14110. release)
  14111. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14112. ;;
  14113. enabled)
  14114. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14115. ;;
  14116. paranoid)
  14117. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14118. ;;
  14119. *)
  14120. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14121. ;;
  14122. esac
  14123. # Check whether --enable-dependency-tracking was given.
  14124. if test "${enable_dependency_tracking+set}" = set; then :
  14125. enableval=$enable_dependency_tracking;
  14126. else
  14127. enable_dependency_tracking=yes
  14128. fi
  14129. if test x$enable_dependency_tracking = xyes; then
  14130. have_gcc_mmd_mt=no
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14132. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14134. /* end confdefs.h. */
  14135. #if !defined(__GNUC__) || __GNUC__ < 3
  14136. #error Dependency tracking requires GCC 3.0 or newer
  14137. #endif
  14138. int
  14139. main ()
  14140. {
  14141. ;
  14142. return 0;
  14143. }
  14144. _ACEOF
  14145. if ac_fn_c_try_compile "$LINENO"; then :
  14146. have_gcc_mmd_mt=yes
  14147. fi
  14148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14150. $as_echo "$have_gcc_mmd_mt" >&6; }
  14151. if test x$have_gcc_mmd_mt = xyes; then
  14152. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14153. fi
  14154. fi
  14155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14156. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14157. have_no_undefined=no
  14158. case "$host" in
  14159. *-*-openbsd*)
  14160. ;;
  14161. *)
  14162. save_LDFLAGS="$LDFLAGS"
  14163. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14165. /* end confdefs.h. */
  14166. int
  14167. main ()
  14168. {
  14169. ;
  14170. return 0;
  14171. }
  14172. _ACEOF
  14173. if ac_fn_c_try_link "$LINENO"; then :
  14174. have_no_undefined=yes
  14175. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14176. fi
  14177. rm -f core conftest.err conftest.$ac_objext \
  14178. conftest$ac_exeext conftest.$ac_ext
  14179. LDFLAGS="$save_LDFLAGS"
  14180. ;;
  14181. esac
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14183. $as_echo "$have_no_undefined" >&6; }
  14184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14185. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14186. have_dynamicbase=no
  14187. case "$host" in
  14188. *)
  14189. save_LDFLAGS="$LDFLAGS"
  14190. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14192. /* end confdefs.h. */
  14193. int
  14194. main ()
  14195. {
  14196. ;
  14197. return 0;
  14198. }
  14199. _ACEOF
  14200. if ac_fn_c_try_link "$LINENO"; then :
  14201. have_dynamicbase=yes
  14202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14203. fi
  14204. rm -f core conftest.err conftest.$ac_objext \
  14205. conftest$ac_exeext conftest.$ac_ext
  14206. LDFLAGS="$save_LDFLAGS"
  14207. ;;
  14208. esac
  14209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14210. $as_echo "$have_dynamicbase" >&6; }
  14211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14212. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14213. have_nxcompat=no
  14214. case "$host" in
  14215. *)
  14216. save_LDFLAGS="$LDFLAGS"
  14217. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14219. /* end confdefs.h. */
  14220. int
  14221. main ()
  14222. {
  14223. ;
  14224. return 0;
  14225. }
  14226. _ACEOF
  14227. if ac_fn_c_try_link "$LINENO"; then :
  14228. have_nxcompat=yes
  14229. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14230. fi
  14231. rm -f core conftest.err conftest.$ac_objext \
  14232. conftest$ac_exeext conftest.$ac_ext
  14233. LDFLAGS="$save_LDFLAGS"
  14234. ;;
  14235. esac
  14236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14237. $as_echo "$have_nxcompat" >&6; }
  14238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14239. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14240. have_high_entropy_va=no
  14241. case "$host" in
  14242. *)
  14243. save_LDFLAGS="$LDFLAGS"
  14244. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14246. /* end confdefs.h. */
  14247. int
  14248. main ()
  14249. {
  14250. ;
  14251. return 0;
  14252. }
  14253. _ACEOF
  14254. if ac_fn_c_try_link "$LINENO"; then :
  14255. have_high_entropy_va=yes
  14256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14257. fi
  14258. rm -f core conftest.err conftest.$ac_objext \
  14259. conftest$ac_exeext conftest.$ac_ext
  14260. LDFLAGS="$save_LDFLAGS"
  14261. ;;
  14262. esac
  14263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14264. $as_echo "$have_high_entropy_va" >&6; }
  14265. # Check whether --enable-libc was given.
  14266. if test "${enable_libc+set}" = set; then :
  14267. enableval=$enable_libc;
  14268. else
  14269. enable_libc=yes
  14270. fi
  14271. if test x$enable_libc = xyes; then
  14272. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14274. $as_echo_n "checking for ANSI C header files... " >&6; }
  14275. if ${ac_cv_header_stdc+:} false; then :
  14276. $as_echo_n "(cached) " >&6
  14277. else
  14278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14279. /* end confdefs.h. */
  14280. #include <stdlib.h>
  14281. #include <stdarg.h>
  14282. #include <string.h>
  14283. #include <float.h>
  14284. int
  14285. main ()
  14286. {
  14287. ;
  14288. return 0;
  14289. }
  14290. _ACEOF
  14291. if ac_fn_c_try_compile "$LINENO"; then :
  14292. ac_cv_header_stdc=yes
  14293. else
  14294. ac_cv_header_stdc=no
  14295. fi
  14296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14297. if test $ac_cv_header_stdc = yes; then
  14298. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14300. /* end confdefs.h. */
  14301. #include <string.h>
  14302. _ACEOF
  14303. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14304. $EGREP "memchr" >/dev/null 2>&1; then :
  14305. else
  14306. ac_cv_header_stdc=no
  14307. fi
  14308. rm -f conftest*
  14309. fi
  14310. if test $ac_cv_header_stdc = yes; then
  14311. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14313. /* end confdefs.h. */
  14314. #include <stdlib.h>
  14315. _ACEOF
  14316. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14317. $EGREP "free" >/dev/null 2>&1; then :
  14318. else
  14319. ac_cv_header_stdc=no
  14320. fi
  14321. rm -f conftest*
  14322. fi
  14323. if test $ac_cv_header_stdc = yes; then
  14324. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14325. if test "$cross_compiling" = yes; then :
  14326. :
  14327. else
  14328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14329. /* end confdefs.h. */
  14330. #include <ctype.h>
  14331. #include <stdlib.h>
  14332. #if ((' ' & 0x0FF) == 0x020)
  14333. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14334. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14335. #else
  14336. # define ISLOWER(c) \
  14337. (('a' <= (c) && (c) <= 'i') \
  14338. || ('j' <= (c) && (c) <= 'r') \
  14339. || ('s' <= (c) && (c) <= 'z'))
  14340. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14341. #endif
  14342. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14343. int
  14344. main ()
  14345. {
  14346. int i;
  14347. for (i = 0; i < 256; i++)
  14348. if (XOR (islower (i), ISLOWER (i))
  14349. || toupper (i) != TOUPPER (i))
  14350. return 2;
  14351. return 0;
  14352. }
  14353. _ACEOF
  14354. if ac_fn_c_try_run "$LINENO"; then :
  14355. else
  14356. ac_cv_header_stdc=no
  14357. fi
  14358. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14359. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14360. fi
  14361. fi
  14362. fi
  14363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14364. $as_echo "$ac_cv_header_stdc" >&6; }
  14365. if test $ac_cv_header_stdc = yes; then
  14366. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14367. fi
  14368. 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
  14369. do :
  14370. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14371. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14372. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14373. cat >>confdefs.h <<_ACEOF
  14374. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14375. _ACEOF
  14376. fi
  14377. done
  14378. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14379. if test "x$ac_cv_type_size_t" = xyes; then :
  14380. else
  14381. cat >>confdefs.h <<_ACEOF
  14382. #define size_t unsigned int
  14383. _ACEOF
  14384. fi
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14386. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14387. if ${ac_cv_define_M_PI+:} false; then :
  14388. $as_echo_n "(cached) " >&6
  14389. else
  14390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14391. /* end confdefs.h. */
  14392. #include <math.h>
  14393. #ifdef M_PI
  14394. YES_IS_DEFINED
  14395. #endif
  14396. _ACEOF
  14397. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14398. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14399. ac_cv_define_M_PI=yes
  14400. else
  14401. ac_cv_define_M_PI=no
  14402. fi
  14403. rm -f conftest*
  14404. fi
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14406. $as_echo "$ac_cv_define_M_PI" >&6; }
  14407. if test "$ac_cv_define_M_PI" = "yes" ; then
  14408. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14409. fi
  14410. case "$host" in
  14411. *-*-cygwin* | *-*-mingw*)
  14412. ;;
  14413. *)
  14414. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14415. # for constant arguments. Useless!
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14417. $as_echo_n "checking for working alloca.h... " >&6; }
  14418. if ${ac_cv_working_alloca_h+:} false; then :
  14419. $as_echo_n "(cached) " >&6
  14420. else
  14421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14422. /* end confdefs.h. */
  14423. #include <alloca.h>
  14424. int
  14425. main ()
  14426. {
  14427. char *p = (char *) alloca (2 * sizeof (int));
  14428. if (p) return 0;
  14429. ;
  14430. return 0;
  14431. }
  14432. _ACEOF
  14433. if ac_fn_c_try_link "$LINENO"; then :
  14434. ac_cv_working_alloca_h=yes
  14435. else
  14436. ac_cv_working_alloca_h=no
  14437. fi
  14438. rm -f core conftest.err conftest.$ac_objext \
  14439. conftest$ac_exeext conftest.$ac_ext
  14440. fi
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14442. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14443. if test $ac_cv_working_alloca_h = yes; then
  14444. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14445. fi
  14446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14447. $as_echo_n "checking for alloca... " >&6; }
  14448. if ${ac_cv_func_alloca_works+:} false; then :
  14449. $as_echo_n "(cached) " >&6
  14450. else
  14451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14452. /* end confdefs.h. */
  14453. #ifdef __GNUC__
  14454. # define alloca __builtin_alloca
  14455. #else
  14456. # ifdef _MSC_VER
  14457. # include <malloc.h>
  14458. # define alloca _alloca
  14459. # else
  14460. # ifdef HAVE_ALLOCA_H
  14461. # include <alloca.h>
  14462. # else
  14463. # ifdef _AIX
  14464. #pragma alloca
  14465. # else
  14466. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14467. void *alloca (size_t);
  14468. # endif
  14469. # endif
  14470. # endif
  14471. # endif
  14472. #endif
  14473. int
  14474. main ()
  14475. {
  14476. char *p = (char *) alloca (1);
  14477. if (p) return 0;
  14478. ;
  14479. return 0;
  14480. }
  14481. _ACEOF
  14482. if ac_fn_c_try_link "$LINENO"; then :
  14483. ac_cv_func_alloca_works=yes
  14484. else
  14485. ac_cv_func_alloca_works=no
  14486. fi
  14487. rm -f core conftest.err conftest.$ac_objext \
  14488. conftest$ac_exeext conftest.$ac_ext
  14489. fi
  14490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14491. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14492. if test $ac_cv_func_alloca_works = yes; then
  14493. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14494. else
  14495. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14496. # that cause trouble. Some versions do not even contain alloca or
  14497. # contain a buggy version. If you still want to use their alloca,
  14498. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14499. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14500. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14502. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14503. if ${ac_cv_os_cray+:} false; then :
  14504. $as_echo_n "(cached) " >&6
  14505. else
  14506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14507. /* end confdefs.h. */
  14508. #if defined CRAY && ! defined CRAY2
  14509. webecray
  14510. #else
  14511. wenotbecray
  14512. #endif
  14513. _ACEOF
  14514. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14515. $EGREP "webecray" >/dev/null 2>&1; then :
  14516. ac_cv_os_cray=yes
  14517. else
  14518. ac_cv_os_cray=no
  14519. fi
  14520. rm -f conftest*
  14521. fi
  14522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14523. $as_echo "$ac_cv_os_cray" >&6; }
  14524. if test $ac_cv_os_cray = yes; then
  14525. for ac_func in _getb67 GETB67 getb67; do
  14526. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14527. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14528. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14529. cat >>confdefs.h <<_ACEOF
  14530. #define CRAY_STACKSEG_END $ac_func
  14531. _ACEOF
  14532. break
  14533. fi
  14534. done
  14535. fi
  14536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14537. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14538. if ${ac_cv_c_stack_direction+:} false; then :
  14539. $as_echo_n "(cached) " >&6
  14540. else
  14541. if test "$cross_compiling" = yes; then :
  14542. ac_cv_c_stack_direction=0
  14543. else
  14544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14545. /* end confdefs.h. */
  14546. $ac_includes_default
  14547. int
  14548. find_stack_direction (int *addr, int depth)
  14549. {
  14550. int dir, dummy = 0;
  14551. if (! addr)
  14552. addr = &dummy;
  14553. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14554. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14555. return dir + dummy;
  14556. }
  14557. int
  14558. main (int argc, char **argv)
  14559. {
  14560. return find_stack_direction (0, argc + !argv + 20) < 0;
  14561. }
  14562. _ACEOF
  14563. if ac_fn_c_try_run "$LINENO"; then :
  14564. ac_cv_c_stack_direction=1
  14565. else
  14566. ac_cv_c_stack_direction=-1
  14567. fi
  14568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14569. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14570. fi
  14571. fi
  14572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14573. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14574. cat >>confdefs.h <<_ACEOF
  14575. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14576. _ACEOF
  14577. fi
  14578. ;;
  14579. esac
  14580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14581. $as_echo_n "checking for working memcmp... " >&6; }
  14582. if ${ac_cv_func_memcmp_working+:} false; then :
  14583. $as_echo_n "(cached) " >&6
  14584. else
  14585. if test "$cross_compiling" = yes; then :
  14586. ac_cv_func_memcmp_working=no
  14587. else
  14588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14589. /* end confdefs.h. */
  14590. $ac_includes_default
  14591. int
  14592. main ()
  14593. {
  14594. /* Some versions of memcmp are not 8-bit clean. */
  14595. char c0 = '\100', c1 = '\200', c2 = '\201';
  14596. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14597. return 1;
  14598. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14599. or more and with at least one buffer not starting on a 4-byte boundary.
  14600. William Lewis provided this test program. */
  14601. {
  14602. char foo[21];
  14603. char bar[21];
  14604. int i;
  14605. for (i = 0; i < 4; i++)
  14606. {
  14607. char *a = foo + i;
  14608. char *b = bar + i;
  14609. strcpy (a, "--------01111111");
  14610. strcpy (b, "--------10000000");
  14611. if (memcmp (a, b, 16) >= 0)
  14612. return 1;
  14613. }
  14614. return 0;
  14615. }
  14616. ;
  14617. return 0;
  14618. }
  14619. _ACEOF
  14620. if ac_fn_c_try_run "$LINENO"; then :
  14621. ac_cv_func_memcmp_working=yes
  14622. else
  14623. ac_cv_func_memcmp_working=no
  14624. fi
  14625. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14626. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14627. fi
  14628. fi
  14629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14630. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14631. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14632. *" memcmp.$ac_objext "* ) ;;
  14633. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14634. ;;
  14635. esac
  14636. if test x$ac_cv_func_memcmp_working = xyes; then
  14637. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14638. fi
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14640. $as_echo_n "checking for working strtod... " >&6; }
  14641. if ${ac_cv_func_strtod+:} false; then :
  14642. $as_echo_n "(cached) " >&6
  14643. else
  14644. if test "$cross_compiling" = yes; then :
  14645. ac_cv_func_strtod=no
  14646. else
  14647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14648. /* end confdefs.h. */
  14649. $ac_includes_default
  14650. #ifndef strtod
  14651. double strtod ();
  14652. #endif
  14653. int
  14654. main()
  14655. {
  14656. {
  14657. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14658. char *string = " +69";
  14659. char *term;
  14660. double value;
  14661. value = strtod (string, &term);
  14662. if (value != 69 || term != (string + 4))
  14663. return 1;
  14664. }
  14665. {
  14666. /* Under Solaris 2.4, strtod returns the wrong value for the
  14667. terminating character under some conditions. */
  14668. char *string = "NaN";
  14669. char *term;
  14670. strtod (string, &term);
  14671. if (term != string && *(term - 1) == 0)
  14672. return 1;
  14673. }
  14674. return 0;
  14675. }
  14676. _ACEOF
  14677. if ac_fn_c_try_run "$LINENO"; then :
  14678. ac_cv_func_strtod=yes
  14679. else
  14680. ac_cv_func_strtod=no
  14681. fi
  14682. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14683. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14684. fi
  14685. fi
  14686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14687. $as_echo "$ac_cv_func_strtod" >&6; }
  14688. if test $ac_cv_func_strtod = no; then
  14689. case " $LIBOBJS " in
  14690. *" strtod.$ac_objext "* ) ;;
  14691. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14692. ;;
  14693. esac
  14694. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14695. if test "x$ac_cv_func_pow" = xyes; then :
  14696. fi
  14697. if test $ac_cv_func_pow = no; then
  14698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14699. $as_echo_n "checking for pow in -lm... " >&6; }
  14700. if ${ac_cv_lib_m_pow+:} false; then :
  14701. $as_echo_n "(cached) " >&6
  14702. else
  14703. ac_check_lib_save_LIBS=$LIBS
  14704. LIBS="-lm $LIBS"
  14705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14706. /* end confdefs.h. */
  14707. /* Override any GCC internal prototype to avoid an error.
  14708. Use char because int might match the return type of a GCC
  14709. builtin and then its argument prototype would still apply. */
  14710. #ifdef __cplusplus
  14711. extern "C"
  14712. #endif
  14713. char pow ();
  14714. int
  14715. main ()
  14716. {
  14717. return pow ();
  14718. ;
  14719. return 0;
  14720. }
  14721. _ACEOF
  14722. if ac_fn_c_try_link "$LINENO"; then :
  14723. ac_cv_lib_m_pow=yes
  14724. else
  14725. ac_cv_lib_m_pow=no
  14726. fi
  14727. rm -f core conftest.err conftest.$ac_objext \
  14728. conftest$ac_exeext conftest.$ac_ext
  14729. LIBS=$ac_check_lib_save_LIBS
  14730. fi
  14731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14732. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14733. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14734. POW_LIB=-lm
  14735. else
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14737. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14738. fi
  14739. fi
  14740. fi
  14741. if test x$ac_cv_func_strtod = xyes; then
  14742. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14743. fi
  14744. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14745. if test "x$ac_cv_func_mprotect" = xyes; then :
  14746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14747. /* end confdefs.h. */
  14748. #include <sys/types.h>
  14749. #include <sys/mman.h>
  14750. int
  14751. main ()
  14752. {
  14753. ;
  14754. return 0;
  14755. }
  14756. _ACEOF
  14757. if ac_fn_c_try_compile "$LINENO"; then :
  14758. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14759. fi
  14760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14761. fi
  14762. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  14763. do :
  14764. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14765. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14766. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14767. cat >>confdefs.h <<_ACEOF
  14768. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14769. _ACEOF
  14770. fi
  14771. done
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14773. $as_echo_n "checking for pow in -lm... " >&6; }
  14774. if ${ac_cv_lib_m_pow+:} false; then :
  14775. $as_echo_n "(cached) " >&6
  14776. else
  14777. ac_check_lib_save_LIBS=$LIBS
  14778. LIBS="-lm $LIBS"
  14779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14780. /* end confdefs.h. */
  14781. /* Override any GCC internal prototype to avoid an error.
  14782. Use char because int might match the return type of a GCC
  14783. builtin and then its argument prototype would still apply. */
  14784. #ifdef __cplusplus
  14785. extern "C"
  14786. #endif
  14787. char pow ();
  14788. int
  14789. main ()
  14790. {
  14791. return pow ();
  14792. ;
  14793. return 0;
  14794. }
  14795. _ACEOF
  14796. if ac_fn_c_try_link "$LINENO"; then :
  14797. ac_cv_lib_m_pow=yes
  14798. else
  14799. ac_cv_lib_m_pow=no
  14800. fi
  14801. rm -f core conftest.err conftest.$ac_objext \
  14802. conftest$ac_exeext conftest.$ac_ext
  14803. LIBS=$ac_check_lib_save_LIBS
  14804. fi
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14806. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14807. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14808. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14809. fi
  14810. 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
  14811. do :
  14812. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14813. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14814. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14815. cat >>confdefs.h <<_ACEOF
  14816. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14817. _ACEOF
  14818. fi
  14819. done
  14820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14821. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14822. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14823. $as_echo_n "(cached) " >&6
  14824. else
  14825. ac_check_lib_save_LIBS=$LIBS
  14826. LIBS="-liconv $LIBS"
  14827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14828. /* end confdefs.h. */
  14829. /* Override any GCC internal prototype to avoid an error.
  14830. Use char because int might match the return type of a GCC
  14831. builtin and then its argument prototype would still apply. */
  14832. #ifdef __cplusplus
  14833. extern "C"
  14834. #endif
  14835. char iconv_open ();
  14836. int
  14837. main ()
  14838. {
  14839. return iconv_open ();
  14840. ;
  14841. return 0;
  14842. }
  14843. _ACEOF
  14844. if ac_fn_c_try_link "$LINENO"; then :
  14845. ac_cv_lib_iconv_iconv_open=yes
  14846. else
  14847. ac_cv_lib_iconv_iconv_open=no
  14848. fi
  14849. rm -f core conftest.err conftest.$ac_objext \
  14850. conftest$ac_exeext conftest.$ac_ext
  14851. LIBS=$ac_check_lib_save_LIBS
  14852. fi
  14853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14854. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14855. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14856. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14857. fi
  14858. for ac_func in iconv
  14859. do :
  14860. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14861. if test "x$ac_cv_func_iconv" = xyes; then :
  14862. cat >>confdefs.h <<_ACEOF
  14863. #define HAVE_ICONV 1
  14864. _ACEOF
  14865. fi
  14866. done
  14867. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14868. "
  14869. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14870. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14871. fi
  14872. for ac_header in libunwind.h
  14873. do :
  14874. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14875. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14876. cat >>confdefs.h <<_ACEOF
  14877. #define HAVE_LIBUNWIND_H 1
  14878. _ACEOF
  14879. fi
  14880. done
  14881. fi
  14882. # Check whether --enable-gcc-atomics was given.
  14883. if test "${enable_gcc_atomics+set}" = set; then :
  14884. enableval=$enable_gcc_atomics;
  14885. else
  14886. enable_gcc_atomics=yes
  14887. fi
  14888. if test x$enable_gcc_atomics = xyes; then
  14889. have_gcc_atomics=no
  14890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14891. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14893. /* end confdefs.h. */
  14894. int
  14895. main ()
  14896. {
  14897. int a;
  14898. void *x, *y, *z;
  14899. __sync_lock_test_and_set(&a, 4);
  14900. __sync_lock_test_and_set(&x, y);
  14901. __sync_fetch_and_add(&a, 1);
  14902. __sync_bool_compare_and_swap(&a, 5, 10);
  14903. __sync_bool_compare_and_swap(&x, y, z);
  14904. ;
  14905. return 0;
  14906. }
  14907. _ACEOF
  14908. if ac_fn_c_try_link "$LINENO"; then :
  14909. have_gcc_atomics=yes
  14910. fi
  14911. rm -f core conftest.err conftest.$ac_objext \
  14912. conftest$ac_exeext conftest.$ac_ext
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14914. $as_echo "$have_gcc_atomics" >&6; }
  14915. if test x$have_gcc_atomics = xyes; then
  14916. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14917. else
  14918. # See if we have the minimum operation needed for GCC atomics
  14919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14920. /* end confdefs.h. */
  14921. int
  14922. main ()
  14923. {
  14924. int a;
  14925. __sync_lock_test_and_set(&a, 1);
  14926. __sync_lock_release(&a);
  14927. ;
  14928. return 0;
  14929. }
  14930. _ACEOF
  14931. if ac_fn_c_try_link "$LINENO"; then :
  14932. have_gcc_sync_lock_test_and_set=yes
  14933. fi
  14934. rm -f core conftest.err conftest.$ac_objext \
  14935. conftest$ac_exeext conftest.$ac_ext
  14936. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14937. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14938. fi
  14939. fi
  14940. fi
  14941. # Standard C sources
  14942. SOURCES="$SOURCES $srcdir/src/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14945. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14946. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14947. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14948. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14949. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14950. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14951. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14952. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14953. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14954. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14955. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14956. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14957. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14958. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14959. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14960. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14961. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14962. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14963. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14964. # Check whether --enable-atomic was given.
  14965. if test "${enable_atomic+set}" = set; then :
  14966. enableval=$enable_atomic;
  14967. else
  14968. enable_atomic=yes
  14969. fi
  14970. if test x$enable_atomic != xyes; then
  14971. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14972. else
  14973. SUMMARY_modules="${SUMMARY_modules} atomic"
  14974. fi
  14975. # Check whether --enable-audio was given.
  14976. if test "${enable_audio+set}" = set; then :
  14977. enableval=$enable_audio;
  14978. else
  14979. enable_audio=yes
  14980. fi
  14981. if test x$enable_audio != xyes; then
  14982. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14983. else
  14984. SUMMARY_modules="${SUMMARY_modules} audio"
  14985. fi
  14986. # Check whether --enable-video was given.
  14987. if test "${enable_video+set}" = set; then :
  14988. enableval=$enable_video;
  14989. else
  14990. enable_video=yes
  14991. fi
  14992. if test x$enable_video != xyes; then
  14993. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14994. else
  14995. SUMMARY_modules="${SUMMARY_modules} video"
  14996. fi
  14997. # Check whether --enable-render was given.
  14998. if test "${enable_render+set}" = set; then :
  14999. enableval=$enable_render;
  15000. else
  15001. enable_render=yes
  15002. fi
  15003. if test x$enable_render != xyes; then
  15004. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15005. else
  15006. SUMMARY_modules="${SUMMARY_modules} render"
  15007. fi
  15008. # Check whether --enable-events was given.
  15009. if test "${enable_events+set}" = set; then :
  15010. enableval=$enable_events;
  15011. else
  15012. enable_events=yes
  15013. fi
  15014. if test x$enable_events != xyes; then
  15015. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15016. else
  15017. SUMMARY_modules="${SUMMARY_modules} events"
  15018. fi
  15019. # Check whether --enable-joystick was given.
  15020. if test "${enable_joystick+set}" = set; then :
  15021. enableval=$enable_joystick;
  15022. else
  15023. enable_joystick=yes
  15024. fi
  15025. if test x$enable_joystick != xyes; then
  15026. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15027. else
  15028. SUMMARY_modules="${SUMMARY_modules} joystick"
  15029. fi
  15030. # Check whether --enable-haptic was given.
  15031. if test "${enable_haptic+set}" = set; then :
  15032. enableval=$enable_haptic;
  15033. else
  15034. enable_haptic=yes
  15035. fi
  15036. if test x$enable_haptic != xyes; then
  15037. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15038. else
  15039. SUMMARY_modules="${SUMMARY_modules} haptic"
  15040. fi
  15041. # Check whether --enable-sensor was given.
  15042. if test "${enable_sensor+set}" = set; then :
  15043. enableval=$enable_sensor;
  15044. else
  15045. enable_sensor=yes
  15046. fi
  15047. if test x$enable_sensor != xyes; then
  15048. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15049. else
  15050. SUMMARY_modules="${SUMMARY_modules} sensor"
  15051. fi
  15052. # Check whether --enable-power was given.
  15053. if test "${enable_power+set}" = set; then :
  15054. enableval=$enable_power;
  15055. else
  15056. enable_power=yes
  15057. fi
  15058. if test x$enable_power != xyes; then
  15059. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15060. else
  15061. SUMMARY_modules="${SUMMARY_modules} power"
  15062. fi
  15063. # Check whether --enable-filesystem was given.
  15064. if test "${enable_filesystem+set}" = set; then :
  15065. enableval=$enable_filesystem;
  15066. else
  15067. enable_filesystem=yes
  15068. fi
  15069. if test x$enable_filesystem != xyes; then
  15070. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15071. else
  15072. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15073. fi
  15074. # Check whether --enable-threads was given.
  15075. if test "${enable_threads+set}" = set; then :
  15076. enableval=$enable_threads;
  15077. else
  15078. enable_threads=yes
  15079. fi
  15080. if test x$enable_threads != xyes; then
  15081. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15082. else
  15083. SUMMARY_modules="${SUMMARY_modules} threads"
  15084. fi
  15085. # Check whether --enable-timers was given.
  15086. if test "${enable_timers+set}" = set; then :
  15087. enableval=$enable_timers;
  15088. else
  15089. enable_timers=yes
  15090. fi
  15091. if test x$enable_timers != xyes; then
  15092. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15093. else
  15094. SUMMARY_modules="${SUMMARY_modules} timers"
  15095. fi
  15096. # Check whether --enable-file was given.
  15097. if test "${enable_file+set}" = set; then :
  15098. enableval=$enable_file;
  15099. else
  15100. enable_file=yes
  15101. fi
  15102. if test x$enable_file != xyes; then
  15103. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15104. else
  15105. SUMMARY_modules="${SUMMARY_modules} file"
  15106. fi
  15107. # Check whether --enable-loadso was given.
  15108. if test "${enable_loadso+set}" = set; then :
  15109. enableval=$enable_loadso;
  15110. else
  15111. enable_loadso=yes
  15112. fi
  15113. if test x$enable_loadso != xyes; then
  15114. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15115. else
  15116. SUMMARY_modules="${SUMMARY_modules} loadso"
  15117. fi
  15118. # Check whether --enable-cpuinfo was given.
  15119. if test "${enable_cpuinfo+set}" = set; then :
  15120. enableval=$enable_cpuinfo;
  15121. else
  15122. enable_cpuinfo=yes
  15123. fi
  15124. if test x$enable_cpuinfo != xyes; then
  15125. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15126. else
  15127. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15128. fi
  15129. # Check whether --enable-assembly was given.
  15130. if test "${enable_assembly+set}" = set; then :
  15131. enableval=$enable_assembly;
  15132. else
  15133. enable_assembly=yes
  15134. fi
  15135. if test x$enable_assembly = xyes; then
  15136. SUMMARY_modules="${SUMMARY_modules} assembly"
  15137. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15138. # Make sure that we don't generate floating point code that would
  15139. # cause illegal instruction exceptions on older processors
  15140. case "$host" in
  15141. *-*-darwin*)
  15142. # Don't need to worry about Apple hardware, it's all SSE capable
  15143. default_ssemath=yes
  15144. ;;
  15145. *64-*-*)
  15146. # x86 64-bit architectures all have SSE instructions
  15147. default_ssemath=yes
  15148. ;;
  15149. *)
  15150. default_ssemath=no
  15151. ;;
  15152. esac
  15153. # Check whether --enable-ssemath was given.
  15154. if test "${enable_ssemath+set}" = set; then :
  15155. enableval=$enable_ssemath;
  15156. else
  15157. enable_ssemath=$default_ssemath
  15158. fi
  15159. if test x$enable_ssemath = xno; then
  15160. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15161. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15162. fi
  15163. fi
  15164. # Check whether --enable-mmx was given.
  15165. if test "${enable_mmx+set}" = set; then :
  15166. enableval=$enable_mmx;
  15167. else
  15168. enable_mmx=yes
  15169. fi
  15170. if test x$enable_mmx = xyes; then
  15171. save_CFLAGS="$CFLAGS"
  15172. have_gcc_mmx=no
  15173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15174. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15175. mmx_CFLAGS="-mmmx"
  15176. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15178. /* end confdefs.h. */
  15179. #ifdef __MINGW32__
  15180. #include <_mingw.h>
  15181. #ifdef __MINGW64_VERSION_MAJOR
  15182. #include <intrin.h>
  15183. #else
  15184. #include <mmintrin.h>
  15185. #endif
  15186. #else
  15187. #include <mmintrin.h>
  15188. #endif
  15189. #ifndef __MMX__
  15190. #error Assembler CPP flag not enabled
  15191. #endif
  15192. int
  15193. main ()
  15194. {
  15195. ;
  15196. return 0;
  15197. }
  15198. _ACEOF
  15199. if ac_fn_c_try_compile "$LINENO"; then :
  15200. have_gcc_mmx=yes
  15201. fi
  15202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15204. $as_echo "$have_gcc_mmx" >&6; }
  15205. CFLAGS="$save_CFLAGS"
  15206. if test x$have_gcc_mmx = xyes; then
  15207. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15208. SUMMARY_math="${SUMMARY_math} mmx"
  15209. fi
  15210. fi
  15211. # Check whether --enable-3dnow was given.
  15212. if test "${enable_3dnow+set}" = set; then :
  15213. enableval=$enable_3dnow;
  15214. else
  15215. enable_3dnow=yes
  15216. fi
  15217. if test x$enable_3dnow = xyes; then
  15218. save_CFLAGS="$CFLAGS"
  15219. have_gcc_3dnow=no
  15220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15221. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15222. amd3dnow_CFLAGS="-m3dnow"
  15223. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15225. /* end confdefs.h. */
  15226. #include <mm3dnow.h>
  15227. #ifndef __3dNOW__
  15228. #error Assembler CPP flag not enabled
  15229. #endif
  15230. int
  15231. main ()
  15232. {
  15233. void *p = 0;
  15234. _m_prefetch(p);
  15235. ;
  15236. return 0;
  15237. }
  15238. _ACEOF
  15239. if ac_fn_c_try_link "$LINENO"; then :
  15240. have_gcc_3dnow=yes
  15241. fi
  15242. rm -f core conftest.err conftest.$ac_objext \
  15243. conftest$ac_exeext conftest.$ac_ext
  15244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15245. $as_echo "$have_gcc_3dnow" >&6; }
  15246. CFLAGS="$save_CFLAGS"
  15247. if test x$have_gcc_3dnow = xyes; then
  15248. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15249. SUMMARY_math="${SUMMARY_math} 3dnow"
  15250. fi
  15251. fi
  15252. # Check whether --enable-sse was given.
  15253. if test "${enable_sse+set}" = set; then :
  15254. enableval=$enable_sse;
  15255. else
  15256. enable_sse=yes
  15257. fi
  15258. if test x$enable_sse = xyes; then
  15259. save_CFLAGS="$CFLAGS"
  15260. have_gcc_sse=no
  15261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15262. $as_echo_n "checking for GCC -msse option... " >&6; }
  15263. sse_CFLAGS="-msse"
  15264. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15266. /* end confdefs.h. */
  15267. #ifdef __MINGW32__
  15268. #include <_mingw.h>
  15269. #ifdef __MINGW64_VERSION_MAJOR
  15270. #include <intrin.h>
  15271. #else
  15272. #include <xmmintrin.h>
  15273. #endif
  15274. #else
  15275. #include <xmmintrin.h>
  15276. #endif
  15277. #ifndef __SSE__
  15278. #error Assembler CPP flag not enabled
  15279. #endif
  15280. int
  15281. main ()
  15282. {
  15283. ;
  15284. return 0;
  15285. }
  15286. _ACEOF
  15287. if ac_fn_c_try_compile "$LINENO"; then :
  15288. have_gcc_sse=yes
  15289. fi
  15290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15292. $as_echo "$have_gcc_sse" >&6; }
  15293. CFLAGS="$save_CFLAGS"
  15294. if test x$have_gcc_sse = xyes; then
  15295. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15296. SUMMARY_math="${SUMMARY_math} sse"
  15297. fi
  15298. fi
  15299. # Check whether --enable-sse2 was given.
  15300. if test "${enable_sse2+set}" = set; then :
  15301. enableval=$enable_sse2;
  15302. else
  15303. enable_sse2=$default_ssemath
  15304. fi
  15305. if test x$enable_sse2 = xyes; then
  15306. save_CFLAGS="$CFLAGS"
  15307. have_gcc_sse2=no
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15309. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15310. sse2_CFLAGS="-msse2"
  15311. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15313. /* end confdefs.h. */
  15314. #ifdef __MINGW32__
  15315. #include <_mingw.h>
  15316. #ifdef __MINGW64_VERSION_MAJOR
  15317. #include <intrin.h>
  15318. #else
  15319. #include <emmintrin.h>
  15320. #endif
  15321. #else
  15322. #include <emmintrin.h>
  15323. #endif
  15324. #ifndef __SSE2__
  15325. #error Assembler CPP flag not enabled
  15326. #endif
  15327. int
  15328. main ()
  15329. {
  15330. ;
  15331. return 0;
  15332. }
  15333. _ACEOF
  15334. if ac_fn_c_try_compile "$LINENO"; then :
  15335. have_gcc_sse2=yes
  15336. fi
  15337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15339. $as_echo "$have_gcc_sse2" >&6; }
  15340. CFLAGS="$save_CFLAGS"
  15341. if test x$have_gcc_sse2 = xyes; then
  15342. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15343. SUMMARY_math="${SUMMARY_math} sse2"
  15344. fi
  15345. fi
  15346. # Check whether --enable-sse3 was given.
  15347. if test "${enable_sse3+set}" = set; then :
  15348. enableval=$enable_sse3;
  15349. else
  15350. enable_sse3=$default_ssemath
  15351. fi
  15352. if test x$enable_sse3 = xyes; then
  15353. save_CFLAGS="$CFLAGS"
  15354. have_gcc_sse3=no
  15355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15356. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15357. sse3_CFLAGS="-msse3"
  15358. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15360. /* end confdefs.h. */
  15361. #ifdef __MINGW32__
  15362. #include <_mingw.h>
  15363. #ifdef __MINGW64_VERSION_MAJOR
  15364. #include <intrin.h>
  15365. #else
  15366. #include <pmmintrin.h>
  15367. #endif
  15368. #else
  15369. #include <pmmintrin.h>
  15370. #endif
  15371. #ifndef __SSE2__
  15372. #error Assembler CPP flag not enabled
  15373. #endif
  15374. int
  15375. main ()
  15376. {
  15377. ;
  15378. return 0;
  15379. }
  15380. _ACEOF
  15381. if ac_fn_c_try_compile "$LINENO"; then :
  15382. have_gcc_sse3=yes
  15383. fi
  15384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15386. $as_echo "$have_gcc_sse3" >&6; }
  15387. CFLAGS="$save_CFLAGS"
  15388. if test x$have_gcc_sse3 = xyes; then
  15389. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15390. SUMMARY_math="${SUMMARY_math} sse3"
  15391. fi
  15392. fi
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15394. $as_echo_n "checking for immintrin.h... " >&6; }
  15395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15396. /* end confdefs.h. */
  15397. #include <immintrin.h>
  15398. int
  15399. main ()
  15400. {
  15401. ;
  15402. return 0;
  15403. }
  15404. _ACEOF
  15405. if ac_fn_c_try_compile "$LINENO"; then :
  15406. have_immintrin_h_hdr=yes
  15407. else
  15408. have_immintrin_h_hdr=no
  15409. fi
  15410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  15412. $as_echo "$have_immintrin_h_hdr" >&6; }
  15413. if test x$have_immintrin_h_hdr = xyes; then
  15414. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15415. fi
  15416. # Check whether --enable-altivec was given.
  15417. if test "${enable_altivec+set}" = set; then :
  15418. enableval=$enable_altivec;
  15419. else
  15420. enable_altivec=yes
  15421. fi
  15422. if test x$enable_altivec = xyes; then
  15423. save_CFLAGS="$CFLAGS"
  15424. have_gcc_altivec=no
  15425. have_altivec_h_hdr=no
  15426. altivec_CFLAGS="-maltivec"
  15427. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15429. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  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. if test x$have_gcc_altivec = xno; then
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15452. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15454. /* end confdefs.h. */
  15455. vector unsigned int vzero() {
  15456. return vec_splat_u32(0);
  15457. }
  15458. int
  15459. main ()
  15460. {
  15461. ;
  15462. return 0;
  15463. }
  15464. _ACEOF
  15465. if ac_fn_c_try_compile "$LINENO"; then :
  15466. have_gcc_altivec=yes
  15467. fi
  15468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15470. $as_echo "$have_gcc_altivec" >&6; }
  15471. fi
  15472. if test x$have_gcc_altivec = xno; then
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15474. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15475. altivec_CFLAGS="-faltivec"
  15476. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15478. /* end confdefs.h. */
  15479. #include <altivec.h>
  15480. vector unsigned int vzero() {
  15481. return vec_splat_u32(0);
  15482. }
  15483. int
  15484. main ()
  15485. {
  15486. ;
  15487. return 0;
  15488. }
  15489. _ACEOF
  15490. if ac_fn_c_try_compile "$LINENO"; then :
  15491. have_gcc_altivec=yes
  15492. have_altivec_h_hdr=yes
  15493. fi
  15494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15496. $as_echo "$have_gcc_altivec" >&6; }
  15497. fi
  15498. if test x$have_gcc_altivec = xno; then
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15500. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15502. /* end confdefs.h. */
  15503. vector unsigned int vzero() {
  15504. return vec_splat_u32(0);
  15505. }
  15506. int
  15507. main ()
  15508. {
  15509. ;
  15510. return 0;
  15511. }
  15512. _ACEOF
  15513. if ac_fn_c_try_compile "$LINENO"; then :
  15514. have_gcc_altivec=yes
  15515. fi
  15516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15518. $as_echo "$have_gcc_altivec" >&6; }
  15519. fi
  15520. CFLAGS="$save_CFLAGS"
  15521. if test x$have_gcc_altivec = xyes; then
  15522. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15523. if test x$have_altivec_h_hdr = xyes; then
  15524. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15525. fi
  15526. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15527. SUMMARY_math="${SUMMARY_math} altivec"
  15528. fi
  15529. fi
  15530. fi
  15531. CheckOSS()
  15532. {
  15533. # Check whether --enable-oss was given.
  15534. if test "${enable_oss+set}" = set; then :
  15535. enableval=$enable_oss;
  15536. else
  15537. enable_oss=maybe
  15538. fi
  15539. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15540. # use sndio instead. So on there, we default to disabled. You can force
  15541. # it on if you really want, though.
  15542. if test x$enable_oss = xmaybe; then
  15543. enable_oss=yes
  15544. case "$host" in
  15545. *-*-openbsd*)
  15546. enable_oss=no;;
  15547. esac
  15548. fi
  15549. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15551. $as_echo_n "checking for OSS audio support... " >&6; }
  15552. have_oss=no
  15553. if test x$have_oss != xyes; then
  15554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15555. /* end confdefs.h. */
  15556. #include <sys/soundcard.h>
  15557. int
  15558. main ()
  15559. {
  15560. int arg = SNDCTL_DSP_SETFRAGMENT;
  15561. ;
  15562. return 0;
  15563. }
  15564. _ACEOF
  15565. if ac_fn_c_try_compile "$LINENO"; then :
  15566. have_oss=yes
  15567. fi
  15568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15569. fi
  15570. if test x$have_oss != xyes; then
  15571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15572. /* end confdefs.h. */
  15573. #include <soundcard.h>
  15574. int
  15575. main ()
  15576. {
  15577. int arg = SNDCTL_DSP_SETFRAGMENT;
  15578. ;
  15579. return 0;
  15580. }
  15581. _ACEOF
  15582. if ac_fn_c_try_compile "$LINENO"; then :
  15583. have_oss=yes
  15584. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15585. fi
  15586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15587. fi
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15589. $as_echo "$have_oss" >&6; }
  15590. if test x$have_oss = xyes; then
  15591. SUMMARY_audio="${SUMMARY_audio} oss"
  15592. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15593. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15594. have_audio=yes
  15595. # We may need to link with ossaudio emulation library
  15596. case "$host" in
  15597. *-*-openbsd*|*-*-netbsd*)
  15598. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15599. esac
  15600. fi
  15601. fi
  15602. }
  15603. CheckALSA()
  15604. {
  15605. # Check whether --enable-alsa was given.
  15606. if test "${enable_alsa+set}" = set; then :
  15607. enableval=$enable_alsa;
  15608. else
  15609. enable_alsa=yes
  15610. fi
  15611. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15612. alsa_save_CFLAGS="$CFLAGS"
  15613. alsa_save_LDFLAGS="$LDFLAGS"
  15614. alsa_save_LIBS="$LIBS"
  15615. alsa_found=yes
  15616. # Check whether --with-alsa-prefix was given.
  15617. if test "${with_alsa_prefix+set}" = set; then :
  15618. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15619. else
  15620. alsa_prefix=""
  15621. fi
  15622. # Check whether --with-alsa-inc-prefix was given.
  15623. if test "${with_alsa_inc_prefix+set}" = set; then :
  15624. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15625. else
  15626. alsa_inc_prefix=""
  15627. fi
  15628. # Check whether --enable-alsatest was given.
  15629. if test "${enable_alsatest+set}" = set; then :
  15630. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15631. else
  15632. enable_alsatest=yes
  15633. fi
  15634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15635. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15636. if test "$alsa_inc_prefix" != "" ; then
  15637. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15638. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15639. fi
  15640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15641. $as_echo "$ALSA_CFLAGS" >&6; }
  15642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15643. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15644. if test "$alsa_prefix" != "" ; then
  15645. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15646. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15647. fi
  15648. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15649. LIBS=`echo $LIBS | sed 's/-lm//'`
  15650. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15651. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15652. LIBS=`echo $LIBS | sed 's/ //'`
  15653. LIBS="$ALSA_LIBS $LIBS"
  15654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15655. $as_echo "$ALSA_LIBS" >&6; }
  15656. min_alsa_version=1.0.11
  15657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15658. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15659. no_alsa=""
  15660. alsa_min_major_version=`echo $min_alsa_version | \
  15661. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15662. alsa_min_minor_version=`echo $min_alsa_version | \
  15663. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15664. alsa_min_micro_version=`echo $min_alsa_version | \
  15665. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15666. ac_ext=c
  15667. ac_cpp='$CPP $CPPFLAGS'
  15668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15672. /* end confdefs.h. */
  15673. #include <alsa/asoundlib.h>
  15674. int
  15675. main ()
  15676. {
  15677. /* ensure backward compatibility */
  15678. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15679. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15680. #endif
  15681. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15682. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15683. #endif
  15684. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15685. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15686. #endif
  15687. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15688. exit(0);
  15689. # else
  15690. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15691. # error not present
  15692. # endif
  15693. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15694. exit(0);
  15695. # else
  15696. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15697. # error not present
  15698. # endif
  15699. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15700. # error not present
  15701. # endif
  15702. # endif
  15703. # endif
  15704. exit(0);
  15705. ;
  15706. return 0;
  15707. }
  15708. _ACEOF
  15709. if ac_fn_c_try_compile "$LINENO"; then :
  15710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15711. $as_echo "found." >&6; }
  15712. else
  15713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15714. $as_echo "not present." >&6; }
  15715. alsa_found=no
  15716. fi
  15717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15718. ac_ext=c
  15719. ac_cpp='$CPP $CPPFLAGS'
  15720. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15721. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15722. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15723. if test "x$enable_alsatest" = "xyes"; then
  15724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15725. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15726. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15727. $as_echo_n "(cached) " >&6
  15728. else
  15729. ac_check_lib_save_LIBS=$LIBS
  15730. LIBS="-lasound $LIBS"
  15731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15732. /* end confdefs.h. */
  15733. /* Override any GCC internal prototype to avoid an error.
  15734. Use char because int might match the return type of a GCC
  15735. builtin and then its argument prototype would still apply. */
  15736. #ifdef __cplusplus
  15737. extern "C"
  15738. #endif
  15739. char snd_ctl_open ();
  15740. int
  15741. main ()
  15742. {
  15743. return snd_ctl_open ();
  15744. ;
  15745. return 0;
  15746. }
  15747. _ACEOF
  15748. if ac_fn_c_try_link "$LINENO"; then :
  15749. ac_cv_lib_asound_snd_ctl_open=yes
  15750. else
  15751. ac_cv_lib_asound_snd_ctl_open=no
  15752. fi
  15753. rm -f core conftest.err conftest.$ac_objext \
  15754. conftest$ac_exeext conftest.$ac_ext
  15755. LIBS=$ac_check_lib_save_LIBS
  15756. fi
  15757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15758. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15759. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15760. cat >>confdefs.h <<_ACEOF
  15761. #define HAVE_LIBASOUND 1
  15762. _ACEOF
  15763. LIBS="-lasound $LIBS"
  15764. else
  15765. alsa_found=no
  15766. fi
  15767. fi
  15768. if test "x$alsa_found" = "xyes" ; then
  15769. have_alsa=yes
  15770. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15771. LIBS=`echo $LIBS | sed 's/ //'`
  15772. LIBS="-lasound $LIBS"
  15773. fi
  15774. if test "x$alsa_found" = "xno" ; then
  15775. have_alsa=no
  15776. CFLAGS="$alsa_save_CFLAGS"
  15777. LDFLAGS="$alsa_save_LDFLAGS"
  15778. LIBS="$alsa_save_LIBS"
  15779. ALSA_CFLAGS=""
  15780. ALSA_LIBS=""
  15781. fi
  15782. # Restore all flags from before the ALSA detection runs
  15783. CFLAGS="$alsa_save_CFLAGS"
  15784. LDFLAGS="$alsa_save_LDFLAGS"
  15785. LIBS="$alsa_save_LIBS"
  15786. if test x$have_alsa = xyes; then
  15787. # Check whether --enable-alsa-shared was given.
  15788. if test "${enable_alsa_shared+set}" = set; then :
  15789. enableval=$enable_alsa_shared;
  15790. else
  15791. enable_alsa_shared=yes
  15792. fi
  15793. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15794. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15795. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15796. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15797. if test x$have_loadso != xyes && \
  15798. test x$enable_alsa_shared = xyes; then
  15799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15800. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15801. fi
  15802. if test x$have_loadso = xyes && \
  15803. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15804. echo "-- dynamic libasound -> $alsa_lib"
  15805. cat >>confdefs.h <<_ACEOF
  15806. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15807. _ACEOF
  15808. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15809. else
  15810. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15811. SUMMARY_audio="${SUMMARY_audio} alsa"
  15812. fi
  15813. have_audio=yes
  15814. fi
  15815. fi
  15816. }
  15817. CheckJACK()
  15818. {
  15819. # Check whether --enable-jack was given.
  15820. if test "${enable_jack+set}" = set; then :
  15821. enableval=$enable_jack;
  15822. else
  15823. enable_jack=yes
  15824. fi
  15825. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15826. pkg_failed=no
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15828. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15829. if test -n "$JACK_CFLAGS"; then
  15830. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15831. elif test -n "$PKG_CONFIG"; then
  15832. if test -n "$PKG_CONFIG" && \
  15833. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15834. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15835. ac_status=$?
  15836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15837. test $ac_status = 0; }; then
  15838. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15839. test "x$?" != "x0" && pkg_failed=yes
  15840. else
  15841. pkg_failed=yes
  15842. fi
  15843. else
  15844. pkg_failed=untried
  15845. fi
  15846. if test -n "$JACK_LIBS"; then
  15847. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15848. elif test -n "$PKG_CONFIG"; then
  15849. if test -n "$PKG_CONFIG" && \
  15850. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15851. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15852. ac_status=$?
  15853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15854. test $ac_status = 0; }; then
  15855. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15856. test "x$?" != "x0" && pkg_failed=yes
  15857. else
  15858. pkg_failed=yes
  15859. fi
  15860. else
  15861. pkg_failed=untried
  15862. fi
  15863. if test $pkg_failed = yes; then
  15864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15865. $as_echo "no" >&6; }
  15866. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15867. _pkg_short_errors_supported=yes
  15868. else
  15869. _pkg_short_errors_supported=no
  15870. fi
  15871. if test $_pkg_short_errors_supported = yes; then
  15872. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15873. else
  15874. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15875. fi
  15876. # Put the nasty error message in config.log where it belongs
  15877. echo "$JACK_PKG_ERRORS" >&5
  15878. audio_jack=no
  15879. elif test $pkg_failed = untried; then
  15880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15881. $as_echo "no" >&6; }
  15882. audio_jack=no
  15883. else
  15884. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15885. JACK_LIBS=$pkg_cv_JACK_LIBS
  15886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15887. $as_echo "yes" >&6; }
  15888. audio_jack=yes
  15889. fi
  15890. if test x$audio_jack = xyes; then
  15891. # Check whether --enable-jack-shared was given.
  15892. if test "${enable_jack_shared+set}" = set; then :
  15893. enableval=$enable_jack_shared;
  15894. else
  15895. enable_jack_shared=yes
  15896. fi
  15897. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15898. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15899. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15900. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15901. if test x$have_loadso != xyes && \
  15902. test x$enable_jack_shared = xyes; then
  15903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15904. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15905. fi
  15906. if test x$have_loadso = xyes && \
  15907. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15908. echo "-- dynamic libjack -> $jack_lib"
  15909. cat >>confdefs.h <<_ACEOF
  15910. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15911. _ACEOF
  15912. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15913. case "$host" in
  15914. # On Solaris, jack must be linked deferred explicitly
  15915. # to prevent undefined symbol failures.
  15916. *-*-solaris*)
  15917. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15918. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15919. esac
  15920. else
  15921. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15922. SUMMARY_audio="${SUMMARY_audio} jack"
  15923. fi
  15924. have_audio=yes
  15925. fi
  15926. fi
  15927. }
  15928. CheckESD()
  15929. {
  15930. # Check whether --enable-esd was given.
  15931. if test "${enable_esd+set}" = set; then :
  15932. enableval=$enable_esd;
  15933. else
  15934. enable_esd=yes
  15935. fi
  15936. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15937. # Check whether --with-esd-prefix was given.
  15938. if test "${with_esd_prefix+set}" = set; then :
  15939. withval=$with_esd_prefix; esd_prefix="$withval"
  15940. else
  15941. esd_prefix=""
  15942. fi
  15943. # Check whether --with-esd-exec-prefix was given.
  15944. if test "${with_esd_exec_prefix+set}" = set; then :
  15945. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15946. else
  15947. esd_exec_prefix=""
  15948. fi
  15949. # Check whether --enable-esdtest was given.
  15950. if test "${enable_esdtest+set}" = set; then :
  15951. enableval=$enable_esdtest;
  15952. else
  15953. enable_esdtest=yes
  15954. fi
  15955. if test x$esd_exec_prefix != x ; then
  15956. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15957. if test x${ESD_CONFIG+set} != xset ; then
  15958. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15959. fi
  15960. fi
  15961. if test x$esd_prefix != x ; then
  15962. esd_args="$esd_args --prefix=$esd_prefix"
  15963. if test x${ESD_CONFIG+set} != xset ; then
  15964. ESD_CONFIG=$esd_prefix/bin/esd-config
  15965. fi
  15966. fi
  15967. # Extract the first word of "esd-config", so it can be a program name with args.
  15968. set dummy esd-config; ac_word=$2
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15970. $as_echo_n "checking for $ac_word... " >&6; }
  15971. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15972. $as_echo_n "(cached) " >&6
  15973. else
  15974. case $ESD_CONFIG in
  15975. [\\/]* | ?:[\\/]*)
  15976. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15977. ;;
  15978. *)
  15979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15980. for as_dir in $PATH
  15981. do
  15982. IFS=$as_save_IFS
  15983. test -z "$as_dir" && as_dir=.
  15984. for ac_exec_ext in '' $ac_executable_extensions; do
  15985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15986. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15988. break 2
  15989. fi
  15990. done
  15991. done
  15992. IFS=$as_save_IFS
  15993. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15994. ;;
  15995. esac
  15996. fi
  15997. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15998. if test -n "$ESD_CONFIG"; then
  15999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16000. $as_echo "$ESD_CONFIG" >&6; }
  16001. else
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16003. $as_echo "no" >&6; }
  16004. fi
  16005. min_esd_version=0.2.8
  16006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16007. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16008. no_esd=""
  16009. if test "$ESD_CONFIG" = "no" ; then
  16010. no_esd=yes
  16011. else
  16012. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16013. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16014. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16015. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16016. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16017. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16018. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16019. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16020. if test "x$enable_esdtest" = "xyes" ; then
  16021. ac_ext=c
  16022. ac_cpp='$CPP $CPPFLAGS'
  16023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16026. ac_save_CFLAGS="$CFLAGS"
  16027. ac_save_LIBS="$LIBS"
  16028. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16029. LIBS="$LIBS $ESD_LIBS"
  16030. rm -f conf.esdtest
  16031. if test "$cross_compiling" = yes; then :
  16032. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16033. else
  16034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16035. /* end confdefs.h. */
  16036. #include <stdio.h>
  16037. #include <stdlib.h>
  16038. #include <esd.h>
  16039. int main (void)
  16040. {
  16041. int major, minor, micro;
  16042. FILE *fp = fopen("conf.esdtest", "w");
  16043. if (fp) fclose(fp);
  16044. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16045. printf("%s, bad version string\n", "$min_esd_version");
  16046. exit(1);
  16047. }
  16048. if (($esd_major_version > major) ||
  16049. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16050. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16051. {
  16052. return 0;
  16053. }
  16054. else
  16055. {
  16056. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16057. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16058. printf("*** best to upgrade to the required version.\n");
  16059. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16060. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16061. printf("*** config.cache before re-running configure\n");
  16062. return 1;
  16063. }
  16064. }
  16065. _ACEOF
  16066. if ac_fn_c_try_run "$LINENO"; then :
  16067. else
  16068. no_esd=yes
  16069. fi
  16070. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16071. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16072. fi
  16073. CFLAGS="$ac_save_CFLAGS"
  16074. LIBS="$ac_save_LIBS"
  16075. ac_ext=c
  16076. ac_cpp='$CPP $CPPFLAGS'
  16077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16080. fi
  16081. fi
  16082. if test "x$no_esd" = x ; then
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16084. $as_echo "yes" >&6; }
  16085. have_esd=yes
  16086. else
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16088. $as_echo "no" >&6; }
  16089. if test "$ESD_CONFIG" = "no" ; then
  16090. echo "*** The esd-config script installed by ESD could not be found"
  16091. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16092. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16093. echo "*** full path to esd-config."
  16094. else
  16095. if test -f conf.esdtest ; then
  16096. :
  16097. else
  16098. echo "*** Could not run ESD test program, checking why..."
  16099. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16100. LIBS="$LIBS $ESD_LIBS"
  16101. ac_ext=c
  16102. ac_cpp='$CPP $CPPFLAGS'
  16103. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16104. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16105. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16107. /* end confdefs.h. */
  16108. #include <stdio.h>
  16109. #include <esd.h>
  16110. int
  16111. main ()
  16112. {
  16113. return 0;
  16114. ;
  16115. return 0;
  16116. }
  16117. _ACEOF
  16118. if ac_fn_c_try_link "$LINENO"; then :
  16119. echo "*** The test program compiled, but did not run. This usually means"
  16120. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16121. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16122. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16123. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16124. echo "*** is required on your system"
  16125. echo "***"
  16126. echo "*** If you have an old version installed, it is best to remove it, although"
  16127. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16128. else
  16129. echo "*** The test program failed to compile or link. See the file config.log for the"
  16130. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16131. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16132. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16133. fi
  16134. rm -f core conftest.err conftest.$ac_objext \
  16135. conftest$ac_exeext conftest.$ac_ext
  16136. CFLAGS="$ac_save_CFLAGS"
  16137. LIBS="$ac_save_LIBS"
  16138. ac_ext=c
  16139. ac_cpp='$CPP $CPPFLAGS'
  16140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16143. fi
  16144. fi
  16145. ESD_CFLAGS=""
  16146. ESD_LIBS=""
  16147. have_esd=no
  16148. fi
  16149. rm -f conf.esdtest
  16150. if test x$have_esd = xyes; then
  16151. # Check whether --enable-esd-shared was given.
  16152. if test "${enable_esd_shared+set}" = set; then :
  16153. enableval=$enable_esd_shared;
  16154. else
  16155. enable_esd_shared=yes
  16156. fi
  16157. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16158. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16159. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16160. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16161. if test x$have_loadso != xyes && \
  16162. test x$enable_esd_shared = xyes; then
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16164. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16165. fi
  16166. if test x$have_loadso = xyes && \
  16167. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16168. echo "-- dynamic libesd -> $esd_lib"
  16169. cat >>confdefs.h <<_ACEOF
  16170. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16171. _ACEOF
  16172. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16173. else
  16174. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16175. SUMMARY_audio="${SUMMARY_audio} esd"
  16176. fi
  16177. have_audio=yes
  16178. fi
  16179. fi
  16180. }
  16181. CheckPipewire()
  16182. {
  16183. # Check whether --enable-pipewire was given.
  16184. if test "${enable_pipewire+set}" = set; then :
  16185. enableval=$enable_pipewire;
  16186. else
  16187. enable_pipewire=yes
  16188. fi
  16189. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16190. pkg_failed=no
  16191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16192. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16193. if test -n "$PIPEWIRE_CFLAGS"; then
  16194. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16195. elif test -n "$PKG_CONFIG"; then
  16196. if test -n "$PKG_CONFIG" && \
  16197. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16198. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16199. ac_status=$?
  16200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16201. test $ac_status = 0; }; then
  16202. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16203. test "x$?" != "x0" && pkg_failed=yes
  16204. else
  16205. pkg_failed=yes
  16206. fi
  16207. else
  16208. pkg_failed=untried
  16209. fi
  16210. if test -n "$PIPEWIRE_LIBS"; then
  16211. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16212. elif test -n "$PKG_CONFIG"; then
  16213. if test -n "$PKG_CONFIG" && \
  16214. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16215. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16216. ac_status=$?
  16217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16218. test $ac_status = 0; }; then
  16219. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16220. test "x$?" != "x0" && pkg_failed=yes
  16221. else
  16222. pkg_failed=yes
  16223. fi
  16224. else
  16225. pkg_failed=untried
  16226. fi
  16227. if test $pkg_failed = yes; then
  16228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16229. $as_echo "no" >&6; }
  16230. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16231. _pkg_short_errors_supported=yes
  16232. else
  16233. _pkg_short_errors_supported=no
  16234. fi
  16235. if test $_pkg_short_errors_supported = yes; then
  16236. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16237. else
  16238. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16239. fi
  16240. # Put the nasty error message in config.log where it belongs
  16241. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16242. audio_pipewire=no
  16243. elif test $pkg_failed = untried; then
  16244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16245. $as_echo "no" >&6; }
  16246. audio_pipewire=no
  16247. else
  16248. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16249. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16251. $as_echo "yes" >&6; }
  16252. audio_pipewire=yes
  16253. fi
  16254. if test x$audio_pipewire = xyes; then
  16255. # Check whether --enable-pipewire-shared was given.
  16256. if test "${enable_pipewire_shared+set}" = set; then :
  16257. enableval=$enable_pipewire_shared;
  16258. else
  16259. enable_pipewire_shared=yes
  16260. fi
  16261. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16262. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16263. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16264. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16265. if test x$have_loadso != xyes && \
  16266. test x$enable_pipewire_shared = xyes; then
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16268. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16269. fi
  16270. if test x$have_loadso = xyes && \
  16271. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16272. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16273. cat >>confdefs.h <<_ACEOF
  16274. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16275. _ACEOF
  16276. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16277. else
  16278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16279. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16280. fi
  16281. have_audio=yes
  16282. fi
  16283. fi
  16284. }
  16285. CheckPulseAudio()
  16286. {
  16287. # Check whether --enable-pulseaudio was given.
  16288. if test "${enable_pulseaudio+set}" = set; then :
  16289. enableval=$enable_pulseaudio;
  16290. else
  16291. enable_pulseaudio=yes
  16292. fi
  16293. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16294. pkg_failed=no
  16295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16296. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16297. if test -n "$PULSEAUDIO_CFLAGS"; then
  16298. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16299. elif test -n "$PKG_CONFIG"; then
  16300. if test -n "$PKG_CONFIG" && \
  16301. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16302. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16303. ac_status=$?
  16304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16305. test $ac_status = 0; }; then
  16306. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16307. test "x$?" != "x0" && pkg_failed=yes
  16308. else
  16309. pkg_failed=yes
  16310. fi
  16311. else
  16312. pkg_failed=untried
  16313. fi
  16314. if test -n "$PULSEAUDIO_LIBS"; then
  16315. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16316. elif test -n "$PKG_CONFIG"; then
  16317. if test -n "$PKG_CONFIG" && \
  16318. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16319. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16320. ac_status=$?
  16321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16322. test $ac_status = 0; }; then
  16323. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16324. test "x$?" != "x0" && pkg_failed=yes
  16325. else
  16326. pkg_failed=yes
  16327. fi
  16328. else
  16329. pkg_failed=untried
  16330. fi
  16331. if test $pkg_failed = yes; then
  16332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16333. $as_echo "no" >&6; }
  16334. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16335. _pkg_short_errors_supported=yes
  16336. else
  16337. _pkg_short_errors_supported=no
  16338. fi
  16339. if test $_pkg_short_errors_supported = yes; then
  16340. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16341. else
  16342. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16343. fi
  16344. # Put the nasty error message in config.log where it belongs
  16345. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16346. audio_pulseaudio=no
  16347. elif test $pkg_failed = untried; then
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16349. $as_echo "no" >&6; }
  16350. audio_pulseaudio=no
  16351. else
  16352. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16353. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16355. $as_echo "yes" >&6; }
  16356. audio_pulseaudio=yes
  16357. fi
  16358. if test x$audio_pulseaudio = xyes; then
  16359. # Check whether --enable-pulseaudio-shared was given.
  16360. if test "${enable_pulseaudio_shared+set}" = set; then :
  16361. enableval=$enable_pulseaudio_shared;
  16362. else
  16363. enable_pulseaudio_shared=yes
  16364. fi
  16365. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16366. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16367. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16368. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16369. if test x$have_loadso != xyes && \
  16370. test x$enable_pulseaudio_shared = xyes; then
  16371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16372. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16373. fi
  16374. if test x$have_loadso = xyes && \
  16375. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16376. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16377. cat >>confdefs.h <<_ACEOF
  16378. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16379. _ACEOF
  16380. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16381. case "$host" in
  16382. # On Solaris, pulseaudio must be linked deferred explicitly
  16383. # to prevent undefined symbol failures.
  16384. *-*-solaris*)
  16385. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16386. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16387. esac
  16388. else
  16389. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16390. SUMMARY_audio="${SUMMARY_audio} pulse"
  16391. fi
  16392. have_audio=yes
  16393. fi
  16394. fi
  16395. }
  16396. CheckARTSC()
  16397. {
  16398. # Check whether --enable-arts was given.
  16399. if test "${enable_arts+set}" = set; then :
  16400. enableval=$enable_arts;
  16401. else
  16402. enable_arts=yes
  16403. fi
  16404. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16405. # Extract the first word of "artsc-config", so it can be a program name with args.
  16406. set dummy artsc-config; ac_word=$2
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16408. $as_echo_n "checking for $ac_word... " >&6; }
  16409. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16410. $as_echo_n "(cached) " >&6
  16411. else
  16412. case $ARTSCONFIG in
  16413. [\\/]* | ?:[\\/]*)
  16414. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16415. ;;
  16416. *)
  16417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16418. for as_dir in $PATH
  16419. do
  16420. IFS=$as_save_IFS
  16421. test -z "$as_dir" && as_dir=.
  16422. for ac_exec_ext in '' $ac_executable_extensions; do
  16423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16424. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16426. break 2
  16427. fi
  16428. done
  16429. done
  16430. IFS=$as_save_IFS
  16431. ;;
  16432. esac
  16433. fi
  16434. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16435. if test -n "$ARTSCONFIG"; then
  16436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16437. $as_echo "$ARTSCONFIG" >&6; }
  16438. else
  16439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16440. $as_echo "no" >&6; }
  16441. fi
  16442. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16443. : # arts isn't installed
  16444. else
  16445. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16446. ARTS_LIBS=`$ARTSCONFIG --libs`
  16447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16448. $as_echo_n "checking for aRts development environment... " >&6; }
  16449. audio_arts=no
  16450. save_CFLAGS="$CFLAGS"
  16451. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16453. /* end confdefs.h. */
  16454. #include <artsc.h>
  16455. int
  16456. main ()
  16457. {
  16458. arts_stream_t stream;
  16459. ;
  16460. return 0;
  16461. }
  16462. _ACEOF
  16463. if ac_fn_c_try_compile "$LINENO"; then :
  16464. audio_arts=yes
  16465. fi
  16466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16467. CFLAGS="$save_CFLAGS"
  16468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16469. $as_echo "$audio_arts" >&6; }
  16470. if test x$audio_arts = xyes; then
  16471. # Check whether --enable-arts-shared was given.
  16472. if test "${enable_arts_shared+set}" = set; then :
  16473. enableval=$enable_arts_shared;
  16474. else
  16475. enable_arts_shared=yes
  16476. fi
  16477. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16478. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16479. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16480. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16481. if test x$have_loadso != xyes && \
  16482. test x$enable_arts_shared = xyes; then
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16484. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16485. fi
  16486. if test x$have_loadso = xyes && \
  16487. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16488. echo "-- dynamic libartsc -> $arts_lib"
  16489. cat >>confdefs.h <<_ACEOF
  16490. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16491. _ACEOF
  16492. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16493. else
  16494. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16495. SUMMARY_audio="${SUMMARY_audio} arts"
  16496. fi
  16497. have_audio=yes
  16498. fi
  16499. fi
  16500. fi
  16501. }
  16502. CheckNAS()
  16503. {
  16504. # Check whether --enable-nas was given.
  16505. if test "${enable_nas+set}" = set; then :
  16506. enableval=$enable_nas;
  16507. else
  16508. enable_nas=yes
  16509. fi
  16510. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16511. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16512. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16513. have_nas_hdr=yes
  16514. fi
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16516. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16517. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16518. $as_echo_n "(cached) " >&6
  16519. else
  16520. ac_check_lib_save_LIBS=$LIBS
  16521. LIBS="-laudio $LIBS"
  16522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16523. /* end confdefs.h. */
  16524. /* Override any GCC internal prototype to avoid an error.
  16525. Use char because int might match the return type of a GCC
  16526. builtin and then its argument prototype would still apply. */
  16527. #ifdef __cplusplus
  16528. extern "C"
  16529. #endif
  16530. char AuOpenServer ();
  16531. int
  16532. main ()
  16533. {
  16534. return AuOpenServer ();
  16535. ;
  16536. return 0;
  16537. }
  16538. _ACEOF
  16539. if ac_fn_c_try_link "$LINENO"; then :
  16540. ac_cv_lib_audio_AuOpenServer=yes
  16541. else
  16542. ac_cv_lib_audio_AuOpenServer=no
  16543. fi
  16544. rm -f core conftest.err conftest.$ac_objext \
  16545. conftest$ac_exeext conftest.$ac_ext
  16546. LIBS=$ac_check_lib_save_LIBS
  16547. fi
  16548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16549. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16550. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16551. have_nas_lib=yes
  16552. fi
  16553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16554. $as_echo_n "checking for NAS audio support... " >&6; }
  16555. have_nas=no
  16556. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16557. have_nas=yes
  16558. NAS_LIBS="-laudio"
  16559. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16560. have_nas=yes
  16561. NAS_CFLAGS="-I/usr/X11R6/include/"
  16562. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16563. fi
  16564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16565. $as_echo "$have_nas" >&6; }
  16566. if test x$have_nas = xyes; then
  16567. # Check whether --enable-nas-shared was given.
  16568. if test "${enable_nas_shared+set}" = set; then :
  16569. enableval=$enable_nas_shared;
  16570. else
  16571. enable_nas_shared=yes
  16572. fi
  16573. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16574. if test x$have_loadso != xyes && \
  16575. test x$enable_nas_shared = xyes; then
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16577. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16578. fi
  16579. if test x$have_loadso = xyes && \
  16580. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16581. echo "-- dynamic libaudio -> $nas_lib"
  16582. cat >>confdefs.h <<_ACEOF
  16583. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16584. _ACEOF
  16585. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16586. else
  16587. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16588. SUMMARY_audio="${SUMMARY_audio} nas"
  16589. fi
  16590. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16591. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16592. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16593. have_audio=yes
  16594. fi
  16595. fi
  16596. }
  16597. CheckSNDIO()
  16598. {
  16599. # Check whether --enable-sndio was given.
  16600. if test "${enable_sndio+set}" = set; then :
  16601. enableval=$enable_sndio;
  16602. else
  16603. enable_sndio=yes
  16604. fi
  16605. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16606. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16607. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16608. have_sndio_hdr=yes
  16609. fi
  16610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16611. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16612. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16613. $as_echo_n "(cached) " >&6
  16614. else
  16615. ac_check_lib_save_LIBS=$LIBS
  16616. LIBS="-lsndio $LIBS"
  16617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16618. /* end confdefs.h. */
  16619. /* Override any GCC internal prototype to avoid an error.
  16620. Use char because int might match the return type of a GCC
  16621. builtin and then its argument prototype would still apply. */
  16622. #ifdef __cplusplus
  16623. extern "C"
  16624. #endif
  16625. char sio_open ();
  16626. int
  16627. main ()
  16628. {
  16629. return sio_open ();
  16630. ;
  16631. return 0;
  16632. }
  16633. _ACEOF
  16634. if ac_fn_c_try_link "$LINENO"; then :
  16635. ac_cv_lib_sndio_sio_open=yes
  16636. else
  16637. ac_cv_lib_sndio_sio_open=no
  16638. fi
  16639. rm -f core conftest.err conftest.$ac_objext \
  16640. conftest$ac_exeext conftest.$ac_ext
  16641. LIBS=$ac_check_lib_save_LIBS
  16642. fi
  16643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16644. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16645. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16646. have_sndio_lib=yes
  16647. fi
  16648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16649. $as_echo_n "checking for sndio audio support... " >&6; }
  16650. have_sndio=no
  16651. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16652. have_sndio=yes
  16653. SNDIO_LIBS="-lsndio"
  16654. fi
  16655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16656. $as_echo "$have_sndio" >&6; }
  16657. if test x$have_sndio = xyes; then
  16658. # Check whether --enable-sndio-shared was given.
  16659. if test "${enable_sndio_shared+set}" = set; then :
  16660. enableval=$enable_sndio_shared;
  16661. else
  16662. enable_sndio_shared=yes
  16663. fi
  16664. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16665. if test x$have_loadso != xyes && \
  16666. test x$enable_sndio_shared = xyes; then
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16668. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16669. fi
  16670. if test x$have_loadso = xyes && \
  16671. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16672. echo "-- dynamic libsndio -> $sndio_lib"
  16673. cat >>confdefs.h <<_ACEOF
  16674. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16675. _ACEOF
  16676. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16677. else
  16678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16679. SUMMARY_audio="${SUMMARY_audio} sndio"
  16680. fi
  16681. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16682. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16683. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16684. have_audio=yes
  16685. fi
  16686. fi
  16687. }
  16688. CheckFusionSound()
  16689. {
  16690. # Check whether --enable-fusionsound was given.
  16691. if test "${enable_fusionsound+set}" = set; then :
  16692. enableval=$enable_fusionsound;
  16693. else
  16694. enable_fusionsound=no
  16695. fi
  16696. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16697. pkg_failed=no
  16698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16699. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16700. if test -n "$FUSIONSOUND_CFLAGS"; then
  16701. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16702. elif test -n "$PKG_CONFIG"; then
  16703. if test -n "$PKG_CONFIG" && \
  16704. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16705. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16706. ac_status=$?
  16707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16708. test $ac_status = 0; }; then
  16709. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16710. test "x$?" != "x0" && pkg_failed=yes
  16711. else
  16712. pkg_failed=yes
  16713. fi
  16714. else
  16715. pkg_failed=untried
  16716. fi
  16717. if test -n "$FUSIONSOUND_LIBS"; then
  16718. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16719. elif test -n "$PKG_CONFIG"; then
  16720. if test -n "$PKG_CONFIG" && \
  16721. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16722. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16723. ac_status=$?
  16724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16725. test $ac_status = 0; }; then
  16726. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16727. test "x$?" != "x0" && pkg_failed=yes
  16728. else
  16729. pkg_failed=yes
  16730. fi
  16731. else
  16732. pkg_failed=untried
  16733. fi
  16734. if test $pkg_failed = yes; then
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16736. $as_echo "no" >&6; }
  16737. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16738. _pkg_short_errors_supported=yes
  16739. else
  16740. _pkg_short_errors_supported=no
  16741. fi
  16742. if test $_pkg_short_errors_supported = yes; then
  16743. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16744. else
  16745. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16746. fi
  16747. # Put the nasty error message in config.log where it belongs
  16748. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16749. fusionsound=no
  16750. elif test $pkg_failed = untried; then
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16752. $as_echo "no" >&6; }
  16753. fusionsound=no
  16754. else
  16755. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16756. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16758. $as_echo "yes" >&6; }
  16759. fusionsound=yes
  16760. fi
  16761. if test x$fusionsound = xyes; then
  16762. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16763. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16764. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16765. # Check whether --enable-fusionsound-shared was given.
  16766. if test "${enable_fusionsound_shared+set}" = set; then :
  16767. enableval=$enable_fusionsound_shared;
  16768. else
  16769. enable_fusionsound_shared=yes
  16770. fi
  16771. fusionsound_shared=no
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16773. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16774. if test x$have_loadso != xyes && \
  16775. test x$enable_fusionsound_shared = xyes; then
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16777. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16778. fi
  16779. if test x$have_loadso = xyes && \
  16780. test x$enable_fusionsound_shared = xyes; then
  16781. cat >>confdefs.h <<_ACEOF
  16782. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16783. _ACEOF
  16784. fusionsound_shared=yes
  16785. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16786. else
  16787. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16788. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16789. fi
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16791. $as_echo "$fusionsound_shared" >&6; }
  16792. have_audio=yes
  16793. fi
  16794. fi
  16795. }
  16796. CheckDiskAudio()
  16797. {
  16798. # Check whether --enable-diskaudio was given.
  16799. if test "${enable_diskaudio+set}" = set; then :
  16800. enableval=$enable_diskaudio;
  16801. else
  16802. enable_diskaudio=yes
  16803. fi
  16804. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16805. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16806. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16807. SUMMARY_audio="${SUMMARY_audio} disk"
  16808. fi
  16809. }
  16810. CheckDummyAudio()
  16811. {
  16812. # Check whether --enable-dummyaudio was given.
  16813. if test "${enable_dummyaudio+set}" = set; then :
  16814. enableval=$enable_dummyaudio;
  16815. else
  16816. enable_dummyaudio=yes
  16817. fi
  16818. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16819. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16820. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16821. SUMMARY_audio="${SUMMARY_audio} dummy"
  16822. fi
  16823. }
  16824. CheckLibSampleRate()
  16825. {
  16826. # Check whether --enable-libsamplerate was given.
  16827. if test "${enable_libsamplerate+set}" = set; then :
  16828. enableval=$enable_libsamplerate;
  16829. else
  16830. enable_libsamplerate=yes
  16831. fi
  16832. if test x$enable_libsamplerate = xyes; then
  16833. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16834. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16835. have_samplerate_h_hdr=yes
  16836. else
  16837. have_samplerate_h_hdr=no
  16838. fi
  16839. if test x$have_samplerate_h_hdr = xyes; then
  16840. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16841. # Check whether --enable-libsamplerate-shared was given.
  16842. if test "${enable_libsamplerate_shared+set}" = set; then :
  16843. enableval=$enable_libsamplerate_shared;
  16844. else
  16845. enable_libsamplerate_shared=yes
  16846. fi
  16847. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16848. if test x$have_loadso != xyes && \
  16849. test x$enable_libsamplerate_shared = xyes; then
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16851. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16852. fi
  16853. if test x$have_loadso = xyes && \
  16854. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16855. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16856. cat >>confdefs.h <<_ACEOF
  16857. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16858. _ACEOF
  16859. else
  16860. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16861. fi
  16862. fi
  16863. fi
  16864. }
  16865. CheckARM()
  16866. {
  16867. # Check whether --enable-arm-simd was given.
  16868. if test "${enable_arm_simd+set}" = set; then :
  16869. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16870. else
  16871. enable_arm_simd=no
  16872. fi
  16873. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16874. save_CFLAGS="$CFLAGS"
  16875. have_arm_simd=no
  16876. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16878. $as_echo_n "checking for ARM SIMD... " >&6; }
  16879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16880. /* end confdefs.h. */
  16881. .text
  16882. .arch armv6
  16883. .object_arch armv4
  16884. .arm
  16885. .altmacro
  16886. #ifndef __ARM_EABI__
  16887. #error EABI is required (to be sure that calling conventions are compatible)
  16888. #endif
  16889. pld [r0]
  16890. uqadd8 r0, r0, r0
  16891. _ACEOF
  16892. if ac_fn_c_try_compile "$LINENO"; then :
  16893. have_arm_simd=yes
  16894. fi
  16895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16897. $as_echo "$have_arm_simd" >&6; }
  16898. CFLAGS="$save_CFLAGS"
  16899. if test x$have_arm_simd = xyes; then
  16900. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16901. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16902. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16903. fi
  16904. fi
  16905. }
  16906. CheckNEON()
  16907. {
  16908. # Check whether --enable-arm-neon was given.
  16909. if test "${enable_arm_neon+set}" = set; then :
  16910. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16911. else
  16912. enable_arm_neon=no
  16913. fi
  16914. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16915. save_CFLAGS="$CFLAGS"
  16916. have_arm_neon=no
  16917. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16919. $as_echo_n "checking for ARM NEON... " >&6; }
  16920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16921. /* end confdefs.h. */
  16922. .text
  16923. .fpu neon
  16924. .arch armv7a
  16925. .object_arch armv4
  16926. .eabi_attribute 10, 0
  16927. .arm
  16928. .altmacro
  16929. #ifndef __ARM_EABI__
  16930. #error EABI is required (to be sure that calling conventions are compatible)
  16931. #endif
  16932. pld [r0]
  16933. vmovn.u16 d0, q0
  16934. _ACEOF
  16935. if ac_fn_c_try_compile "$LINENO"; then :
  16936. have_arm_neon=yes
  16937. fi
  16938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16940. $as_echo "$have_arm_neon" >&6; }
  16941. CFLAGS="$save_CFLAGS"
  16942. if test x$have_arm_neon = xyes; then
  16943. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16944. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16945. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16946. fi
  16947. fi
  16948. }
  16949. CheckVisibilityHidden()
  16950. {
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16952. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16953. have_gcc_fvisibility=no
  16954. visibility_CFLAGS="-fvisibility=hidden"
  16955. save_CFLAGS="$CFLAGS"
  16956. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16958. /* end confdefs.h. */
  16959. #if !defined(__GNUC__) || __GNUC__ < 4
  16960. #error SDL only uses visibility attributes in GCC 4 or newer
  16961. #endif
  16962. int
  16963. main ()
  16964. {
  16965. ;
  16966. return 0;
  16967. }
  16968. _ACEOF
  16969. if ac_fn_c_try_compile "$LINENO"; then :
  16970. have_gcc_fvisibility=yes
  16971. fi
  16972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16974. $as_echo "$have_gcc_fvisibility" >&6; }
  16975. CFLAGS="$save_CFLAGS"
  16976. if test x$have_gcc_fvisibility = xyes; then
  16977. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16978. fi
  16979. }
  16980. CheckNoStrictAliasing()
  16981. {
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16983. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16984. have_gcc_no_strict_aliasing=no
  16985. save_CFLAGS="$CFLAGS"
  16986. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16988. /* end confdefs.h. */
  16989. int x = 0;
  16990. int
  16991. main ()
  16992. {
  16993. ;
  16994. return 0;
  16995. }
  16996. _ACEOF
  16997. if ac_fn_c_try_compile "$LINENO"; then :
  16998. have_gcc_no_strict_aliasing=yes
  16999. fi
  17000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17002. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17003. CFLAGS="$save_CFLAGS"
  17004. if test x$have_gcc_no_strict_aliasing = xyes; then
  17005. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17006. fi
  17007. }
  17008. CheckStackBoundary()
  17009. {
  17010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17011. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17012. have_gcc_preferred_stack_boundary=no
  17013. save_CFLAGS="$CFLAGS"
  17014. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17016. /* end confdefs.h. */
  17017. int x = 0;
  17018. int
  17019. main ()
  17020. {
  17021. ;
  17022. return 0;
  17023. }
  17024. _ACEOF
  17025. if ac_fn_c_try_compile "$LINENO"; then :
  17026. have_gcc_preferred_stack_boundary=yes
  17027. fi
  17028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17030. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17031. CFLAGS="$save_CFLAGS"
  17032. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17033. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17034. fi
  17035. }
  17036. CheckDeclarationAfterStatement()
  17037. {
  17038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17039. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17040. have_gcc_declaration_after_statement=no
  17041. save_CFLAGS="$CFLAGS"
  17042. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17044. /* end confdefs.h. */
  17045. int x = 0;
  17046. int
  17047. main ()
  17048. {
  17049. ;
  17050. return 0;
  17051. }
  17052. _ACEOF
  17053. if ac_fn_c_try_compile "$LINENO"; then :
  17054. have_gcc_declaration_after_statement=yes
  17055. fi
  17056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17058. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17059. CFLAGS="$save_CFLAGS"
  17060. if test x$have_gcc_declaration_after_statement = xyes; then
  17061. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17062. fi
  17063. }
  17064. CheckWarnAll()
  17065. {
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17067. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17068. have_gcc_Wall=no
  17069. save_CFLAGS="$CFLAGS"
  17070. CFLAGS="$save_CFLAGS -Wall"
  17071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17072. /* end confdefs.h. */
  17073. int x = 0;
  17074. int
  17075. main ()
  17076. {
  17077. ;
  17078. return 0;
  17079. }
  17080. _ACEOF
  17081. if ac_fn_c_try_compile "$LINENO"; then :
  17082. have_gcc_Wall=yes
  17083. fi
  17084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17086. $as_echo "$have_gcc_Wall" >&6; }
  17087. CFLAGS="$save_CFLAGS"
  17088. if test x$have_gcc_Wall = xyes; then
  17089. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17091. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17092. need_gcc_Wno_multichar=no
  17093. case "$host" in
  17094. *-*-haiku*)
  17095. need_gcc_Wno_multichar=yes
  17096. ;;
  17097. esac
  17098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17099. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17100. if test x$need_gcc_Wno_multichar = xyes; then
  17101. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17102. fi
  17103. fi
  17104. }
  17105. CheckWayland()
  17106. {
  17107. # Check whether --enable-video-wayland was given.
  17108. if test "${enable_video_wayland+set}" = set; then :
  17109. enableval=$enable_video_wayland;
  17110. else
  17111. enable_video_wayland=yes
  17112. fi
  17113. # Check whether --enable-video-wayland-qt-touch was given.
  17114. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17115. enableval=$enable_video_wayland_qt_touch;
  17116. else
  17117. enable_video_wayland_qt_touch=yes
  17118. fi
  17119. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17121. $as_echo_n "checking for Wayland support... " >&6; }
  17122. video_wayland=no
  17123. if test x$video_opengl_egl = xyes && \
  17124. test x$video_opengles_v2 = xyes; then
  17125. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  17126. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17127. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17128. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17129. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17130. WAYLAND_SCANNER_CODE_MODE=private-code
  17131. else
  17132. WAYLAND_SCANNER_CODE_MODE=code
  17133. fi
  17134. video_wayland=yes
  17135. fi
  17136. fi
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17138. $as_echo "$video_wayland" >&6; }
  17139. if test x$video_wayland = xyes; then
  17140. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17141. if test x$enable_video_wayland_qt_touch = xyes; then
  17142. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17143. fi
  17144. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17145. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17146. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17147. # Check whether --enable-wayland-shared was given.
  17148. if test "${enable_wayland_shared+set}" = set; then :
  17149. enableval=$enable_wayland_shared;
  17150. else
  17151. enable_wayland_shared=maybe
  17152. fi
  17153. case "$host" in
  17154. *)
  17155. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17156. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17157. if test x$wayland_egl_lib = x; then
  17158. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17159. fi
  17160. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17161. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17162. ;;
  17163. esac
  17164. if test x$enable_wayland_shared = xmaybe; then
  17165. enable_wayland_shared=yes
  17166. fi
  17167. if test x$have_loadso != xyes && \
  17168. test x$enable_wayland_shared = xyes; then
  17169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17170. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17171. enable_wayland_shared=no
  17172. fi
  17173. if test x$have_loadso = xyes && \
  17174. test x$enable_wayland_shared = xyes && \
  17175. test x$wayland_client_lib != x && \
  17176. test x$wayland_egl_lib != x && \
  17177. test x$wayland_cursor_lib != x && \
  17178. test x$xkbcommon_lib != x; then
  17179. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17180. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17181. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17182. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17183. cat >>confdefs.h <<_ACEOF
  17184. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17185. _ACEOF
  17186. cat >>confdefs.h <<_ACEOF
  17187. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17188. _ACEOF
  17189. cat >>confdefs.h <<_ACEOF
  17190. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17191. _ACEOF
  17192. cat >>confdefs.h <<_ACEOF
  17193. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17194. _ACEOF
  17195. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17196. else
  17197. enable_wayland_shared=no
  17198. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17199. SUMMARY_video="${SUMMARY_video} wayland"
  17200. fi
  17201. have_video=yes
  17202. # Check whether --enable-libdecor was given.
  17203. if test "${enable_libdecor+set}" = set; then :
  17204. enableval=$enable_libdecor;
  17205. else
  17206. enable_libdecor=yes
  17207. fi
  17208. if test x$enable_libdecor = xyes; then
  17209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17210. $as_echo_n "checking for libdecor support... " >&6; }
  17211. if $PKG_CONFIG --exists libdecor-0; then :
  17212. video_libdecor=yes
  17213. else
  17214. video_libdecor=no
  17215. fi
  17216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17217. $as_echo "$video_libdecor" >&6; }
  17218. if test x$video_libdecor = xyes; then
  17219. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17220. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17221. # Check whether --enable-libdecor-shared was given.
  17222. if test "${enable_libdecor_shared+set}" = set; then :
  17223. enableval=$enable_libdecor_shared;
  17224. else
  17225. enable_libdecor_shared=yes
  17226. fi
  17227. if test x$enable_wayland_shared != xyes; then
  17228. enable_libdecor_shared=no
  17229. fi
  17230. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17231. if test x$have_loadso != xyes && \
  17232. test x$enable_libdecor_shared = xyes; then
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17234. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17235. fi
  17236. if test x$have_loadso = xyes && \
  17237. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17238. echo "-- dynamic libdecor -> $decor_lib"
  17239. cat >>confdefs.h <<_ACEOF
  17240. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17241. _ACEOF
  17242. else
  17243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17244. fi
  17245. fi
  17246. fi
  17247. fi
  17248. fi
  17249. }
  17250. CheckNativeClient()
  17251. {
  17252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17253. /* end confdefs.h. */
  17254. #if !defined(__native_client__)
  17255. #error "NO NACL"
  17256. #endif
  17257. int
  17258. main ()
  17259. {
  17260. ;
  17261. return 0;
  17262. }
  17263. _ACEOF
  17264. if ac_fn_c_try_compile "$LINENO"; then :
  17265. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17266. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17267. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17268. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17269. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17270. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17271. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17272. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17273. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17274. SUMMARY_audio="${SUMMARY_audio} nacl"
  17275. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17276. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17277. fi
  17278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17279. }
  17280. CheckRPI()
  17281. {
  17282. # Check whether --enable-video-rpi was given.
  17283. if test "${enable_video_rpi+set}" = set; then :
  17284. enableval=$enable_video_rpi;
  17285. else
  17286. enable_video_rpi=yes
  17287. fi
  17288. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17289. pkg_failed=no
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17291. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17292. if test -n "$RPI_CFLAGS"; then
  17293. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17294. elif test -n "$PKG_CONFIG"; then
  17295. if test -n "$PKG_CONFIG" && \
  17296. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17297. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17298. ac_status=$?
  17299. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17300. test $ac_status = 0; }; then
  17301. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17302. test "x$?" != "x0" && pkg_failed=yes
  17303. else
  17304. pkg_failed=yes
  17305. fi
  17306. else
  17307. pkg_failed=untried
  17308. fi
  17309. if test -n "$RPI_LIBS"; then
  17310. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17311. elif test -n "$PKG_CONFIG"; then
  17312. if test -n "$PKG_CONFIG" && \
  17313. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17314. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17315. ac_status=$?
  17316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17317. test $ac_status = 0; }; then
  17318. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17319. test "x$?" != "x0" && pkg_failed=yes
  17320. else
  17321. pkg_failed=yes
  17322. fi
  17323. else
  17324. pkg_failed=untried
  17325. fi
  17326. if test $pkg_failed = yes; then
  17327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17328. $as_echo "no" >&6; }
  17329. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17330. _pkg_short_errors_supported=yes
  17331. else
  17332. _pkg_short_errors_supported=no
  17333. fi
  17334. if test $_pkg_short_errors_supported = yes; then
  17335. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17336. else
  17337. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17338. fi
  17339. # Put the nasty error message in config.log where it belongs
  17340. echo "$RPI_PKG_ERRORS" >&5
  17341. video_rpi=no
  17342. elif test $pkg_failed = untried; then
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17344. $as_echo "no" >&6; }
  17345. video_rpi=no
  17346. else
  17347. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17348. RPI_LIBS=$pkg_cv_RPI_LIBS
  17349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17350. $as_echo "yes" >&6; }
  17351. video_rpi=yes
  17352. fi
  17353. if test x$video_rpi = xno; then
  17354. if test x$ARCH = xnetbsd; then
  17355. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17356. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17357. else
  17358. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17359. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17360. fi
  17361. fi
  17362. # Save the original compiler flags and libraries
  17363. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17364. # Add the Raspberry Pi compiler flags and libraries
  17365. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17367. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17368. have_video_rpi=no
  17369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17370. /* end confdefs.h. */
  17371. #include <bcm_host.h>
  17372. int
  17373. main ()
  17374. {
  17375. bcm_host_init();
  17376. ;
  17377. return 0;
  17378. }
  17379. _ACEOF
  17380. if ac_fn_c_try_link "$LINENO"; then :
  17381. have_video_rpi=yes
  17382. fi
  17383. rm -f core conftest.err conftest.$ac_objext \
  17384. conftest$ac_exeext conftest.$ac_ext
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17386. $as_echo "$have_video_rpi" >&6; }
  17387. # Restore the compiler flags and libraries
  17388. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17389. if test x$have_video_rpi = xyes; then
  17390. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17391. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17392. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17393. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17394. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17395. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17396. SUMMARY_video="${SUMMARY_video} rpi"
  17397. fi
  17398. fi
  17399. }
  17400. CheckX11()
  17401. {
  17402. # Check whether --enable-video-x11 was given.
  17403. if test "${enable_video_x11+set}" = set; then :
  17404. enableval=$enable_video_x11;
  17405. else
  17406. enable_video_x11=yes
  17407. fi
  17408. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17409. case "$host" in
  17410. *-*-darwin*)
  17411. # This isn't necessary for X11, but fixes GLX detection
  17412. if test "x$x_includes" = xNONE && \
  17413. test "x$x_libraries" = xNONE && \
  17414. test -d /opt/X11/include && \
  17415. test -d /opt/X11/lib; then
  17416. x_includes="/opt/X11/include"
  17417. x_libraries="/opt/X11/lib"
  17418. fi
  17419. ;;
  17420. esac
  17421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17422. $as_echo_n "checking for X... " >&6; }
  17423. # Check whether --with-x was given.
  17424. if test "${with_x+set}" = set; then :
  17425. withval=$with_x;
  17426. fi
  17427. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17428. if test "x$with_x" = xno; then
  17429. # The user explicitly disabled X.
  17430. have_x=disabled
  17431. else
  17432. case $x_includes,$x_libraries in #(
  17433. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17434. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17435. $as_echo_n "(cached) " >&6
  17436. else
  17437. # One or both of the vars are not set, and there is no cached value.
  17438. ac_x_includes=no
  17439. ac_x_libraries=no
  17440. # Do we need to do anything special at all?
  17441. ac_save_LIBS=$LIBS
  17442. LIBS="-lX11 $LIBS"
  17443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17444. /* end confdefs.h. */
  17445. #include <X11/Xlib.h>
  17446. int
  17447. main ()
  17448. {
  17449. XrmInitialize ()
  17450. ;
  17451. return 0;
  17452. }
  17453. _ACEOF
  17454. if ac_fn_c_try_link "$LINENO"; then :
  17455. # We can compile and link X programs with no special options.
  17456. ac_x_includes=
  17457. ac_x_libraries=
  17458. fi
  17459. rm -f core conftest.err conftest.$ac_objext \
  17460. conftest$ac_exeext conftest.$ac_ext
  17461. LIBS="$ac_save_LIBS"
  17462. # If that didn't work, only try xmkmf and filesystem searches
  17463. # for native compilation.
  17464. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17465. rm -f -r conftest.dir
  17466. if mkdir conftest.dir; then
  17467. cd conftest.dir
  17468. cat >Imakefile <<'_ACEOF'
  17469. incroot:
  17470. @echo incroot='${INCROOT}'
  17471. usrlibdir:
  17472. @echo usrlibdir='${USRLIBDIR}'
  17473. libdir:
  17474. @echo libdir='${LIBDIR}'
  17475. _ACEOF
  17476. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17477. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17478. for ac_var in incroot usrlibdir libdir; do
  17479. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17480. done
  17481. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17482. for ac_extension in a so sl dylib la dll; do
  17483. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17484. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17485. ac_im_usrlibdir=$ac_im_libdir; break
  17486. fi
  17487. done
  17488. # Screen out bogus values from the imake configuration. They are
  17489. # bogus both because they are the default anyway, and because
  17490. # using them would break gcc on systems where it needs fixed includes.
  17491. case $ac_im_incroot in
  17492. /usr/include) ac_x_includes= ;;
  17493. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17494. esac
  17495. case $ac_im_usrlibdir in
  17496. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17497. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17498. esac
  17499. fi
  17500. cd ..
  17501. rm -f -r conftest.dir
  17502. fi
  17503. # Standard set of common directories for X headers.
  17504. # Check X11 before X11Rn because it is often a symlink to the current release.
  17505. ac_x_header_dirs='
  17506. /usr/X11/include
  17507. /usr/X11R7/include
  17508. /usr/X11R6/include
  17509. /usr/X11R5/include
  17510. /usr/X11R4/include
  17511. /usr/include/X11
  17512. /usr/include/X11R7
  17513. /usr/include/X11R6
  17514. /usr/include/X11R5
  17515. /usr/include/X11R4
  17516. /usr/local/X11/include
  17517. /usr/local/X11R7/include
  17518. /usr/local/X11R6/include
  17519. /usr/local/X11R5/include
  17520. /usr/local/X11R4/include
  17521. /usr/local/include/X11
  17522. /usr/local/include/X11R7
  17523. /usr/local/include/X11R6
  17524. /usr/local/include/X11R5
  17525. /usr/local/include/X11R4
  17526. /opt/X11/include
  17527. /usr/X386/include
  17528. /usr/x386/include
  17529. /usr/XFree86/include/X11
  17530. /usr/include
  17531. /usr/local/include
  17532. /usr/unsupported/include
  17533. /usr/athena/include
  17534. /usr/local/x11r5/include
  17535. /usr/lpp/Xamples/include
  17536. /usr/openwin/include
  17537. /usr/openwin/share/include'
  17538. if test "$ac_x_includes" = no; then
  17539. # Guess where to find include files, by looking for Xlib.h.
  17540. # First, try using that file with no special directory specified.
  17541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. /* end confdefs.h. */
  17543. #include <X11/Xlib.h>
  17544. _ACEOF
  17545. if ac_fn_c_try_cpp "$LINENO"; then :
  17546. # We can compile using X headers with no special include directory.
  17547. ac_x_includes=
  17548. else
  17549. for ac_dir in $ac_x_header_dirs; do
  17550. if test -r "$ac_dir/X11/Xlib.h"; then
  17551. ac_x_includes=$ac_dir
  17552. break
  17553. fi
  17554. done
  17555. fi
  17556. rm -f conftest.err conftest.i conftest.$ac_ext
  17557. fi # $ac_x_includes = no
  17558. if test "$ac_x_libraries" = no; then
  17559. # Check for the libraries.
  17560. # See if we find them without any special options.
  17561. # Don't add to $LIBS permanently.
  17562. ac_save_LIBS=$LIBS
  17563. LIBS="-lX11 $LIBS"
  17564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17565. /* end confdefs.h. */
  17566. #include <X11/Xlib.h>
  17567. int
  17568. main ()
  17569. {
  17570. XrmInitialize ()
  17571. ;
  17572. return 0;
  17573. }
  17574. _ACEOF
  17575. if ac_fn_c_try_link "$LINENO"; then :
  17576. LIBS=$ac_save_LIBS
  17577. # We can link X programs with no special library path.
  17578. ac_x_libraries=
  17579. else
  17580. LIBS=$ac_save_LIBS
  17581. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17582. do
  17583. # Don't even attempt the hair of trying to link an X program!
  17584. for ac_extension in a so sl dylib la dll; do
  17585. if test -r "$ac_dir/libX11.$ac_extension"; then
  17586. ac_x_libraries=$ac_dir
  17587. break 2
  17588. fi
  17589. done
  17590. done
  17591. fi
  17592. rm -f core conftest.err conftest.$ac_objext \
  17593. conftest$ac_exeext conftest.$ac_ext
  17594. fi # $ac_x_libraries = no
  17595. fi
  17596. # Record the results.
  17597. case $ac_x_includes,$ac_x_libraries in #(
  17598. no,* | *,no | *\'*) :
  17599. # Didn't find X, or a directory has "'" in its name.
  17600. ac_cv_have_x="have_x=no" ;; #(
  17601. *) :
  17602. # Record where we found X for the cache.
  17603. ac_cv_have_x="have_x=yes\
  17604. ac_x_includes='$ac_x_includes'\
  17605. ac_x_libraries='$ac_x_libraries'" ;;
  17606. esac
  17607. fi
  17608. ;; #(
  17609. *) have_x=yes;;
  17610. esac
  17611. eval "$ac_cv_have_x"
  17612. fi # $with_x != no
  17613. if test "$have_x" != yes; then
  17614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17615. $as_echo "$have_x" >&6; }
  17616. no_x=yes
  17617. else
  17618. # If each of the values was on the command line, it overrides each guess.
  17619. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17620. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17621. # Update the cache value to reflect the command line values.
  17622. ac_cv_have_x="have_x=yes\
  17623. ac_x_includes='$x_includes'\
  17624. ac_x_libraries='$x_libraries'"
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17626. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17627. fi
  17628. if test "$no_x" = yes; then
  17629. # Not all programs may use this symbol, but it does not hurt to define it.
  17630. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17631. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17632. else
  17633. if test -n "$x_includes"; then
  17634. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17635. fi
  17636. # It would also be nice to do this for all -L options, not just this one.
  17637. if test -n "$x_libraries"; then
  17638. X_LIBS="$X_LIBS -L$x_libraries"
  17639. # For Solaris; some versions of Sun CC require a space after -R and
  17640. # others require no space. Words are not sufficient . . . .
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17642. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17643. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17644. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17645. ac_c_werror_flag=yes
  17646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17647. /* end confdefs.h. */
  17648. int
  17649. main ()
  17650. {
  17651. ;
  17652. return 0;
  17653. }
  17654. _ACEOF
  17655. if ac_fn_c_try_link "$LINENO"; then :
  17656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17657. $as_echo "no" >&6; }
  17658. X_LIBS="$X_LIBS -R$x_libraries"
  17659. else
  17660. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17662. /* end confdefs.h. */
  17663. int
  17664. main ()
  17665. {
  17666. ;
  17667. return 0;
  17668. }
  17669. _ACEOF
  17670. if ac_fn_c_try_link "$LINENO"; then :
  17671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17672. $as_echo "yes" >&6; }
  17673. X_LIBS="$X_LIBS -R $x_libraries"
  17674. else
  17675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17676. $as_echo "neither works" >&6; }
  17677. fi
  17678. rm -f core conftest.err conftest.$ac_objext \
  17679. conftest$ac_exeext conftest.$ac_ext
  17680. fi
  17681. rm -f core conftest.err conftest.$ac_objext \
  17682. conftest$ac_exeext conftest.$ac_ext
  17683. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17684. LIBS=$ac_xsave_LIBS
  17685. fi
  17686. # Check for system-dependent libraries X programs must link with.
  17687. # Do this before checking for the system-independent R6 libraries
  17688. # (-lICE), since we may need -lsocket or whatever for X linking.
  17689. if test "$ISC" = yes; then
  17690. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17691. else
  17692. # Martyn Johnson says this is needed for Ultrix, if the X
  17693. # libraries were built with DECnet support. And Karl Berry says
  17694. # the Alpha needs dnet_stub (dnet does not exist).
  17695. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17697. /* end confdefs.h. */
  17698. /* Override any GCC internal prototype to avoid an error.
  17699. Use char because int might match the return type of a GCC
  17700. builtin and then its argument prototype would still apply. */
  17701. #ifdef __cplusplus
  17702. extern "C"
  17703. #endif
  17704. char XOpenDisplay ();
  17705. int
  17706. main ()
  17707. {
  17708. return XOpenDisplay ();
  17709. ;
  17710. return 0;
  17711. }
  17712. _ACEOF
  17713. if ac_fn_c_try_link "$LINENO"; then :
  17714. else
  17715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17716. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17717. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17718. $as_echo_n "(cached) " >&6
  17719. else
  17720. ac_check_lib_save_LIBS=$LIBS
  17721. LIBS="-ldnet $LIBS"
  17722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17723. /* end confdefs.h. */
  17724. /* Override any GCC internal prototype to avoid an error.
  17725. Use char because int might match the return type of a GCC
  17726. builtin and then its argument prototype would still apply. */
  17727. #ifdef __cplusplus
  17728. extern "C"
  17729. #endif
  17730. char dnet_ntoa ();
  17731. int
  17732. main ()
  17733. {
  17734. return dnet_ntoa ();
  17735. ;
  17736. return 0;
  17737. }
  17738. _ACEOF
  17739. if ac_fn_c_try_link "$LINENO"; then :
  17740. ac_cv_lib_dnet_dnet_ntoa=yes
  17741. else
  17742. ac_cv_lib_dnet_dnet_ntoa=no
  17743. fi
  17744. rm -f core conftest.err conftest.$ac_objext \
  17745. conftest$ac_exeext conftest.$ac_ext
  17746. LIBS=$ac_check_lib_save_LIBS
  17747. fi
  17748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17749. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17750. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17751. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17752. fi
  17753. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17755. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17756. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17757. $as_echo_n "(cached) " >&6
  17758. else
  17759. ac_check_lib_save_LIBS=$LIBS
  17760. LIBS="-ldnet_stub $LIBS"
  17761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17762. /* end confdefs.h. */
  17763. /* Override any GCC internal prototype to avoid an error.
  17764. Use char because int might match the return type of a GCC
  17765. builtin and then its argument prototype would still apply. */
  17766. #ifdef __cplusplus
  17767. extern "C"
  17768. #endif
  17769. char dnet_ntoa ();
  17770. int
  17771. main ()
  17772. {
  17773. return dnet_ntoa ();
  17774. ;
  17775. return 0;
  17776. }
  17777. _ACEOF
  17778. if ac_fn_c_try_link "$LINENO"; then :
  17779. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17780. else
  17781. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17782. fi
  17783. rm -f core conftest.err conftest.$ac_objext \
  17784. conftest$ac_exeext conftest.$ac_ext
  17785. LIBS=$ac_check_lib_save_LIBS
  17786. fi
  17787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17788. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17789. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17790. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17791. fi
  17792. fi
  17793. fi
  17794. rm -f core conftest.err conftest.$ac_objext \
  17795. conftest$ac_exeext conftest.$ac_ext
  17796. LIBS="$ac_xsave_LIBS"
  17797. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17798. # to get the SysV transport functions.
  17799. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17800. # needs -lnsl.
  17801. # The nsl library prevents programs from opening the X display
  17802. # on Irix 5.2, according to T.E. Dickey.
  17803. # The functions gethostbyname, getservbyname, and inet_addr are
  17804. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17805. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17806. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17807. fi
  17808. if test $ac_cv_func_gethostbyname = no; then
  17809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17810. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17811. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17812. $as_echo_n "(cached) " >&6
  17813. else
  17814. ac_check_lib_save_LIBS=$LIBS
  17815. LIBS="-lnsl $LIBS"
  17816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17817. /* end confdefs.h. */
  17818. /* Override any GCC internal prototype to avoid an error.
  17819. Use char because int might match the return type of a GCC
  17820. builtin and then its argument prototype would still apply. */
  17821. #ifdef __cplusplus
  17822. extern "C"
  17823. #endif
  17824. char gethostbyname ();
  17825. int
  17826. main ()
  17827. {
  17828. return gethostbyname ();
  17829. ;
  17830. return 0;
  17831. }
  17832. _ACEOF
  17833. if ac_fn_c_try_link "$LINENO"; then :
  17834. ac_cv_lib_nsl_gethostbyname=yes
  17835. else
  17836. ac_cv_lib_nsl_gethostbyname=no
  17837. fi
  17838. rm -f core conftest.err conftest.$ac_objext \
  17839. conftest$ac_exeext conftest.$ac_ext
  17840. LIBS=$ac_check_lib_save_LIBS
  17841. fi
  17842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17843. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17844. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17845. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17846. fi
  17847. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17849. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17850. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17851. $as_echo_n "(cached) " >&6
  17852. else
  17853. ac_check_lib_save_LIBS=$LIBS
  17854. LIBS="-lbsd $LIBS"
  17855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17856. /* end confdefs.h. */
  17857. /* Override any GCC internal prototype to avoid an error.
  17858. Use char because int might match the return type of a GCC
  17859. builtin and then its argument prototype would still apply. */
  17860. #ifdef __cplusplus
  17861. extern "C"
  17862. #endif
  17863. char gethostbyname ();
  17864. int
  17865. main ()
  17866. {
  17867. return gethostbyname ();
  17868. ;
  17869. return 0;
  17870. }
  17871. _ACEOF
  17872. if ac_fn_c_try_link "$LINENO"; then :
  17873. ac_cv_lib_bsd_gethostbyname=yes
  17874. else
  17875. ac_cv_lib_bsd_gethostbyname=no
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext \
  17878. conftest$ac_exeext conftest.$ac_ext
  17879. LIBS=$ac_check_lib_save_LIBS
  17880. fi
  17881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17882. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17883. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17884. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17885. fi
  17886. fi
  17887. fi
  17888. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17889. # socket/setsockopt and other routines are undefined under SCO ODT
  17890. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17891. # on later versions), says Simon Leinen: it contains gethostby*
  17892. # variants that don't use the name server (or something). -lsocket
  17893. # must be given before -lnsl if both are needed. We assume that
  17894. # if connect needs -lnsl, so does gethostbyname.
  17895. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17896. if test "x$ac_cv_func_connect" = xyes; then :
  17897. fi
  17898. if test $ac_cv_func_connect = no; then
  17899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17900. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17901. if ${ac_cv_lib_socket_connect+:} false; then :
  17902. $as_echo_n "(cached) " >&6
  17903. else
  17904. ac_check_lib_save_LIBS=$LIBS
  17905. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17907. /* end confdefs.h. */
  17908. /* Override any GCC internal prototype to avoid an error.
  17909. Use char because int might match the return type of a GCC
  17910. builtin and then its argument prototype would still apply. */
  17911. #ifdef __cplusplus
  17912. extern "C"
  17913. #endif
  17914. char connect ();
  17915. int
  17916. main ()
  17917. {
  17918. return connect ();
  17919. ;
  17920. return 0;
  17921. }
  17922. _ACEOF
  17923. if ac_fn_c_try_link "$LINENO"; then :
  17924. ac_cv_lib_socket_connect=yes
  17925. else
  17926. ac_cv_lib_socket_connect=no
  17927. fi
  17928. rm -f core conftest.err conftest.$ac_objext \
  17929. conftest$ac_exeext conftest.$ac_ext
  17930. LIBS=$ac_check_lib_save_LIBS
  17931. fi
  17932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17933. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17934. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17935. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17936. fi
  17937. fi
  17938. # Guillermo Gomez says -lposix is necessary on A/UX.
  17939. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17940. if test "x$ac_cv_func_remove" = xyes; then :
  17941. fi
  17942. if test $ac_cv_func_remove = no; then
  17943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17944. $as_echo_n "checking for remove in -lposix... " >&6; }
  17945. if ${ac_cv_lib_posix_remove+:} false; then :
  17946. $as_echo_n "(cached) " >&6
  17947. else
  17948. ac_check_lib_save_LIBS=$LIBS
  17949. LIBS="-lposix $LIBS"
  17950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17951. /* end confdefs.h. */
  17952. /* Override any GCC internal prototype to avoid an error.
  17953. Use char because int might match the return type of a GCC
  17954. builtin and then its argument prototype would still apply. */
  17955. #ifdef __cplusplus
  17956. extern "C"
  17957. #endif
  17958. char remove ();
  17959. int
  17960. main ()
  17961. {
  17962. return remove ();
  17963. ;
  17964. return 0;
  17965. }
  17966. _ACEOF
  17967. if ac_fn_c_try_link "$LINENO"; then :
  17968. ac_cv_lib_posix_remove=yes
  17969. else
  17970. ac_cv_lib_posix_remove=no
  17971. fi
  17972. rm -f core conftest.err conftest.$ac_objext \
  17973. conftest$ac_exeext conftest.$ac_ext
  17974. LIBS=$ac_check_lib_save_LIBS
  17975. fi
  17976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17977. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17978. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17979. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17980. fi
  17981. fi
  17982. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17983. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17984. if test "x$ac_cv_func_shmat" = xyes; then :
  17985. fi
  17986. if test $ac_cv_func_shmat = no; then
  17987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17988. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17989. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17990. $as_echo_n "(cached) " >&6
  17991. else
  17992. ac_check_lib_save_LIBS=$LIBS
  17993. LIBS="-lipc $LIBS"
  17994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17995. /* end confdefs.h. */
  17996. /* Override any GCC internal prototype to avoid an error.
  17997. Use char because int might match the return type of a GCC
  17998. builtin and then its argument prototype would still apply. */
  17999. #ifdef __cplusplus
  18000. extern "C"
  18001. #endif
  18002. char shmat ();
  18003. int
  18004. main ()
  18005. {
  18006. return shmat ();
  18007. ;
  18008. return 0;
  18009. }
  18010. _ACEOF
  18011. if ac_fn_c_try_link "$LINENO"; then :
  18012. ac_cv_lib_ipc_shmat=yes
  18013. else
  18014. ac_cv_lib_ipc_shmat=no
  18015. fi
  18016. rm -f core conftest.err conftest.$ac_objext \
  18017. conftest$ac_exeext conftest.$ac_ext
  18018. LIBS=$ac_check_lib_save_LIBS
  18019. fi
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18021. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18022. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18023. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18024. fi
  18025. fi
  18026. fi
  18027. # Check for libraries that X11R6 Xt/Xaw programs need.
  18028. ac_save_LDFLAGS=$LDFLAGS
  18029. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18030. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18031. # check for ICE first), but we must link in the order -lSM -lICE or
  18032. # we get undefined symbols. So assume we have SM if we have ICE.
  18033. # These have to be linked with before -lX11, unlike the other
  18034. # libraries we check for below, so use a different variable.
  18035. # John Interrante, Karl Berry
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18037. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18038. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18039. $as_echo_n "(cached) " >&6
  18040. else
  18041. ac_check_lib_save_LIBS=$LIBS
  18042. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18044. /* end confdefs.h. */
  18045. /* Override any GCC internal prototype to avoid an error.
  18046. Use char because int might match the return type of a GCC
  18047. builtin and then its argument prototype would still apply. */
  18048. #ifdef __cplusplus
  18049. extern "C"
  18050. #endif
  18051. char IceConnectionNumber ();
  18052. int
  18053. main ()
  18054. {
  18055. return IceConnectionNumber ();
  18056. ;
  18057. return 0;
  18058. }
  18059. _ACEOF
  18060. if ac_fn_c_try_link "$LINENO"; then :
  18061. ac_cv_lib_ICE_IceConnectionNumber=yes
  18062. else
  18063. ac_cv_lib_ICE_IceConnectionNumber=no
  18064. fi
  18065. rm -f core conftest.err conftest.$ac_objext \
  18066. conftest$ac_exeext conftest.$ac_ext
  18067. LIBS=$ac_check_lib_save_LIBS
  18068. fi
  18069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18070. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18071. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18072. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18073. fi
  18074. LDFLAGS=$ac_save_LDFLAGS
  18075. fi
  18076. if test x$have_x = xyes; then
  18077. # Check whether --enable-x11-shared was given.
  18078. if test "${enable_x11_shared+set}" = set; then :
  18079. enableval=$enable_x11_shared;
  18080. else
  18081. enable_x11_shared=maybe
  18082. fi
  18083. case "$host" in
  18084. *-*-darwin*)
  18085. # Apple now puts this in /opt/X11
  18086. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18087. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18088. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18089. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18090. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18091. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18092. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18093. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18094. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18095. ;;
  18096. *-*-openbsd*)
  18097. x11_lib='libX11.so'
  18098. x11ext_lib='libXext.so'
  18099. xcursor_lib='libXcursor.so'
  18100. xinerama_lib='libXinerama.so'
  18101. xinput_lib='libXi.so'
  18102. xrandr_lib='libXrandr.so'
  18103. xrender_lib='libXrender.so'
  18104. xss_lib='libXss.so'
  18105. xvidmode_lib='libXxf86vm.so'
  18106. ;;
  18107. *)
  18108. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18109. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18110. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18111. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18112. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18113. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18114. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18115. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18116. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18117. ;;
  18118. esac
  18119. if test x$ac_cv_func_shmat != xyes; then
  18120. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18121. fi
  18122. CFLAGS="$CFLAGS $X_CFLAGS"
  18123. LDFLAGS="$LDFLAGS $X_LIBS"
  18124. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18125. #include <X11/Xproto.h>
  18126. "
  18127. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18128. have_xext_h_hdr=yes
  18129. else
  18130. have_xext_h_hdr=no
  18131. fi
  18132. if test x$have_xext_h_hdr != xyes; then
  18133. as_fn_error $? "
  18134. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18135. " "$LINENO" 5
  18136. fi
  18137. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18138. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18139. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18140. # Needed so SDL applications can include SDL_syswm.h
  18141. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18142. if test x$enable_x11_shared = xmaybe; then
  18143. enable_x11_shared=yes
  18144. fi
  18145. if test x$have_loadso != xyes && \
  18146. test x$enable_x11_shared = xyes; then
  18147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18148. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18149. enable_x11_shared=no
  18150. fi
  18151. if test x$have_loadso = xyes && \
  18152. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18153. echo "-- dynamic libX11 -> $x11_lib"
  18154. echo "-- dynamic libX11ext -> $x11ext_lib"
  18155. cat >>confdefs.h <<_ACEOF
  18156. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18157. _ACEOF
  18158. cat >>confdefs.h <<_ACEOF
  18159. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18160. _ACEOF
  18161. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18162. else
  18163. enable_x11_shared=no
  18164. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18165. SUMMARY_video="${SUMMARY_video} x11"
  18166. fi
  18167. have_video=yes
  18168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  18169. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  18170. have_const_param_XextAddDisplay=no
  18171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18172. /* end confdefs.h. */
  18173. #include <X11/Xlib.h>
  18174. #include <X11/Xproto.h>
  18175. #include <X11/extensions/Xext.h>
  18176. #include <X11/extensions/extutil.h>
  18177. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  18178. int
  18179. main ()
  18180. {
  18181. ;
  18182. return 0;
  18183. }
  18184. _ACEOF
  18185. if ac_fn_c_try_compile "$LINENO"; then :
  18186. have_const_param_XextAddDisplay=yes
  18187. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  18188. fi
  18189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  18191. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18193. $as_echo_n "checking for XGenericEvent... " >&6; }
  18194. have_XGenericEvent=no
  18195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18196. /* end confdefs.h. */
  18197. #include <X11/Xlib.h>
  18198. int
  18199. main ()
  18200. {
  18201. Display *display;
  18202. XEvent event;
  18203. XGenericEventCookie *cookie = &event.xcookie;
  18204. XNextEvent(display, &event);
  18205. XGetEventData(display, cookie);
  18206. XFreeEventData(display, cookie);
  18207. ;
  18208. return 0;
  18209. }
  18210. _ACEOF
  18211. if ac_fn_c_try_compile "$LINENO"; then :
  18212. have_XGenericEvent=yes
  18213. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18214. fi
  18215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18217. $as_echo "$have_XGenericEvent" >&6; }
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18219. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18220. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18221. $as_echo_n "(cached) " >&6
  18222. else
  18223. ac_check_lib_save_LIBS=$LIBS
  18224. LIBS="-lX11 $LIBS"
  18225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18226. /* end confdefs.h. */
  18227. /* Override any GCC internal prototype to avoid an error.
  18228. Use char because int might match the return type of a GCC
  18229. builtin and then its argument prototype would still apply. */
  18230. #ifdef __cplusplus
  18231. extern "C"
  18232. #endif
  18233. char XkbKeycodeToKeysym ();
  18234. int
  18235. main ()
  18236. {
  18237. return XkbKeycodeToKeysym ();
  18238. ;
  18239. return 0;
  18240. }
  18241. _ACEOF
  18242. if ac_fn_c_try_link "$LINENO"; then :
  18243. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18244. else
  18245. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18246. fi
  18247. rm -f core conftest.err conftest.$ac_objext \
  18248. conftest$ac_exeext conftest.$ac_ext
  18249. LIBS=$ac_check_lib_save_LIBS
  18250. fi
  18251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18252. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18253. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18254. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18255. fi
  18256. # Check whether --enable-video-x11-xcursor was given.
  18257. if test "${enable_video_x11_xcursor+set}" = set; then :
  18258. enableval=$enable_video_x11_xcursor;
  18259. else
  18260. enable_video_x11_xcursor=yes
  18261. fi
  18262. if test x$enable_video_x11_xcursor = xyes; then
  18263. definitely_enable_video_x11_xcursor=no
  18264. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18265. "
  18266. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18267. have_xcursor_h_hdr=yes
  18268. else
  18269. have_xcursor_h_hdr=no
  18270. fi
  18271. if test x$have_xcursor_h_hdr = xyes; then
  18272. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18273. echo "-- dynamic libXcursor -> $xcursor_lib"
  18274. cat >>confdefs.h <<_ACEOF
  18275. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18276. _ACEOF
  18277. definitely_enable_video_x11_xcursor=yes
  18278. else
  18279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18280. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18281. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18282. $as_echo_n "(cached) " >&6
  18283. else
  18284. ac_check_lib_save_LIBS=$LIBS
  18285. LIBS="-lXcursor $LIBS"
  18286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. /* Override any GCC internal prototype to avoid an error.
  18289. Use char because int might match the return type of a GCC
  18290. builtin and then its argument prototype would still apply. */
  18291. #ifdef __cplusplus
  18292. extern "C"
  18293. #endif
  18294. char XcursorImageCreate ();
  18295. int
  18296. main ()
  18297. {
  18298. return XcursorImageCreate ();
  18299. ;
  18300. return 0;
  18301. }
  18302. _ACEOF
  18303. if ac_fn_c_try_link "$LINENO"; then :
  18304. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18305. else
  18306. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18307. fi
  18308. rm -f core conftest.err conftest.$ac_objext \
  18309. conftest$ac_exeext conftest.$ac_ext
  18310. LIBS=$ac_check_lib_save_LIBS
  18311. fi
  18312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18313. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18314. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18315. have_xcursor_lib=yes
  18316. fi
  18317. if test x$have_xcursor_lib = xyes ; then
  18318. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18319. definitely_enable_video_x11_xcursor=yes
  18320. fi
  18321. fi
  18322. fi
  18323. fi
  18324. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18325. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18326. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18327. fi
  18328. # Check whether --enable-video-x11-xdbe was given.
  18329. if test "${enable_video_x11_xdbe+set}" = set; then :
  18330. enableval=$enable_video_x11_xdbe;
  18331. else
  18332. enable_video_x11_xdbe=yes
  18333. fi
  18334. if test x$enable_video_x11_xdbe = xyes; then
  18335. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18336. "
  18337. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18338. have_dbe_h_hdr=yes
  18339. else
  18340. have_dbe_h_hdr=no
  18341. fi
  18342. if test x$have_dbe_h_hdr = xyes; then
  18343. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18344. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18345. fi
  18346. fi
  18347. # Check whether --enable-video-x11-xinerama was given.
  18348. if test "${enable_video_x11_xinerama+set}" = set; then :
  18349. enableval=$enable_video_x11_xinerama;
  18350. else
  18351. enable_video_x11_xinerama=yes
  18352. fi
  18353. if test x$enable_video_x11_xinerama = xyes; then
  18354. definitely_enable_video_x11_xinerama=no
  18355. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18356. "
  18357. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18358. have_xinerama_h_hdr=yes
  18359. else
  18360. have_xinerama_h_hdr=no
  18361. fi
  18362. if test x$have_xinerama_h_hdr = xyes; then
  18363. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18364. echo "-- dynamic libXinerama -> $xinerama_lib"
  18365. cat >>confdefs.h <<_ACEOF
  18366. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18367. _ACEOF
  18368. definitely_enable_video_x11_xinerama=yes
  18369. else
  18370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18371. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18372. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18373. $as_echo_n "(cached) " >&6
  18374. else
  18375. ac_check_lib_save_LIBS=$LIBS
  18376. LIBS="-lXinerama $LIBS"
  18377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18378. /* end confdefs.h. */
  18379. /* Override any GCC internal prototype to avoid an error.
  18380. Use char because int might match the return type of a GCC
  18381. builtin and then its argument prototype would still apply. */
  18382. #ifdef __cplusplus
  18383. extern "C"
  18384. #endif
  18385. char XineramaQueryExtension ();
  18386. int
  18387. main ()
  18388. {
  18389. return XineramaQueryExtension ();
  18390. ;
  18391. return 0;
  18392. }
  18393. _ACEOF
  18394. if ac_fn_c_try_link "$LINENO"; then :
  18395. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18396. else
  18397. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18398. fi
  18399. rm -f core conftest.err conftest.$ac_objext \
  18400. conftest$ac_exeext conftest.$ac_ext
  18401. LIBS=$ac_check_lib_save_LIBS
  18402. fi
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18404. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18405. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18406. have_xinerama_lib=yes
  18407. fi
  18408. if test x$have_xinerama_lib = xyes ; then
  18409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18410. definitely_enable_video_x11_xinerama=yes
  18411. fi
  18412. fi
  18413. fi
  18414. fi
  18415. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18416. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18417. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18418. fi
  18419. # Check whether --enable-video-x11-xinput was given.
  18420. if test "${enable_video_x11_xinput+set}" = set; then :
  18421. enableval=$enable_video_x11_xinput;
  18422. else
  18423. enable_video_x11_xinput=yes
  18424. fi
  18425. if test x$enable_video_x11_xinput = xyes; then
  18426. definitely_enable_video_x11_xinput=no
  18427. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18428. "
  18429. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18430. have_xinput_h_hdr=yes
  18431. else
  18432. have_xinput_h_hdr=no
  18433. fi
  18434. if test x$have_xinput_h_hdr = xyes; then
  18435. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18436. echo "-- dynamic libXi -> $xinput_lib"
  18437. cat >>confdefs.h <<_ACEOF
  18438. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18439. _ACEOF
  18440. definitely_enable_video_x11_xinput=yes
  18441. else
  18442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18443. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18444. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18445. $as_echo_n "(cached) " >&6
  18446. else
  18447. ac_check_lib_save_LIBS=$LIBS
  18448. LIBS="-lXi $LIBS"
  18449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18450. /* end confdefs.h. */
  18451. /* Override any GCC internal prototype to avoid an error.
  18452. Use char because int might match the return type of a GCC
  18453. builtin and then its argument prototype would still apply. */
  18454. #ifdef __cplusplus
  18455. extern "C"
  18456. #endif
  18457. char XOpenDevice ();
  18458. int
  18459. main ()
  18460. {
  18461. return XOpenDevice ();
  18462. ;
  18463. return 0;
  18464. }
  18465. _ACEOF
  18466. if ac_fn_c_try_link "$LINENO"; then :
  18467. ac_cv_lib_Xi_XOpenDevice=yes
  18468. else
  18469. ac_cv_lib_Xi_XOpenDevice=no
  18470. fi
  18471. rm -f core conftest.err conftest.$ac_objext \
  18472. conftest$ac_exeext conftest.$ac_ext
  18473. LIBS=$ac_check_lib_save_LIBS
  18474. fi
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18476. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18477. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18478. have_xinput_lib=yes
  18479. fi
  18480. if test x$have_xinput_lib = xyes ; then
  18481. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18482. definitely_enable_video_x11_xinput=yes
  18483. fi
  18484. fi
  18485. fi
  18486. fi
  18487. if test x$definitely_enable_video_x11_xinput = xyes; then
  18488. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18489. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18491. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18492. have_xinput2_multitouch=no
  18493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18494. /* end confdefs.h. */
  18495. #include <X11/Xlib.h>
  18496. #include <X11/Xproto.h>
  18497. #include <X11/extensions/XInput2.h>
  18498. int
  18499. main ()
  18500. {
  18501. int event_type = XI_TouchBegin;
  18502. XITouchClassInfo *t;
  18503. ;
  18504. return 0;
  18505. }
  18506. _ACEOF
  18507. if ac_fn_c_try_compile "$LINENO"; then :
  18508. have_xinput2_multitouch=yes
  18509. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18510. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18511. fi
  18512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18514. $as_echo "$have_xinput2_multitouch" >&6; }
  18515. fi
  18516. # Check whether --enable-video-x11-xrandr was given.
  18517. if test "${enable_video_x11_xrandr+set}" = set; then :
  18518. enableval=$enable_video_x11_xrandr;
  18519. else
  18520. enable_video_x11_xrandr=yes
  18521. fi
  18522. if test x$enable_video_x11_xrandr = xyes; then
  18523. definitely_enable_video_x11_xrandr=no
  18524. have_xrandr_h_hdr=no
  18525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18526. /* end confdefs.h. */
  18527. #include <X11/Xlib.h>
  18528. #include <X11/extensions/Xrandr.h>
  18529. int
  18530. main ()
  18531. {
  18532. XRRScreenResources *res = NULL;
  18533. ;
  18534. return 0;
  18535. }
  18536. _ACEOF
  18537. if ac_fn_c_try_compile "$LINENO"; then :
  18538. have_xrandr_h_hdr=yes
  18539. fi
  18540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18541. if test x$have_xrandr_h_hdr = xyes; then
  18542. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18543. echo "-- dynamic libXrandr -> $xrandr_lib"
  18544. cat >>confdefs.h <<_ACEOF
  18545. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18546. _ACEOF
  18547. definitely_enable_video_x11_xrandr=yes
  18548. else
  18549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18550. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18551. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18552. $as_echo_n "(cached) " >&6
  18553. else
  18554. ac_check_lib_save_LIBS=$LIBS
  18555. LIBS="-lXrandr $LIBS"
  18556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18557. /* end confdefs.h. */
  18558. /* Override any GCC internal prototype to avoid an error.
  18559. Use char because int might match the return type of a GCC
  18560. builtin and then its argument prototype would still apply. */
  18561. #ifdef __cplusplus
  18562. extern "C"
  18563. #endif
  18564. char XRRQueryExtension ();
  18565. int
  18566. main ()
  18567. {
  18568. return XRRQueryExtension ();
  18569. ;
  18570. return 0;
  18571. }
  18572. _ACEOF
  18573. if ac_fn_c_try_link "$LINENO"; then :
  18574. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18575. else
  18576. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18577. fi
  18578. rm -f core conftest.err conftest.$ac_objext \
  18579. conftest$ac_exeext conftest.$ac_ext
  18580. LIBS=$ac_check_lib_save_LIBS
  18581. fi
  18582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18583. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18584. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18585. have_xrandr_lib=yes
  18586. fi
  18587. if test x$have_xrandr_lib = xyes ; then
  18588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18589. definitely_enable_video_x11_xrandr=yes
  18590. fi
  18591. fi
  18592. fi
  18593. fi
  18594. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18595. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18596. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18597. fi
  18598. # Check whether --enable-video-x11-scrnsaver was given.
  18599. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18600. enableval=$enable_video_x11_scrnsaver;
  18601. else
  18602. enable_video_x11_scrnsaver=yes
  18603. fi
  18604. if test x$enable_video_x11_scrnsaver = xyes; then
  18605. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18606. "
  18607. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18608. have_scrnsaver_h_hdr=yes
  18609. else
  18610. have_scrnsaver_h_hdr=no
  18611. fi
  18612. if test x$have_scrnsaver_h_hdr = xyes; then
  18613. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18614. echo "-- dynamic libXss -> $xss_lib"
  18615. cat >>confdefs.h <<_ACEOF
  18616. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18617. _ACEOF
  18618. definitely_enable_video_x11_scrnsaver=yes
  18619. else
  18620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18621. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18622. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18623. $as_echo_n "(cached) " >&6
  18624. else
  18625. ac_check_lib_save_LIBS=$LIBS
  18626. LIBS="-lXss $LIBS"
  18627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18628. /* end confdefs.h. */
  18629. /* Override any GCC internal prototype to avoid an error.
  18630. Use char because int might match the return type of a GCC
  18631. builtin and then its argument prototype would still apply. */
  18632. #ifdef __cplusplus
  18633. extern "C"
  18634. #endif
  18635. char XScreenSaverSuspend ();
  18636. int
  18637. main ()
  18638. {
  18639. return XScreenSaverSuspend ();
  18640. ;
  18641. return 0;
  18642. }
  18643. _ACEOF
  18644. if ac_fn_c_try_link "$LINENO"; then :
  18645. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18646. else
  18647. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18648. fi
  18649. rm -f core conftest.err conftest.$ac_objext \
  18650. conftest$ac_exeext conftest.$ac_ext
  18651. LIBS=$ac_check_lib_save_LIBS
  18652. fi
  18653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18654. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18655. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18656. have_xss_lib=yes
  18657. fi
  18658. if test x$have_xss_lib = xyes ; then
  18659. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18660. definitely_enable_video_x11_scrnsaver=yes
  18661. fi
  18662. fi
  18663. fi
  18664. fi
  18665. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18666. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18667. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18668. fi
  18669. # Check whether --enable-video-x11-xshape was given.
  18670. if test "${enable_video_x11_xshape+set}" = set; then :
  18671. enableval=$enable_video_x11_xshape;
  18672. else
  18673. enable_video_x11_xshape=yes
  18674. fi
  18675. if test x$enable_video_x11_xshape = xyes; then
  18676. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18677. "
  18678. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18679. have_shape_h_hdr=yes
  18680. else
  18681. have_shape_h_hdr=no
  18682. fi
  18683. if test x$have_shape_h_hdr = xyes; then
  18684. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18685. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18686. fi
  18687. fi
  18688. # Check whether --enable-video-x11-vm was given.
  18689. if test "${enable_video_x11_vm+set}" = set; then :
  18690. enableval=$enable_video_x11_vm;
  18691. else
  18692. enable_video_x11_vm=yes
  18693. fi
  18694. if test x$enable_video_x11_vm = xyes; then
  18695. definitely_enable_video_x11_vm=no
  18696. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18697. "
  18698. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18699. have_vm_h_hdr=yes
  18700. else
  18701. have_vm_h_hdr=no
  18702. fi
  18703. if test x$have_vm_h_hdr = xyes; then
  18704. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18705. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18706. cat >>confdefs.h <<_ACEOF
  18707. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18708. _ACEOF
  18709. definitely_enable_video_x11_vm=yes
  18710. else
  18711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18712. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18713. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18714. $as_echo_n "(cached) " >&6
  18715. else
  18716. ac_check_lib_save_LIBS=$LIBS
  18717. LIBS="-lXxf86vm $LIBS"
  18718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18719. /* end confdefs.h. */
  18720. /* Override any GCC internal prototype to avoid an error.
  18721. Use char because int might match the return type of a GCC
  18722. builtin and then its argument prototype would still apply. */
  18723. #ifdef __cplusplus
  18724. extern "C"
  18725. #endif
  18726. char XF86VidModeQueryVersion ();
  18727. int
  18728. main ()
  18729. {
  18730. return XF86VidModeQueryVersion ();
  18731. ;
  18732. return 0;
  18733. }
  18734. _ACEOF
  18735. if ac_fn_c_try_link "$LINENO"; then :
  18736. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18737. else
  18738. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18739. fi
  18740. rm -f core conftest.err conftest.$ac_objext \
  18741. conftest$ac_exeext conftest.$ac_ext
  18742. LIBS=$ac_check_lib_save_LIBS
  18743. fi
  18744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18745. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18746. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18747. have_vm_lib=yes
  18748. fi
  18749. if test x$have_vm_lib = xyes ; then
  18750. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18751. definitely_enable_video_x11_vm=yes
  18752. fi
  18753. fi
  18754. fi
  18755. fi
  18756. if test x$definitely_enable_video_x11_vm = xyes; then
  18757. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18758. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18759. fi
  18760. fi
  18761. fi
  18762. if test x$have_x != xyes; then
  18763. # Prevent Mesa from including X11 headers
  18764. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18765. fi
  18766. }
  18767. CheckVivanteVideo()
  18768. {
  18769. # Check whether --enable-video-vivante was given.
  18770. if test "${enable_video_vivante+set}" = set; then :
  18771. enableval=$enable_video_vivante;
  18772. else
  18773. enable_video_vivante=yes
  18774. fi
  18775. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18777. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18778. have_vivante_vdk=no
  18779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18780. /* end confdefs.h. */
  18781. #define LINUX
  18782. #define EGL_API_FB
  18783. #include <gc_vdk.h>
  18784. int
  18785. main ()
  18786. {
  18787. ;
  18788. return 0;
  18789. }
  18790. _ACEOF
  18791. if ac_fn_c_try_compile "$LINENO"; then :
  18792. have_vivante_vdk=yes
  18793. fi
  18794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18796. $as_echo "$have_vivante_vdk" >&6; }
  18797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18798. $as_echo_n "checking for Vivante FB API... " >&6; }
  18799. have_vivante_egl=no
  18800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18801. /* end confdefs.h. */
  18802. #define LINUX
  18803. #define EGL_API_FB
  18804. #include <EGL/eglvivante.h>
  18805. int
  18806. main ()
  18807. {
  18808. ;
  18809. return 0;
  18810. }
  18811. _ACEOF
  18812. if ac_fn_c_try_compile "$LINENO"; then :
  18813. have_vivante_egl=yes
  18814. fi
  18815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18817. $as_echo "$have_vivante_egl" >&6; }
  18818. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18819. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18820. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18821. if test x$have_vivante_vdk = xyes; then
  18822. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18824. fi
  18825. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18826. SUMMARY_video="${SUMMARY_video} vivante"
  18827. have_video=yes
  18828. fi
  18829. fi
  18830. }
  18831. CheckHaikuVideo()
  18832. {
  18833. if test x$enable_video = xyes; then
  18834. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18835. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18836. have_video=yes
  18837. SUMMARY_video="${SUMMARY_video} haiku"
  18838. fi
  18839. }
  18840. CheckCOCOA()
  18841. {
  18842. # Check whether --enable-video-cocoa was given.
  18843. if test "${enable_video_cocoa+set}" = set; then :
  18844. enableval=$enable_video_cocoa;
  18845. else
  18846. enable_video_cocoa=yes
  18847. fi
  18848. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18849. save_CFLAGS="$CFLAGS"
  18850. CFLAGS="$CFLAGS -x objective-c"
  18851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18852. $as_echo_n "checking for Cocoa framework... " >&6; }
  18853. have_cocoa=no
  18854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18855. /* end confdefs.h. */
  18856. #import <Cocoa/Cocoa.h>
  18857. int
  18858. main ()
  18859. {
  18860. ;
  18861. return 0;
  18862. }
  18863. _ACEOF
  18864. if ac_fn_c_try_compile "$LINENO"; then :
  18865. have_cocoa=yes
  18866. fi
  18867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18869. $as_echo "$have_cocoa" >&6; }
  18870. CFLAGS="$save_CFLAGS"
  18871. if test x$have_cocoa = xyes; then
  18872. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18873. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18874. SUMMARY_video="${SUMMARY_video} cocoa"
  18875. have_video=yes
  18876. fi
  18877. fi
  18878. }
  18879. CheckMETAL()
  18880. {
  18881. # Check whether --enable-video-metal was given.
  18882. if test "${enable_video_metal+set}" = set; then :
  18883. enableval=$enable_video_metal;
  18884. else
  18885. enable_video_metal=yes
  18886. fi
  18887. # Check whether --enable-render-metal was given.
  18888. if test "${enable_render_metal+set}" = set; then :
  18889. enableval=$enable_render_metal;
  18890. else
  18891. enable_render_metal=yes
  18892. fi
  18893. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18894. save_CFLAGS="$CFLAGS"
  18895. CFLAGS="$CFLAGS -x objective-c"
  18896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18897. $as_echo_n "checking for Metal framework... " >&6; }
  18898. have_metal=no
  18899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18900. /* end confdefs.h. */
  18901. #import <Cocoa/Cocoa.h>
  18902. #import <Metal/Metal.h>
  18903. #import <QuartzCore/CAMetalLayer.h>
  18904. #if TARGET_CPU_X86
  18905. #error Metal doesn't work on this configuration
  18906. #endif
  18907. int
  18908. main ()
  18909. {
  18910. ;
  18911. return 0;
  18912. }
  18913. _ACEOF
  18914. if ac_fn_c_try_compile "$LINENO"; then :
  18915. have_metal=yes
  18916. fi
  18917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18918. CFLAGS="$save_CFLAGS"
  18919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18920. $as_echo "$have_metal" >&6; }
  18921. if test x$have_metal = xyes; then
  18922. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18923. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18924. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18925. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18926. fi
  18927. SUMMARY_video="${SUMMARY_video} metal"
  18928. else
  18929. enable_video_metal=no
  18930. enable_render_metal=no
  18931. fi
  18932. fi
  18933. }
  18934. CheckDirectFB()
  18935. {
  18936. # Check whether --enable-video-directfb was given.
  18937. if test "${enable_video_directfb+set}" = set; then :
  18938. enableval=$enable_video_directfb;
  18939. else
  18940. enable_video_directfb=no
  18941. fi
  18942. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18943. pkg_failed=no
  18944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18945. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18946. if test -n "$DIRECTFB_CFLAGS"; then
  18947. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18948. elif test -n "$PKG_CONFIG"; then
  18949. if test -n "$PKG_CONFIG" && \
  18950. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18951. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18952. ac_status=$?
  18953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18954. test $ac_status = 0; }; then
  18955. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18956. test "x$?" != "x0" && pkg_failed=yes
  18957. else
  18958. pkg_failed=yes
  18959. fi
  18960. else
  18961. pkg_failed=untried
  18962. fi
  18963. if test -n "$DIRECTFB_LIBS"; then
  18964. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18965. elif test -n "$PKG_CONFIG"; then
  18966. if test -n "$PKG_CONFIG" && \
  18967. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18968. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18969. ac_status=$?
  18970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18971. test $ac_status = 0; }; then
  18972. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18973. test "x$?" != "x0" && pkg_failed=yes
  18974. else
  18975. pkg_failed=yes
  18976. fi
  18977. else
  18978. pkg_failed=untried
  18979. fi
  18980. if test $pkg_failed = yes; then
  18981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18982. $as_echo "no" >&6; }
  18983. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18984. _pkg_short_errors_supported=yes
  18985. else
  18986. _pkg_short_errors_supported=no
  18987. fi
  18988. if test $_pkg_short_errors_supported = yes; then
  18989. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18990. else
  18991. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18992. fi
  18993. # Put the nasty error message in config.log where it belongs
  18994. echo "$DIRECTFB_PKG_ERRORS" >&5
  18995. video_directfb=no
  18996. elif test $pkg_failed = untried; then
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18998. $as_echo "no" >&6; }
  18999. video_directfb=no
  19000. else
  19001. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19002. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19004. $as_echo "yes" >&6; }
  19005. video_directfb=yes
  19006. fi
  19007. if test x$video_directfb = xyes; then
  19008. # SuSE 11.1 installs directfb-config without directfb-devel
  19009. save_CPPFLAGS="$CPPFLAGS"
  19010. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19011. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19012. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19013. have_directfb_hdr=yes
  19014. else
  19015. have_directfb_hdr=no
  19016. fi
  19017. CPPFLAGS="$save_CPPFLAGS"
  19018. video_directfb=$have_directfb_hdr
  19019. fi
  19020. if test x$video_directfb = xyes; then
  19021. # Check whether --enable-directfb-shared was given.
  19022. if test "${enable_directfb_shared+set}" = set; then :
  19023. enableval=$enable_directfb_shared;
  19024. else
  19025. enable_directfb_shared=yes
  19026. fi
  19027. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19028. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19029. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19030. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19031. directfb_shared=no
  19032. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19033. if test x$have_loadso != xyes && \
  19034. test x$enable_directfb_shared = xyes; then
  19035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19036. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19037. fi
  19038. if test x$have_loadso = xyes && \
  19039. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19040. directfb_shared=yes
  19041. echo "-- dynamic libdirectfb -> $directfb_lib"
  19042. cat >>confdefs.h <<_ACEOF
  19043. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19044. _ACEOF
  19045. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19046. else
  19047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19048. SUMMARY_video="${SUMMARY_video} directfb"
  19049. fi
  19050. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19051. have_video=yes
  19052. fi
  19053. fi
  19054. }
  19055. CheckKMSDRM()
  19056. {
  19057. # Check whether --enable-video-kmsdrm was given.
  19058. if test "${enable_video_kmsdrm+set}" = set; then :
  19059. enableval=$enable_video_kmsdrm;
  19060. else
  19061. enable_video_kmsdrm=yes
  19062. fi
  19063. if test x$enable_video = xyes && \
  19064. test x$enable_video_kmsdrm = xyes && \
  19065. test x$video_opengl_egl = xyes; then
  19066. video_kmsdrm=no
  19067. pkg_failed=no
  19068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19069. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19070. if test -n "$LIBDRM_CFLAGS"; then
  19071. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19072. elif test -n "$PKG_CONFIG"; then
  19073. if test -n "$PKG_CONFIG" && \
  19074. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19075. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19076. ac_status=$?
  19077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19078. test $ac_status = 0; }; then
  19079. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19080. test "x$?" != "x0" && pkg_failed=yes
  19081. else
  19082. pkg_failed=yes
  19083. fi
  19084. else
  19085. pkg_failed=untried
  19086. fi
  19087. if test -n "$LIBDRM_LIBS"; then
  19088. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19089. elif test -n "$PKG_CONFIG"; then
  19090. if test -n "$PKG_CONFIG" && \
  19091. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19092. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19093. ac_status=$?
  19094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19095. test $ac_status = 0; }; then
  19096. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19097. test "x$?" != "x0" && pkg_failed=yes
  19098. else
  19099. pkg_failed=yes
  19100. fi
  19101. else
  19102. pkg_failed=untried
  19103. fi
  19104. if test $pkg_failed = yes; then
  19105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19106. $as_echo "no" >&6; }
  19107. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19108. _pkg_short_errors_supported=yes
  19109. else
  19110. _pkg_short_errors_supported=no
  19111. fi
  19112. if test $_pkg_short_errors_supported = yes; then
  19113. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19114. else
  19115. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19116. fi
  19117. # Put the nasty error message in config.log where it belongs
  19118. echo "$LIBDRM_PKG_ERRORS" >&5
  19119. libdrm_avail=no
  19120. elif test $pkg_failed = untried; then
  19121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19122. $as_echo "no" >&6; }
  19123. libdrm_avail=no
  19124. else
  19125. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19126. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19128. $as_echo "yes" >&6; }
  19129. libdrm_avail=yes
  19130. fi
  19131. pkg_failed=no
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19133. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19134. if test -n "$LIBGBM_CFLAGS"; then
  19135. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19136. elif test -n "$PKG_CONFIG"; then
  19137. if test -n "$PKG_CONFIG" && \
  19138. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19139. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19140. ac_status=$?
  19141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19142. test $ac_status = 0; }; then
  19143. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19144. test "x$?" != "x0" && pkg_failed=yes
  19145. else
  19146. pkg_failed=yes
  19147. fi
  19148. else
  19149. pkg_failed=untried
  19150. fi
  19151. if test -n "$LIBGBM_LIBS"; then
  19152. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19153. elif test -n "$PKG_CONFIG"; then
  19154. if test -n "$PKG_CONFIG" && \
  19155. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19156. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19157. ac_status=$?
  19158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19159. test $ac_status = 0; }; then
  19160. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19161. test "x$?" != "x0" && pkg_failed=yes
  19162. else
  19163. pkg_failed=yes
  19164. fi
  19165. else
  19166. pkg_failed=untried
  19167. fi
  19168. if test $pkg_failed = yes; then
  19169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19170. $as_echo "no" >&6; }
  19171. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19172. _pkg_short_errors_supported=yes
  19173. else
  19174. _pkg_short_errors_supported=no
  19175. fi
  19176. if test $_pkg_short_errors_supported = yes; then
  19177. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19178. else
  19179. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19180. fi
  19181. # Put the nasty error message in config.log where it belongs
  19182. echo "$LIBGBM_PKG_ERRORS" >&5
  19183. libgbm_avail=no
  19184. elif test $pkg_failed = untried; then
  19185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19186. $as_echo "no" >&6; }
  19187. libgbm_avail=no
  19188. else
  19189. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19190. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19192. $as_echo "yes" >&6; }
  19193. libgbm_avail=yes
  19194. fi
  19195. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19196. video_kmsdrm=yes
  19197. fi
  19198. if test x$video_kmsdrm = xyes; then
  19199. # Check whether --enable-kmsdrm-shared was given.
  19200. if test "${enable_kmsdrm_shared+set}" = set; then :
  19201. enableval=$enable_kmsdrm_shared;
  19202. else
  19203. enable_kmsdrm_shared=yes
  19204. fi
  19205. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19206. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19207. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19209. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19210. kmsdrm_shared=no
  19211. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19212. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19213. if test x$have_loadso != xyes && \
  19214. test x$enable_kmsdrm_shared = xyes; then
  19215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19216. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19217. fi
  19218. if test x$have_loadso = xyes && \
  19219. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19220. kmsdrm_shared=yes
  19221. cat >>confdefs.h <<_ACEOF
  19222. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19223. _ACEOF
  19224. cat >>confdefs.h <<_ACEOF
  19225. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19226. _ACEOF
  19227. cat >>confdefs.h <<_ACEOF
  19228. #define HAVE_KMSDRM_SHARED "TRUE"
  19229. _ACEOF
  19230. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19231. else
  19232. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19233. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19234. fi
  19235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19236. $as_echo "$kmsdrm_shared" >&6; }
  19237. if test x$kmsdrm_shared = xyes; then
  19238. echo "-- dynamic libdrm -> $drm_lib"
  19239. echo "-- dynamic libgmb -> $gbm_lib"
  19240. fi
  19241. have_video=yes
  19242. fi
  19243. fi
  19244. }
  19245. CheckDummyVideo()
  19246. {
  19247. # Check whether --enable-video-dummy was given.
  19248. if test "${enable_video_dummy+set}" = set; then :
  19249. enableval=$enable_video_dummy;
  19250. else
  19251. enable_video_dummy=yes
  19252. fi
  19253. if test x$enable_video_dummy = xyes; then
  19254. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19255. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19256. have_video=yes
  19257. SUMMARY_video="${SUMMARY_video} dummy"
  19258. fi
  19259. }
  19260. CheckQNXVideo()
  19261. {
  19262. if test x$enable_video = xyes; then
  19263. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19264. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19265. have_video=yes
  19266. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19267. SUMMARY_video="${SUMMARY_video} qnx"
  19268. fi
  19269. }
  19270. CheckQNXAudio()
  19271. {
  19272. if test x$enable_audio = xyes; then
  19273. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19274. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19275. have_audio=yes
  19276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19277. SUMMARY_audio="${SUMMARY_audio} qsa"
  19278. fi
  19279. }
  19280. # Check whether --enable-video-opengl was given.
  19281. if test "${enable_video_opengl+set}" = set; then :
  19282. enableval=$enable_video_opengl;
  19283. else
  19284. enable_video_opengl=yes
  19285. fi
  19286. CheckGLX()
  19287. {
  19288. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19290. $as_echo_n "checking for GLX support... " >&6; }
  19291. video_opengl_glx=no
  19292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19293. /* end confdefs.h. */
  19294. #include <GL/glx.h>
  19295. int
  19296. main ()
  19297. {
  19298. ;
  19299. return 0;
  19300. }
  19301. _ACEOF
  19302. if ac_fn_c_try_compile "$LINENO"; then :
  19303. video_opengl_glx=yes
  19304. fi
  19305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19307. $as_echo "$video_opengl_glx" >&6; }
  19308. if test x$video_opengl_glx = xyes; then
  19309. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19310. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19311. fi
  19312. fi
  19313. }
  19314. # Check whether --enable-video-opengles was given.
  19315. if test "${enable_video_opengles+set}" = set; then :
  19316. enableval=$enable_video_opengles;
  19317. else
  19318. enable_video_opengles=yes
  19319. fi
  19320. # Check whether --enable-video-opengles1 was given.
  19321. if test "${enable_video_opengles1+set}" = set; then :
  19322. enableval=$enable_video_opengles1;
  19323. else
  19324. enable_video_opengles1=yes
  19325. fi
  19326. # Check whether --enable-video-opengles2 was given.
  19327. if test "${enable_video_opengles2+set}" = set; then :
  19328. enableval=$enable_video_opengles2;
  19329. else
  19330. enable_video_opengles2=yes
  19331. fi
  19332. CheckEGL()
  19333. {
  19334. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19336. $as_echo_n "checking for EGL support... " >&6; }
  19337. video_opengl_egl=no
  19338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19339. /* end confdefs.h. */
  19340. #define LINUX
  19341. #define EGL_API_FB
  19342. #define MESA_EGL_NO_X11_HEADERS
  19343. #define EGL_NO_X11
  19344. #include <EGL/egl.h>
  19345. #include <EGL/eglext.h>
  19346. int
  19347. main ()
  19348. {
  19349. ;
  19350. return 0;
  19351. }
  19352. _ACEOF
  19353. if ac_fn_c_try_compile "$LINENO"; then :
  19354. video_opengl_egl=yes
  19355. fi
  19356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19358. $as_echo "$video_opengl_egl" >&6; }
  19359. if test x$video_opengl_egl = xyes; then
  19360. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19361. fi
  19362. fi
  19363. }
  19364. CheckOpenGL()
  19365. {
  19366. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19368. $as_echo_n "checking for OpenGL headers... " >&6; }
  19369. video_opengl=no
  19370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19371. /* end confdefs.h. */
  19372. #include <GL/gl.h>
  19373. #include <GL/glext.h>
  19374. int
  19375. main ()
  19376. {
  19377. ;
  19378. return 0;
  19379. }
  19380. _ACEOF
  19381. if ac_fn_c_try_compile "$LINENO"; then :
  19382. video_opengl=yes
  19383. fi
  19384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19386. $as_echo "$video_opengl" >&6; }
  19387. if test x$video_opengl = xyes; then
  19388. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19389. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19390. SUMMARY_video="${SUMMARY_video} opengl"
  19391. fi
  19392. fi
  19393. }
  19394. CheckOpenGLES()
  19395. {
  19396. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19397. if test x$enable_video_opengles1 = xyes; then
  19398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19399. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19400. video_opengles_v1=no
  19401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19402. /* end confdefs.h. */
  19403. #include <GLES/gl.h>
  19404. #include <GLES/glext.h>
  19405. int
  19406. main ()
  19407. {
  19408. ;
  19409. return 0;
  19410. }
  19411. _ACEOF
  19412. if ac_fn_c_try_compile "$LINENO"; then :
  19413. video_opengles_v1=yes
  19414. fi
  19415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19417. $as_echo "$video_opengles_v1" >&6; }
  19418. if test x$video_opengles_v1 = xyes; then
  19419. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19420. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19421. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19422. fi
  19423. fi
  19424. if test x$enable_video_opengles2 = xyes; then
  19425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19426. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19427. video_opengles_v2=no
  19428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19429. /* end confdefs.h. */
  19430. #include <GLES2/gl2.h>
  19431. #include <GLES2/gl2ext.h>
  19432. int
  19433. main ()
  19434. {
  19435. ;
  19436. return 0;
  19437. }
  19438. _ACEOF
  19439. if ac_fn_c_try_compile "$LINENO"; then :
  19440. video_opengles_v2=yes
  19441. fi
  19442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19444. $as_echo "$video_opengles_v2" >&6; }
  19445. if test x$video_opengles_v2 = xyes; then
  19446. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19447. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19448. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19449. fi
  19450. fi
  19451. fi
  19452. }
  19453. CheckWINDOWSGL()
  19454. {
  19455. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19456. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19457. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19458. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19459. SUMMARY_video="${SUMMARY_video} opengl"
  19460. fi
  19461. }
  19462. CheckWINDOWSGLES()
  19463. {
  19464. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19466. $as_echo_n "checking for EGL support... " >&6; }
  19467. video_opengl_egl=no
  19468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19469. /* end confdefs.h. */
  19470. #include <EGL/egl.h>
  19471. int
  19472. main ()
  19473. {
  19474. ;
  19475. return 0;
  19476. }
  19477. _ACEOF
  19478. if ac_fn_c_try_compile "$LINENO"; then :
  19479. video_opengl_egl=yes
  19480. fi
  19481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19483. $as_echo "$video_opengl_egl" >&6; }
  19484. if test x$video_opengl_egl = xyes; then
  19485. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19486. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19487. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19488. fi
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19490. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19491. video_opengles_v2=no
  19492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19493. /* end confdefs.h. */
  19494. #include <GLES2/gl2.h>
  19495. #include <GLES2/gl2ext.h>
  19496. int
  19497. main ()
  19498. {
  19499. ;
  19500. return 0;
  19501. }
  19502. _ACEOF
  19503. if ac_fn_c_try_compile "$LINENO"; then :
  19504. video_opengles_v2=yes
  19505. fi
  19506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19508. $as_echo "$video_opengles_v2" >&6; }
  19509. if test x$video_opengles_v2 = xyes; then
  19510. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19511. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19512. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19513. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19514. fi
  19515. fi
  19516. }
  19517. CheckHaikuGL()
  19518. {
  19519. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19520. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19521. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19522. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19524. SUMMARY_video="${SUMMARY_video} opengl"
  19525. fi
  19526. }
  19527. CheckMacGL()
  19528. {
  19529. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19530. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19531. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19532. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19533. SUMMARY_video="${SUMMARY_video} opengl"
  19534. fi
  19535. }
  19536. CheckMacGLES()
  19537. {
  19538. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19539. video_opengl_egl=yes
  19540. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19541. video_opengles_v2=yes
  19542. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19543. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19544. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19545. fi
  19546. }
  19547. CheckEmscriptenGLES()
  19548. {
  19549. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19551. $as_echo_n "checking for EGL support... " >&6; }
  19552. video_opengl_egl=no
  19553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19554. /* end confdefs.h. */
  19555. #include <EGL/egl.h>
  19556. int
  19557. main ()
  19558. {
  19559. ;
  19560. return 0;
  19561. }
  19562. _ACEOF
  19563. if ac_fn_c_try_compile "$LINENO"; then :
  19564. video_opengl_egl=yes
  19565. fi
  19566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19568. $as_echo "$video_opengl_egl" >&6; }
  19569. if test x$video_opengl_egl = xyes; then
  19570. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19571. fi
  19572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19573. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19574. video_opengles_v2=no
  19575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19576. /* end confdefs.h. */
  19577. #include <GLES2/gl2.h>
  19578. #include <GLES2/gl2ext.h>
  19579. int
  19580. main ()
  19581. {
  19582. ;
  19583. return 0;
  19584. }
  19585. _ACEOF
  19586. if ac_fn_c_try_compile "$LINENO"; then :
  19587. video_opengles_v2=yes
  19588. fi
  19589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19591. $as_echo "$video_opengles_v2" >&6; }
  19592. if test x$video_opengles_v2 = xyes; then
  19593. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19594. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19595. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19596. fi
  19597. fi
  19598. }
  19599. # Check whether --enable-video-vulkan was given.
  19600. if test "${enable_video_vulkan+set}" = set; then :
  19601. enableval=$enable_video_vulkan;
  19602. else
  19603. enable_video_vulkan=yes
  19604. fi
  19605. CheckVulkan()
  19606. {
  19607. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19608. case "$host" in
  19609. *-*-android*)
  19610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19611. /* end confdefs.h. */
  19612. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19613. #error Vulkan doesn't work on this configuration
  19614. #endif
  19615. int
  19616. main ()
  19617. {
  19618. ;
  19619. return 0;
  19620. }
  19621. _ACEOF
  19622. if ac_fn_c_try_compile "$LINENO"; then :
  19623. else
  19624. enable_video_vulkan=no
  19625. fi
  19626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19627. ;;
  19628. *-*-darwin*)
  19629. save_CFLAGS="$CFLAGS"
  19630. CFLAGS="$CFLAGS -x objective-c"
  19631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19632. /* end confdefs.h. */
  19633. #include <Cocoa/Cocoa.h>
  19634. #include <Metal/Metal.h>
  19635. #include <QuartzCore/CAMetalLayer.h>
  19636. #if TARGET_CPU_X86
  19637. #error Vulkan doesn't work on this configuration
  19638. #endif
  19639. int
  19640. main ()
  19641. {
  19642. ;
  19643. return 0;
  19644. }
  19645. _ACEOF
  19646. if ac_fn_c_try_compile "$LINENO"; then :
  19647. else
  19648. enable_video_vulkan=no
  19649. fi
  19650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19651. CFLAGS="$save_CFLAGS"
  19652. ;;
  19653. *)
  19654. ;;
  19655. esac
  19656. if test x$enable_video_vulkan = xno; then
  19657. # For reasons I am totally unable to see, I get an undefined macro error if
  19658. # I put this in the AC_TRY_COMPILE.
  19659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19660. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19661. fi
  19662. fi
  19663. if test x$enable_video_vulkan = xyes; then
  19664. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19665. SUMMARY_video="${SUMMARY_video} vulkan"
  19666. fi
  19667. }
  19668. CheckInputEvents()
  19669. {
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19671. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19672. use_input_events=no
  19673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19674. /* end confdefs.h. */
  19675. #include <linux/input.h>
  19676. int
  19677. main ()
  19678. {
  19679. #ifndef EVIOCGNAME
  19680. #error EVIOCGNAME() ioctl not available
  19681. #endif
  19682. ;
  19683. return 0;
  19684. }
  19685. _ACEOF
  19686. if ac_fn_c_try_compile "$LINENO"; then :
  19687. use_input_events=yes
  19688. fi
  19689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19691. $as_echo "$use_input_events" >&6; }
  19692. if test x$use_input_events = xyes; then
  19693. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19694. SUMMARY_input="${SUMMARY_input} linuxev"
  19695. fi
  19696. }
  19697. CheckInputKD()
  19698. {
  19699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19700. $as_echo_n "checking for Linux kd.h... " >&6; }
  19701. use_input_kd=no
  19702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19703. /* end confdefs.h. */
  19704. #include <linux/kd.h>
  19705. #include <linux/keyboard.h>
  19706. int
  19707. main ()
  19708. {
  19709. struct kbentry kbe;
  19710. kbe.kb_table = KG_CTRL;
  19711. ioctl(0, KDGKBENT, &kbe);
  19712. ;
  19713. return 0;
  19714. }
  19715. _ACEOF
  19716. if ac_fn_c_try_compile "$LINENO"; then :
  19717. use_input_kd=yes
  19718. fi
  19719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19721. $as_echo "$use_input_kd" >&6; }
  19722. if test x$use_input_kd = xyes; then
  19723. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19724. SUMMARY_input="${SUMMARY_input} linuxkd"
  19725. fi
  19726. }
  19727. CheckInputKBIO()
  19728. {
  19729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19730. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19731. use_input_kbio=no
  19732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19733. /* end confdefs.h. */
  19734. #include <sys/kbio.h>
  19735. #include <sys/ioctl.h>
  19736. int
  19737. main ()
  19738. {
  19739. accentmap_t accTable;
  19740. ioctl(0, KDENABIO, 1);
  19741. ;
  19742. return 0;
  19743. }
  19744. _ACEOF
  19745. if ac_fn_c_try_compile "$LINENO"; then :
  19746. use_input_kbio=yes
  19747. fi
  19748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19750. $as_echo "$use_input_kbio" >&6; }
  19751. if test x$use_input_kbio = xyes; then
  19752. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19753. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19754. fi
  19755. }
  19756. CheckInputWSCONS()
  19757. {
  19758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19759. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19760. use_input_wscons=no
  19761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19762. /* end confdefs.h. */
  19763. #include <sys/time.h>
  19764. #include <dev/wscons/wsconsio.h>
  19765. #include <dev/wscons/wsksymdef.h>
  19766. #include <dev/wscons/wsksymvar.h>
  19767. #include <sys/ioctl.h>
  19768. int
  19769. main ()
  19770. {
  19771. struct wskbd_map_data data;
  19772. ioctl(0, WSKBDIO_GETMAP, &data);
  19773. ;
  19774. return 0;
  19775. }
  19776. _ACEOF
  19777. if ac_fn_c_try_compile "$LINENO"; then :
  19778. use_input_wscons=yes
  19779. fi
  19780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19782. $as_echo "$use_input_wscons" >&6; }
  19783. if test x$use_input_wscons = xyes; then
  19784. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19785. SUMMARY_input="${SUMMARY_input} wscons"
  19786. fi
  19787. }
  19788. CheckLibUDev()
  19789. {
  19790. # Check whether --enable-libudev was given.
  19791. if test "${enable_libudev+set}" = set; then :
  19792. enableval=$enable_libudev;
  19793. else
  19794. enable_libudev=yes
  19795. fi
  19796. if test x$enable_libudev = xyes; then
  19797. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19798. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19799. have_libudev_h_hdr=yes
  19800. else
  19801. have_libudev_h_hdr=no
  19802. fi
  19803. if test x$have_libudev_h_hdr = xyes; then
  19804. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19805. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19806. if test x$udev_lib != x; then
  19807. echo "-- dynamic udev -> $udev_lib"
  19808. cat >>confdefs.h <<_ACEOF
  19809. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19810. _ACEOF
  19811. fi
  19812. fi
  19813. fi
  19814. }
  19815. CheckDBus()
  19816. {
  19817. # Check whether --enable-dbus was given.
  19818. if test "${enable_dbus+set}" = set; then :
  19819. enableval=$enable_dbus;
  19820. else
  19821. enable_dbus=yes
  19822. fi
  19823. if test x$enable_dbus = xyes; then
  19824. pkg_failed=no
  19825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19826. $as_echo_n "checking for dbus-1... " >&6; }
  19827. if test -n "$DBUS_CFLAGS"; then
  19828. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19829. elif test -n "$PKG_CONFIG"; then
  19830. if test -n "$PKG_CONFIG" && \
  19831. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19832. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19833. ac_status=$?
  19834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19835. test $ac_status = 0; }; then
  19836. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19837. test "x$?" != "x0" && pkg_failed=yes
  19838. else
  19839. pkg_failed=yes
  19840. fi
  19841. else
  19842. pkg_failed=untried
  19843. fi
  19844. if test -n "$DBUS_LIBS"; then
  19845. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19846. elif test -n "$PKG_CONFIG"; then
  19847. if test -n "$PKG_CONFIG" && \
  19848. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19849. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19850. ac_status=$?
  19851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19852. test $ac_status = 0; }; then
  19853. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19854. test "x$?" != "x0" && pkg_failed=yes
  19855. else
  19856. pkg_failed=yes
  19857. fi
  19858. else
  19859. pkg_failed=untried
  19860. fi
  19861. if test $pkg_failed = yes; then
  19862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19863. $as_echo "no" >&6; }
  19864. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19865. _pkg_short_errors_supported=yes
  19866. else
  19867. _pkg_short_errors_supported=no
  19868. fi
  19869. if test $_pkg_short_errors_supported = yes; then
  19870. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19871. else
  19872. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19873. fi
  19874. # Put the nasty error message in config.log where it belongs
  19875. echo "$DBUS_PKG_ERRORS" >&5
  19876. have_dbus=no
  19877. elif test $pkg_failed = untried; then
  19878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19879. $as_echo "no" >&6; }
  19880. have_dbus=no
  19881. else
  19882. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19883. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19885. $as_echo "yes" >&6; }
  19886. have_dbus=yes
  19887. fi
  19888. save_CPPFLAGS="$CPPFLAGS"
  19889. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19890. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19891. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19892. have_dbus_dbus_h_hdr=yes
  19893. else
  19894. have_dbus_dbus_h_hdr=no
  19895. fi
  19896. CPPFLAGS="$save_CPPFLAGS"
  19897. if test x$have_dbus_dbus_h_hdr = xyes; then
  19898. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19899. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19900. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19901. fi
  19902. fi
  19903. }
  19904. CheckIME()
  19905. {
  19906. # Check whether --enable-ime was given.
  19907. if test "${enable_ime+set}" = set; then :
  19908. enableval=$enable_ime;
  19909. else
  19910. enable_ime=yes
  19911. fi
  19912. if test x$enable_ime = xyes; then
  19913. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19914. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19915. fi
  19916. }
  19917. CheckInotify()
  19918. {
  19919. save_LIBS="$LIBS"
  19920. case "$host" in
  19921. *-*-freebsd*) LIBS="$LIBS -linotify"
  19922. ;;
  19923. esac
  19924. for ac_header in sys/inotify.h
  19925. do :
  19926. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19927. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19928. cat >>confdefs.h <<_ACEOF
  19929. #define HAVE_SYS_INOTIFY_H 1
  19930. _ACEOF
  19931. have_inotify_inotify_h_hdr=yes
  19932. fi
  19933. done
  19934. for ac_func in inotify_init
  19935. do :
  19936. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19937. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19938. cat >>confdefs.h <<_ACEOF
  19939. #define HAVE_INOTIFY_INIT 1
  19940. _ACEOF
  19941. have_inotify=yes
  19942. fi
  19943. done
  19944. for ac_func in inotify_init1
  19945. do :
  19946. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19947. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19948. cat >>confdefs.h <<_ACEOF
  19949. #define HAVE_INOTIFY_INIT1 1
  19950. _ACEOF
  19951. fi
  19952. done
  19953. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19954. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19955. case "$host" in
  19956. *-*-freebsd*)
  19957. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19958. ;;
  19959. esac
  19960. fi
  19961. LIBS="$save_LIBS"
  19962. }
  19963. CheckIBus()
  19964. {
  19965. # Check whether --enable-ibus was given.
  19966. if test "${enable_ibus+set}" = set; then :
  19967. enableval=$enable_ibus;
  19968. else
  19969. enable_ibus=yes
  19970. fi
  19971. if test x$enable_ibus = xyes; then
  19972. pkg_failed=no
  19973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19974. $as_echo_n "checking for ibus-1.0... " >&6; }
  19975. if test -n "$IBUS_CFLAGS"; then
  19976. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19977. elif test -n "$PKG_CONFIG"; then
  19978. if test -n "$PKG_CONFIG" && \
  19979. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19980. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19981. ac_status=$?
  19982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19983. test $ac_status = 0; }; then
  19984. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19985. test "x$?" != "x0" && pkg_failed=yes
  19986. else
  19987. pkg_failed=yes
  19988. fi
  19989. else
  19990. pkg_failed=untried
  19991. fi
  19992. if test -n "$IBUS_LIBS"; then
  19993. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19994. elif test -n "$PKG_CONFIG"; then
  19995. if test -n "$PKG_CONFIG" && \
  19996. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19997. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19998. ac_status=$?
  19999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20000. test $ac_status = 0; }; then
  20001. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20002. test "x$?" != "x0" && pkg_failed=yes
  20003. else
  20004. pkg_failed=yes
  20005. fi
  20006. else
  20007. pkg_failed=untried
  20008. fi
  20009. if test $pkg_failed = yes; then
  20010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20011. $as_echo "no" >&6; }
  20012. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20013. _pkg_short_errors_supported=yes
  20014. else
  20015. _pkg_short_errors_supported=no
  20016. fi
  20017. if test $_pkg_short_errors_supported = yes; then
  20018. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20019. else
  20020. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20021. fi
  20022. # Put the nasty error message in config.log where it belongs
  20023. echo "$IBUS_PKG_ERRORS" >&5
  20024. have_ibus=no
  20025. elif test $pkg_failed = untried; then
  20026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20027. $as_echo "no" >&6; }
  20028. have_ibus=no
  20029. else
  20030. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20031. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20033. $as_echo "yes" >&6; }
  20034. have_ibus=yes
  20035. fi
  20036. save_CPPFLAGS="$CPPFLAGS"
  20037. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20038. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20039. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20040. have_ibus_ibus_h_hdr=yes
  20041. else
  20042. have_ibus_ibus_h_hdr=no
  20043. fi
  20044. CPPFLAGS="$save_CPPFLAGS"
  20045. if test x$have_ibus_ibus_h_hdr = xyes; then
  20046. if test x$enable_ime != xyes; then
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20048. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20049. have_ibus_ibus_h_hdr=no
  20050. elif test x$enable_dbus != xyes; then
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20052. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20053. have_ibus_ibus_h_hdr=no
  20054. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20056. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20057. have_ibus_ibus_h_hdr=no
  20058. else
  20059. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20060. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20061. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20062. fi
  20063. fi
  20064. fi
  20065. }
  20066. CheckFcitx()
  20067. {
  20068. # Check whether --enable-fcitx was given.
  20069. if test "${enable_fcitx+set}" = set; then :
  20070. enableval=$enable_fcitx;
  20071. else
  20072. enable_fcitx=yes
  20073. fi
  20074. if test x$enable_fcitx = xyes; then
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20076. $as_echo_n "checking for fcitx support... " >&6; }
  20077. have_fcitx=no
  20078. if test x$enable_ime != xyes; then
  20079. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20080. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20081. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20083. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20084. else
  20085. have_fcitx=yes
  20086. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20087. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20088. fi
  20089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20090. $as_echo "$have_fcitx" >&6; }
  20091. fi
  20092. }
  20093. CheckJoystickMFI()
  20094. {
  20095. # Check whether --enable-joystick-mfi was given.
  20096. if test "${enable_joystick_mfi+set}" = set; then :
  20097. enableval=$enable_joystick_mfi;
  20098. else
  20099. enable_joystick_mfi=yes
  20100. fi
  20101. if test x$enable_joystick_mfi = xyes; then
  20102. save_CFLAGS="$CFLAGS"
  20103. save_LDFLAGS="$LDFLAGS"
  20104. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20105. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20107. $as_echo_n "checking for GameController framework... " >&6; }
  20108. enable_joystick_mfi=no
  20109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20110. /* end confdefs.h. */
  20111. #include <AvailabilityMacros.h>
  20112. #include <TargetConditionals.h>
  20113. #import <GameController/GameController.h>
  20114. int
  20115. main ()
  20116. {
  20117. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20118. #error GameController framework doesn't work on this configuration
  20119. #endif
  20120. #if TARGET_CPU_X86
  20121. #error GameController framework doesn't work on this configuration
  20122. #endif
  20123. ;
  20124. return 0;
  20125. }
  20126. _ACEOF
  20127. if ac_fn_c_try_link "$LINENO"; then :
  20128. enable_joystick_mfi=yes
  20129. fi
  20130. rm -f core conftest.err conftest.$ac_objext \
  20131. conftest$ac_exeext conftest.$ac_ext
  20132. CFLAGS="$save_CFLAGS"
  20133. LDFLAGS="$save_LDFLAGS"
  20134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20135. $as_echo "$enable_joystick_mfi" >&6; }
  20136. if test x$enable_joystick_mfi = xyes; then
  20137. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20138. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20140. fi
  20141. fi
  20142. }
  20143. CheckPTHREAD()
  20144. {
  20145. case "$host" in
  20146. *-*-emscripten*)
  20147. enable_pthreads_default=no
  20148. ;;
  20149. *)
  20150. enable_pthreads_default=yes
  20151. ;;
  20152. esac
  20153. # Check whether --enable-pthreads was given.
  20154. if test "${enable_pthreads+set}" = set; then :
  20155. enableval=$enable_pthreads;
  20156. else
  20157. enable_pthreads=maybe
  20158. fi
  20159. # Check whether --enable-pthread-sem was given.
  20160. if test "${enable_pthread_sem+set}" = set; then :
  20161. enableval=$enable_pthread_sem;
  20162. else
  20163. enable_pthread_sem=maybe
  20164. fi
  20165. if test x$enable_pthreads = xmaybe; then
  20166. enable_pthreads=$enable_pthreads_default
  20167. fi
  20168. if test x$enable_pthread_sem = xmaybe; then
  20169. enable_pthread_sem=$enable_pthreads
  20170. fi
  20171. case "$host" in
  20172. *-*-android*)
  20173. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20174. pthread_lib=""
  20175. ;;
  20176. *-*-linux*|*-*-uclinux*)
  20177. pthread_cflags="-D_REENTRANT"
  20178. pthread_lib="-lpthread"
  20179. ;;
  20180. *-*-bsdi*)
  20181. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20182. pthread_lib=""
  20183. ;;
  20184. *-*-darwin*)
  20185. pthread_cflags="-D_THREAD_SAFE"
  20186. # causes Carbon.p complaints?
  20187. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20188. ;;
  20189. *-*-freebsd*|*-*-dragonfly*)
  20190. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20191. pthread_lib="-pthread"
  20192. ;;
  20193. *-*-netbsd*)
  20194. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20195. pthread_lib="-lpthread"
  20196. ;;
  20197. *-*-openbsd*)
  20198. pthread_cflags="-D_REENTRANT"
  20199. pthread_lib="-pthread"
  20200. ;;
  20201. *-*-solaris2.9)
  20202. # From Solaris 9+, posix4's preferred name is rt.
  20203. pthread_cflags="-D_REENTRANT"
  20204. pthread_lib="-lpthread -lrt"
  20205. ;;
  20206. *-*-solaris2.10)
  20207. # Solaris 10+ merged pthread into libc.
  20208. pthread_cflags="-D_REENTRANT"
  20209. pthread_lib="-lrt"
  20210. ;;
  20211. *-*-solaris*)
  20212. # Solaris 11+ merged rt into libc.
  20213. pthread_cflags="-D_REENTRANT"
  20214. pthread_lib=""
  20215. ;;
  20216. *-*-sysv5*)
  20217. pthread_cflags="-D_REENTRANT -Kthread"
  20218. pthread_lib=""
  20219. ;;
  20220. *-*-aix*)
  20221. pthread_cflags="-D_REENTRANT -mthreads"
  20222. pthread_lib="-lpthread"
  20223. ;;
  20224. *-*-hpux11*)
  20225. pthread_cflags="-D_REENTRANT"
  20226. pthread_lib="-L/usr/lib -lpthread"
  20227. ;;
  20228. *-*-haiku*)
  20229. pthread_cflags="-D_REENTRANT"
  20230. pthread_lib=""
  20231. ;;
  20232. *-*-nto*)
  20233. pthread_cflags="-D_REENTRANT"
  20234. pthread_lib=""
  20235. ;;
  20236. *-*-emscripten*)
  20237. pthread_cflags="-D_REENTRANT -pthread"
  20238. pthread_lib="-pthread"
  20239. ;;
  20240. *)
  20241. pthread_cflags="-D_REENTRANT"
  20242. pthread_lib="-lpthread"
  20243. ;;
  20244. esac
  20245. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20246. # Save the original compiler flags and libraries
  20247. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20248. # Add the pthread compiler flags and libraries
  20249. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20250. # Check to see if we have pthread support on this system
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20252. $as_echo_n "checking for pthreads... " >&6; }
  20253. use_pthreads=no
  20254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20255. /* end confdefs.h. */
  20256. #include <pthread.h>
  20257. int
  20258. main ()
  20259. {
  20260. pthread_attr_t type;
  20261. pthread_attr_init(&type);
  20262. ;
  20263. return 0;
  20264. }
  20265. _ACEOF
  20266. if ac_fn_c_try_link "$LINENO"; then :
  20267. use_pthreads=yes
  20268. fi
  20269. rm -f core conftest.err conftest.$ac_objext \
  20270. conftest$ac_exeext conftest.$ac_ext
  20271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20272. $as_echo "$use_pthreads" >&6; }
  20273. # Restore the compiler flags and libraries
  20274. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20275. # Do futher testing if we have pthread support...
  20276. if test x$use_pthreads = xyes; then
  20277. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20278. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20280. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20281. # Save the original compiler flags and libraries
  20282. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20283. # Add the pthread compiler flags and libraries
  20284. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20285. # Check to see if recursive mutexes are available
  20286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20287. $as_echo_n "checking for recursive mutexes... " >&6; }
  20288. has_recursive_mutexes=no
  20289. if test x$has_recursive_mutexes = xno; then
  20290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20291. /* end confdefs.h. */
  20292. #define _GNU_SOURCE 1
  20293. #include <pthread.h>
  20294. int
  20295. main ()
  20296. {
  20297. pthread_mutexattr_t attr;
  20298. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20299. ;
  20300. return 0;
  20301. }
  20302. _ACEOF
  20303. if ac_fn_c_try_link "$LINENO"; then :
  20304. has_recursive_mutexes=yes
  20305. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20306. fi
  20307. rm -f core conftest.err conftest.$ac_objext \
  20308. conftest$ac_exeext conftest.$ac_ext
  20309. fi
  20310. if test x$has_recursive_mutexes = xno; then
  20311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20312. /* end confdefs.h. */
  20313. #define _GNU_SOURCE 1
  20314. #include <pthread.h>
  20315. int
  20316. main ()
  20317. {
  20318. pthread_mutexattr_t attr;
  20319. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20320. ;
  20321. return 0;
  20322. }
  20323. _ACEOF
  20324. if ac_fn_c_try_link "$LINENO"; then :
  20325. has_recursive_mutexes=yes
  20326. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20327. fi
  20328. rm -f core conftest.err conftest.$ac_objext \
  20329. conftest$ac_exeext conftest.$ac_ext
  20330. fi
  20331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20332. $as_echo "$has_recursive_mutexes" >&6; }
  20333. # Check to see if pthread semaphore support is missing
  20334. if test x$enable_pthread_sem = xyes; then
  20335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20336. $as_echo_n "checking for pthread semaphores... " >&6; }
  20337. have_pthread_sem=no
  20338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20339. /* end confdefs.h. */
  20340. #include <pthread.h>
  20341. #include <semaphore.h>
  20342. int
  20343. main ()
  20344. {
  20345. ;
  20346. return 0;
  20347. }
  20348. _ACEOF
  20349. if ac_fn_c_try_compile "$LINENO"; then :
  20350. have_pthread_sem=yes
  20351. fi
  20352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20354. $as_echo "$have_pthread_sem" >&6; }
  20355. fi
  20356. if test x$have_pthread_sem = xyes; then
  20357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20358. $as_echo_n "checking for sem_timedwait... " >&6; }
  20359. have_sem_timedwait=no
  20360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20361. /* end confdefs.h. */
  20362. #include <pthread.h>
  20363. #include <semaphore.h>
  20364. int
  20365. main ()
  20366. {
  20367. sem_timedwait(NULL, NULL);
  20368. ;
  20369. return 0;
  20370. }
  20371. _ACEOF
  20372. if ac_fn_c_try_link "$LINENO"; then :
  20373. have_sem_timedwait=yes
  20374. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20375. fi
  20376. rm -f core conftest.err conftest.$ac_objext \
  20377. conftest$ac_exeext conftest.$ac_ext
  20378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20379. $as_echo "$have_sem_timedwait" >&6; }
  20380. fi
  20381. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20382. "
  20383. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20384. have_pthread_np_h=yes
  20385. else
  20386. have_pthread_np_h=no
  20387. fi
  20388. if test x$have_pthread_np_h = xyes; then
  20389. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20390. fi
  20391. # Check to see if pthread naming is available
  20392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20393. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20395. /* end confdefs.h. */
  20396. /* Override any GCC internal prototype to avoid an error.
  20397. Use char because int might match the return type of a GCC
  20398. builtin and then its argument prototype would still apply. */
  20399. #ifdef __cplusplus
  20400. extern "C"
  20401. #endif
  20402. char pthread_setname_np ();
  20403. int
  20404. main ()
  20405. {
  20406. return pthread_setname_np ();
  20407. ;
  20408. return 0;
  20409. }
  20410. _ACEOF
  20411. if ac_fn_c_try_link "$LINENO"; then :
  20412. has_pthread_setname_np=yes
  20413. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20414. else
  20415. has_pthread_setname_np=no
  20416. fi
  20417. rm -f core conftest.err conftest.$ac_objext \
  20418. conftest$ac_exeext conftest.$ac_ext
  20419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20420. $as_echo "$has_pthread_setname_np" >&6; }
  20421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20422. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20424. /* end confdefs.h. */
  20425. /* Override any GCC internal prototype to avoid an error.
  20426. Use char because int might match the return type of a GCC
  20427. builtin and then its argument prototype would still apply. */
  20428. #ifdef __cplusplus
  20429. extern "C"
  20430. #endif
  20431. char pthread_set_name_np ();
  20432. int
  20433. main ()
  20434. {
  20435. return pthread_set_name_np ();
  20436. ;
  20437. return 0;
  20438. }
  20439. _ACEOF
  20440. if ac_fn_c_try_link "$LINENO"; then :
  20441. has_pthread_set_name_np=yes
  20442. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20443. else
  20444. has_pthread_set_name_np=no
  20445. fi
  20446. rm -f core conftest.err conftest.$ac_objext \
  20447. conftest$ac_exeext conftest.$ac_ext
  20448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20449. $as_echo "$has_pthread_set_name_np" >&6; }
  20450. # Restore the compiler flags and libraries
  20451. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20452. # Basic thread creation functions
  20453. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20454. # Semaphores
  20455. # We can fake these with mutexes and condition variables if necessary
  20456. if test x$have_pthread_sem = xyes; then
  20457. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20458. else
  20459. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20460. fi
  20461. # Mutexes
  20462. # We can fake these with semaphores if necessary
  20463. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20464. # Condition variables
  20465. # We can fake these with semaphores and mutexes if necessary
  20466. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20467. # Thread local storage
  20468. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20469. have_threads=yes
  20470. fi
  20471. fi
  20472. }
  20473. CheckWINDOWS()
  20474. {
  20475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20476. $as_echo_n "checking Windows compiler... " >&6; }
  20477. have_win32_gcc=no
  20478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20479. /* end confdefs.h. */
  20480. #include <windows.h>
  20481. int
  20482. main ()
  20483. {
  20484. ;
  20485. return 0;
  20486. }
  20487. _ACEOF
  20488. if ac_fn_c_try_compile "$LINENO"; then :
  20489. have_win32_gcc=yes
  20490. fi
  20491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20493. $as_echo "$have_win32_gcc" >&6; }
  20494. if test x$have_win32_gcc != xyes; then
  20495. as_fn_error $? "
  20496. *** Your compiler ($CC) does not produce Windows executables!
  20497. " "$LINENO" 5
  20498. fi
  20499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20500. $as_echo_n "checking Windows CE... " >&6; }
  20501. have_wince=no
  20502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20503. /* end confdefs.h. */
  20504. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20505. #error This is not Windows CE
  20506. #endif
  20507. int
  20508. main ()
  20509. {
  20510. ;
  20511. return 0;
  20512. }
  20513. _ACEOF
  20514. if ac_fn_c_try_compile "$LINENO"; then :
  20515. have_wince=yes
  20516. as_fn_error $? "
  20517. *** Sorry, Windows CE is no longer supported.
  20518. " "$LINENO" 5
  20519. fi
  20520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20522. $as_echo "$have_wince" >&6; }
  20523. # This fixes Windows stack alignment with newer GCC
  20524. CheckStackBoundary
  20525. }
  20526. CheckDIRECTX()
  20527. {
  20528. # Check whether --enable-directx was given.
  20529. if test "${enable_directx+set}" = set; then :
  20530. enableval=$enable_directx;
  20531. else
  20532. enable_directx=yes
  20533. fi
  20534. if test x$enable_directx = xyes; then
  20535. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20536. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20537. have_d3d=yes
  20538. fi
  20539. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20540. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20541. have_d3d11=yes
  20542. fi
  20543. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20544. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20545. have_ddraw=yes
  20546. fi
  20547. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20548. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20549. have_dsound=yes
  20550. fi
  20551. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20552. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20553. have_dinput=yes
  20554. fi
  20555. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20556. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20557. have_dxgi=yes
  20558. fi
  20559. if test x$have_ddraw = xyes; then
  20560. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20561. fi
  20562. if test x$have_dinput = xyes; then
  20563. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20564. fi
  20565. if test x$have_dsound = xyes; then
  20566. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20567. fi
  20568. if test x$have_dxgi = xyes; then
  20569. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20570. fi
  20571. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20572. # FIXME: ...so force it off for now.
  20573. case "$host" in
  20574. *-*-cygwin*)
  20575. have_dinput=false
  20576. ;;
  20577. esac
  20578. fi
  20579. # Check whether --enable-xinput was given.
  20580. if test "${enable_xinput+set}" = set; then :
  20581. enableval=$enable_xinput;
  20582. else
  20583. enable_xinput=yes
  20584. fi
  20585. if test x$enable_xinput = xyes; then
  20586. have_xinput_gamepadex=no
  20587. have_xinput_stateex=no
  20588. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20589. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20590. have_xinput=yes
  20591. fi
  20592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20593. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20595. /* end confdefs.h. */
  20596. #include <windows.h>
  20597. #include <xinput.h>
  20598. XINPUT_GAMEPAD_EX x1;
  20599. int
  20600. main ()
  20601. {
  20602. ;
  20603. return 0;
  20604. }
  20605. _ACEOF
  20606. if ac_fn_c_try_compile "$LINENO"; then :
  20607. have_xinput_gamepadex=yes
  20608. fi
  20609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20611. $as_echo "$have_xinput_gamepadex" >&6; }
  20612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20613. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20615. /* end confdefs.h. */
  20616. #include <windows.h>
  20617. #include <xinput.h>
  20618. XINPUT_STATE_EX s1;
  20619. int
  20620. main ()
  20621. {
  20622. ;
  20623. return 0;
  20624. }
  20625. _ACEOF
  20626. if ac_fn_c_try_compile "$LINENO"; then :
  20627. have_xinput_stateex=yes
  20628. fi
  20629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20631. $as_echo "$have_xinput_stateex" >&6; }
  20632. if test x$have_xinput = xyes; then
  20633. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20634. fi
  20635. if test x$have_xinput_gamepadex = xyes; then
  20636. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20637. fi
  20638. if test x$have_xinput_stateex = xyes; then
  20639. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20640. fi
  20641. fi
  20642. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20643. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20644. have_wasapi=yes
  20645. fi
  20646. if test x$have_wasapi = xyes; then
  20647. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20648. fi
  20649. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20650. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20651. else
  20652. have_wasapi=no
  20653. fi
  20654. if test x$have_wasapi = xyes; then
  20655. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20656. fi
  20657. # Check whether --enable-wasapi was given.
  20658. if test "${enable_wasapi+set}" = set; then :
  20659. enableval=$enable_wasapi;
  20660. else
  20661. enable_wasapi=yes
  20662. fi
  20663. }
  20664. CheckDLOPEN()
  20665. {
  20666. # Check whether --enable-sdl-dlopen was given.
  20667. if test "${enable_sdl_dlopen+set}" = set; then :
  20668. enableval=$enable_sdl_dlopen;
  20669. else
  20670. enable_sdl_dlopen=yes
  20671. fi
  20672. if test x$enable_sdl_dlopen = xyes; then
  20673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20674. $as_echo_n "checking for dlopen... " >&6; }
  20675. have_dlopen=no
  20676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20677. /* end confdefs.h. */
  20678. #include <dlfcn.h>
  20679. int
  20680. main ()
  20681. {
  20682. void *handle = dlopen("", RTLD_NOW);
  20683. const char *loaderror = (char *) dlerror();
  20684. ;
  20685. return 0;
  20686. }
  20687. _ACEOF
  20688. if ac_fn_c_try_compile "$LINENO"; then :
  20689. have_dlopen=yes
  20690. fi
  20691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20693. $as_echo "$have_dlopen" >&6; }
  20694. if test x$have_dlopen = xyes; then
  20695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20696. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20697. if ${ac_cv_lib_c_dlopen+:} false; then :
  20698. $as_echo_n "(cached) " >&6
  20699. else
  20700. ac_check_lib_save_LIBS=$LIBS
  20701. LIBS="-lc $LIBS"
  20702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20703. /* end confdefs.h. */
  20704. /* Override any GCC internal prototype to avoid an error.
  20705. Use char because int might match the return type of a GCC
  20706. builtin and then its argument prototype would still apply. */
  20707. #ifdef __cplusplus
  20708. extern "C"
  20709. #endif
  20710. char dlopen ();
  20711. int
  20712. main ()
  20713. {
  20714. return dlopen ();
  20715. ;
  20716. return 0;
  20717. }
  20718. _ACEOF
  20719. if ac_fn_c_try_link "$LINENO"; then :
  20720. ac_cv_lib_c_dlopen=yes
  20721. else
  20722. ac_cv_lib_c_dlopen=no
  20723. fi
  20724. rm -f core conftest.err conftest.$ac_objext \
  20725. conftest$ac_exeext conftest.$ac_ext
  20726. LIBS=$ac_check_lib_save_LIBS
  20727. fi
  20728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20729. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20730. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20731. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20732. else
  20733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20734. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20735. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20736. $as_echo_n "(cached) " >&6
  20737. else
  20738. ac_check_lib_save_LIBS=$LIBS
  20739. LIBS="-ldl $LIBS"
  20740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20741. /* end confdefs.h. */
  20742. /* Override any GCC internal prototype to avoid an error.
  20743. Use char because int might match the return type of a GCC
  20744. builtin and then its argument prototype would still apply. */
  20745. #ifdef __cplusplus
  20746. extern "C"
  20747. #endif
  20748. char dlopen ();
  20749. int
  20750. main ()
  20751. {
  20752. return dlopen ();
  20753. ;
  20754. return 0;
  20755. }
  20756. _ACEOF
  20757. if ac_fn_c_try_link "$LINENO"; then :
  20758. ac_cv_lib_dl_dlopen=yes
  20759. else
  20760. ac_cv_lib_dl_dlopen=no
  20761. fi
  20762. rm -f core conftest.err conftest.$ac_objext \
  20763. conftest$ac_exeext conftest.$ac_ext
  20764. LIBS=$ac_check_lib_save_LIBS
  20765. fi
  20766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20767. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20768. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20770. else
  20771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20772. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20773. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20774. $as_echo_n "(cached) " >&6
  20775. else
  20776. ac_check_lib_save_LIBS=$LIBS
  20777. LIBS="-lltdl $LIBS"
  20778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20779. /* end confdefs.h. */
  20780. /* Override any GCC internal prototype to avoid an error.
  20781. Use char because int might match the return type of a GCC
  20782. builtin and then its argument prototype would still apply. */
  20783. #ifdef __cplusplus
  20784. extern "C"
  20785. #endif
  20786. char dlopen ();
  20787. int
  20788. main ()
  20789. {
  20790. return dlopen ();
  20791. ;
  20792. return 0;
  20793. }
  20794. _ACEOF
  20795. if ac_fn_c_try_link "$LINENO"; then :
  20796. ac_cv_lib_ltdl_dlopen=yes
  20797. else
  20798. ac_cv_lib_ltdl_dlopen=no
  20799. fi
  20800. rm -f core conftest.err conftest.$ac_objext \
  20801. conftest$ac_exeext conftest.$ac_ext
  20802. LIBS=$ac_check_lib_save_LIBS
  20803. fi
  20804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20805. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20806. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20808. fi
  20809. fi
  20810. fi
  20811. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20812. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20813. have_loadso=yes
  20814. fi
  20815. fi
  20816. }
  20817. CheckUSBHID()
  20818. {
  20819. case "$host" in
  20820. *-*-*bsd*|*-*-dragonfly*)
  20821. if test x$enable_joystick = xyes; then
  20822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20823. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20824. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20825. $as_echo_n "(cached) " >&6
  20826. else
  20827. ac_check_lib_save_LIBS=$LIBS
  20828. LIBS="-lusbhid $LIBS"
  20829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20830. /* end confdefs.h. */
  20831. /* Override any GCC internal prototype to avoid an error.
  20832. Use char because int might match the return type of a GCC
  20833. builtin and then its argument prototype would still apply. */
  20834. #ifdef __cplusplus
  20835. extern "C"
  20836. #endif
  20837. char hid_init ();
  20838. int
  20839. main ()
  20840. {
  20841. return hid_init ();
  20842. ;
  20843. return 0;
  20844. }
  20845. _ACEOF
  20846. if ac_fn_c_try_link "$LINENO"; then :
  20847. ac_cv_lib_usbhid_hid_init=yes
  20848. else
  20849. ac_cv_lib_usbhid_hid_init=no
  20850. fi
  20851. rm -f core conftest.err conftest.$ac_objext \
  20852. conftest$ac_exeext conftest.$ac_ext
  20853. LIBS=$ac_check_lib_save_LIBS
  20854. fi
  20855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20856. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20857. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20858. have_libusbhid=yes
  20859. fi
  20860. if test x$have_libusbhid = xyes; then
  20861. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20862. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20863. USB_CFLAGS="-DHAVE_USBHID_H"
  20864. fi
  20865. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20866. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20867. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20868. fi
  20869. USB_LIBS="$USB_LIBS -lusbhid"
  20870. else
  20871. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20872. if test "x$ac_cv_header_usb_h" = xyes; then :
  20873. USB_CFLAGS="-DHAVE_USB_H"
  20874. fi
  20875. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20876. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20877. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20878. fi
  20879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20880. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20881. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20882. $as_echo_n "(cached) " >&6
  20883. else
  20884. ac_check_lib_save_LIBS=$LIBS
  20885. LIBS="-lusb $LIBS"
  20886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20887. /* end confdefs.h. */
  20888. /* Override any GCC internal prototype to avoid an error.
  20889. Use char because int might match the return type of a GCC
  20890. builtin and then its argument prototype would still apply. */
  20891. #ifdef __cplusplus
  20892. extern "C"
  20893. #endif
  20894. char hid_init ();
  20895. int
  20896. main ()
  20897. {
  20898. return hid_init ();
  20899. ;
  20900. return 0;
  20901. }
  20902. _ACEOF
  20903. if ac_fn_c_try_link "$LINENO"; then :
  20904. ac_cv_lib_usb_hid_init=yes
  20905. else
  20906. ac_cv_lib_usb_hid_init=no
  20907. fi
  20908. rm -f core conftest.err conftest.$ac_objext \
  20909. conftest$ac_exeext conftest.$ac_ext
  20910. LIBS=$ac_check_lib_save_LIBS
  20911. fi
  20912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20913. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20914. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20915. USB_LIBS="$USB_LIBS -lusb"
  20916. fi
  20917. fi
  20918. save_CFLAGS="$CFLAGS"
  20919. CFLAGS="$CFLAGS $USB_CFLAGS"
  20920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20921. $as_echo_n "checking for usbhid... " >&6; }
  20922. have_usbhid=no
  20923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20924. /* end confdefs.h. */
  20925. #include <sys/types.h>
  20926. #if defined(HAVE_USB_H)
  20927. #include <usb.h>
  20928. #endif
  20929. #ifdef __DragonFly__
  20930. # include <bus/u4b/usb.h>
  20931. # include <bus/u4b/usbhid.h>
  20932. #else
  20933. # include <dev/usb/usb.h>
  20934. # include <dev/usb/usbhid.h>
  20935. #endif
  20936. #if defined(HAVE_USBHID_H)
  20937. #include <usbhid.h>
  20938. #elif defined(HAVE_LIBUSB_H)
  20939. #include <libusb.h>
  20940. #elif defined(HAVE_LIBUSBHID_H)
  20941. #include <libusbhid.h>
  20942. #endif
  20943. int
  20944. main ()
  20945. {
  20946. struct report_desc *repdesc;
  20947. struct usb_ctl_report *repbuf;
  20948. hid_kind_t hidkind;
  20949. ;
  20950. return 0;
  20951. }
  20952. _ACEOF
  20953. if ac_fn_c_try_compile "$LINENO"; then :
  20954. have_usbhid=yes
  20955. fi
  20956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20958. $as_echo "$have_usbhid" >&6; }
  20959. if test x$have_usbhid = xyes; then
  20960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20961. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20962. have_usbhid_ucr_data=no
  20963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20964. /* end confdefs.h. */
  20965. #include <sys/types.h>
  20966. #if defined(HAVE_USB_H)
  20967. #include <usb.h>
  20968. #endif
  20969. #ifdef __DragonFly__
  20970. # include <bus/u4b/usb.h>
  20971. # include <bus/u4b/usbhid.h>
  20972. #else
  20973. # include <dev/usb/usb.h>
  20974. # include <dev/usb/usbhid.h>
  20975. #endif
  20976. #if defined(HAVE_USBHID_H)
  20977. #include <usbhid.h>
  20978. #elif defined(HAVE_LIBUSB_H)
  20979. #include <libusb.h>
  20980. #elif defined(HAVE_LIBUSBHID_H)
  20981. #include <libusbhid.h>
  20982. #endif
  20983. int
  20984. main ()
  20985. {
  20986. struct usb_ctl_report buf;
  20987. if (buf.ucr_data) { }
  20988. ;
  20989. return 0;
  20990. }
  20991. _ACEOF
  20992. if ac_fn_c_try_compile "$LINENO"; then :
  20993. have_usbhid_ucr_data=yes
  20994. fi
  20995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20996. if test x$have_usbhid_ucr_data = xyes; then
  20997. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20998. fi
  20999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21000. $as_echo "$have_usbhid_ucr_data" >&6; }
  21001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21002. $as_echo_n "checking for new usbhid API... " >&6; }
  21003. have_usbhid_new=no
  21004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21005. /* end confdefs.h. */
  21006. #include <sys/types.h>
  21007. #if defined(HAVE_USB_H)
  21008. #include <usb.h>
  21009. #endif
  21010. #ifdef __DragonFly__
  21011. #include <bus/u4b/usb.h>
  21012. #include <bus/u4b/usbhid.h>
  21013. #else
  21014. #include <dev/usb/usb.h>
  21015. #include <dev/usb/usbhid.h>
  21016. #endif
  21017. #if defined(HAVE_USBHID_H)
  21018. #include <usbhid.h>
  21019. #elif defined(HAVE_LIBUSB_H)
  21020. #include <libusb.h>
  21021. #elif defined(HAVE_LIBUSBHID_H)
  21022. #include <libusbhid.h>
  21023. #endif
  21024. int
  21025. main ()
  21026. {
  21027. report_desc_t d;
  21028. hid_start_parse(d, 1, 1);
  21029. ;
  21030. return 0;
  21031. }
  21032. _ACEOF
  21033. if ac_fn_c_try_compile "$LINENO"; then :
  21034. have_usbhid_new=yes
  21035. fi
  21036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21037. if test x$have_usbhid_new = xyes; then
  21038. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21039. fi
  21040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21041. $as_echo "$have_usbhid_new" >&6; }
  21042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21043. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21044. have_machine_joystick=no
  21045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21046. /* end confdefs.h. */
  21047. #include <machine/joystick.h>
  21048. int
  21049. main ()
  21050. {
  21051. struct joystick t;
  21052. ;
  21053. return 0;
  21054. }
  21055. _ACEOF
  21056. if ac_fn_c_try_compile "$LINENO"; then :
  21057. have_machine_joystick=yes
  21058. fi
  21059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21060. if test x$have_machine_joystick = xyes; then
  21061. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21062. fi
  21063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21064. $as_echo "$have_machine_joystick" >&6; }
  21065. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21066. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21067. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21069. have_joystick=yes
  21070. fi
  21071. CFLAGS="$save_CFLAGS"
  21072. fi
  21073. ;;
  21074. esac
  21075. }
  21076. CheckHIDAPI()
  21077. {
  21078. # Check whether --enable-hidapi was given.
  21079. if test "${enable_hidapi+set}" = set; then :
  21080. enableval=$enable_hidapi;
  21081. else
  21082. enable_hidapi=yes
  21083. fi
  21084. # Check whether --enable-hidapi-libusb was given.
  21085. if test "${enable_hidapi_libusb+set}" = set; then :
  21086. enableval=$enable_hidapi_libusb;
  21087. else
  21088. enable_hidapi_libusb=maybe
  21089. fi
  21090. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  21091. case "$host" in
  21092. # libusb does not support iOS
  21093. *-ios-* )
  21094. enable_hidapi_libusb=no
  21095. ;;
  21096. # On the other hand, *BSD specifically uses libusb only
  21097. *-*-*bsd* )
  21098. enable_hidapi_libusb=yes
  21099. require_hidapi_libusb=yes
  21100. ;;
  21101. esac
  21102. hidapi_support=yes
  21103. if test x$enable_hidapi_libusb = xyes; then
  21104. pkg_failed=no
  21105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21106. $as_echo_n "checking for libusb-1.0... " >&6; }
  21107. if test -n "$LIBUSB_CFLAGS"; then
  21108. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21109. elif test -n "$PKG_CONFIG"; then
  21110. if test -n "$PKG_CONFIG" && \
  21111. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21112. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21113. ac_status=$?
  21114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21115. test $ac_status = 0; }; then
  21116. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21117. test "x$?" != "x0" && pkg_failed=yes
  21118. else
  21119. pkg_failed=yes
  21120. fi
  21121. else
  21122. pkg_failed=untried
  21123. fi
  21124. if test -n "$LIBUSB_LIBS"; then
  21125. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21126. elif test -n "$PKG_CONFIG"; then
  21127. if test -n "$PKG_CONFIG" && \
  21128. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21129. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21130. ac_status=$?
  21131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21132. test $ac_status = 0; }; then
  21133. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21134. test "x$?" != "x0" && pkg_failed=yes
  21135. else
  21136. pkg_failed=yes
  21137. fi
  21138. else
  21139. pkg_failed=untried
  21140. fi
  21141. if test $pkg_failed = yes; then
  21142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21143. $as_echo "no" >&6; }
  21144. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21145. _pkg_short_errors_supported=yes
  21146. else
  21147. _pkg_short_errors_supported=no
  21148. fi
  21149. if test $_pkg_short_errors_supported = yes; then
  21150. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21151. else
  21152. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21153. fi
  21154. # Put the nasty error message in config.log where it belongs
  21155. echo "$LIBUSB_PKG_ERRORS" >&5
  21156. have_libusb=no
  21157. elif test $pkg_failed = untried; then
  21158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21159. $as_echo "no" >&6; }
  21160. have_libusb=no
  21161. else
  21162. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21163. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21165. $as_echo "yes" >&6; }
  21166. have_libusb=yes
  21167. fi
  21168. save_CPPFLAGS="$CPPFLAGS"
  21169. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21170. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21171. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21172. have_libusb_h=yes
  21173. else
  21174. have_libusb_h=no
  21175. fi
  21176. CPPFLAGS="$save_CPPFLAGS"
  21177. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21178. hidapi_support=no
  21179. fi
  21180. fi
  21181. if test x$hidapi_support = xyes; then
  21182. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21183. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21184. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21185. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  21186. if test x$have_libusb_h = xyes; then
  21187. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21188. if test x$require_hidapi_libusb = xyes; then
  21189. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21190. else
  21191. if test x$have_loadso != xyes; then
  21192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21193. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21194. fi
  21195. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21196. libusb_lib=""
  21197. case "$host" in
  21198. *-*-darwin* )
  21199. libusb_lib="libusb-1.0.0.dylib"
  21200. ;;
  21201. *-*-cygwin* | *-*-mingw* )
  21202. libusb_lib="libusb-1.0.dll"
  21203. ;;
  21204. esac
  21205. if test x$libusb_lib = x; then
  21206. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21207. fi
  21208. cat >>confdefs.h <<_ACEOF
  21209. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21210. _ACEOF
  21211. fi
  21212. fi
  21213. fi
  21214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21215. $as_echo_n "checking for hidapi support... " >&6; }
  21216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21217. $as_echo "$hidapi_support" >&6; }
  21218. fi
  21219. }
  21220. CheckClockGettime()
  21221. {
  21222. # Check whether --enable-clock_gettime was given.
  21223. if test "${enable_clock_gettime+set}" = set; then :
  21224. enableval=$enable_clock_gettime;
  21225. else
  21226. enable_clock_gettime=yes
  21227. fi
  21228. if test x$enable_clock_gettime = xyes; then
  21229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21230. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21231. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21232. $as_echo_n "(cached) " >&6
  21233. else
  21234. ac_check_lib_save_LIBS=$LIBS
  21235. LIBS="-lrt $LIBS"
  21236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21237. /* end confdefs.h. */
  21238. /* Override any GCC internal prototype to avoid an error.
  21239. Use char because int might match the return type of a GCC
  21240. builtin and then its argument prototype would still apply. */
  21241. #ifdef __cplusplus
  21242. extern "C"
  21243. #endif
  21244. char clock_gettime ();
  21245. int
  21246. main ()
  21247. {
  21248. return clock_gettime ();
  21249. ;
  21250. return 0;
  21251. }
  21252. _ACEOF
  21253. if ac_fn_c_try_link "$LINENO"; then :
  21254. ac_cv_lib_rt_clock_gettime=yes
  21255. else
  21256. ac_cv_lib_rt_clock_gettime=no
  21257. fi
  21258. rm -f core conftest.err conftest.$ac_objext \
  21259. conftest$ac_exeext conftest.$ac_ext
  21260. LIBS=$ac_check_lib_save_LIBS
  21261. fi
  21262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21263. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21264. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21265. have_clock_gettime=yes
  21266. fi
  21267. if test x$have_clock_gettime = xyes; then
  21268. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21269. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21270. else
  21271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21272. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21273. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21274. $as_echo_n "(cached) " >&6
  21275. else
  21276. ac_check_lib_save_LIBS=$LIBS
  21277. LIBS="-lc $LIBS"
  21278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21279. /* end confdefs.h. */
  21280. /* Override any GCC internal prototype to avoid an error.
  21281. Use char because int might match the return type of a GCC
  21282. builtin and then its argument prototype would still apply. */
  21283. #ifdef __cplusplus
  21284. extern "C"
  21285. #endif
  21286. char clock_gettime ();
  21287. int
  21288. main ()
  21289. {
  21290. return clock_gettime ();
  21291. ;
  21292. return 0;
  21293. }
  21294. _ACEOF
  21295. if ac_fn_c_try_link "$LINENO"; then :
  21296. ac_cv_lib_c_clock_gettime=yes
  21297. else
  21298. ac_cv_lib_c_clock_gettime=no
  21299. fi
  21300. rm -f core conftest.err conftest.$ac_objext \
  21301. conftest$ac_exeext conftest.$ac_ext
  21302. LIBS=$ac_check_lib_save_LIBS
  21303. fi
  21304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21305. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21306. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21307. have_clock_gettime=yes
  21308. fi
  21309. if test x$have_clock_gettime = xyes; then
  21310. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21312. fi
  21313. fi
  21314. fi
  21315. }
  21316. CheckLinuxVersion()
  21317. {
  21318. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21319. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21320. have_linux_version_h=yes
  21321. fi
  21322. if test x$have_linux_version_h = xyes; then
  21323. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21324. fi
  21325. }
  21326. CheckRPATH()
  21327. {
  21328. # Check whether --enable-rpath was given.
  21329. if test "${enable_rpath+set}" = set; then :
  21330. enableval=$enable_rpath;
  21331. else
  21332. enable_rpath=yes
  21333. fi
  21334. }
  21335. CheckEventSignals()
  21336. {
  21337. # Check whether --enable-backgrounding-signal was given.
  21338. if test "${enable_backgrounding_signal+set}" = set; then :
  21339. enableval=$enable_backgrounding_signal;
  21340. else
  21341. enable_backgrounding_signal=no
  21342. fi
  21343. if test x$enable_backgrounding_signal != xno; then
  21344. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21345. fi
  21346. # Check whether --enable-foregrounding-signal was given.
  21347. if test "${enable_foregrounding_signal+set}" = set; then :
  21348. enableval=$enable_foregrounding_signal;
  21349. else
  21350. enable_foregrounding_signal=no
  21351. fi
  21352. if test x$enable_foregrounding_signal != xno; then
  21353. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21354. fi
  21355. }
  21356. CheckVirtualJoystick()
  21357. {
  21358. # Check whether --enable-joystick-virtual was given.
  21359. if test "${enable_joystick_virtual+set}" = set; then :
  21360. enableval=$enable_joystick_virtual;
  21361. else
  21362. enable_joystick_virtual=yes
  21363. fi
  21364. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21365. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21366. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21367. have_joystick_virtual=yes
  21368. fi
  21369. }
  21370. CheckWarnAll
  21371. CheckNoStrictAliasing
  21372. CheckEventSignals
  21373. have_locale=no
  21374. case "$host" in
  21375. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21376. case "$host" in
  21377. *-*-android*)
  21378. # Android
  21379. ARCH=android
  21380. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21381. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21382. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21383. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21384. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21385. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21386. if test x$enable_video = xyes; then
  21387. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21388. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21389. SUMMARY_video="${SUMMARY_video} android"
  21390. fi
  21391. ;;
  21392. *-*-linux*) ARCH=linux ;;
  21393. *-*-uclinux*) ARCH=linux ;;
  21394. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21395. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21396. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21397. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21398. *-*-bsdi*) ARCH=bsdi ;;
  21399. *-*-freebsd*) ARCH=freebsd ;;
  21400. *-*-dragonfly*) ARCH=freebsd ;;
  21401. *-*-netbsd*) ARCH=netbsd ;;
  21402. *-*-openbsd*) ARCH=openbsd ;;
  21403. *-*-sysv5*) ARCH=sysv5 ;;
  21404. *-*-solaris*) ARCH=solaris ;;
  21405. *-*-hpux*) ARCH=hpux ;;
  21406. *-*-aix*) ARCH=aix ;;
  21407. *-*-minix*) ARCH=minix ;;
  21408. *-*-nto*) ARCH=nto
  21409. CheckQNXVideo
  21410. ;;
  21411. esac
  21412. CheckVisibilityHidden
  21413. CheckDeclarationAfterStatement
  21414. CheckDummyVideo
  21415. CheckDiskAudio
  21416. CheckDummyAudio
  21417. CheckDLOPEN
  21418. CheckARM
  21419. CheckNEON
  21420. CheckOSS
  21421. CheckALSA
  21422. CheckPipewire
  21423. CheckPulseAudio
  21424. CheckJACK
  21425. CheckARTSC
  21426. CheckESD
  21427. CheckNAS
  21428. CheckSNDIO
  21429. CheckFusionSound
  21430. CheckLibSampleRate
  21431. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21432. CheckRPI
  21433. CheckX11
  21434. CheckDirectFB
  21435. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  21436. CheckEGL
  21437. CheckKMSDRM
  21438. CheckGLX
  21439. CheckOpenGL
  21440. CheckOpenGLES
  21441. CheckVulkan
  21442. CheckWayland
  21443. CheckInputEvents
  21444. CheckLibUDev
  21445. CheckDBus
  21446. CheckIME
  21447. CheckInotify
  21448. CheckIBus
  21449. CheckFcitx
  21450. case $ARCH in
  21451. linux)
  21452. CheckInputKD
  21453. ;;
  21454. freebsd)
  21455. CheckInputKBIO
  21456. ;;
  21457. openbsd|netbsd)
  21458. CheckInputWSCONS
  21459. ;;
  21460. esac
  21461. CheckUSBHID
  21462. CheckHIDAPI
  21463. CheckPTHREAD
  21464. CheckClockGettime
  21465. CheckLinuxVersion
  21466. CheckRPATH
  21467. CheckVivanteVideo
  21468. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21469. have_misc=yes
  21470. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21471. have_locale=yes
  21472. # Set up files for the audio library
  21473. if test x$enable_audio = xyes; then
  21474. case $ARCH in
  21475. sysv5|solaris|hpux)
  21476. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21477. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21478. SUMMARY_audio="${SUMMARY_audio} sun"
  21479. have_audio=yes
  21480. ;;
  21481. netbsd) # Don't use this on OpenBSD, it's busted.
  21482. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21483. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21484. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21485. have_audio=yes
  21486. ;;
  21487. aix)
  21488. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21489. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21490. SUMMARY_audio="${SUMMARY_audio} paudio"
  21491. have_audio=yes
  21492. ;;
  21493. android)
  21494. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21495. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21496. SUMMARY_audio="${SUMMARY_audio} android"
  21497. have_audio=yes
  21498. ;;
  21499. nto)
  21500. CheckQNXAudio
  21501. ;;
  21502. esac
  21503. fi
  21504. # Set up files for the joystick library
  21505. if test x$enable_joystick = xyes; then
  21506. case $ARCH in
  21507. linux)
  21508. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21509. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21510. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21511. have_joystick=yes
  21512. ;;
  21513. freebsd)
  21514. if test x$use_input_events = xyes; then
  21515. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21516. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21517. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21518. have_joystick=yes
  21519. fi
  21520. ;;
  21521. android)
  21522. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21523. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21524. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21525. have_joystick=yes
  21526. ;;
  21527. esac
  21528. fi
  21529. # Set up files for the haptic library
  21530. if test x$enable_haptic = xyes; then
  21531. case $ARCH in
  21532. linux|freebsd)
  21533. if test x$use_input_events = xyes; then
  21534. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21535. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21536. have_haptic=yes
  21537. fi
  21538. ;;
  21539. android)
  21540. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21541. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21542. have_haptic=yes
  21543. ;;
  21544. esac
  21545. fi
  21546. # Set up files for the sensor library
  21547. if test x$enable_sensor = xyes; then
  21548. case $ARCH in
  21549. android)
  21550. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21551. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21552. have_sensor=yes
  21553. ;;
  21554. esac
  21555. fi
  21556. # Set up files for the power library
  21557. if test x$enable_power = xyes; then
  21558. case $ARCH in
  21559. linux)
  21560. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21561. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21562. have_power=yes
  21563. ;;
  21564. android)
  21565. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21566. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21567. have_power=yes
  21568. ;;
  21569. esac
  21570. fi
  21571. # Set up files for the filesystem library
  21572. if test x$enable_filesystem = xyes; then
  21573. case $ARCH in
  21574. android)
  21575. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21576. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21577. have_filesystem=yes
  21578. ;;
  21579. *)
  21580. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21581. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21582. have_filesystem=yes
  21583. ;;
  21584. esac
  21585. fi
  21586. # Set up files for the timer library
  21587. if test x$enable_timers = xyes; then
  21588. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21589. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21590. have_timers=yes
  21591. fi
  21592. # Set up files for udev hotplugging support
  21593. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21594. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21595. fi
  21596. # Set up files for evdev input
  21597. if test x$use_input_events = xyes; then
  21598. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21599. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21600. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21601. fi
  21602. # Set up files for wscons input
  21603. if test x$use_input_wscons = xyes; then
  21604. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21605. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21606. fi
  21607. # Set up other core UNIX files
  21608. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21609. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21610. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21611. ;;
  21612. *-*-cygwin* | *-*-mingw*)
  21613. ARCH=win32
  21614. if test "$build" != "$host"; then # cross-compiling
  21615. # Default cross-compile location
  21616. ac_default_prefix=/usr/local/cross-tools/$host
  21617. else
  21618. # Look for the location of the tools and install there
  21619. if test "$BUILD_PREFIX" != ""; then
  21620. ac_default_prefix=$BUILD_PREFIX
  21621. fi
  21622. fi
  21623. CheckDeclarationAfterStatement
  21624. CheckDummyVideo
  21625. CheckDiskAudio
  21626. CheckDummyAudio
  21627. CheckWINDOWS
  21628. CheckWINDOWSGL
  21629. CheckWINDOWSGLES
  21630. CheckVulkan
  21631. CheckDIRECTX
  21632. CheckHIDAPI
  21633. # Set up the core platform files
  21634. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21635. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21636. have_misc=yes
  21637. # Use the Windows locale APIs.
  21638. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21639. have_locale=yes
  21640. # Set up files for the video library
  21641. if test x$enable_video = xyes; then
  21642. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21643. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21644. have_video=yes
  21645. # Check whether --enable-render-d3d was given.
  21646. if test "${enable_render_d3d+set}" = set; then :
  21647. enableval=$enable_render_d3d;
  21648. else
  21649. enable_render_d3d=yes
  21650. fi
  21651. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21652. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21653. SUMMARY_video="${SUMMARY_video} d3d9"
  21654. fi
  21655. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21656. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21657. SUMMARY_video="${SUMMARY_video} d3d11"
  21658. fi
  21659. fi
  21660. # Set up files for the audio library
  21661. if test x$enable_audio = xyes; then
  21662. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21663. SUMMARY_audio="${SUMMARY_audio} winmm"
  21664. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21665. if test x$have_dsound = xyes; then
  21666. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21667. SUMMARY_audio="${SUMMARY_audio} directsound"
  21668. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21669. fi
  21670. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21671. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21672. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21673. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21674. fi
  21675. have_audio=yes
  21676. fi
  21677. # Set up files for the joystick library
  21678. if test x$enable_joystick = xyes; then
  21679. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21680. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21681. if test x$have_xinput = xyes; then
  21682. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21683. fi
  21684. if test x$have_dinput = xyes; then
  21685. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21687. fi
  21688. else
  21689. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21690. fi
  21691. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21692. have_joystick=yes
  21693. fi
  21694. if test x$enable_haptic = xyes; then
  21695. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21696. if test x$have_xinput = xyes; then
  21697. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21698. fi
  21699. if test x$have_dinput = xyes; then
  21700. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21701. fi
  21702. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21703. have_haptic=yes
  21704. fi
  21705. fi
  21706. # Set up files for the sensor library
  21707. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21708. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21709. have_winsensors=yes
  21710. else
  21711. have_winsensors=no
  21712. fi
  21713. if test x$have_winsensors = xyes; then
  21714. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21715. fi
  21716. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21717. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21718. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21719. have_sensor=yes
  21720. fi
  21721. # Set up files for the power library
  21722. if test x$enable_power = xyes; then
  21723. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21724. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21725. have_power=yes
  21726. fi
  21727. # Set up files for the filesystem library
  21728. if test x$enable_filesystem = xyes; then
  21729. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21730. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21731. have_filesystem=yes
  21732. fi
  21733. # Set up files for the thread library
  21734. if test x$enable_threads = xyes; then
  21735. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21736. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21737. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21738. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21739. have_threads=yes
  21740. fi
  21741. # Set up files for the timer library
  21742. if test x$enable_timers = xyes; then
  21743. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21744. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21745. have_timers=yes
  21746. fi
  21747. # Set up files for the shared object loading library
  21748. if test x$enable_loadso = xyes; then
  21749. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21750. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21751. have_loadso=yes
  21752. fi
  21753. # Set up the system libraries we need
  21754. if test -f /lib/w32api/libuuid.a; then
  21755. LIBUUID=/lib/w32api/libuuid.a
  21756. else
  21757. LIBUUID=-luuid
  21758. fi
  21759. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  21760. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  21761. # The Windows platform requires special setup
  21762. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21763. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21764. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21765. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21766. # Check to see if this is a mingw or cygwin build
  21767. have_mingw32=
  21768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21769. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21770. if ${ac_cv_lib_mingw32_main+:} false; then :
  21771. $as_echo_n "(cached) " >&6
  21772. else
  21773. ac_check_lib_save_LIBS=$LIBS
  21774. LIBS="-lmingw32 $LIBS"
  21775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21776. /* end confdefs.h. */
  21777. int
  21778. main ()
  21779. {
  21780. return main ();
  21781. ;
  21782. return 0;
  21783. }
  21784. _ACEOF
  21785. if ac_fn_c_try_link "$LINENO"; then :
  21786. ac_cv_lib_mingw32_main=yes
  21787. else
  21788. ac_cv_lib_mingw32_main=no
  21789. fi
  21790. rm -f core conftest.err conftest.$ac_objext \
  21791. conftest$ac_exeext conftest.$ac_ext
  21792. LIBS=$ac_check_lib_save_LIBS
  21793. fi
  21794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21795. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21796. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21797. have_mingw32=yes
  21798. fi
  21799. if test x$have_mingw32 = xyes; then
  21800. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21801. else
  21802. SDL_LIBS="-lcygwin $SDL_LIBS"
  21803. fi
  21804. ;;
  21805. *-*-beos*)
  21806. as_fn_error $? "
  21807. *** BeOS support has been removed as of SDL 2.0.2.
  21808. " "$LINENO" 5
  21809. ;;
  21810. *-*-haiku*)
  21811. ARCH=haiku
  21812. ac_default_prefix=/boot/system
  21813. CheckDummyVideo
  21814. CheckDiskAudio
  21815. CheckDummyAudio
  21816. CheckDLOPEN
  21817. CheckHaikuVideo
  21818. CheckHaikuGL
  21819. CheckPTHREAD
  21820. # Set up files for the audio library
  21821. if test x$enable_audio = xyes; then
  21822. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21823. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21824. SUMMARY_audio="${SUMMARY_audio} haiku"
  21825. have_audio=yes
  21826. fi
  21827. # Set up files for the joystick library
  21828. if test x$enable_joystick = xyes; then
  21829. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21830. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21831. have_joystick=yes
  21832. fi
  21833. # Set up files for the timer library
  21834. if test x$enable_timers = xyes; then
  21835. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21836. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21837. have_timers=yes
  21838. fi
  21839. # Set up files for the system power library
  21840. if test x$enable_power = xyes; then
  21841. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21842. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21843. have_power=yes
  21844. fi
  21845. # Set up files for the system filesystem library
  21846. if test x$enable_filesystem = xyes; then
  21847. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21848. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21849. have_filesystem=yes
  21850. fi
  21851. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21852. have_misc=yes
  21853. # Set up files for the locale library
  21854. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21855. have_locale=yes
  21856. # The Haiku platform requires special setup.
  21857. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21858. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21859. ;;
  21860. *-ios-*)
  21861. ARCH=ios
  21862. CheckVisibilityHidden
  21863. CheckDeclarationAfterStatement
  21864. CheckDummyVideo
  21865. CheckDiskAudio
  21866. CheckDummyAudio
  21867. CheckDLOPEN
  21868. CheckMETAL
  21869. CheckVulkan
  21870. CheckPTHREAD
  21871. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21872. have_misc=yes
  21873. # Set up files for the locale library
  21874. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21875. have_locale=yes
  21876. # Set up files for the audio library
  21877. if test x$enable_audio = xyes; then
  21878. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21879. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21880. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21881. have_audio=yes
  21882. fi
  21883. # Set up files for the joystick library
  21884. if test x$enable_joystick = xyes; then
  21885. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21886. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21887. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21888. have_joystick=yes
  21889. else
  21890. # Need this code for accelerometer as joystick support
  21891. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21892. fi
  21893. # Set up files for the haptic library
  21894. #if test x$enable_haptic = xyes; then
  21895. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21896. # have_haptic=yes
  21897. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21898. #fi
  21899. # Set up files for the sensor library
  21900. if test x$enable_sensor = xyes; then
  21901. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21902. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21903. have_sensor=yes
  21904. fi
  21905. # Set up files for the power library
  21906. if test x$enable_power = xyes; then
  21907. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21908. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21909. have_power=yes
  21910. fi
  21911. # Set up files for the filesystem library
  21912. if test x$enable_filesystem = xyes; then
  21913. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21914. have_filesystem=yes
  21915. fi
  21916. # Set up additional files for the file library
  21917. if test x$enable_file = xyes; then
  21918. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21919. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21920. fi
  21921. # Set up files for the timer library
  21922. if test x$enable_timers = xyes; then
  21923. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21924. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21925. have_timers=yes
  21926. fi
  21927. # Set up other core UNIX files
  21928. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21929. # The iOS platform requires special setup.
  21930. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21931. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21932. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21933. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21934. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21935. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21938. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21940. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21941. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21942. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21943. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21944. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21945. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21946. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21947. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21948. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21949. fi
  21950. ;;
  21951. *-*-darwin* )
  21952. # This could be either full "Mac OS X", or plain "Darwin" which is
  21953. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21954. # Next line is broken, and a few files below require Mac OS X (full)
  21955. ARCH=macosx
  21956. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21957. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21958. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21959. CheckVisibilityHidden
  21960. CheckDeclarationAfterStatement
  21961. CheckDummyVideo
  21962. CheckDiskAudio
  21963. CheckDummyAudio
  21964. CheckDLOPEN
  21965. CheckCOCOA
  21966. CheckMETAL
  21967. CheckX11
  21968. CheckMacGL
  21969. CheckMacGLES
  21970. CheckGLX
  21971. CheckOpenGL
  21972. CheckVulkan
  21973. CheckPTHREAD
  21974. CheckHIDAPI
  21975. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21976. have_misc=yes
  21977. # Set up files for the locale library
  21978. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21979. have_locale=yes
  21980. # Set up files for the audio library
  21981. if test x$enable_audio = xyes; then
  21982. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21983. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21985. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21986. have_audio=yes
  21987. fi
  21988. # Set up files for the joystick library
  21989. if test x$enable_joystick = xyes; then
  21990. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21991. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21992. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21993. CheckJoystickMFI
  21994. have_joystick=yes
  21995. fi
  21996. # Set up files for the haptic library
  21997. if test x$enable_haptic = xyes; then
  21998. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21999. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22001. have_haptic=yes
  22002. fi
  22003. # Set up files for the power library
  22004. if test x$enable_power = xyes; then
  22005. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22006. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22007. have_power=yes
  22008. fi
  22009. # Set up files for the filesystem library
  22010. if test x$enable_filesystem = xyes; then
  22011. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22012. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22013. have_filesystem=yes
  22014. fi
  22015. # Set up files for the timer library
  22016. if test x$enable_timers = xyes; then
  22017. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22018. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22019. have_timers=yes
  22020. fi
  22021. # Set up additional files for the file library
  22022. if test x$enable_file = xyes; then
  22023. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22024. fi
  22025. # Set up other core UNIX files
  22026. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22027. # The Mac OS X platform requires special setup.
  22028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22033. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22034. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22035. fi
  22036. ;;
  22037. *-nacl|*-pnacl)
  22038. ARCH=nacl
  22039. CheckNativeClient
  22040. CheckDummyAudio
  22041. CheckDummyVideo
  22042. CheckInputEvents
  22043. CheckPTHREAD
  22044. # Set up files for the timer library
  22045. if test x$enable_timers = xyes; then
  22046. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22047. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22048. have_timers=yes
  22049. fi
  22050. if test x$enable_filesystem = xyes; then
  22051. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22052. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22053. have_filesystem=yes
  22054. fi
  22055. ;;
  22056. *-*-emscripten* )
  22057. if test x$enable_video = xyes; then
  22058. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22059. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22060. have_video=yes
  22061. SUMMARY_video="${SUMMARY_video} emscripten"
  22062. fi
  22063. if test x$enable_audio = xyes; then
  22064. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22065. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22066. have_audio=yes
  22067. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22068. fi
  22069. CheckVisibilityHidden
  22070. CheckDeclarationAfterStatement
  22071. CheckDummyVideo
  22072. CheckDiskAudio
  22073. CheckDummyAudio
  22074. CheckPTHREAD
  22075. CheckDLOPEN
  22076. CheckClockGettime
  22077. CheckEmscriptenGLES
  22078. # Set up files for the power library
  22079. if test x$enable_power = xyes; then
  22080. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22081. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22082. have_power=yes
  22083. fi
  22084. # Set up files for the power library
  22085. if test x$enable_joystick = xyes; then
  22086. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22087. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22088. have_joystick=yes
  22089. fi
  22090. # Set up files for the filesystem library
  22091. if test x$enable_filesystem = xyes; then
  22092. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22093. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22094. have_filesystem=yes
  22095. fi
  22096. # Set up files for the timer library
  22097. if test x$enable_timers = xyes; then
  22098. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22099. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22100. have_timers=yes
  22101. fi
  22102. # Set up files for the locale library
  22103. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22104. have_locale=yes
  22105. ;;
  22106. *-*-riscos*)
  22107. ARCH=riscos
  22108. CheckVisibilityHidden
  22109. CheckDeclarationAfterStatement
  22110. CheckDummyVideo
  22111. CheckDiskAudio
  22112. CheckDummyAudio
  22113. CheckDLOPEN
  22114. CheckOSS
  22115. CheckPTHREAD
  22116. CheckClockGettime
  22117. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22118. have_misc=yes
  22119. # Set up files for the timer library
  22120. if test x$enable_timers = xyes; then
  22121. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22122. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22123. have_timers=yes
  22124. fi
  22125. ;;
  22126. *)
  22127. as_fn_error $? "
  22128. *** Unsupported host: Please add to configure.ac
  22129. " "$LINENO" 5
  22130. ;;
  22131. esac
  22132. CheckVirtualJoystick
  22133. # Check whether to install sdl2-config
  22134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22135. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22136. # Check whether --enable-sdl2-config was given.
  22137. if test "${enable_sdl2_config+set}" = set; then :
  22138. enableval=$enable_sdl2_config; case "${enableval}" in
  22139. yes) enable_sdl2_config="TRUE" ;;
  22140. no) enable_sdl2_config="FALSE" ;;
  22141. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22142. esac
  22143. else
  22144. enable_sdl2_config="TRUE"
  22145. fi
  22146. if test "$enable_sdl2_config" = "TRUE"; then
  22147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22148. $as_echo "yes" >&6; }
  22149. else
  22150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22151. $as_echo "no" >&6; }
  22152. fi
  22153. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22154. # Verify that we have all the platform specific files we need
  22155. if test x$have_misc != xyes; then
  22156. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22157. fi
  22158. if test x$have_locale != xyes; then
  22159. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22160. fi
  22161. if test x$have_joystick != xyes; then
  22162. if test x$enable_joystick = xyes; then
  22163. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22164. fi
  22165. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22166. fi
  22167. if test x$have_haptic != xyes; then
  22168. if test x$enable_haptic = xyes; then
  22169. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22170. fi
  22171. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22172. fi
  22173. if test x$have_sensor != xyes; then
  22174. if test x$enable_sensor = xyes; then
  22175. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22176. fi
  22177. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22178. fi
  22179. if test x$have_threads != xyes; then
  22180. if test x$enable_threads = xyes; then
  22181. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22182. fi
  22183. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22184. fi
  22185. if test x$have_timers != xyes; then
  22186. if test x$enable_timers = xyes; then
  22187. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22188. fi
  22189. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22190. fi
  22191. if test x$have_filesystem != xyes; then
  22192. if test x$enable_filesystem = xyes; then
  22193. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22194. fi
  22195. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22196. fi
  22197. if test x$have_loadso != xyes; then
  22198. if test x$enable_loadso = xyes; then
  22199. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22200. fi
  22201. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22202. fi
  22203. if test x$SDLMAIN_SOURCES = x; then
  22204. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22205. fi
  22206. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22207. if test x$video_wayland = xyes; then
  22208. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22209. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22210. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22211. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22212. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22213. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22214. echo ;\
  22215. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22216. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22217. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22218. echo ;\
  22219. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22220. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22221. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22222. echo ;\
  22223. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22224. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  22225. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22226. done ;\
  22227. echo ;\
  22228. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22229. fi
  22230. OBJECTS=`echo $SOURCES`
  22231. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22232. for EXT in asm cc m c S; do
  22233. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22234. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22235. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22236. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22237. done
  22238. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22239. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22240. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22241. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22242. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22243. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22244. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22245. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22246. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22247. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22248. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22249. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22250. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22251. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22252. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22253. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22254. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22255. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22256. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22257. # Set runtime shared library paths as needed
  22258. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22259. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22260. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22262. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22263. have_enable_new_dtags=no
  22264. save_LDFLAGS="$LDFLAGS"
  22265. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22267. /* end confdefs.h. */
  22268. int
  22269. main ()
  22270. {
  22271. ;
  22272. return 0;
  22273. }
  22274. _ACEOF
  22275. if ac_fn_c_try_link "$LINENO"; then :
  22276. have_enable_new_dtags=yes
  22277. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22278. fi
  22279. rm -f core conftest.err conftest.$ac_objext \
  22280. conftest$ac_exeext conftest.$ac_ext
  22281. LDFLAGS="$save_LDFLAGS"
  22282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22283. $as_echo "$have_enable_new_dtags" >&6; }
  22284. fi
  22285. if test $ARCH = solaris; then
  22286. SDL_RLD_FLAGS="-R\${libdir}"
  22287. fi
  22288. else
  22289. SDL_RLD_FLAGS=""
  22290. fi
  22291. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22292. if test x$enable_shared = xyes; then
  22293. PKGCONFIG_LIBS_PRIV="
  22294. Libs.private:"
  22295. ENABLE_SHARED_TRUE=
  22296. ENABLE_SHARED_FALSE="#"
  22297. else
  22298. PKGCONFIG_LIBS_PRIV=
  22299. ENABLE_SHARED_TRUE="#"
  22300. ENABLE_SHARED_FALSE=
  22301. fi
  22302. if test x$enable_static = xyes; then
  22303. ENABLE_STATIC_TRUE=
  22304. ENABLE_STATIC_FALSE="#"
  22305. else
  22306. ENABLE_STATIC_TRUE="#"
  22307. ENABLE_STATIC_FALSE=
  22308. fi
  22309. cat >Makefile.rules <<__EOF__
  22310. # Build rules for objects
  22311. -include \$(OBJECTS:.lo=.d)
  22312. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22313. $srcdir/src/SDL.c: update-revision
  22314. $DEPENDS
  22315. $VERSION_DEPENDS
  22316. $SDLMAIN_DEPENDS
  22317. $SDLTEST_DEPENDS
  22318. $WAYLAND_PROTOCOLS_DEPENDS
  22319. __EOF__
  22320. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22321. ac_config_commands="$ac_config_commands sdl2_config"
  22322. SUMMARY="SDL2 Configure Summary:\n"
  22323. if test x$enable_shared = xyes; then
  22324. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22325. fi
  22326. if test x$enable_static = xyes; then
  22327. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22328. fi
  22329. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22330. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22331. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22332. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22333. if test x$have_x = xyes; then
  22334. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22335. fi
  22336. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22337. if test x$have_joystick_virtual = xyes; then
  22338. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22339. else
  22340. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22341. fi
  22342. if test x$have_samplerate_h_hdr = xyes; then
  22343. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22344. else
  22345. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22346. fi
  22347. if test x$have_libudev_h_hdr = xyes; then
  22348. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22349. else
  22350. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22351. fi
  22352. if test x$have_dbus_dbus_h_hdr = xyes; then
  22353. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22354. else
  22355. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22356. fi
  22357. if test x$enable_ime = xyes; then
  22358. SUMMARY="${SUMMARY}Using ime : YES\n"
  22359. else
  22360. SUMMARY="${SUMMARY}Using ime : NO\n"
  22361. fi
  22362. if test x$have_ibus_ibus_h_hdr = xyes; then
  22363. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22364. else
  22365. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22366. fi
  22367. if test x$have_fcitx = xyes; then
  22368. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22369. else
  22370. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22371. fi
  22372. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22373. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22374. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22375. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22376. SUMMARY="${SUMMARY}configure script with:\n"
  22377. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22378. fi
  22379. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22380. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22381. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22382. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22383. SUMMARY="${SUMMARY}configure script with:\n"
  22384. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22385. fi
  22386. ac_config_commands="$ac_config_commands summary"
  22387. cat >confcache <<\_ACEOF
  22388. # This file is a shell script that caches the results of configure
  22389. # tests run on this system so they can be shared between configure
  22390. # scripts and configure runs, see configure's option --config-cache.
  22391. # It is not useful on other systems. If it contains results you don't
  22392. # want to keep, you may remove or edit it.
  22393. #
  22394. # config.status only pays attention to the cache file if you give it
  22395. # the --recheck option to rerun configure.
  22396. #
  22397. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22398. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22399. # following values.
  22400. _ACEOF
  22401. # The following way of writing the cache mishandles newlines in values,
  22402. # but we know of no workaround that is simple, portable, and efficient.
  22403. # So, we kill variables containing newlines.
  22404. # Ultrix sh set writes to stderr and can't be redirected directly,
  22405. # and sets the high bit in the cache file unless we assign to the vars.
  22406. (
  22407. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22408. eval ac_val=\$$ac_var
  22409. case $ac_val in #(
  22410. *${as_nl}*)
  22411. case $ac_var in #(
  22412. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22413. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22414. esac
  22415. case $ac_var in #(
  22416. _ | IFS | as_nl) ;; #(
  22417. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22418. *) { eval $ac_var=; unset $ac_var;} ;;
  22419. esac ;;
  22420. esac
  22421. done
  22422. (set) 2>&1 |
  22423. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22424. *${as_nl}ac_space=\ *)
  22425. # `set' does not quote correctly, so add quotes: double-quote
  22426. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22427. sed -n \
  22428. "s/'/'\\\\''/g;
  22429. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22430. ;; #(
  22431. *)
  22432. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22433. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22434. ;;
  22435. esac |
  22436. sort
  22437. ) |
  22438. sed '
  22439. /^ac_cv_env_/b end
  22440. t clear
  22441. :clear
  22442. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22443. t end
  22444. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22445. :end' >>confcache
  22446. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22447. if test -w "$cache_file"; then
  22448. if test "x$cache_file" != "x/dev/null"; then
  22449. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22450. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22451. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22452. cat confcache >"$cache_file"
  22453. else
  22454. case $cache_file in #(
  22455. */* | ?:*)
  22456. mv -f confcache "$cache_file"$$ &&
  22457. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22458. *)
  22459. mv -f confcache "$cache_file" ;;
  22460. esac
  22461. fi
  22462. fi
  22463. else
  22464. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22465. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22466. fi
  22467. fi
  22468. rm -f confcache
  22469. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22470. # Let make expand exec_prefix.
  22471. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22472. DEFS=-DHAVE_CONFIG_H
  22473. ac_libobjs=
  22474. ac_ltlibobjs=
  22475. U=
  22476. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22477. # 1. Remove the extension, and $U if already installed.
  22478. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22479. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22480. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22481. # will be set to the directory where LIBOBJS objects are built.
  22482. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22483. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22484. done
  22485. LIBOBJS=$ac_libobjs
  22486. LTLIBOBJS=$ac_ltlibobjs
  22487. : "${CONFIG_STATUS=./config.status}"
  22488. ac_write_fail=0
  22489. ac_clean_files_save=$ac_clean_files
  22490. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22491. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22492. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22493. as_write_fail=0
  22494. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22495. #! $SHELL
  22496. # Generated by $as_me.
  22497. # Run this file to recreate the current configuration.
  22498. # Compiler output produced by configure, useful for debugging
  22499. # configure, is in config.log if it exists.
  22500. debug=false
  22501. ac_cs_recheck=false
  22502. ac_cs_silent=false
  22503. SHELL=\${CONFIG_SHELL-$SHELL}
  22504. export SHELL
  22505. _ASEOF
  22506. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22507. ## -------------------- ##
  22508. ## M4sh Initialization. ##
  22509. ## -------------------- ##
  22510. # Be more Bourne compatible
  22511. DUALCASE=1; export DUALCASE # for MKS sh
  22512. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22513. emulate sh
  22514. NULLCMD=:
  22515. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22516. # is contrary to our usage. Disable this feature.
  22517. alias -g '${1+"$@"}'='"$@"'
  22518. setopt NO_GLOB_SUBST
  22519. else
  22520. case `(set -o) 2>/dev/null` in #(
  22521. *posix*) :
  22522. set -o posix ;; #(
  22523. *) :
  22524. ;;
  22525. esac
  22526. fi
  22527. as_nl='
  22528. '
  22529. export as_nl
  22530. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22531. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22532. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22533. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22534. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22535. # but without wasting forks for bash or zsh.
  22536. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22537. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22538. as_echo='print -r --'
  22539. as_echo_n='print -rn --'
  22540. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22541. as_echo='printf %s\n'
  22542. as_echo_n='printf %s'
  22543. else
  22544. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22545. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22546. as_echo_n='/usr/ucb/echo -n'
  22547. else
  22548. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22549. as_echo_n_body='eval
  22550. arg=$1;
  22551. case $arg in #(
  22552. *"$as_nl"*)
  22553. expr "X$arg" : "X\\(.*\\)$as_nl";
  22554. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22555. esac;
  22556. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22557. '
  22558. export as_echo_n_body
  22559. as_echo_n='sh -c $as_echo_n_body as_echo'
  22560. fi
  22561. export as_echo_body
  22562. as_echo='sh -c $as_echo_body as_echo'
  22563. fi
  22564. # The user is always right.
  22565. if test "${PATH_SEPARATOR+set}" != set; then
  22566. PATH_SEPARATOR=:
  22567. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22568. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22569. PATH_SEPARATOR=';'
  22570. }
  22571. fi
  22572. # IFS
  22573. # We need space, tab and new line, in precisely that order. Quoting is
  22574. # there to prevent editors from complaining about space-tab.
  22575. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22576. # splitting by setting IFS to empty value.)
  22577. IFS=" "" $as_nl"
  22578. # Find who we are. Look in the path if we contain no directory separator.
  22579. as_myself=
  22580. case $0 in #((
  22581. *[\\/]* ) as_myself=$0 ;;
  22582. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22583. for as_dir in $PATH
  22584. do
  22585. IFS=$as_save_IFS
  22586. test -z "$as_dir" && as_dir=.
  22587. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22588. done
  22589. IFS=$as_save_IFS
  22590. ;;
  22591. esac
  22592. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22593. # in which case we are not to be found in the path.
  22594. if test "x$as_myself" = x; then
  22595. as_myself=$0
  22596. fi
  22597. if test ! -f "$as_myself"; then
  22598. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22599. exit 1
  22600. fi
  22601. # Unset variables that we do not need and which cause bugs (e.g. in
  22602. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22603. # suppresses any "Segmentation fault" message there. '((' could
  22604. # trigger a bug in pdksh 5.2.14.
  22605. for as_var in BASH_ENV ENV MAIL MAILPATH
  22606. do eval test x\${$as_var+set} = xset \
  22607. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22608. done
  22609. PS1='$ '
  22610. PS2='> '
  22611. PS4='+ '
  22612. # NLS nuisances.
  22613. LC_ALL=C
  22614. export LC_ALL
  22615. LANGUAGE=C
  22616. export LANGUAGE
  22617. # CDPATH.
  22618. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22619. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22620. # ----------------------------------------
  22621. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22622. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22623. # script with STATUS, using 1 if that was 0.
  22624. as_fn_error ()
  22625. {
  22626. as_status=$1; test $as_status -eq 0 && as_status=1
  22627. if test "$4"; then
  22628. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22629. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22630. fi
  22631. $as_echo "$as_me: error: $2" >&2
  22632. as_fn_exit $as_status
  22633. } # as_fn_error
  22634. # as_fn_set_status STATUS
  22635. # -----------------------
  22636. # Set $? to STATUS, without forking.
  22637. as_fn_set_status ()
  22638. {
  22639. return $1
  22640. } # as_fn_set_status
  22641. # as_fn_exit STATUS
  22642. # -----------------
  22643. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22644. as_fn_exit ()
  22645. {
  22646. set +e
  22647. as_fn_set_status $1
  22648. exit $1
  22649. } # as_fn_exit
  22650. # as_fn_unset VAR
  22651. # ---------------
  22652. # Portably unset VAR.
  22653. as_fn_unset ()
  22654. {
  22655. { eval $1=; unset $1;}
  22656. }
  22657. as_unset=as_fn_unset
  22658. # as_fn_append VAR VALUE
  22659. # ----------------------
  22660. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22661. # advantage of any shell optimizations that allow amortized linear growth over
  22662. # repeated appends, instead of the typical quadratic growth present in naive
  22663. # implementations.
  22664. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22665. eval 'as_fn_append ()
  22666. {
  22667. eval $1+=\$2
  22668. }'
  22669. else
  22670. as_fn_append ()
  22671. {
  22672. eval $1=\$$1\$2
  22673. }
  22674. fi # as_fn_append
  22675. # as_fn_arith ARG...
  22676. # ------------------
  22677. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22678. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22679. # must be portable across $(()) and expr.
  22680. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22681. eval 'as_fn_arith ()
  22682. {
  22683. as_val=$(( $* ))
  22684. }'
  22685. else
  22686. as_fn_arith ()
  22687. {
  22688. as_val=`expr "$@" || test $? -eq 1`
  22689. }
  22690. fi # as_fn_arith
  22691. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22692. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22693. as_expr=expr
  22694. else
  22695. as_expr=false
  22696. fi
  22697. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22698. as_basename=basename
  22699. else
  22700. as_basename=false
  22701. fi
  22702. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22703. as_dirname=dirname
  22704. else
  22705. as_dirname=false
  22706. fi
  22707. as_me=`$as_basename -- "$0" ||
  22708. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22709. X"$0" : 'X\(//\)$' \| \
  22710. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22711. $as_echo X/"$0" |
  22712. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22713. s//\1/
  22714. q
  22715. }
  22716. /^X\/\(\/\/\)$/{
  22717. s//\1/
  22718. q
  22719. }
  22720. /^X\/\(\/\).*/{
  22721. s//\1/
  22722. q
  22723. }
  22724. s/.*/./; q'`
  22725. # Avoid depending upon Character Ranges.
  22726. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22727. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22728. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22729. as_cr_digits='0123456789'
  22730. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22731. ECHO_C= ECHO_N= ECHO_T=
  22732. case `echo -n x` in #(((((
  22733. -n*)
  22734. case `echo 'xy\c'` in
  22735. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22736. xy) ECHO_C='\c';;
  22737. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22738. ECHO_T=' ';;
  22739. esac;;
  22740. *)
  22741. ECHO_N='-n';;
  22742. esac
  22743. rm -f conf$$ conf$$.exe conf$$.file
  22744. if test -d conf$$.dir; then
  22745. rm -f conf$$.dir/conf$$.file
  22746. else
  22747. rm -f conf$$.dir
  22748. mkdir conf$$.dir 2>/dev/null
  22749. fi
  22750. if (echo >conf$$.file) 2>/dev/null; then
  22751. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22752. as_ln_s='ln -s'
  22753. # ... but there are two gotchas:
  22754. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22755. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22756. # In both cases, we have to default to `cp -pR'.
  22757. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22758. as_ln_s='cp -pR'
  22759. elif ln conf$$.file conf$$ 2>/dev/null; then
  22760. as_ln_s=ln
  22761. else
  22762. as_ln_s='cp -pR'
  22763. fi
  22764. else
  22765. as_ln_s='cp -pR'
  22766. fi
  22767. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22768. rmdir conf$$.dir 2>/dev/null
  22769. # as_fn_mkdir_p
  22770. # -------------
  22771. # Create "$as_dir" as a directory, including parents if necessary.
  22772. as_fn_mkdir_p ()
  22773. {
  22774. case $as_dir in #(
  22775. -*) as_dir=./$as_dir;;
  22776. esac
  22777. test -d "$as_dir" || eval $as_mkdir_p || {
  22778. as_dirs=
  22779. while :; do
  22780. case $as_dir in #(
  22781. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22782. *) as_qdir=$as_dir;;
  22783. esac
  22784. as_dirs="'$as_qdir' $as_dirs"
  22785. as_dir=`$as_dirname -- "$as_dir" ||
  22786. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22787. X"$as_dir" : 'X\(//\)[^/]' \| \
  22788. X"$as_dir" : 'X\(//\)$' \| \
  22789. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22790. $as_echo X"$as_dir" |
  22791. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22792. s//\1/
  22793. q
  22794. }
  22795. /^X\(\/\/\)[^/].*/{
  22796. s//\1/
  22797. q
  22798. }
  22799. /^X\(\/\/\)$/{
  22800. s//\1/
  22801. q
  22802. }
  22803. /^X\(\/\).*/{
  22804. s//\1/
  22805. q
  22806. }
  22807. s/.*/./; q'`
  22808. test -d "$as_dir" && break
  22809. done
  22810. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22811. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22812. } # as_fn_mkdir_p
  22813. if mkdir -p . 2>/dev/null; then
  22814. as_mkdir_p='mkdir -p "$as_dir"'
  22815. else
  22816. test -d ./-p && rmdir ./-p
  22817. as_mkdir_p=false
  22818. fi
  22819. # as_fn_executable_p FILE
  22820. # -----------------------
  22821. # Test if FILE is an executable regular file.
  22822. as_fn_executable_p ()
  22823. {
  22824. test -f "$1" && test -x "$1"
  22825. } # as_fn_executable_p
  22826. as_test_x='test -x'
  22827. as_executable_p=as_fn_executable_p
  22828. # Sed expression to map a string onto a valid CPP name.
  22829. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22830. # Sed expression to map a string onto a valid variable name.
  22831. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22832. exec 6>&1
  22833. ## ----------------------------------- ##
  22834. ## Main body of $CONFIG_STATUS script. ##
  22835. ## ----------------------------------- ##
  22836. _ASEOF
  22837. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22838. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22839. # Save the log message, to keep $0 and so on meaningful, and to
  22840. # report actual input values of CONFIG_FILES etc. instead of their
  22841. # values after options handling.
  22842. ac_log="
  22843. This file was extended by $as_me, which was
  22844. generated by GNU Autoconf 2.69. Invocation command line was
  22845. CONFIG_FILES = $CONFIG_FILES
  22846. CONFIG_HEADERS = $CONFIG_HEADERS
  22847. CONFIG_LINKS = $CONFIG_LINKS
  22848. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22849. $ $0 $@
  22850. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22851. "
  22852. _ACEOF
  22853. case $ac_config_files in *"
  22854. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22855. esac
  22856. case $ac_config_headers in *"
  22857. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22858. esac
  22859. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22860. # Files that config.status was made for.
  22861. config_files="$ac_config_files"
  22862. config_headers="$ac_config_headers"
  22863. config_commands="$ac_config_commands"
  22864. _ACEOF
  22865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22866. ac_cs_usage="\
  22867. \`$as_me' instantiates files and other configuration actions
  22868. from templates according to the current configuration. Unless the files
  22869. and actions are specified as TAGs, all are instantiated by default.
  22870. Usage: $0 [OPTION]... [TAG]...
  22871. -h, --help print this help, then exit
  22872. -V, --version print version number and configuration settings, then exit
  22873. --config print configuration, then exit
  22874. -q, --quiet, --silent
  22875. do not print progress messages
  22876. -d, --debug don't remove temporary files
  22877. --recheck update $as_me by reconfiguring in the same conditions
  22878. --file=FILE[:TEMPLATE]
  22879. instantiate the configuration file FILE
  22880. --header=FILE[:TEMPLATE]
  22881. instantiate the configuration header FILE
  22882. Configuration files:
  22883. $config_files
  22884. Configuration headers:
  22885. $config_headers
  22886. Configuration commands:
  22887. $config_commands
  22888. Report bugs to the package provider."
  22889. _ACEOF
  22890. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22891. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22892. ac_cs_version="\\
  22893. config.status
  22894. configured by $0, generated by GNU Autoconf 2.69,
  22895. with options \\"\$ac_cs_config\\"
  22896. Copyright (C) 2012 Free Software Foundation, Inc.
  22897. This config.status script is free software; the Free Software Foundation
  22898. gives unlimited permission to copy, distribute and modify it."
  22899. ac_pwd='$ac_pwd'
  22900. srcdir='$srcdir'
  22901. INSTALL='$INSTALL'
  22902. AWK='$AWK'
  22903. test -n "\$AWK" || AWK=awk
  22904. _ACEOF
  22905. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22906. # The default lists apply if the user does not specify any file.
  22907. ac_need_defaults=:
  22908. while test $# != 0
  22909. do
  22910. case $1 in
  22911. --*=?*)
  22912. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22913. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22914. ac_shift=:
  22915. ;;
  22916. --*=)
  22917. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22918. ac_optarg=
  22919. ac_shift=:
  22920. ;;
  22921. *)
  22922. ac_option=$1
  22923. ac_optarg=$2
  22924. ac_shift=shift
  22925. ;;
  22926. esac
  22927. case $ac_option in
  22928. # Handling of the options.
  22929. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22930. ac_cs_recheck=: ;;
  22931. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22932. $as_echo "$ac_cs_version"; exit ;;
  22933. --config | --confi | --conf | --con | --co | --c )
  22934. $as_echo "$ac_cs_config"; exit ;;
  22935. --debug | --debu | --deb | --de | --d | -d )
  22936. debug=: ;;
  22937. --file | --fil | --fi | --f )
  22938. $ac_shift
  22939. case $ac_optarg in
  22940. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22941. '') as_fn_error $? "missing file argument" ;;
  22942. esac
  22943. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22944. ac_need_defaults=false;;
  22945. --header | --heade | --head | --hea )
  22946. $ac_shift
  22947. case $ac_optarg in
  22948. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22949. esac
  22950. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22951. ac_need_defaults=false;;
  22952. --he | --h)
  22953. # Conflict between --help and --header
  22954. as_fn_error $? "ambiguous option: \`$1'
  22955. Try \`$0 --help' for more information.";;
  22956. --help | --hel | -h )
  22957. $as_echo "$ac_cs_usage"; exit ;;
  22958. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22959. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22960. ac_cs_silent=: ;;
  22961. # This is an error.
  22962. -*) as_fn_error $? "unrecognized option: \`$1'
  22963. Try \`$0 --help' for more information." ;;
  22964. *) as_fn_append ac_config_targets " $1"
  22965. ac_need_defaults=false ;;
  22966. esac
  22967. shift
  22968. done
  22969. ac_configure_extra_args=
  22970. if $ac_cs_silent; then
  22971. exec 6>/dev/null
  22972. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22973. fi
  22974. _ACEOF
  22975. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22976. if \$ac_cs_recheck; then
  22977. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22978. shift
  22979. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22980. CONFIG_SHELL='$SHELL'
  22981. export CONFIG_SHELL
  22982. exec "\$@"
  22983. fi
  22984. _ACEOF
  22985. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22986. exec 5>>config.log
  22987. {
  22988. echo
  22989. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22990. ## Running $as_me. ##
  22991. _ASBOX
  22992. $as_echo "$ac_log"
  22993. } >&5
  22994. _ACEOF
  22995. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22996. #
  22997. # INIT-COMMANDS
  22998. #
  22999. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23000. # if CDPATH is set.
  23001. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23002. sed_quote_subst='$sed_quote_subst'
  23003. double_quote_subst='$double_quote_subst'
  23004. delay_variable_subst='$delay_variable_subst'
  23005. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23006. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23007. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23008. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23009. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23010. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23011. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23012. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23013. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23014. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23015. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23016. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23017. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23018. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23019. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23020. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23021. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23022. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23023. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23024. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23025. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23026. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23027. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23028. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23029. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23030. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23031. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23032. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23033. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23034. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23035. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23036. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23037. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23038. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23039. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23040. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23041. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23042. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23043. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23044. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23045. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23046. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23047. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23048. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23049. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23050. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23051. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23052. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23053. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23054. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23055. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23056. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23057. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23058. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23059. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23060. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23061. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23062. 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"`'
  23063. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23064. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23065. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23066. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23067. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23068. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23069. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23070. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23071. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23072. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23073. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23074. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23075. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23076. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23077. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23078. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23079. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23080. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23081. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23082. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23083. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23084. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23085. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23086. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23087. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23088. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23089. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23090. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23091. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23092. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23093. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23094. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23095. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23096. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23097. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23098. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23099. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23100. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23101. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23102. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23103. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23104. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23105. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23106. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23107. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23108. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23109. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23110. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23111. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23112. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23113. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23114. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23115. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23116. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23117. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23118. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23119. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23120. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23121. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23122. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23123. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23124. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23125. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23126. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23127. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23128. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23129. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23130. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23131. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23132. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23133. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23134. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23135. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23136. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23137. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23138. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23139. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23140. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23141. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23142. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23143. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23144. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23145. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23146. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23147. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23148. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23149. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23150. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23151. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23152. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23153. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23154. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23155. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23156. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23157. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23158. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23159. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23160. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23161. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23162. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23163. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23164. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23165. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23166. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23167. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23168. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23169. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23170. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23171. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23172. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23173. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23174. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23175. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23176. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23177. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23178. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23179. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23180. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23181. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23182. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23183. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23184. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23185. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23186. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23187. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23188. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23189. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23190. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23191. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23192. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23193. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23194. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23195. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23196. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23197. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23198. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23199. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23200. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23201. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23202. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23203. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23204. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23205. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23206. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23207. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23208. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23209. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23210. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23211. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23212. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23213. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23214. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23215. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23216. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23217. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23218. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23219. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23220. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23221. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23222. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23223. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23224. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23225. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23226. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23227. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23228. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23229. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23230. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23231. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23232. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23233. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23234. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23235. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23236. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23237. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23238. LTCC='$LTCC'
  23239. LTCFLAGS='$LTCFLAGS'
  23240. compiler='$compiler_DEFAULT'
  23241. # A function that is used when there is no print builtin or printf.
  23242. func_fallback_echo ()
  23243. {
  23244. eval 'cat <<_LTECHO_EOF
  23245. \$1
  23246. _LTECHO_EOF'
  23247. }
  23248. # Quote evaled strings.
  23249. for var in AS \
  23250. DLLTOOL \
  23251. OBJDUMP \
  23252. SHELL \
  23253. ECHO \
  23254. PATH_SEPARATOR \
  23255. SED \
  23256. GREP \
  23257. EGREP \
  23258. FGREP \
  23259. LD \
  23260. NM \
  23261. LN_S \
  23262. lt_SP2NL \
  23263. lt_NL2SP \
  23264. reload_flag \
  23265. deplibs_check_method \
  23266. file_magic_cmd \
  23267. file_magic_glob \
  23268. want_nocaseglob \
  23269. sharedlib_from_linklib_cmd \
  23270. AR \
  23271. AR_FLAGS \
  23272. archiver_list_spec \
  23273. STRIP \
  23274. RANLIB \
  23275. CC \
  23276. CFLAGS \
  23277. compiler \
  23278. lt_cv_sys_global_symbol_pipe \
  23279. lt_cv_sys_global_symbol_to_cdecl \
  23280. lt_cv_sys_global_symbol_to_c_name_address \
  23281. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23282. nm_file_list_spec \
  23283. lt_prog_compiler_no_builtin_flag \
  23284. lt_prog_compiler_pic \
  23285. lt_prog_compiler_wl \
  23286. lt_prog_compiler_static \
  23287. lt_cv_prog_compiler_c_o \
  23288. need_locks \
  23289. MANIFEST_TOOL \
  23290. DSYMUTIL \
  23291. NMEDIT \
  23292. LIPO \
  23293. OTOOL \
  23294. OTOOL64 \
  23295. shrext_cmds \
  23296. export_dynamic_flag_spec \
  23297. whole_archive_flag_spec \
  23298. compiler_needs_object \
  23299. with_gnu_ld \
  23300. allow_undefined_flag \
  23301. no_undefined_flag \
  23302. hardcode_libdir_flag_spec \
  23303. hardcode_libdir_separator \
  23304. exclude_expsyms \
  23305. include_expsyms \
  23306. file_list_spec \
  23307. variables_saved_for_relink \
  23308. libname_spec \
  23309. library_names_spec \
  23310. soname_spec \
  23311. install_override_mode \
  23312. finish_eval \
  23313. old_striplib \
  23314. striplib \
  23315. compiler_lib_search_dirs \
  23316. predep_objects \
  23317. postdep_objects \
  23318. predeps \
  23319. postdeps \
  23320. compiler_lib_search_path \
  23321. LD_RC \
  23322. LD_CXX \
  23323. reload_flag_RC \
  23324. reload_flag_CXX \
  23325. compiler_RC \
  23326. compiler_CXX \
  23327. lt_prog_compiler_no_builtin_flag_RC \
  23328. lt_prog_compiler_no_builtin_flag_CXX \
  23329. lt_prog_compiler_pic_RC \
  23330. lt_prog_compiler_pic_CXX \
  23331. lt_prog_compiler_wl_RC \
  23332. lt_prog_compiler_wl_CXX \
  23333. lt_prog_compiler_static_RC \
  23334. lt_prog_compiler_static_CXX \
  23335. lt_cv_prog_compiler_c_o_RC \
  23336. lt_cv_prog_compiler_c_o_CXX \
  23337. export_dynamic_flag_spec_RC \
  23338. export_dynamic_flag_spec_CXX \
  23339. whole_archive_flag_spec_RC \
  23340. whole_archive_flag_spec_CXX \
  23341. compiler_needs_object_RC \
  23342. compiler_needs_object_CXX \
  23343. with_gnu_ld_RC \
  23344. with_gnu_ld_CXX \
  23345. allow_undefined_flag_RC \
  23346. allow_undefined_flag_CXX \
  23347. no_undefined_flag_RC \
  23348. no_undefined_flag_CXX \
  23349. hardcode_libdir_flag_spec_RC \
  23350. hardcode_libdir_flag_spec_CXX \
  23351. hardcode_libdir_separator_RC \
  23352. hardcode_libdir_separator_CXX \
  23353. exclude_expsyms_RC \
  23354. exclude_expsyms_CXX \
  23355. include_expsyms_RC \
  23356. include_expsyms_CXX \
  23357. file_list_spec_RC \
  23358. file_list_spec_CXX \
  23359. compiler_lib_search_dirs_RC \
  23360. compiler_lib_search_dirs_CXX \
  23361. predep_objects_RC \
  23362. predep_objects_CXX \
  23363. postdep_objects_RC \
  23364. postdep_objects_CXX \
  23365. predeps_RC \
  23366. predeps_CXX \
  23367. postdeps_RC \
  23368. postdeps_CXX \
  23369. compiler_lib_search_path_RC \
  23370. compiler_lib_search_path_CXX; do
  23371. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23372. *[\\\\\\\`\\"\\\$]*)
  23373. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23374. ;;
  23375. *)
  23376. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23377. ;;
  23378. esac
  23379. done
  23380. # Double-quote double-evaled strings.
  23381. for var in reload_cmds \
  23382. old_postinstall_cmds \
  23383. old_postuninstall_cmds \
  23384. old_archive_cmds \
  23385. extract_expsyms_cmds \
  23386. old_archive_from_new_cmds \
  23387. old_archive_from_expsyms_cmds \
  23388. archive_cmds \
  23389. archive_expsym_cmds \
  23390. module_cmds \
  23391. module_expsym_cmds \
  23392. export_symbols_cmds \
  23393. prelink_cmds \
  23394. postlink_cmds \
  23395. postinstall_cmds \
  23396. postuninstall_cmds \
  23397. finish_cmds \
  23398. sys_lib_search_path_spec \
  23399. sys_lib_dlsearch_path_spec \
  23400. reload_cmds_RC \
  23401. reload_cmds_CXX \
  23402. old_archive_cmds_RC \
  23403. old_archive_cmds_CXX \
  23404. old_archive_from_new_cmds_RC \
  23405. old_archive_from_new_cmds_CXX \
  23406. old_archive_from_expsyms_cmds_RC \
  23407. old_archive_from_expsyms_cmds_CXX \
  23408. archive_cmds_RC \
  23409. archive_cmds_CXX \
  23410. archive_expsym_cmds_RC \
  23411. archive_expsym_cmds_CXX \
  23412. module_cmds_RC \
  23413. module_cmds_CXX \
  23414. module_expsym_cmds_RC \
  23415. module_expsym_cmds_CXX \
  23416. export_symbols_cmds_RC \
  23417. export_symbols_cmds_CXX \
  23418. prelink_cmds_RC \
  23419. prelink_cmds_CXX \
  23420. postlink_cmds_RC \
  23421. postlink_cmds_CXX; do
  23422. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23423. *[\\\\\\\`\\"\\\$]*)
  23424. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23425. ;;
  23426. *)
  23427. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23428. ;;
  23429. esac
  23430. done
  23431. ac_aux_dir='$ac_aux_dir'
  23432. xsi_shell='$xsi_shell'
  23433. lt_shell_append='$lt_shell_append'
  23434. # See if we are running on zsh, and set the options which allow our
  23435. # commands through without removal of \ escapes INIT.
  23436. if test -n "\${ZSH_VERSION+set}" ; then
  23437. setopt NO_GLOB_SUBST
  23438. fi
  23439. PACKAGE='$PACKAGE'
  23440. VERSION='$VERSION'
  23441. TIMESTAMP='$TIMESTAMP'
  23442. RM='$RM'
  23443. ofile='$ofile'
  23444. SUMMARY="$SUMMARY"
  23445. _ACEOF
  23446. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23447. # Handling of arguments.
  23448. for ac_config_target in $ac_config_targets
  23449. do
  23450. case $ac_config_target in
  23451. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23452. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23453. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23454. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23455. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23456. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23457. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23458. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23459. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23460. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23461. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23462. esac
  23463. done
  23464. # If the user did not use the arguments to specify the items to instantiate,
  23465. # then the envvar interface is used. Set only those that are not.
  23466. # We use the long form for the default assignment because of an extremely
  23467. # bizarre bug on SunOS 4.1.3.
  23468. if $ac_need_defaults; then
  23469. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23470. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23471. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23472. fi
  23473. # Have a temporary directory for convenience. Make it in the build tree
  23474. # simply because there is no reason against having it here, and in addition,
  23475. # creating and moving files from /tmp can sometimes cause problems.
  23476. # Hook for its removal unless debugging.
  23477. # Note that there is a small window in which the directory will not be cleaned:
  23478. # after its creation but before its name has been assigned to `$tmp'.
  23479. $debug ||
  23480. {
  23481. tmp= ac_tmp=
  23482. trap 'exit_status=$?
  23483. : "${ac_tmp:=$tmp}"
  23484. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23485. ' 0
  23486. trap 'as_fn_exit 1' 1 2 13 15
  23487. }
  23488. # Create a (secure) tmp directory for tmp files.
  23489. {
  23490. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23491. test -d "$tmp"
  23492. } ||
  23493. {
  23494. tmp=./conf$$-$RANDOM
  23495. (umask 077 && mkdir "$tmp")
  23496. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23497. ac_tmp=$tmp
  23498. # Set up the scripts for CONFIG_FILES section.
  23499. # No need to generate them if there are no CONFIG_FILES.
  23500. # This happens for instance with `./config.status config.h'.
  23501. if test -n "$CONFIG_FILES"; then
  23502. ac_cr=`echo X | tr X '\015'`
  23503. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23504. # But we know of no other shell where ac_cr would be empty at this
  23505. # point, so we can use a bashism as a fallback.
  23506. if test "x$ac_cr" = x; then
  23507. eval ac_cr=\$\'\\r\'
  23508. fi
  23509. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23510. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23511. ac_cs_awk_cr='\\r'
  23512. else
  23513. ac_cs_awk_cr=$ac_cr
  23514. fi
  23515. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23516. _ACEOF
  23517. {
  23518. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23519. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23520. echo "_ACEOF"
  23521. } >conf$$subs.sh ||
  23522. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23523. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23524. ac_delim='%!_!# '
  23525. for ac_last_try in false false false false false :; do
  23526. . ./conf$$subs.sh ||
  23527. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23528. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23529. if test $ac_delim_n = $ac_delim_num; then
  23530. break
  23531. elif $ac_last_try; then
  23532. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23533. else
  23534. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23535. fi
  23536. done
  23537. rm -f conf$$subs.sh
  23538. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23539. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23540. _ACEOF
  23541. sed -n '
  23542. h
  23543. s/^/S["/; s/!.*/"]=/
  23544. p
  23545. g
  23546. s/^[^!]*!//
  23547. :repl
  23548. t repl
  23549. s/'"$ac_delim"'$//
  23550. t delim
  23551. :nl
  23552. h
  23553. s/\(.\{148\}\)..*/\1/
  23554. t more1
  23555. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23556. p
  23557. n
  23558. b repl
  23559. :more1
  23560. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23561. p
  23562. g
  23563. s/.\{148\}//
  23564. t nl
  23565. :delim
  23566. h
  23567. s/\(.\{148\}\)..*/\1/
  23568. t more2
  23569. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23570. p
  23571. b
  23572. :more2
  23573. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23574. p
  23575. g
  23576. s/.\{148\}//
  23577. t delim
  23578. ' <conf$$subs.awk | sed '
  23579. /^[^""]/{
  23580. N
  23581. s/\n//
  23582. }
  23583. ' >>$CONFIG_STATUS || ac_write_fail=1
  23584. rm -f conf$$subs.awk
  23585. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23586. _ACAWK
  23587. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23588. for (key in S) S_is_set[key] = 1
  23589. FS = ""
  23590. }
  23591. {
  23592. line = $ 0
  23593. nfields = split(line, field, "@")
  23594. substed = 0
  23595. len = length(field[1])
  23596. for (i = 2; i < nfields; i++) {
  23597. key = field[i]
  23598. keylen = length(key)
  23599. if (S_is_set[key]) {
  23600. value = S[key]
  23601. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23602. len += length(value) + length(field[++i])
  23603. substed = 1
  23604. } else
  23605. len += 1 + keylen
  23606. }
  23607. print line
  23608. }
  23609. _ACAWK
  23610. _ACEOF
  23611. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23612. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23613. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23614. else
  23615. cat
  23616. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23617. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23618. _ACEOF
  23619. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23620. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23621. # trailing colons and then remove the whole line if VPATH becomes empty
  23622. # (actually we leave an empty line to preserve line numbers).
  23623. if test "x$srcdir" = x.; then
  23624. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23625. h
  23626. s///
  23627. s/^/:/
  23628. s/[ ]*$/:/
  23629. s/:\$(srcdir):/:/g
  23630. s/:\${srcdir}:/:/g
  23631. s/:@srcdir@:/:/g
  23632. s/^:*//
  23633. s/:*$//
  23634. x
  23635. s/\(=[ ]*\).*/\1/
  23636. G
  23637. s/\n//
  23638. s/^[^=]*=[ ]*$//
  23639. }'
  23640. fi
  23641. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23642. fi # test -n "$CONFIG_FILES"
  23643. # Set up the scripts for CONFIG_HEADERS section.
  23644. # No need to generate them if there are no CONFIG_HEADERS.
  23645. # This happens for instance with `./config.status Makefile'.
  23646. if test -n "$CONFIG_HEADERS"; then
  23647. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23648. BEGIN {
  23649. _ACEOF
  23650. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23651. # here-document in config.status, that substitutes the proper values into
  23652. # config.h.in to produce config.h.
  23653. # Create a delimiter string that does not exist in confdefs.h, to ease
  23654. # handling of long lines.
  23655. ac_delim='%!_!# '
  23656. for ac_last_try in false false :; do
  23657. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23658. if test -z "$ac_tt"; then
  23659. break
  23660. elif $ac_last_try; then
  23661. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23662. else
  23663. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23664. fi
  23665. done
  23666. # For the awk script, D is an array of macro values keyed by name,
  23667. # likewise P contains macro parameters if any. Preserve backslash
  23668. # newline sequences.
  23669. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23670. sed -n '
  23671. s/.\{148\}/&'"$ac_delim"'/g
  23672. t rset
  23673. :rset
  23674. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23675. t def
  23676. d
  23677. :def
  23678. s/\\$//
  23679. t bsnl
  23680. s/["\\]/\\&/g
  23681. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23682. D["\1"]=" \3"/p
  23683. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23684. d
  23685. :bsnl
  23686. s/["\\]/\\&/g
  23687. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23688. D["\1"]=" \3\\\\\\n"\\/p
  23689. t cont
  23690. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23691. t cont
  23692. d
  23693. :cont
  23694. n
  23695. s/.\{148\}/&'"$ac_delim"'/g
  23696. t clear
  23697. :clear
  23698. s/\\$//
  23699. t bsnlc
  23700. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23701. d
  23702. :bsnlc
  23703. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23704. b cont
  23705. ' <confdefs.h | sed '
  23706. s/'"$ac_delim"'/"\\\
  23707. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23708. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23709. for (key in D) D_is_set[key] = 1
  23710. FS = ""
  23711. }
  23712. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23713. line = \$ 0
  23714. split(line, arg, " ")
  23715. if (arg[1] == "#") {
  23716. defundef = arg[2]
  23717. mac1 = arg[3]
  23718. } else {
  23719. defundef = substr(arg[1], 2)
  23720. mac1 = arg[2]
  23721. }
  23722. split(mac1, mac2, "(") #)
  23723. macro = mac2[1]
  23724. prefix = substr(line, 1, index(line, defundef) - 1)
  23725. if (D_is_set[macro]) {
  23726. # Preserve the white space surrounding the "#".
  23727. print prefix "define", macro P[macro] D[macro]
  23728. next
  23729. } else {
  23730. # Replace #undef with comments. This is necessary, for example,
  23731. # in the case of _POSIX_SOURCE, which is predefined and required
  23732. # on some systems where configure will not decide to define it.
  23733. if (defundef == "undef") {
  23734. print "/*", prefix defundef, macro, "*/"
  23735. next
  23736. }
  23737. }
  23738. }
  23739. { print }
  23740. _ACAWK
  23741. _ACEOF
  23742. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23743. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23744. fi # test -n "$CONFIG_HEADERS"
  23745. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23746. shift
  23747. for ac_tag
  23748. do
  23749. case $ac_tag in
  23750. :[FHLC]) ac_mode=$ac_tag; continue;;
  23751. esac
  23752. case $ac_mode$ac_tag in
  23753. :[FHL]*:*);;
  23754. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23755. :[FH]-) ac_tag=-:-;;
  23756. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23757. esac
  23758. ac_save_IFS=$IFS
  23759. IFS=:
  23760. set x $ac_tag
  23761. IFS=$ac_save_IFS
  23762. shift
  23763. ac_file=$1
  23764. shift
  23765. case $ac_mode in
  23766. :L) ac_source=$1;;
  23767. :[FH])
  23768. ac_file_inputs=
  23769. for ac_f
  23770. do
  23771. case $ac_f in
  23772. -) ac_f="$ac_tmp/stdin";;
  23773. *) # Look for the file first in the build tree, then in the source tree
  23774. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23775. # because $ac_f cannot contain `:'.
  23776. test -f "$ac_f" ||
  23777. case $ac_f in
  23778. [\\/$]*) false;;
  23779. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23780. esac ||
  23781. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23782. esac
  23783. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23784. as_fn_append ac_file_inputs " '$ac_f'"
  23785. done
  23786. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23787. # use $as_me), people would be surprised to read:
  23788. # /* config.h. Generated by config.status. */
  23789. configure_input='Generated from '`
  23790. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23791. `' by configure.'
  23792. if test x"$ac_file" != x-; then
  23793. configure_input="$ac_file. $configure_input"
  23794. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23795. $as_echo "$as_me: creating $ac_file" >&6;}
  23796. fi
  23797. # Neutralize special characters interpreted by sed in replacement strings.
  23798. case $configure_input in #(
  23799. *\&* | *\|* | *\\* )
  23800. ac_sed_conf_input=`$as_echo "$configure_input" |
  23801. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23802. *) ac_sed_conf_input=$configure_input;;
  23803. esac
  23804. case $ac_tag in
  23805. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23806. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23807. esac
  23808. ;;
  23809. esac
  23810. ac_dir=`$as_dirname -- "$ac_file" ||
  23811. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23812. X"$ac_file" : 'X\(//\)[^/]' \| \
  23813. X"$ac_file" : 'X\(//\)$' \| \
  23814. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23815. $as_echo X"$ac_file" |
  23816. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23817. s//\1/
  23818. q
  23819. }
  23820. /^X\(\/\/\)[^/].*/{
  23821. s//\1/
  23822. q
  23823. }
  23824. /^X\(\/\/\)$/{
  23825. s//\1/
  23826. q
  23827. }
  23828. /^X\(\/\).*/{
  23829. s//\1/
  23830. q
  23831. }
  23832. s/.*/./; q'`
  23833. as_dir="$ac_dir"; as_fn_mkdir_p
  23834. ac_builddir=.
  23835. case "$ac_dir" in
  23836. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23837. *)
  23838. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23839. # A ".." for each directory in $ac_dir_suffix.
  23840. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23841. case $ac_top_builddir_sub in
  23842. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23843. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23844. esac ;;
  23845. esac
  23846. ac_abs_top_builddir=$ac_pwd
  23847. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23848. # for backward compatibility:
  23849. ac_top_builddir=$ac_top_build_prefix
  23850. case $srcdir in
  23851. .) # We are building in place.
  23852. ac_srcdir=.
  23853. ac_top_srcdir=$ac_top_builddir_sub
  23854. ac_abs_top_srcdir=$ac_pwd ;;
  23855. [\\/]* | ?:[\\/]* ) # Absolute name.
  23856. ac_srcdir=$srcdir$ac_dir_suffix;
  23857. ac_top_srcdir=$srcdir
  23858. ac_abs_top_srcdir=$srcdir ;;
  23859. *) # Relative name.
  23860. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23861. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23862. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23863. esac
  23864. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23865. case $ac_mode in
  23866. :F)
  23867. #
  23868. # CONFIG_FILE
  23869. #
  23870. case $INSTALL in
  23871. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23872. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23873. esac
  23874. _ACEOF
  23875. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23876. # If the template does not know about datarootdir, expand it.
  23877. # FIXME: This hack should be removed a few years after 2.60.
  23878. ac_datarootdir_hack=; ac_datarootdir_seen=
  23879. ac_sed_dataroot='
  23880. /datarootdir/ {
  23881. p
  23882. q
  23883. }
  23884. /@datadir@/p
  23885. /@docdir@/p
  23886. /@infodir@/p
  23887. /@localedir@/p
  23888. /@mandir@/p'
  23889. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23890. *datarootdir*) ac_datarootdir_seen=yes;;
  23891. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23893. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23894. _ACEOF
  23895. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23896. ac_datarootdir_hack='
  23897. s&@datadir@&$datadir&g
  23898. s&@docdir@&$docdir&g
  23899. s&@infodir@&$infodir&g
  23900. s&@localedir@&$localedir&g
  23901. s&@mandir@&$mandir&g
  23902. s&\\\${datarootdir}&$datarootdir&g' ;;
  23903. esac
  23904. _ACEOF
  23905. # Neutralize VPATH when `$srcdir' = `.'.
  23906. # Shell code in configure.ac might set extrasub.
  23907. # FIXME: do we really want to maintain this feature?
  23908. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23909. ac_sed_extra="$ac_vpsub
  23910. $extrasub
  23911. _ACEOF
  23912. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23913. :t
  23914. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23915. s|@configure_input@|$ac_sed_conf_input|;t t
  23916. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23917. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23918. s&@srcdir@&$ac_srcdir&;t t
  23919. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23920. s&@top_srcdir@&$ac_top_srcdir&;t t
  23921. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23922. s&@builddir@&$ac_builddir&;t t
  23923. s&@abs_builddir@&$ac_abs_builddir&;t t
  23924. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23925. s&@INSTALL@&$ac_INSTALL&;t t
  23926. $ac_datarootdir_hack
  23927. "
  23928. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23929. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23930. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23931. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23932. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23933. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23935. which seems to be undefined. Please make sure it is defined" >&5
  23936. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23937. which seems to be undefined. Please make sure it is defined" >&2;}
  23938. rm -f "$ac_tmp/stdin"
  23939. case $ac_file in
  23940. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23941. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23942. esac \
  23943. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23944. ;;
  23945. :H)
  23946. #
  23947. # CONFIG_HEADER
  23948. #
  23949. if test x"$ac_file" != x-; then
  23950. {
  23951. $as_echo "/* $configure_input */" \
  23952. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23953. } >"$ac_tmp/config.h" \
  23954. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23955. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23956. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23957. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23958. else
  23959. rm -f "$ac_file"
  23960. mv "$ac_tmp/config.h" "$ac_file" \
  23961. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23962. fi
  23963. else
  23964. $as_echo "/* $configure_input */" \
  23965. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23966. || as_fn_error $? "could not create -" "$LINENO" 5
  23967. fi
  23968. ;;
  23969. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23970. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23971. ;;
  23972. esac
  23973. case $ac_file$ac_mode in
  23974. "libtool":C)
  23975. # See if we are running on zsh, and set the options which allow our
  23976. # commands through without removal of \ escapes.
  23977. if test -n "${ZSH_VERSION+set}" ; then
  23978. setopt NO_GLOB_SUBST
  23979. fi
  23980. cfgfile="${ofile}T"
  23981. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23982. $RM "$cfgfile"
  23983. cat <<_LT_EOF >> "$cfgfile"
  23984. #! $SHELL
  23985. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23986. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23987. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23988. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23989. #
  23990. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23991. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23992. # Foundation, Inc.
  23993. # Written by Gordon Matzigkeit, 1996
  23994. #
  23995. # This file is part of GNU Libtool.
  23996. #
  23997. # GNU Libtool is free software; you can redistribute it and/or
  23998. # modify it under the terms of the GNU General Public License as
  23999. # published by the Free Software Foundation; either version 2 of
  24000. # the License, or (at your option) any later version.
  24001. #
  24002. # As a special exception to the GNU General Public License,
  24003. # if you distribute this file as part of a program or library that
  24004. # is built using GNU Libtool, you may include this file under the
  24005. # same distribution terms that you use for the rest of that program.
  24006. #
  24007. # GNU Libtool is distributed in the hope that it will be useful,
  24008. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24009. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24010. # GNU General Public License for more details.
  24011. #
  24012. # You should have received a copy of the GNU General Public License
  24013. # along with GNU Libtool; see the file COPYING. If not, a copy
  24014. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  24015. # obtained by writing to the Free Software Foundation, Inc.,
  24016. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24017. # The names of the tagged configurations supported by this script.
  24018. available_tags="RC CXX "
  24019. # ### BEGIN LIBTOOL CONFIG
  24020. # Which release of libtool.m4 was used?
  24021. macro_version=$macro_version
  24022. macro_revision=$macro_revision
  24023. # Assembler program.
  24024. AS=$lt_AS
  24025. # DLL creation program.
  24026. DLLTOOL=$lt_DLLTOOL
  24027. # Object dumper program.
  24028. OBJDUMP=$lt_OBJDUMP
  24029. # Whether or not to build shared libraries.
  24030. build_libtool_libs=$enable_shared
  24031. # Whether or not to build static libraries.
  24032. build_old_libs=$enable_static
  24033. # What type of objects to build.
  24034. pic_mode=$pic_mode
  24035. # Whether or not to optimize for fast installation.
  24036. fast_install=$enable_fast_install
  24037. # Shell to use when invoking shell scripts.
  24038. SHELL=$lt_SHELL
  24039. # An echo program that protects backslashes.
  24040. ECHO=$lt_ECHO
  24041. # The PATH separator for the build system.
  24042. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24043. # The host system.
  24044. host_alias=$host_alias
  24045. host=$host
  24046. host_os=$host_os
  24047. # The build system.
  24048. build_alias=$build_alias
  24049. build=$build
  24050. build_os=$build_os
  24051. # A sed program that does not truncate output.
  24052. SED=$lt_SED
  24053. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24054. Xsed="\$SED -e 1s/^X//"
  24055. # A grep program that handles long lines.
  24056. GREP=$lt_GREP
  24057. # An ERE matcher.
  24058. EGREP=$lt_EGREP
  24059. # A literal string matcher.
  24060. FGREP=$lt_FGREP
  24061. # A BSD- or MS-compatible name lister.
  24062. NM=$lt_NM
  24063. # Whether we need soft or hard links.
  24064. LN_S=$lt_LN_S
  24065. # What is the maximum length of a command?
  24066. max_cmd_len=$max_cmd_len
  24067. # Object file suffix (normally "o").
  24068. objext=$ac_objext
  24069. # Executable file suffix (normally "").
  24070. exeext=$exeext
  24071. # whether the shell understands "unset".
  24072. lt_unset=$lt_unset
  24073. # turn spaces into newlines.
  24074. SP2NL=$lt_lt_SP2NL
  24075. # turn newlines into spaces.
  24076. NL2SP=$lt_lt_NL2SP
  24077. # convert \$build file names to \$host format.
  24078. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24079. # convert \$build files to toolchain format.
  24080. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24081. # Method to check whether dependent libraries are shared objects.
  24082. deplibs_check_method=$lt_deplibs_check_method
  24083. # Command to use when deplibs_check_method = "file_magic".
  24084. file_magic_cmd=$lt_file_magic_cmd
  24085. # How to find potential files when deplibs_check_method = "file_magic".
  24086. file_magic_glob=$lt_file_magic_glob
  24087. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24088. want_nocaseglob=$lt_want_nocaseglob
  24089. # Command to associate shared and link libraries.
  24090. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24091. # The archiver.
  24092. AR=$lt_AR
  24093. # Flags to create an archive.
  24094. AR_FLAGS=$lt_AR_FLAGS
  24095. # How to feed a file listing to the archiver.
  24096. archiver_list_spec=$lt_archiver_list_spec
  24097. # A symbol stripping program.
  24098. STRIP=$lt_STRIP
  24099. # Commands used to install an old-style archive.
  24100. RANLIB=$lt_RANLIB
  24101. old_postinstall_cmds=$lt_old_postinstall_cmds
  24102. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24103. # Whether to use a lock for old archive extraction.
  24104. lock_old_archive_extraction=$lock_old_archive_extraction
  24105. # A C compiler.
  24106. LTCC=$lt_CC
  24107. # LTCC compiler flags.
  24108. LTCFLAGS=$lt_CFLAGS
  24109. # Take the output of nm and produce a listing of raw symbols and C names.
  24110. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24111. # Transform the output of nm in a proper C declaration.
  24112. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24113. # Transform the output of nm in a C name address pair.
  24114. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24115. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24116. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24117. # Specify filename containing input files for \$NM.
  24118. nm_file_list_spec=$lt_nm_file_list_spec
  24119. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24120. lt_sysroot=$lt_sysroot
  24121. # The name of the directory that contains temporary libtool files.
  24122. objdir=$objdir
  24123. # Used to examine libraries when file_magic_cmd begins with "file".
  24124. MAGIC_CMD=$MAGIC_CMD
  24125. # Must we lock files when doing compilation?
  24126. need_locks=$lt_need_locks
  24127. # Manifest tool.
  24128. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24129. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24130. DSYMUTIL=$lt_DSYMUTIL
  24131. # Tool to change global to local symbols on Mac OS X.
  24132. NMEDIT=$lt_NMEDIT
  24133. # Tool to manipulate fat objects and archives on Mac OS X.
  24134. LIPO=$lt_LIPO
  24135. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24136. OTOOL=$lt_OTOOL
  24137. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24138. OTOOL64=$lt_OTOOL64
  24139. # Old archive suffix (normally "a").
  24140. libext=$libext
  24141. # Shared library suffix (normally ".so").
  24142. shrext_cmds=$lt_shrext_cmds
  24143. # The commands to extract the exported symbol list from a shared archive.
  24144. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24145. # Variables whose values should be saved in libtool wrapper scripts and
  24146. # restored at link time.
  24147. variables_saved_for_relink=$lt_variables_saved_for_relink
  24148. # Do we need the "lib" prefix for modules?
  24149. need_lib_prefix=$need_lib_prefix
  24150. # Do we need a version for libraries?
  24151. need_version=$need_version
  24152. # Library versioning type.
  24153. version_type=$version_type
  24154. # Shared library runtime path variable.
  24155. runpath_var=$runpath_var
  24156. # Shared library path variable.
  24157. shlibpath_var=$shlibpath_var
  24158. # Is shlibpath searched before the hard-coded library search path?
  24159. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24160. # Format of library name prefix.
  24161. libname_spec=$lt_libname_spec
  24162. # List of archive names. First name is the real one, the rest are links.
  24163. # The last name is the one that the linker finds with -lNAME
  24164. library_names_spec=$lt_library_names_spec
  24165. # The coded name of the library, if different from the real name.
  24166. soname_spec=$lt_soname_spec
  24167. # Permission mode override for installation of shared libraries.
  24168. install_override_mode=$lt_install_override_mode
  24169. # Command to use after installation of a shared archive.
  24170. postinstall_cmds=$lt_postinstall_cmds
  24171. # Command to use after uninstallation of a shared archive.
  24172. postuninstall_cmds=$lt_postuninstall_cmds
  24173. # Commands used to finish a libtool library installation in a directory.
  24174. finish_cmds=$lt_finish_cmds
  24175. # As "finish_cmds", except a single script fragment to be evaled but
  24176. # not shown.
  24177. finish_eval=$lt_finish_eval
  24178. # Whether we should hardcode library paths into libraries.
  24179. hardcode_into_libs=$hardcode_into_libs
  24180. # Compile-time system search path for libraries.
  24181. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24182. # Run-time system search path for libraries.
  24183. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24184. # Whether dlopen is supported.
  24185. dlopen_support=$enable_dlopen
  24186. # Whether dlopen of programs is supported.
  24187. dlopen_self=$enable_dlopen_self
  24188. # Whether dlopen of statically linked programs is supported.
  24189. dlopen_self_static=$enable_dlopen_self_static
  24190. # Commands to strip libraries.
  24191. old_striplib=$lt_old_striplib
  24192. striplib=$lt_striplib
  24193. # The linker used to build libraries.
  24194. LD=$lt_LD
  24195. # How to create reloadable object files.
  24196. reload_flag=$lt_reload_flag
  24197. reload_cmds=$lt_reload_cmds
  24198. # Commands used to build an old-style archive.
  24199. old_archive_cmds=$lt_old_archive_cmds
  24200. # A language specific compiler.
  24201. CC=$lt_compiler
  24202. # Is the compiler the GNU compiler?
  24203. with_gcc=$GCC
  24204. # Compiler flag to turn off builtin functions.
  24205. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24206. # Additional compiler flags for building library objects.
  24207. pic_flag=$lt_lt_prog_compiler_pic
  24208. # How to pass a linker flag through the compiler.
  24209. wl=$lt_lt_prog_compiler_wl
  24210. # Compiler flag to prevent dynamic linking.
  24211. link_static_flag=$lt_lt_prog_compiler_static
  24212. # Does compiler simultaneously support -c and -o options?
  24213. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24214. # Whether or not to add -lc for building shared libraries.
  24215. build_libtool_need_lc=$archive_cmds_need_lc
  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
  24218. # Compiler flag to allow reflexive dlopens.
  24219. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24220. # Compiler flag to generate shared objects directly from archives.
  24221. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24222. # Whether the compiler copes with passing no objects directly.
  24223. compiler_needs_object=$lt_compiler_needs_object
  24224. # Create an old-style archive from a shared archive.
  24225. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  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
  24228. # Commands used to build a shared archive.
  24229. archive_cmds=$lt_archive_cmds
  24230. archive_expsym_cmds=$lt_archive_expsym_cmds
  24231. # Commands used to build a loadable module if different from building
  24232. # a shared archive.
  24233. module_cmds=$lt_module_cmds
  24234. module_expsym_cmds=$lt_module_expsym_cmds
  24235. # Whether we are building with GNU ld or not.
  24236. with_gnu_ld=$lt_with_gnu_ld
  24237. # Flag that allows shared libraries with undefined symbols to be built.
  24238. allow_undefined_flag=$lt_allow_undefined_flag
  24239. # Flag that enforces no undefined symbols.
  24240. no_undefined_flag=$lt_no_undefined_flag
  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
  24244. # Whether we need a single "-rpath" flag with a separated argument.
  24245. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24246. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24247. # DIR into the resulting binary.
  24248. hardcode_direct=$hardcode_direct
  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
  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
  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
  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
  24264. # Set to yes if linker adds runtime paths of dependent libraries
  24265. # to runtime path list.
  24266. inherit_rpath=$inherit_rpath
  24267. # Whether libtool must link a program against all its dependency libraries.
  24268. link_all_deplibs=$link_all_deplibs
  24269. # Set to "yes" if exported symbols are required.
  24270. always_export_symbols=$always_export_symbols
  24271. # The commands to list exported symbols.
  24272. export_symbols_cmds=$lt_export_symbols_cmds
  24273. # Symbols that should not be listed in the preloaded symbols.
  24274. exclude_expsyms=$lt_exclude_expsyms
  24275. # Symbols that must always be exported.
  24276. include_expsyms=$lt_include_expsyms
  24277. # Commands necessary for linking programs (against libraries) with templates.
  24278. prelink_cmds=$lt_prelink_cmds
  24279. # Commands necessary for finishing linking programs.
  24280. postlink_cmds=$lt_postlink_cmds
  24281. # Specify filename containing input files.
  24282. file_list_spec=$lt_file_list_spec
  24283. # How to hardcode a shared library path into an executable.
  24284. hardcode_action=$hardcode_action
  24285. # The directories searched by this compiler when creating a shared library.
  24286. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24287. # Dependencies to place before and after the objects being linked to
  24288. # create a shared library.
  24289. predep_objects=$lt_predep_objects
  24290. postdep_objects=$lt_postdep_objects
  24291. predeps=$lt_predeps
  24292. postdeps=$lt_postdeps
  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
  24296. # ### END LIBTOOL CONFIG
  24297. _LT_EOF
  24298. case $host_os in
  24299. aix3*)
  24300. cat <<\_LT_EOF >> "$cfgfile"
  24301. # AIX sometimes has problems with the GCC collect2 program. For some
  24302. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24303. # vanish in a puff of smoke.
  24304. if test "X${COLLECT_NAMES+set}" != Xset; then
  24305. COLLECT_NAMES=
  24306. export COLLECT_NAMES
  24307. fi
  24308. _LT_EOF
  24309. ;;
  24310. esac
  24311. ltmain="$ac_aux_dir/ltmain.sh"
  24312. # We use sed instead of cat because bash on DJGPP gets confused if
  24313. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24314. # text mode, it properly converts lines to CR/LF. This bash problem
  24315. # is reportedly fixed, but why not run on old versions too?
  24316. sed '$q' "$ltmain" >> "$cfgfile" \
  24317. || (rm -f "$cfgfile"; exit 1)
  24318. if test x"$xsi_shell" = xyes; then
  24319. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24320. func_dirname ()\
  24321. {\
  24322. \ case ${1} in\
  24323. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24324. \ * ) func_dirname_result="${3}" ;;\
  24325. \ esac\
  24326. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24327. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24328. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24329. test 0 -eq $? || _lt_function_replace_fail=:
  24330. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24331. func_basename ()\
  24332. {\
  24333. \ func_basename_result="${1##*/}"\
  24334. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24335. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24336. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24337. test 0 -eq $? || _lt_function_replace_fail=:
  24338. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24339. func_dirname_and_basename ()\
  24340. {\
  24341. \ case ${1} in\
  24342. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24343. \ * ) func_dirname_result="${3}" ;;\
  24344. \ esac\
  24345. \ func_basename_result="${1##*/}"\
  24346. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24347. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24348. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24349. test 0 -eq $? || _lt_function_replace_fail=:
  24350. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24351. func_stripname ()\
  24352. {\
  24353. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24354. \ # positional parameters, so assign one to ordinary parameter first.\
  24355. \ func_stripname_result=${3}\
  24356. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24357. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24358. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24359. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24360. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24361. test 0 -eq $? || _lt_function_replace_fail=:
  24362. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24363. func_split_long_opt ()\
  24364. {\
  24365. \ func_split_long_opt_name=${1%%=*}\
  24366. \ func_split_long_opt_arg=${1#*=}\
  24367. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24368. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24369. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24370. test 0 -eq $? || _lt_function_replace_fail=:
  24371. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24372. func_split_short_opt ()\
  24373. {\
  24374. \ func_split_short_opt_arg=${1#??}\
  24375. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24376. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24377. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24378. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24379. test 0 -eq $? || _lt_function_replace_fail=:
  24380. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24381. func_lo2o ()\
  24382. {\
  24383. \ case ${1} in\
  24384. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24385. \ *) func_lo2o_result=${1} ;;\
  24386. \ esac\
  24387. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24388. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24389. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24390. test 0 -eq $? || _lt_function_replace_fail=:
  24391. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24392. func_xform ()\
  24393. {\
  24394. func_xform_result=${1%.*}.lo\
  24395. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24396. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24397. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24398. test 0 -eq $? || _lt_function_replace_fail=:
  24399. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24400. func_arith ()\
  24401. {\
  24402. func_arith_result=$(( $* ))\
  24403. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24404. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24405. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24406. test 0 -eq $? || _lt_function_replace_fail=:
  24407. sed -e '/^func_len ()$/,/^} # func_len /c\
  24408. func_len ()\
  24409. {\
  24410. func_len_result=${#1}\
  24411. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24412. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24413. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24414. test 0 -eq $? || _lt_function_replace_fail=:
  24415. fi
  24416. if test x"$lt_shell_append" = xyes; then
  24417. sed -e '/^func_append ()$/,/^} # func_append /c\
  24418. func_append ()\
  24419. {\
  24420. eval "${1}+=\\${2}"\
  24421. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24422. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24423. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24424. test 0 -eq $? || _lt_function_replace_fail=:
  24425. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24426. func_append_quoted ()\
  24427. {\
  24428. \ func_quote_for_eval "${2}"\
  24429. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24430. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24431. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24432. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24433. test 0 -eq $? || _lt_function_replace_fail=:
  24434. # Save a `func_append' function call where possible by direct use of '+='
  24435. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24436. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24437. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24438. test 0 -eq $? || _lt_function_replace_fail=:
  24439. else
  24440. # Save a `func_append' function call even when '+=' is not available
  24441. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24442. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24443. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24444. test 0 -eq $? || _lt_function_replace_fail=:
  24445. fi
  24446. if test x"$_lt_function_replace_fail" = x":"; then
  24447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24448. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24449. fi
  24450. mv -f "$cfgfile" "$ofile" ||
  24451. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24452. chmod +x "$ofile"
  24453. cat <<_LT_EOF >> "$ofile"
  24454. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24455. # The linker used to build libraries.
  24456. LD=$lt_LD_RC
  24457. # How to create reloadable object files.
  24458. reload_flag=$lt_reload_flag_RC
  24459. reload_cmds=$lt_reload_cmds_RC
  24460. # Commands used to build an old-style archive.
  24461. old_archive_cmds=$lt_old_archive_cmds_RC
  24462. # A language specific compiler.
  24463. CC=$lt_compiler_RC
  24464. # Is the compiler the GNU compiler?
  24465. with_gcc=$GCC_RC
  24466. # Compiler flag to turn off builtin functions.
  24467. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24468. # Additional compiler flags for building library objects.
  24469. pic_flag=$lt_lt_prog_compiler_pic_RC
  24470. # How to pass a linker flag through the compiler.
  24471. wl=$lt_lt_prog_compiler_wl_RC
  24472. # Compiler flag to prevent dynamic linking.
  24473. link_static_flag=$lt_lt_prog_compiler_static_RC
  24474. # Does compiler simultaneously support -c and -o options?
  24475. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24476. # Whether or not to add -lc for building shared libraries.
  24477. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24478. # Whether or not to disallow shared libs when runtime libs are static.
  24479. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24480. # Compiler flag to allow reflexive dlopens.
  24481. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24482. # Compiler flag to generate shared objects directly from archives.
  24483. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24484. # Whether the compiler copes with passing no objects directly.
  24485. compiler_needs_object=$lt_compiler_needs_object_RC
  24486. # Create an old-style archive from a shared archive.
  24487. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24488. # Create a temporary old-style archive to link instead of a shared archive.
  24489. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24490. # Commands used to build a shared archive.
  24491. archive_cmds=$lt_archive_cmds_RC
  24492. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24493. # Commands used to build a loadable module if different from building
  24494. # a shared archive.
  24495. module_cmds=$lt_module_cmds_RC
  24496. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24497. # Whether we are building with GNU ld or not.
  24498. with_gnu_ld=$lt_with_gnu_ld_RC
  24499. # Flag that allows shared libraries with undefined symbols to be built.
  24500. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24501. # Flag that enforces no undefined symbols.
  24502. no_undefined_flag=$lt_no_undefined_flag_RC
  24503. # Flag to hardcode \$libdir into a binary during linking.
  24504. # This must work even if \$libdir does not exist
  24505. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24506. # Whether we need a single "-rpath" flag with a separated argument.
  24507. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24508. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24509. # DIR into the resulting binary.
  24510. hardcode_direct=$hardcode_direct_RC
  24511. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24512. # DIR into the resulting binary and the resulting library dependency is
  24513. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24514. # library is relocated.
  24515. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24516. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24517. # into the resulting binary.
  24518. hardcode_minus_L=$hardcode_minus_L_RC
  24519. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24520. # into the resulting binary.
  24521. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24522. # Set to "yes" if building a shared library automatically hardcodes DIR
  24523. # into the library and all subsequent libraries and executables linked
  24524. # against it.
  24525. hardcode_automatic=$hardcode_automatic_RC
  24526. # Set to yes if linker adds runtime paths of dependent libraries
  24527. # to runtime path list.
  24528. inherit_rpath=$inherit_rpath_RC
  24529. # Whether libtool must link a program against all its dependency libraries.
  24530. link_all_deplibs=$link_all_deplibs_RC
  24531. # Set to "yes" if exported symbols are required.
  24532. always_export_symbols=$always_export_symbols_RC
  24533. # The commands to list exported symbols.
  24534. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24535. # Symbols that should not be listed in the preloaded symbols.
  24536. exclude_expsyms=$lt_exclude_expsyms_RC
  24537. # Symbols that must always be exported.
  24538. include_expsyms=$lt_include_expsyms_RC
  24539. # Commands necessary for linking programs (against libraries) with templates.
  24540. prelink_cmds=$lt_prelink_cmds_RC
  24541. # Commands necessary for finishing linking programs.
  24542. postlink_cmds=$lt_postlink_cmds_RC
  24543. # Specify filename containing input files.
  24544. file_list_spec=$lt_file_list_spec_RC
  24545. # How to hardcode a shared library path into an executable.
  24546. hardcode_action=$hardcode_action_RC
  24547. # The directories searched by this compiler when creating a shared library.
  24548. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24549. # Dependencies to place before and after the objects being linked to
  24550. # create a shared library.
  24551. predep_objects=$lt_predep_objects_RC
  24552. postdep_objects=$lt_postdep_objects_RC
  24553. predeps=$lt_predeps_RC
  24554. postdeps=$lt_postdeps_RC
  24555. # The library search path used internally by the compiler when linking
  24556. # a shared library.
  24557. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24558. # ### END LIBTOOL TAG CONFIG: RC
  24559. _LT_EOF
  24560. cat <<_LT_EOF >> "$ofile"
  24561. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24562. # The linker used to build libraries.
  24563. LD=$lt_LD_CXX
  24564. # How to create reloadable object files.
  24565. reload_flag=$lt_reload_flag_CXX
  24566. reload_cmds=$lt_reload_cmds_CXX
  24567. # Commands used to build an old-style archive.
  24568. old_archive_cmds=$lt_old_archive_cmds_CXX
  24569. # A language specific compiler.
  24570. CC=$lt_compiler_CXX
  24571. # Is the compiler the GNU compiler?
  24572. with_gcc=$GCC_CXX
  24573. # Compiler flag to turn off builtin functions.
  24574. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24575. # Additional compiler flags for building library objects.
  24576. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24577. # How to pass a linker flag through the compiler.
  24578. wl=$lt_lt_prog_compiler_wl_CXX
  24579. # Compiler flag to prevent dynamic linking.
  24580. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24581. # Does compiler simultaneously support -c and -o options?
  24582. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24583. # Whether or not to add -lc for building shared libraries.
  24584. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24585. # Whether or not to disallow shared libs when runtime libs are static.
  24586. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24587. # Compiler flag to allow reflexive dlopens.
  24588. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24589. # Compiler flag to generate shared objects directly from archives.
  24590. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24591. # Whether the compiler copes with passing no objects directly.
  24592. compiler_needs_object=$lt_compiler_needs_object_CXX
  24593. # Create an old-style archive from a shared archive.
  24594. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24595. # Create a temporary old-style archive to link instead of a shared archive.
  24596. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24597. # Commands used to build a shared archive.
  24598. archive_cmds=$lt_archive_cmds_CXX
  24599. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24600. # Commands used to build a loadable module if different from building
  24601. # a shared archive.
  24602. module_cmds=$lt_module_cmds_CXX
  24603. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24604. # Whether we are building with GNU ld or not.
  24605. with_gnu_ld=$lt_with_gnu_ld_CXX
  24606. # Flag that allows shared libraries with undefined symbols to be built.
  24607. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24608. # Flag that enforces no undefined symbols.
  24609. no_undefined_flag=$lt_no_undefined_flag_CXX
  24610. # Flag to hardcode \$libdir into a binary during linking.
  24611. # This must work even if \$libdir does not exist
  24612. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24613. # Whether we need a single "-rpath" flag with a separated argument.
  24614. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24615. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24616. # DIR into the resulting binary.
  24617. hardcode_direct=$hardcode_direct_CXX
  24618. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24619. # DIR into the resulting binary and the resulting library dependency is
  24620. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24621. # library is relocated.
  24622. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24623. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24624. # into the resulting binary.
  24625. hardcode_minus_L=$hardcode_minus_L_CXX
  24626. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24627. # into the resulting binary.
  24628. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24629. # Set to "yes" if building a shared library automatically hardcodes DIR
  24630. # into the library and all subsequent libraries and executables linked
  24631. # against it.
  24632. hardcode_automatic=$hardcode_automatic_CXX
  24633. # Set to yes if linker adds runtime paths of dependent libraries
  24634. # to runtime path list.
  24635. inherit_rpath=$inherit_rpath_CXX
  24636. # Whether libtool must link a program against all its dependency libraries.
  24637. link_all_deplibs=$link_all_deplibs_CXX
  24638. # Set to "yes" if exported symbols are required.
  24639. always_export_symbols=$always_export_symbols_CXX
  24640. # The commands to list exported symbols.
  24641. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24642. # Symbols that should not be listed in the preloaded symbols.
  24643. exclude_expsyms=$lt_exclude_expsyms_CXX
  24644. # Symbols that must always be exported.
  24645. include_expsyms=$lt_include_expsyms_CXX
  24646. # Commands necessary for linking programs (against libraries) with templates.
  24647. prelink_cmds=$lt_prelink_cmds_CXX
  24648. # Commands necessary for finishing linking programs.
  24649. postlink_cmds=$lt_postlink_cmds_CXX
  24650. # Specify filename containing input files.
  24651. file_list_spec=$lt_file_list_spec_CXX
  24652. # How to hardcode a shared library path into an executable.
  24653. hardcode_action=$hardcode_action_CXX
  24654. # The directories searched by this compiler when creating a shared library.
  24655. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24656. # Dependencies to place before and after the objects being linked to
  24657. # create a shared library.
  24658. predep_objects=$lt_predep_objects_CXX
  24659. postdep_objects=$lt_postdep_objects_CXX
  24660. predeps=$lt_predeps_CXX
  24661. postdeps=$lt_postdeps_CXX
  24662. # The library search path used internally by the compiler when linking
  24663. # a shared library.
  24664. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24665. # ### END LIBTOOL TAG CONFIG: CXX
  24666. _LT_EOF
  24667. ;;
  24668. "sdl2_config":C) chmod a+x sdl2-config ;;
  24669. "summary":C) printf "$SUMMARY" ;;
  24670. esac
  24671. done # for ac_tag
  24672. as_fn_exit 0
  24673. _ACEOF
  24674. ac_clean_files=$ac_clean_files_save
  24675. test $ac_write_fail = 0 ||
  24676. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24677. # configure is writing to config.log, and then calls config.status.
  24678. # config.status does its own redirection, appending to config.log.
  24679. # Unfortunately, on DOS this fails, as config.log is still kept open
  24680. # by configure, so config.status won't be able to write to it; its
  24681. # output is simply discarded. So we exec the FD to /dev/null,
  24682. # effectively closing config.log, so it can be properly (re)opened and
  24683. # appended to by config.status. When coming back to configure, we
  24684. # need to make the FD available again.
  24685. if test "$no_create" != yes; then
  24686. ac_cs_success=:
  24687. ac_config_status_args=
  24688. test "$silent" = yes &&
  24689. ac_config_status_args="$ac_config_status_args --quiet"
  24690. exec 5>/dev/null
  24691. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24692. exec 5>>config.log
  24693. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24694. # would make configure fail if this is the last instruction.
  24695. $ac_cs_success || as_fn_exit 1
  24696. fi
  24697. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24699. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24700. fi